Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Interactive ALV Report

former_member1125862
Participant
0 Kudos

Hi Experts,

I am working on Interactive ALV report.I got one requirement.

For Example:

I have 3 tables tab1,tab2,tab3.

I had displayed the first screen of the report .

For example the screen is as follows

USER--


DATE
CREATED
--


CHANGE

1 12012009 4 8

2 12012009 5 9

3 12012009 6 7

For the next screen, if i press on 1 under USER column, i have to loop with table tab1 and display all the fields in that table.

Same as.

If i press on 4 under CREATED column, i have to loop with table tab2 and display all the fields in that table.

Same as.

If i press on 8 under CHANGE column, i have to loop with table tab3 and display all the fields in that table.

Can any one help me in solving this problem.

Waiting for your replay.

Regards

Kruthik

6 REPLIES 6

Former Member
0 Kudos

Hi,

Please see the package SLIS in SE80 for more details. There are lots of examples.

Regards,

Nilesh.

Sandeep_Kumar
Product and Topic Expert
Product and Topic Expert
0 Kudos

you can handle the same using the event double_click of the class cl_gui_alv_grid.

Former Member
0 Kudos

T.code abapdocu

then select ABAP USER DIALOGS -


> LIST

SO many example

Former Member
0 Kudos

Hi Kruthik,

I have explained briefly with you example.

While calling Functional Module "REUSE_ALV_LIST_DISPLAY", you have to declare or assign some User commnad value to the Exporting parameter "I_CALLBACK_USER_COMMAND" (For example "PICk").

Write Subroutine with the name "PICk" as shown below :

FORM PICK USING COMMAND LIKE SY-UCOMM

SELFIELD TYPE SLIS_SELFIELD.

DATA Field1 like tab1-User.

Field1 = SELFIELD-VALUE.

  • Call new PERFORM to disply ITAB1 contents as shown below

PERFORM display_ITAB1 using Field1 .

  • Inside the Perform write ur logic to display ALV report

ENDFORM.

I hope this will help you....

Have a nice coding....

Regards,

Ramana

Former Member
0 Kudos

Hi Kruthik,

I have explained briefly with you example.

While calling Functional Module "REUSE_ALV_LIST_DISPLAY", you have to declare or assign some User commnad value to the Exporting parameter "I_CALLBACK_USER_COMMAND" (For example "PICk").

Write Subroutine with the name "PICk" as shown below :

FORM PICK USING COMMAND LIKE SY-UCOMM

SELFIELD TYPE SLIS_SELFIELD.

DATA Field1 like tab1-User.

Field1 = SELFIELD-VALUE.

  • Call new PERFORM to disply ITAB1 contents as shown below

PERFORM display_ITAB1 using Field1 .

  • Inside the Perform write ur logic to display ALV report

ENDFORM.

I hope this will help you....

Have a nice coding....

Regards,

Ramana

former_member1125862
Participant
0 Kudos

Got solution by myself