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

Urgent!! User-Exit

Former Member
0 Likes
612

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
564

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

3 REPLIES 3
Read only

Former Member
0 Likes
564

Hi raj,

IF I_CEKKO-BSART <> 'P373' AND I_CEKKO-LIFNR <> ' 70370 '.

MESSAGE E130(8I) WITH 'Enter vendor no of 70370'.

ENDIF.

Regards,

Rajesh.

Read only

0 Likes
564

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

Read only

Former Member
0 Likes
565

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