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

Coding for PFS status button in ALV report.

Former Member
0 Likes
680

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
639

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

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.

4 REPLIES 4
Read only

Former Member
0 Likes
639

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

Read only

Former Member
0 Likes
639

/thread/492162 [original link is broken]

Reward points Please...

Read only

Former Member
0 Likes
640

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

Read only

Former Member
0 Likes
639

This message was moderated.