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

Demo reports

Former Member
0 Likes
1,323

Please tell the name of 'Demo reports' which comes with SAP to create PF status for ALV reports.

Thanks.

Please tell the name of 'Demo reports' which comes with SAP to create PF status for ALV reports.

Thanks.

4 REPLIES 4
Read only

Former Member
0 Likes
1,015

Copy the standard PF-Status to your program.

Go to SE41.

Program: SAPLKKBL

Status: STANDARD_FULLSCREEN

Then press the button "Copy Status" Ctrl+F6.

Give your program name and status name to copy it.

Remove the button you wanted form your generated PF-Status.

Now in your program you need to make one perform for this:

code call function 'REUSE_ALV_GRID_DISPLAY'

exporting

i_callback_program = g_repid

i_callback_pf_status_set = 'SET_PF_STATUS' " <<

[/code]

Make a FORM with name SET_PF_STATUS.

codeform SET_PF_STATUS using rt_extab type slis_t_extab . "#EC CALLED

set pf-status 'ZTEST_PF' excluding rt_extab[]. " < Status name copied in the first step.

endform. "f01_set_status[/code]

see the below link..

http://www.sapdev.co.uk/reporting/alv/alvgrid_ucomm.htm

Regards.

Read only

Former Member
0 Likes
1,015

Hi,

Goto se80 and goto package slis and u will find all the alv programs

PLzz reward points if it helps.

Read only

Former Member
0 Likes
1,015

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.

Read only

soumya_jose3
Active Contributor
0 Likes
1,015

Hi,

Check these programs

DEMO_LIST_SET_PF_STATUS_1

DEMO_LIST_SET_PF_STATUS_2

Award points if helpful.

Regards,

Soumya.