Application Development and Automation 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: 
Read only

ALV Grid display

Former Member
0 Likes
348

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

1 REPLY 1
Read only

Former Member
0 Likes
322

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.