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

Field Exit Debugging

Former Member
0 Likes
450

Hi All,

Is it possible to debug a field exit ?? If so please let me know how ??

Thank You,

Suresh

3 REPLIES 3
Read only

Former Member
0 Likes
418

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

Read only

Former Member
0 Likes
418

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..

Read only

0 Likes
418

is it a mandatory field? If in MM01 if there is no entry do u want to throw error?