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

Getting the function code of the standard screen button.

Former Member
0 Likes
1,998

hi all,

i have created an infotype. the requirement of this infotype is that it should only take inputs when it comes through transaction PA40, otherwise it should open in display mode only in PA30. i have inserted code in the flow logic of the infotype that the fields of the infotype be enabled when sy-tcode is PA40 otherwise it will display message that infotype data cannot be maintained.

now the problem is that, when i go to PA30, it is showing the same message even when i click on display button. how can i check which button on PA30 screen has been pressed so that i can write code in my infotype for that button?

regards,

Hamza

2 REPLIES 2
Read only

messier31
Active Contributor
0 Likes
810

hi,

U can check the function for the button maintained in Sy-ucomm or

Fcode .

Enjoy SAP.

Pankaj Singh.

Read only

Former Member
0 Likes
810

You need to keep proper condition so that the message will not applicable to others.

If you want to get function code then use SHDB Transaction and see the what function code is triggering

else see the table RSMPTEXTS -> pass program and screen number,you will see list of function code.

now keep more condition in order to rectify issue

if sy-tcode = tcode.

if sy-ucomm = fcode.

if sy-repid = program name.

here give message..

endif.

endif.

endif.

Thanks

Seshu