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: 

Finding Fcode value.

Former Member
0 Kudos

Hey All,

I am trying to write some code in a subroutine for a custom module pool program which is triggered by standard transactions like VL32n, MIRO, and MIGO. How do I find the Fcode values of these standard transactions like VL32n. For example sy-ucomm for PGI is 'UEBP'. How do i find the sy-ucomm values for similiar events.

Any suggestions is highly appreciated.

Thanks,

Aparna

1 ACCEPTED SOLUTION

venkat_o
Active Contributor
0 Kudos

Hi Aparna, On any transaction , You can find Function code of the pushbutton like this. 1. Press on Pushbutton and hold it + press F1 then release both. you will see popup with function code for the button..samething is applicable for Application toolbar ..but not for standard toolbar. 2. Place the cursor on the screen where pushbutton is located. Goto system menu -> press on STATUS menu Item->Popup with information. there one box with Repository data -> dobule click screen no (3rd column). It will take you to Screen painter -> Click on Layout button > dobule click on Pushbutton -> popup with pushbutton attributes. check the function code. I hope that it helps . Regards, Venkat.O

4 REPLIES 4

Former Member
0 Kudos

The simplest way, most of the time, is to get to the screen where you want to find the Fcode on for some action, and before you hit that Event object, type /H in the command window. This will put you in debug mode. Then hit your event, and checkt he value in SY-UCOMM.

Another option is to find the GUI Status for the screen you want this information from and look there. The problem with this method is that Push Button and other objects can have FCodes assigned to them that are not in the GUI Status.

venkat_o
Active Contributor
0 Kudos

Hi Aparna, On any transaction , You can find Function code of the pushbutton like this. 1. Press on Pushbutton and hold it + press F1 then release both. you will see popup with function code for the button..samething is applicable for Application toolbar ..but not for standard toolbar. 2. Place the cursor on the screen where pushbutton is located. Goto system menu -> press on STATUS menu Item->Popup with information. there one box with Repository data -> dobule click screen no (3rd column). It will take you to Screen painter -> Click on Layout button > dobule click on Pushbutton -> popup with pushbutton attributes. check the function code. I hope that it helps . Regards, Venkat.O

Former Member
0 Kudos

Hey Venkat,

Thanks for your reply. I wanted to find the Fcode of the Save button in MR8M transaction which comes in the standard toolbar. It is normally supposed to be SICH but when i did some debuuging I saw that it was comming out to be 'CANC' everytime. Before i add any code in the custom module pool program I wanted to make sure that it is always CANC. Any suggestions?

Thanks,

Aparna.

venkat_o
Active Contributor
0 Kudos

Hi Aparna, CANC is the Function code for the SAVE button. Just check the screen shots . 1. [MR8M transaction|http://bp1.blogger.com/_O5f8iAlgdNQ/SALJQQwcoXI/AAAAAAAAA-s/XnImtjjJrcY/s1600-h/1-744982.jpg] 2.[second screen|http://bp2.blogger.com/_O5f8iAlgdNQ/SALJQgwcoYI/AAAAAAAAA-0/C8_wv930j6g/s1600-h/2-745868.jpg]. Double click on the GUI status. 3. [3rd Screen|http://bp2.blogger.com/_O5f8iAlgdNQ/SALJQgwcoZI/AAAAAAAAA-8/Gv0LuDzmhjU/s1600-h/3-746409.jpg]. Check highlighted one. I hope that it solves your problem. Regards, Venkat.O