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

Former Member
0 Likes
428

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
402

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

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.

1 REPLY 1
Read only

Former Member
0 Likes
403

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