Application Development 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: 

ALV PF status

vallamuthu_madheswaran2
Active Contributor
0 Kudos
202

Hi Friends,

I am using PF status in ALV grid. But PF_STATUS is now working, If click back or execute button then it displays "Choose valid option" message. There are lot answers in answers.sap.com but it's not working for me, so I have posted it.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = lv_program

i_callback_pf_status_set = 'SET_PF_STATUS'

i_callback_user_command = 'USER_COMMAND'

is_layout = gs_layout

it_fieldcat = gt_fieldcat

i_default = 'X'

i_save = 'A'

it_events = gt_events

TABLES

t_outtab = gt_tstrun

EXCEPTIONS

program_error = 1

OTHERS = 2.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

FORM set_pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'STANDARD_FULLSCREEN' EXCLUDING rt_extab. "
ENDFORM.


Thanks with Regards,

Vallamuthu M.

3 REPLIES 3

DominikTylczyn
Active Contributor
0 Kudos
162

Use the CODE button when posting source code!

DominikTylczyn
Active Contributor
162

Have you defined the STANDARD_FULLSCREEN PF-status in your program? If not, you can copy it from SAPLKKBL program.

vallamuthu_madheswaran2
Active Contributor
0 Kudos
162

I have copied it. It's working fine.

Thank you,

Vallamuthu M.