cancel
Showing results for 
Search instead for 
Did you mean: 

User Exit for ME21N

Former Member
0 Kudos

Dear all,

I need a User Exit for ME21N, that is triggered when i copy a PR to a PO (ie. dropping PR to Basket).

I have a list of user exits from sources like this:

http://sap.niraj.tripod.com/id63.html

But nothing triggers the user exits when i drop my PR into the basket. Any idea?

Thanks in advance.

Regards,

Wen Ho

Accepted Solutions (1)

Accepted Solutions (1)

revi_wiratman
Active Participant
0 Kudos

Hi,

Try enhancement LMEKO001. User exit from this enhancement should be called on every line item of PO. Please note that it will also be called even if you create PO from scratch (i.e., not referencing PR), or from any other document. However, you can check the condition for your particular scenario (i.e., converting PR to PO) by checking the content of PR number in EKPO internal table.

Hope this helps.

Former Member
0 Kudos

Hi Revi,

I tried LMEKO001 but it doesn't work for me. User exit is not triggered at all.

revi_wiratman
Active Participant
0 Kudos

Hi Wen,

We use this user exit in ME21N. It is designed for coding around purchasing price condition. It will not be called in assign and process transaction (ME57) for requisition. When you drag requisition to shopping cart icon in ME21N (or use the copy function), this user exit should be called for every line item.

You've probably done this, but please make sure the user exit is activated before you test the transaction.

Former Member
0 Kudos

Hi Wen,

Try this...

FM: EXIT_SAPMM06E_012

INCLUDE: ZXM06U43

Thanks,

Yogi

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks to all for the replies.

I've solved my problem using BAdI instead.

Regards,

Wen Ho.

Former Member
0 Kudos

Hi Wen could u please send me the Badi u used ?????

Points will be awarded

Thanks

Mallik

Former Member
0 Kudos

Hi,

I need to make price zero for a particular condition in me21n conditions tab.

I used ME_PROCESS_PO_CUST badi to make it zero. Am new to badi

I need to make netpr value 0. While debugging its controled. But while displaying its not controlled. It displays the old value.

I used user exit MM06E005. But in debugging its cleared. While displaying its not controlling

I used the below badi coding to control the pricing field..

DATA: LW_ITEM TYPE MEPOITEM.

DATA: LW_POSTED_ITEM TYPE MEPOITEM.

DATA: W_MODIFIED(20) TYPE C.

    • Get currently being modified data for the PO line item

CALL METHOD IM_ITEM->GET_DATA

RECEIVING

RE_DATA = LW_ITEM.

  • Get posted data for the PO line item

CALL METHOD IM_ITEM->GET_PERSISTENT_DATA

IMPORTING

EX_DATA = LW_POSTED_ITEM

EXCEPTIONS

NO_DATA = 1.

IF SY-SUBRC = 1.

CLEAR LW_POSTED_ITEM.

ENDIF.

CLEAR W_MODIFIED.

LW_POSTED_ITEM-netpr = ' '.

  • Reset data to original data

LW_ITEM = LW_POSTED_ITEM.

*IF it_konp is initial.

LW_ITEM-NETPR = ' '.

  • PO data was modified.

W_MODIFIED = 'ITEM'.

*ENDIF.

CALL METHOD IM_ITEM->SET_DATA

EXPORTING

IM_DATA = LW_ITEM.

can anyone please help me in this issue.

Former Member
0 Kudos

Hi ,

Could you let me know the BADI used ?

Thanks in Advance .

Sriram.

Former Member
0 Kudos

Dear,

What is your Business Requirement ?? Why do you want to Trigger a user Exit??

Regards

Biswajit

Former Member
0 Kudos

Hi Biswajit,

I need to use some information from PR to get datas from the database and Copy them to the PO Texts.