2007 Jul 16 8:02 AM
HI All,
I have added one Function button in ALV grid display menu Bar. Now i have to use that button for secondary list display but when i click that button i am not getting that function code in my main program. based on that code i want to display sencondary list. Any help will be highly appreciated.
Thanks in advance.
Regards,
Lokesh
HI All,
I have added one Function button in ALV grid display menu Bar. Now i have to use that button for secondary list display but when i click that button i am not getting that function code in my main program. based on that code i want to display sencondary list. Any help will be highly appreciated.
Thanks in advance.
Regards,
Lokesh
2007 Jul 16 8:04 AM
You have write the code for that button in user command FORM
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = W_REPID
I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'
I_CALLBACK_USER_COMMAND = <b>'USER_COMMAND'</b>
FORM <b>USER_COMMAND</b> USING P_UCOMM TYPE SY-UCOMM
P_SELFLD TYPE SLIS_SELFIELD.
CASE P_UCOMM.
WHEN 'XXXX'.
ENDCASE.
ENDFORM.