‎2007 Aug 16 5:18 PM
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
‎2007 Aug 16 5:31 PM
hi,
U can check the function for the button maintained in Sy-ucomm or
Fcode .
Enjoy SAP.
Pankaj Singh.
‎2007 Aug 16 5:32 PM
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