Application Development and Automation 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: 
Read only

function code

Former Member
0 Likes
3,022

hi guys,

how to find out the FCODE(function code) of any button on a particular transaction,

for example for SAVE button in VA01.

REPLY

ahmed.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,018

Hi,

There are so many ways to fond the function code.

1) You can use the debug method. Put <b>/h</b> in the command field which will switch on your debugging mode. then click any button you require, it will take the control into debug mode. check the value of the <b>sy-ucomm</b> that will have the function code of the button you have clicked.

2) Use the TAB key and fix the cursor on the button you want to find the fucntion code, then press F1 you will get a pop-up window which will have the name of the PF-Status in which the function codes for that button is written. You can navigate through it and find the required function code.

3) when you are in a particular screen click <b>SYSTEM</b> in the menu option and select <b>STATUS</b> where you can see the program and screen number of the particular screen. Goto <b>SE51</b> and enter those program and screen number values and in the PBO check the <b>MODULE STATUS_screen-number OUTPUT</b> and there it will have the <b>PF-STATUS</b> where the function codes of the required button will be declared.

PS: Reward if the answer is helpful

5 REPLIES 5
Read only

gopi_narendra
Active Contributor
0 Likes
2,018

highlight the button using the tab key and press SHIFT + F1

if not just press /H in the command prompt and click on the desired button.

now it goes to debug mode there just type sy-ucomm. this gives u the Function Code for any user action.

Regards

- Gopi

Read only

baskaran00
Active Participant
0 Likes
2,018

Hi,

One way is u can use transaction <b>SHDB</b> and do recording. While recording u press the buttons u want.

After recording u can view the code to get the function code.

Eg. Fun. code for Save button in VA01 is <b>SICH</b>

Try it, u will get it.

Read only

Former Member
0 Likes
2,018

Hullo,

you can use the following menu-path:

System -> Status.

For all the toolbar buttons and function codes:

In the popup window doubleclick on the "Gui status" field. You'll see the menu painter and can expand all the toolbars and function-key settings.

For all the buttons on the screen, double click on the "screen number" field. You'll see the screen painter and can look up all the function codes via the elementlist or via the graphical screen painter.

Hope this helps.

Read only

Former Member
0 Likes
2,018

use SHDB and record the various keys accordingly...for VA01 specify all fields and finally save it....This way u will get the Function Code for various fields and buttons...

Read only

Former Member
0 Likes
2,020

Hi,

There are so many ways to fond the function code.

1) You can use the debug method. Put <b>/h</b> in the command field which will switch on your debugging mode. then click any button you require, it will take the control into debug mode. check the value of the <b>sy-ucomm</b> that will have the function code of the button you have clicked.

2) Use the TAB key and fix the cursor on the button you want to find the fucntion code, then press F1 you will get a pop-up window which will have the name of the PF-Status in which the function codes for that button is written. You can navigate through it and find the required function code.

3) when you are in a particular screen click <b>SYSTEM</b> in the menu option and select <b>STATUS</b> where you can see the program and screen number of the particular screen. Goto <b>SE51</b> and enter those program and screen number values and in the PBO check the <b>MODULE STATUS_screen-number OUTPUT</b> and there it will have the <b>PF-STATUS</b> where the function codes of the required button will be declared.

PS: Reward if the answer is helpful