Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

adding of a pushbutton on SAP std program

Former Member
0 Kudos
134

Hi,

I want to add an extra pushbutton on a sap program screen. What are the steps involved for it?

There is no BADI / exit avaliable for it. I have requested OSS key for the screen object and PAI Module.

But do I need to do anything in PBO ?

Basically, I want my fuctionality when that pushbutton is pressed by user.

Thanks and rgds,

Rupalee.

1 ACCEPTED SOLUTION

former_member181995
Active Contributor
0 Kudos
108

You are less likely to get good answers,Untill you not tell us for which transaction and for what addin functionality you want to add push button.

5 REPLIES 5

former_member181995
Active Contributor
0 Kudos
109

You are less likely to get good answers,Untill you not tell us for which transaction and for what addin functionality you want to add push button.

former_member191735
Active Contributor
0 Kudos
108

Well, You dont have to have anything in PBO if you want to do something after user press the button.

It is like changing standard program and is not suggestable, though, you can change by regestering the program/screen.

You have to find out the standard PBO process and add your code there.

Try menu exits if you can find any before changing standard SAP code.

Good luck

nkr1shna
Contributor
0 Kudos
108

Hi Rupali,

There are two ways I can think rightnow.

1) Without doing modifications to SAP standard

Please identify SAP program and screen number where you wish to make modifications.

Verify whether any screen exits are allowed in your screen.

If your answer is "Yes", then you can add "pushbutton" and all user-exit code which handles your

button.

2) This approach involves making modification to SAP standard using access keys

Identify SAP program and screen number where you wish to make changes

Check whether SAP using GUI-STATUS on the screen, get access key to modify the GUI-STATUS

Modify PAI in the screen to handle your pushbutton logic.

Always preference must be given to SAP standard with doing modfiications direclty. Since this will create

issues during your functional or technical upgrades in future.

Let me know if you have further questions.

REgards

Krishna

Former Member
0 Kudos
108

Hi,

You need to add the Pushbutton on the required SAP Screen in the Screen Lauout Editor and have to declare the same in your Program also with the same name.

then look for the PAI Module handling the User Action's and code your Logic under the SY-UCOMM as your Pushbutton Function Code.

Former Member
0 Kudos
108

THNK