Welcome to SAP Central
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Copy Custom PF-Status from Standard program to Custom Program in ALV

Go down

Copy Custom PF-Status from Standard program to Custom Program in ALV Empty Copy Custom PF-Status from Standard program to Custom Program in ALV

Post  Uma_ABAP Thu Apr 26, 2012 9:52 pm

Execute the transaction SE41

Enter Program name SAPLSALV.

Select Status Radio Button and enter STANDARD

Copy Custom PF-Status from Standard program to Custom Program in ALV 1

Click on Status Push button as shown above.

Copy Custom PF-Status from Standard program to Custom Program in ALV 2

Copy Custom PF-Status from Standard program to Custom Program in ALV 3

Again Click on copy.

Copy Custom PF-Status from Standard program to Custom Program in ALV 4


Click on change, Make some chages to the PF-Status if required and click on Activate button(Cntrl+F3).


Use the following code to Enable Custom PF-Status for the ALV Grid


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'
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.

Uma_ABAP

Posts : 56
Join date : 2012-03-31

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum