on 2022 Jul 07 9:39 AM
Hi experts,
I would like to remove the buttons from a report. Which steps should i follow,please?
Best Regards&Have a nice day
Request clarification before answering.
Hi sumeyye_1634
In your report, do you have statement like
SET PF-STATUS 'STANDARD' EXCLUDING '&SWF'.
In each of the screen, you might have such button names. Identify them and put near excluding key word above.
If it is single directly put name there "example as shown above '&SWF'.
If it is multiple - put it in internal table of type sy-ucomm and use tabe name there
example
data it_buttons type standard table of sy-ucomm.
SET PF-STATUS 'STANDARD' EXCLUDING it_buttons.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No that is example - i copied from my code
You need to find your code from that Status screen. I will paste the screen for your example reference/
In following example, if you want to hide &SWF - it is the button i want to remove.
Go to status and look ito the application toolbar section and identify your button to be hiden. Then use that code in append statement
I think you are using screens 100, 102, 104
so add these append statements before every set-pf status statements.
Just I gave example. adjust according to your screens.
APPEND '&EXEC_REV' TO gt_extab.
APPEND '&PAY' TO gt_extab.
APPEND '&SIADE' TO gt_extab.
SET PF-STATUS '100' EXCLUDING gt_extab..
APPEND '&EXEC_REV' TO gt_extab.
APPEND '&PAY' TO gt_extab.
APPEND '&SIADE' TO gt_extab.
SET PF-STATUS '102' EXCLUDING gt_extab.
APPEND '&EXEC_REV' TO gt_extab.
APPEND '&PAY' TO gt_extab.
APPEND '&SIADE' TO gt_extab.
SET PF-STATUS '104' EXCLUDING gt_extab.
Hello sumeyye_1634
As this is your custom report, you can easily modify it, change the report's user status and remove unwanted buttons. It would be enough just to deactivate the buttons in the pf-status definition.
Display your report in SE80. You should be able to find pf-status definition there. Double click on the status, go to change mode and deactivate the options/buttons that you don't need.
That's all I can do for you without knowing the details of the report implementation.
Best regards
Dominik Tylczynski
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've updated the answer with how to modify pf-status.
sumeyye_1634
So you have 5 different GUI statuses in your report. I can't tell which one is used when you run the report and when. When you double click on a status, it'll be displayed on the right hand side of the screen and you can deactivate the buttons there.
User | Count |
---|---|
112 | |
6 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.