03-05-2009 10:08 AM
Hi,
Please help me in following problem.
I would like to modify PF-STATUS of many Y reports, I just want to add same button in all PF-STATUS. Is there any class available which modify the PF-STATUS of the report by just passing the function code and icon. or tell me is there any other method?
Thanks,
Sid.
03-05-2009 10:17 AM
Hi,
Check this link.
http://fuller.mit.edu/sb_support/new_pf-status.htm
i think this will help you.But it is for one report.
Regards,
Qamar
03-05-2009 10:30 AM
this is the solution for single program. But I want to modify PF-STATUS for many. Is it possible to one include module which can modify PF_STATUS of main program through classes or any other methods?
03-05-2009 10:37 AM
Hi,
I think you create one pf-status copy from the standard pf-status and add the custon buttons, and use this pf-status in every report program of yours.
Hope this works.
Regards,
Qamar
03-05-2009 10:41 AM
Hi,
No, I want to modify existing PF-STATUS by adding one or more buttons. If I create GUI status then it will replace the existing GUI status of the report. I don't want to disturb existing gui-status.
Sid
03-05-2009 10:47 AM
Hi,
Create a new pf status by copying it from the existing one and then add new buttons to the custom gui status.And dont modify the function codes of the standard one.As it will be taken care by the standard functionality of it.You just have to write the function of the custom button in your report.And you may write this code in a new include. And include this Include file in every report of yours.
I think it is clear now.
And also check this link:
http://help.sap.com/saphelp_nw04/helpdata/en/e7/0eb237e29bc368e10000009b38f8cf/frameset.htm
http://help-abap.blogspot.com/2008/09/salv-model-3-adding-custom-pf-status-in.html
Hope this works.
Regards,
Qamar
03-05-2009 11:43 AM
I just want to avoid manual copying of gui status. because there are 100+ reports for which i want to add some common buttons.
03-06-2009 4:19 PM
Create a PF STATUS in any report.
Using:
SET PF-STATUS 'PF_STATUS'.
Say the above Pf-status is for report ZREPORT
In All other Reports use the following syntax:
SET PF-STATUS 'PF_STATUS' OF PROGRAM ZREPORT.
PF-STATUS of ZREPORT will work for all other reports.
IF you want to Automatically Want to add the below syntax into 100 reports:
SET PF-STATUS 'PF_STATUS' OF PROGRAM ZREPORT.
Use:
Data : fs_itab(255).
Data: Itab like standard table of fs_itab.
READ REPORT <Zreport> into itab.
Insert the syntax into table.
FInally: INSERT TABLE ITAB INTO REPORT <REPORT NAME>.
Use in loop to do it once for all 100 reports.
Regards,
Gurpreet
03-07-2009 1:48 PM
hi use this function module for modifying status...
CALL FUNCTION 'RS_CUA_COPY_STA'
EXPORTING
IM_PROGRAM = PROGRAM <----
source prog
IM_STATUS = RSMPE-STATUS<----
source prog status
IMPORTING
COBJECTNAME = STAT <------changed status
S_STATUS = OSTA <----
old status
CPROGRAM = PROG <----
target prog
S_PROGRAM = OPROG <-------source prog