Copy Custom PF-Status from Standard program to Custom Program in ALV
Page 1 of 1
Copy Custom PF-Status from Standard program to Custom Program in ALV
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.
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
Similar topics
» How to run a program in background?
» Procedure to write BDC Program in SAP
» What should be the approach for writing a BDC program?
» What does an extract statement do in the ABAP program?
» How do you configure the automatic payment program?
» Procedure to write BDC Program in SAP
» What should be the approach for writing a BDC program?
» What does an extract statement do in the ABAP program?
» How do you configure the automatic payment program?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Mon Aug 20, 2012 4:37 pm by Admin
» Difference between Type and Like
Thu Jun 07, 2012 2:40 pm by Admin
» How to handle table control fields in Module Pool program?
Wed May 09, 2012 2:41 am by govind
» Three tables inner join in SAP
Thu May 03, 2012 4:47 pm by Uma_ABAP
» Creating table type in ABAP
Sat Apr 28, 2012 9:03 pm by Uma_ABAP
» Creating user defined types and structures in ABAP
Sat Apr 28, 2012 8:55 pm by Uma_ABAP
» Creating Dynamic Internal Table and Dynamic Field catalog in SAP-ABAP
Fri Apr 27, 2012 11:00 am by Admin
» Copy Custom PF-Status from Standard program to Custom Program in ALV
Thu Apr 26, 2012 9:52 pm by Uma_ABAP
» Calculate/find number of working days between two dates in SAP
Tue Apr 24, 2012 2:06 pm by Uma_ABAP