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

Post  Uma_ABAP on Thu Apr 26, 2012 9:52 pm

Execute the transaction SE41

Enter Program name SAPLSALV.

Select Status Radio Button and enter STANDARD



Click on Status Push button as shown above.





Again Click on copy.




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