cancel
Showing results for 
Search instead for 
Did you mean: 

Removing Buttons From The Report

sumeyye_1634
Participant
0 Kudos

Hi experts,

I would like to remove the buttons from a report. Which steps should i follow,please?

Best Regards&Have a nice day

DominikTylczyn
Active Contributor
0 Kudos

What report or transaction is that?

sumeyye_1634
Participant
0 Kudos

Hi 3a9e4ce873a94034b33dc62b0ce600ee,

It is one our custom report.(Z..)

raymond_giuseppi
Active Contributor
0 Kudos

Look at SET PF-STATUS, Dynpro EXCLUDING fcode where are you stuck?

venkateswaran_k
Active Contributor
0 Kudos

Hi sumeyye_1634

Curious to know, is this issue resolved?

Accepted Solutions (1)

Accepted Solutions (1)

venkateswaran_k
Active Contributor

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.
venkateswaran_k
Active Contributor
0 Kudos

Oaky,

Your have the code like this. APPEND '&IADE' TO gt_extab.

Same way , go to the status - and find out that code for the icons you want to hide.

insert that code in the table gt_extab as above append statement.

Then

It will hide then

sumeyye_1634
Participant
0 Kudos

So should i write '&SWF'

instead of all written gt_extab.

(sorry to ask too many questions btw)

venkateswaran_k
Active Contributor
0 Kudos

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

sumeyye_1634
Participant
0 Kudos

Greetings,

.I am going to remove &EXEC_REV,&PAY,&SIADE. But still cannot comprehend the required changes in the code block of the program.

Good night!

venkateswaran_k
Active Contributor
0 Kudos

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.
venkateswaran_k
Active Contributor
0 Kudos

It is not problem.. That solution is to remove permanently..

If you handle it in this way, you can bring back if you want to on certain conditions.

It is simply hiding it instead of removing it.

sumeyye_1634
Participant
0 Kudos

Tose appends are already exists in te code block

venkateswaran_k
Active Contributor
0 Kudos

May be that case statement condition is not executed.

If you want it to be hidden any way, then write these append statement just before set-status code.

venkateswaran_k
Active Contributor
0 Kudos

Hi

Curious to know, Is your issue resolved?

sumeyye_1634
Participant
0 Kudos

Greetings,

Thanks for asking but i am afraid still i couldnt solve it unfortunately.

venkateswaran_k
Active Contributor
0 Kudos

Please try and confirm the code as below .

Just before every SET PF-STATUS 'XXX' EXCLUDING gt_extab. == where XXX is 100, 102, 104

APPEND '&EXEC_REV' TO gt_extab.
APPEND '&PAY' TO gt_extab.
APPEND '&SIADE' TO gt_extab.

Make sure your changes are saved and activated. !

Regards,

Venkat

sumeyye_1634
Participant
0 Kudos

Hi ,

Those buttons that i wanna remove is in the 102 screen. I am gonna add those appends but there is already appends exists in the 102 SET PF-STATUS.I am a little confused actually.


venkateswaran_k
Active Contributor
0 Kudos

I doubt in the CASE statements that may not executed in your scenario.

That is why I asked to add these append statement without any condition in 102 screen.

sumeyye_1634
Participant
0 Kudos

Hi venkateswaran.k,

Adding the APPENDs in the 102 screens is the solution. Thanks for your helps and guideness.

Have a nice day!

Answers (1)

Answers (1)

DominikTylczyn
Active Contributor

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

sumeyye_1634
Participant
0 Kudos

May i kindly ask how can i do that please?

Kind Regards

DominikTylczyn
Active Contributor
sumeyye_1634

I've updated the answer with how to modify pf-status.

sumeyye_1634
Participant
0 Kudos

I can see these parts:

DominikTylczyn
Active Contributor

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.