2007 Nov 16 4:02 AM
Hi Gurus,
I have one <b>USER-EXIT</b>
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 : <b>EXIT_SAPLEBND_002</b>
For that i have written logic as
<b>IF I_CEKKO-BSART = 'P373' AND I_CEKKO-LIFNR <> ' 70370 '.
MESSAGE E130(8I) WITH 'Enter vendor no of 70370'.
ENDIF.</b>
But problem is even when i enter the Vendor Number as '70370' for documet type P373 it is showing error message that <b>Enter vendor no of 70370</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 16 4:56 AM
Just check in debug mode whether any leading 0 are there or not ? you may have to change the code with leading 0.
IF I_CEKKO-BSART = 'P373' AND I_CEKKO-LIFNR <> '0000070370 '.
regards
shiba dutta
2007 Nov 16 4:13 AM
Hi raj,
IF I_CEKKO-BSART <> 'P373' AND I_CEKKO-LIFNR <> ' 70370 '.
MESSAGE E130(8I) WITH 'Enter vendor no of 70370'.
ENDIF.
Regards,
Rajesh.
2007 Nov 16 4:23 AM
Hi Rajesh,
I do have different Document types like P371,P372,P373 etc...In this When document type of P373 and if vendor is 70370 then only PO should be created and if vendor is not 70370 then it should raise message..
if i write as u said will it not effect to other document types.....
2007 Nov 16 4:56 AM
Just check in debug mode whether any leading 0 are there or not ? you may have to change the code with leading 0.
IF I_CEKKO-BSART = 'P373' AND I_CEKKO-LIFNR <> '0000070370 '.
regards
shiba dutta