How do you generate Interactive report using ALV's?
Answers were Sorted based on User's Feedback
Answer / satya
Using 'USER_COMMAND',
USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
Capture the Key Particular field thru '&IC1'.
Clicking upon this particular field it'll populated a
new list.
Is This Answer Correct ? | 18 Yes | 3 No |
Answer / nag
READ TABLE IST_EVENTS INTO WA_EVENT WITH KEY NAME =
'USER_COMMAND'.
*IF SY-SUBRC EQ 0.
*WA_EVENT-FORM = 'USER_COMMAND'.
*MODIFY IST_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE
NAME = WA_EVENT-NAME.
*ENDIF.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = G_REPID
I_CALLBACK_PF_STATUS_SET = C_PF "'SET_PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'
I_GRID_TITLE = G_TITLE
IS_LAYOUT = IST_LAYOUT
IT_FIELDCAT = IST_FIELDCAT[]
IT_SORT = IST_SORT
I_SAVE = 'A'
IT_EVENTS = IST_EVENTS
IS_PRINT = IST_PRNT
IMPORTING
E_EXIT_CAUSED_BY_CALLER = G_EXIT
ES_EXIT_CAUSED_BY_USER = IST_EXIT
TABLES
T_OUTTAB = IST_FINAL "sodtl
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
FORM USER_COMMAND USING R_UCOMM TYPE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
your code....
ENDFORM.
*for second click
READ TABLE IST_EVENTS INTO WA_EVENT WITH KEY NAME =
'USER_COMMAND1'.
IF SY-SUBRC EQ 0.
WA_EVENT-FORM = 'USER_COMMAND1'.
MODIFY IST_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME
= WA_EVENT-NAME.
ENDIF.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = G_REPID
I_CALLBACK_PF_STATUS_SET = C_PF "'SET_PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND1'
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'
I_GRID_TITLE = G_TITLE
IS_LAYOUT = IST_LAYOUT
IT_FIELDCAT = IST_FIELDCAT[]
I_SAVE = 'A'
TABLES
T_OUTTAB = IST_FINAL1.
Is This Answer Correct ? | 1 Yes | 4 No |
What is pass by value and what is pass by reference? Which is better?
In sapscript when u set debugger mode on from which window it will start debugging .My sapscript has header window,logo window,address window,main and footer window.so from which window it will start debugging??
What is the Difference between Header and Item in ABAP? VBAK-Sales Order Header,VBAP-Sales Order Item, how can u use these tables in one query,means by using these tables write a select query.
How the transaction that are programmed by the user can be protected?
What are the different message types available in the abap/4 ?
what is the role of secondary index in performance?
How to debug a smart form?
5 Answers IBM, Mind Tree, TCS,
what is macro and function?
What are steps you follow to improve the performance of a report ?
A field-groups statement or an insert statement reverses storage space and transfers values. State true or false. : abap modularization
What is a transaction variant and why are they used?
How do you use tab sets in layout sets?