This website is not affiliated with, sponsored by, or approved by SAP AG.

"Drill Down" on ALV Grid using ABAP OO

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

"Drill Down" on ALV Grid using ABAP OO

Postby tjoeng » Tue Nov 11, 2003 3:01 pm

Hi All,

I'm trying to do a drill down on Sales Order number when displaying my output using ALV Grid implementing ABAP OO. As you can see there's no exporting of i_callback_user_command and it_events on set_table_for_first_display. When I used FM 'REUSE_ALV_GRID_DISPLAY', I could export i_callback_user_command and it_events for drill-down purpose.

How can I do a drill-down using ABAP OO?!? Should I be creating methods and so forth?!?

Code: Select all
CALL METHOD grid1->set_table_for_first_display
*  EXPORTING
*    I_BYPASSING_BUFFER            =
*    I_BUFFER_ACTIVE               =
*    I_CONSISTENCY_CHECK           =
*    I_STRUCTURE_NAME              =
*    IS_VARIANT                    =
*    I_SAVE                        =
*    I_DEFAULT                     = 'X'
*    IS_LAYOUT                     =
*    IS_PRINT                      =
*    IT_SPECIAL_GROUPS             =
*    IT_TOOLBAR_EXCLUDING          =
*    IT_HYPERLINK                  =
*    IT_ALV_GRAPHICS               =
*    IT_EXCEPT_QINFO               =
  CHANGING
    it_outtab                     =
*    IT_FIELDCATALOG               =
*    IT_SORT                       =
*    IT_FILTER                     =
*  EXCEPTIONS
*    INVALID_PARAMETER_COMBINATION = 1
*    PROGRAM_ERROR                 = 2
*    TOO_MANY_LINES                = 3
*    others                        = 4
        .
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.



Thanks for any input.
tjoeng
 
Posts: 94
Joined: Mon Jul 07, 2003 11:34 am

Postby abapkid » Tue Nov 11, 2003 3:43 pm

check out the export parameter : I_CALLBACK_USER_COMMAND
abapkid
 

Postby tjoeng » Tue Nov 11, 2003 4:05 pm

abapkid wrote:check out the export parameter : I_CALLBACK_USER_COMMAND


I don't mean to sound stupid but where would I check out the export parameter I_CALLBACK_USER_COMMAND for ABAP OO?!?

That parameter is included in FM 'REUSE_ALV_GRID_DISPLAY' but not when I use CALL METHOD grid1->set_table_for_first_display
tjoeng
 
Posts: 94
Joined: Mon Jul 07, 2003 11:34 am

Postby atelem » Thu Nov 27, 2003 10:13 am

You can find how a drill-down is performed in SAP program BCALV_GRID_02.
For general knowledge if you go to SE80 and choose Development Class in the combo-box, write SLIS and hit the glasses icon you'll see numerous examples of ALV under Program.
atelem
 
Posts: 113
Joined: Tue Jun 03, 2003 8:36 am


Return to ABAP

Who is online

Users browsing this forum: No registered users and 9 guests





loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.