2007 Nov 19 6:08 AM
Hi Gurus,
I have one USER-EXIT
In T Code ME21N for the Document type (BSART) P373 when Vender number (SUPERFIELD) is 70370, then only purchase order should be created otherwise it should raise error message.
USER-EXIT : EXIT_SAPLEBND_002
For that i have written logic as
IF I_CEKKO-BSART = 'P373' AND I_CEKKO-LIFNR <> ' 0000070370 '.
MESSAGE E130(8I) WITH 'Enter vendor no of 70370'.
ENDIF.
The Code above i have written is working correctly but what's the problem is the message what i have defined is triggering at last...as per my requirment it should raise when we press enter after giving document type and vendor..
<b>Can anybody tell whats the value should define for ENTER in SY-UCOMM</b>
Its Very Urgent for me..plz do needful help
Full Points Will be given for useful answer..
Thanks in advance
Regards,
Raj.
2007 Nov 19 6:43 AM
Hi Raj,
The UserExit which you are using is not correct.. Please try to code your logic in this user exit...."<b>EXIT_SAPMM06E_006</b>" I am sure this will work.....
Else you can use "<b> EXIT_SAPMM06E_007</b>" this user exit....
I hope your problem solve....
Reward points...
Cheers......
Sagun Desai.....
2007 Nov 19 6:43 AM
Hi Raj,
The UserExit which you are using is not correct.. Please try to code your logic in this user exit...."<b>EXIT_SAPMM06E_006</b>" I am sure this will work.....
Else you can use "<b> EXIT_SAPMM06E_007</b>" this user exit....
I hope your problem solve....
Reward points...
Cheers......
Sagun Desai.....