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: 

Add button on window

Former Member
0 Kudos

Hi I am creating window with selection parameters. When this window is displayed i am getting some of the SAP standard buttons like check save cancel etc. I want to add one extra button at the bottom. Is it feasible ? If yes how?

3 REPLIES 3

Former Member
0 Kudos

Is this a dialog or report style program?

ferry_lianto
Active Contributor
0 Kudos

Hi,

SET PF-STATUS is used for defining menu in the program and screens.

For that first you need to create the GUI Status for the program in which you are going to use the GUI Status....

GUI Status contains the Menubar , Standard Toolbar & Application Toolbar.

You can create it by this way ...

SE80

Create Program

Right Click on Program

Create --> GUS Status...

Give Name of that GUI Status.. ( Further it will be useful in the program )

Now it opens the window where you can design your own menu & toolbar...

Design it...

Now save and activate it..

Now come back to your program (ABAP Editor )

Write the first statement like below..

SET PF-STATUS 'MENU1'.

Here MENU1 is the name of the GUI status which you created from SE80..

You can handle the user command here using

case sy-ucomm.

when 'SE11'.

call transaction 'SE11'.

when 'NEXT'.

  • Some logic...

endcase.

Please check this links for more information and sample codes.

http://help.sap.com/saphelp_di471/helpdata/EN/9f/dba34635c111d1829f0000e829fbfe/content.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba34635c111d1829f0000e829fbfe/content.htm

http://www.sapfans.com/sapfans/alex.htm

Regards,

Ferry Lianto

0 Kudos

Hi

If u want the button on the toolbar then declare it in PF Status. If you want the button on a dialog screen, then in the screen painter, drag and drop the push button and assign a Function code to it. If you want it on a normal selection screen, then use the declaration SELECTION-SCREEN PUSHBUTTON....