2007 Nov 05 9:01 AM
Hi,
Can anyone please tell me how to write code for PFS status buttons which we enable in ALV report to make them work according to required functionality.
2007 Nov 05 9:06 AM
Hi,
In the ALV, Pass the user command form name in the parameter i_callback_user_command .
then create a sub routine like below and do the coding,
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = g_repid
i_callback_pf_status_set = 'PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
TABLES
t_outtab = gt_output
EXCEPTIONS
program_error = 0
OTHERS = 0.
FORM user_command USING pa_ucomm TYPE syucomm
pa_selfield TYPE slis_selfield.
CASE pa_ucomm.
WHEN 'BACK'.
<<UR CODE>>
ENDCASE.
ENDFORM.
reward points if usefull
Regards,
Niyaz
2007 Nov 05 9:05 AM
Hi
Use the code SET PF-STATUS 'MENU'.
and double click on the MENU which ll take u to SE41 where u can set the BACK,EXIT,CANCEL buttons.
Thanks
Vasudha
2007 Nov 05 9:05 AM
2007 Nov 05 9:06 AM
Hi,
In the ALV, Pass the user command form name in the parameter i_callback_user_command .
then create a sub routine like below and do the coding,
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = g_repid
i_callback_pf_status_set = 'PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
TABLES
t_outtab = gt_output
EXCEPTIONS
program_error = 0
OTHERS = 0.
FORM user_command USING pa_ucomm TYPE syucomm
pa_selfield TYPE slis_selfield.
CASE pa_ucomm.
WHEN 'BACK'.
<<UR CODE>>
ENDCASE.
ENDFORM.
reward points if usefull
Regards,
Niyaz
2011 Jun 02 4:37 PM