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: 

problem with menu painter

Former Member
0 Kudos

Hi Every Body,

I have one screen ,in that Screen in Application Tool bar i need to add one more Pushbutton.

IF i am clicking on that push button i have to go specific transaction.

Right know what i am doing is when i got initial screen,i am checking system status,there i am able to find GUI Status if i am double clicking that GUI,it shows menupainter.here how can i add pushbutton and then i have to assign specific transaction.

can any body help me to know exactly how it works

9 REPLIES 9

Former Member
0 Kudos

Add button and handle it using user command in grid display

0 Kudos

in standard transaction i have to add this button,can u give me an idea in detail

Former Member
0 Kudos

Hi,

In tcode SE41

goto application toolbar and give the Fcodes

In AT USER_COMMAND.

when FCODE.

CALL TRANSACTION<transname>

Regards,

jaya

Former Member
0 Kudos

hi,

go to se41 --> menu painter and click on application toolbar..

--> add the tool bar which you need --->the capital letter words are nothing but Function codes , and --->small letter ones are text which appear in application tool bar...

Example:---

Application Toolbar Gui Status for screen 3000

Items 1 - 7 SAVE PREV NEXT UNDO OTHER SE16

Save Previo Next R Undo R Other databrow

code in PAI:--

CASE ok_code.

WHEN 'PREV'.

LEAVE TO SCREEN 1010.

WHEN 'SE16'.

call transaction SE16.

when others.

endcase.

Regards,

Prabhudas

MarcinPciak
Active Contributor
0 Kudos

Hi,

You don't assign transaction to certain button. Instead you have to assing function code to certain function key , then use that function key to create your button. Each time you press your button in PAI module of your screen you will have to check if system variable sy-ucomm contains your function code . If so then you call the trasnaction.

To create the above do the following:

- In menu painter expand node Function keys. Here, for any of the function key i.e. F5 type function code of your choice i.e. MY_FCODE.

- Double click it and maintain its attributes like icon, text etc

- Now as you defined function key, assing it to some button. To do this, expand node Application toolbar and type your function code to any of the item. Function key will be copied to this button.

- Activate your status

- In screen flow logic use PAI to handle your action on the screen


PROCESS AFTER INPUT.
   MODULE my_pai_module.

- In program create respective my_pai_module


MODULE my_pain_module INPUT.
    if sy-ucomm = 'MY_FCODE'.       "here you simply check wheter you press your button
       CALL TRANSACTION ...
    endif.
ENDMODULE.

Note!

sy-ucomm is usally replaced with ok_code data object (and "invisible" screen field) in order to avoid missing data when calling sequence of screens. For more information refer [this|http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dbaa1335c111d1829f0000e829fbfe/frameset.htm]

Regards

Marcin

0 Kudos

Hi,

You cannot assign some buttons in the standard transaction unless you have the access key...

SAP Standard transaction cannot be editted.. If you are not allowed to use access key, you can search if there exists any USER EXIT or BADI available for that Transaction...

Then you can continue adding your required things..

Best Regards,

Suresh

sarbajitm
Contributor
0 Kudos

Hi

Create your own Menu from Transaction SE41

Then write the following code

1)REPORT ZSAR_MENU_CALL_T.

2) SET PF-STATUS 'ZSTANDARD'.

WRITE: /'TEST'.

AT USER-COMMAND.

CASE sy-ucomm .

WHEN 'TR'.

CALL TRANSACTION 'VA01'.

ENDCASE.

in SE41, give the program name that is at line 1. before doing so just create the program in SE38 and activate it. you have nothing to do more than that.

in SE41 ,give the name of status specified in line 2.

just expand the Application Toolbar node put TR in any one cell and double click it.

then write function text, info text and reaction = display and give a function key as u wish.

then write the above code in SE38.

Hope u get the answer.

Edited by: Sarbajit Majumdar on Mar 12, 2009 9:35 AM

sarbajitm
Contributor
0 Kudos

Hi Sekhar,

are you still watching the thread? have not got your answer? If you get your answer then please mark the thread as answerd.

Thanks & regards.

Sarbajit.

sarbajitm
Contributor
0 Kudos

Hi Sekhar,

are you still watching the thread? have not got your answer? If you get your answer then please mark the thread as answered.

Thanks & regards.