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

pf-status

Former Member
0 Likes
699

Hi,

I a alv prog i have created pf-status n in that i have activated the back button.

but its not displayed, y is it so.

pls explain

regards,

kb

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
674

In order modify PF_STATUS of ALV grid report you need to perform the following steps:

1. Update 'REUSE_ALV_GRID_DISPLAY' FM call to include: i_callback_pf_status_set = 'SET_PF_STATUS' statement.

2. Create 'SET_PF_STATUS' FORM

3. Create pf_status (i.e. 'ZNEWSTATUS').

- It is recommend that you copy standard status'STANDARD' from function group SALV and modify it accordingly. ALV standard function codes always start with '&'.

call function 'REUSE_ALV_GRID_DISPLAY'

exporting

i_callback_program = gd_repid

i_callback_top_of_page = 'TOP-OF-PAGE'

i_callback_pf_status_set = 'SET_PF_STATUS' "see FORM

is_layout = gd_layout

it_fieldcat = fieldcatalog[]

i_save = 'X'

tables

t_outtab = it_ekko

exceptions

program_error = 1

others = 2.

----


  • FORM SET_PF_STATUS *

----


FORM set_pf_status USING rt_extab TYPE slis_t_extab.

SET PF-STATUS 'ZNEWSTATUS'.

"Copy of 'STANDARD' pf_status from fgroup SALV

ENDFORM.

Reward points if useful.

5 REPLIES 5
Read only

former_member404244
Active Contributor
0 Likes
674

Hi,

Check the below link for the sample code and try

http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_pfstatus.htm

Regards,

Nagaraj

Read only

Former Member
0 Likes
674

Hi,

can you pls give more details like what exactly steps you have taken.

Regards,

Sachin bhatnagar

Read only

0 Likes
674

hi sachin bhatnagar,

i have given set pf-status 'SET_STATUS'.

under this under function keys i have activated the status of back button by giving name to that.

the same process worked for some other report n not to this.

i am not getting the reason y its happening.

regards,

kb

Read only

Former Member
0 Likes
674

Just check whether you have given the name in callback_pf_status in the grid or list display like this,

I_CALLBACK_PF_STATUS_SET = '400_BUTTONDISPLAY'.

Read only

Former Member
0 Likes
675

In order modify PF_STATUS of ALV grid report you need to perform the following steps:

1. Update 'REUSE_ALV_GRID_DISPLAY' FM call to include: i_callback_pf_status_set = 'SET_PF_STATUS' statement.

2. Create 'SET_PF_STATUS' FORM

3. Create pf_status (i.e. 'ZNEWSTATUS').

- It is recommend that you copy standard status'STANDARD' from function group SALV and modify it accordingly. ALV standard function codes always start with '&'.

call function 'REUSE_ALV_GRID_DISPLAY'

exporting

i_callback_program = gd_repid

i_callback_top_of_page = 'TOP-OF-PAGE'

i_callback_pf_status_set = 'SET_PF_STATUS' "see FORM

is_layout = gd_layout

it_fieldcat = fieldcatalog[]

i_save = 'X'

tables

t_outtab = it_ekko

exceptions

program_error = 1

others = 2.

----


  • FORM SET_PF_STATUS *

----


FORM set_pf_status USING rt_extab TYPE slis_t_extab.

SET PF-STATUS 'ZNEWSTATUS'.

"Copy of 'STANDARD' pf_status from fgroup SALV

ENDFORM.

Reward points if useful.