‎2006 Aug 10 1:00 AM
Hi All,
Is it possible to debug a field exit ?? If so please let me know how ??
Thank You,
Suresh
‎2006 Aug 10 1:03 AM
Hi,
NO its not possible to debugg a field exit.
Give ERROR message and see if the field exit is trigged
http://searchsap.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid21_gci1147842,00.html
Cheers
VJ
‎2006 Aug 10 1:21 AM
The requirement i am working on is for transaction MM01 if the field BISMT is blank then they can enter a value when its called from the workflow inbox.
I wrote the code in the field exit:
IF SY-TCODE = 'MM01'.
IF NOT INPUT IS INITIAL.
OUTPUT = INPUT.
AUTHORITY-CHECK OBJECT 'ZMDOLDMAT' ID 'BISMT' FIELD INPUT
ID 'ACTVT' FIELD INPUT.
IF SY-SUBRC = 0.
ELSE.
MESSAGE E009(ZMD) WITH
'You dont have authorization to change' INPUT.
ENDIF.
ENDIF.
ELSEIF SY-TCODE = 'MM02'.
OUTPUT = INPUT.
AUTHORITY-CHECK OBJECT 'ZMDOLDMAT' ID 'BISMT' FIELD INPUT
ID 'ACTVT' FIELD INPUT.
IF SY-SUBRC = 0.
ELSE.
MESSAGE E009(ZMD) WITH
'You dont have authorization to change' INPUT.
ENDIF.
ENDIF.
The problem with the above code is that for the case of MM01 it will not work as you are trying to enter a value in BISMT field and the exit is triggered in PAI event.. where in the field exit there is already a value in INPUT field.
Could you please help me in finding a way how to resolve this issue ??
Thank You,
Suresh..
‎2006 Aug 10 1:29 AM
is it a mandatory field? If in MM01 if there is no entry do u want to throw error?