‎2006 Dec 11 12:48 PM
I am using filed exit for unloading point in purchase requisition.
code is something like this..
If sy-tcode = 'ME51N' or sy-tcode = 'ME52N'
....
if cond1
message error.
endif.
....
endif.
If we are changing purchase requisition using display/change in ME53n then sy-tcode = 'ME53N'. Still error message displays when saving Purchase Requisition?
Any ideas...
Thanks in advance
Srinivas.
‎2006 Dec 11 12:58 PM
Hi,
Change is only possible in ME52N. When You are clicking Change in ME53N, then sy-tcode will be changing to ME52N. Hence your field exit is getting triggered and error message is shown. If you are navigating to different screens in ME53N then you will not get any error message. Try.
thanks,
sksingh
‎2006 Dec 11 12:58 PM
Hi
I don't know which exit u're using, but you should check the activity (insert/change or display) and not the trx code.
The trx code doesn't change if it goes to changing mode from display mode.
Max
‎2006 Dec 11 1:16 PM
Thanks for the replies,
Yes. The tcode still remais ME53N even in change mode but the validation is still done and displayed error message.
I am changing the exisitng filed exit FIELD_EXIT_ABLAD. Unfortunately we can't debug filed exits. I have written field values to file using TRANSFER on application server. I am sure the control has not entered this part of code still displaying error message..
Thanks,
Stinivas
‎2006 Dec 11 12:59 PM
Hi Srinivas,
keep a breakpoint in the exit and check the tcode there... it will be ME52N only...
This is because ur initial using the tcode ME53N but then you are seleting the 'Change' option from menu... internally it call the tcode MD52N.
Regards,
Satya.