2009 Dec 02 10:45 AM
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--
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
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--
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
2009 Dec 02 10:48 AM
Hi,
Please see the package SLIS in SE80 for more details. There are lots of examples.
Regards,
Nilesh.
2009 Dec 02 11:28 AM
you can handle the same using the event double_click of the class cl_gui_alv_grid.
2009 Dec 02 12:04 PM
T.code abapdocu
then select ABAP USER DIALOGS -
SO many example
2009 Dec 02 12:29 PM
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
2009 Dec 02 12:29 PM
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
2010 Jun 23 8:29 AM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |