Application Development 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: 

ME21N - User Exit

Former Member
0 Kudos

Hello:

I have a requirement to move the Short Text (TXZ01) and net price (NETPR) from the Purchase Requisition to the Purchase Order when the order is created in transaction ME21N using a Purchase Requisition as a reference (with the Adopt button).

The reason why we need to do this is because when a Sales Order is created the customer information is in Spanish and the people who create the SO manually change the description of the material. The requisition is being created ok, with the description the user wrote on the SO, but when the Purchase Order (PO) is created on transaction ME21N, even thou we use the requisition as reference to create the order, the material description changes to its original description (The vendor information is in English) and we need to keep the description that the user wrote on the SO.

I tried using EXIT_SAPFV45E_001 on Enhancement V45E0001 but since what I need to do is to actually change the value of a field this user exit was no good. I tried with other exits but had no luck either. Maybe I'm just limiting myself to user exits and there is another way in which I can accomplish this?? I'll really appreciate any help.

Thanks in advance!

Carlos

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Carlos,

There is a method in BADI 'ME_PROCESS_PO_CUST' (Enhancements for Processing Enjoy Purchase Order: Customer) with 'PROCESS_HEADER'. I think, you can use this BADI to implement the changes required.

Hope this will help you.

Regards,

Vivek

5 REPLIES 5

Former Member
0 Kudos

Hi Carlos,

There is a method in BADI 'ME_PROCESS_PO_CUST' (Enhancements for Processing Enjoy Purchase Order: Customer) with 'PROCESS_HEADER'. I think, you can use this BADI to implement the changes required.

Hope this will help you.

Regards,

Vivek

Former Member
0 Kudos

Carlos,

Did you check with this Include 'MV45AFZB' (userexit for sales)

'USEREXIT_MOVE_FIELD_TO_ME_REQ' might also be of some use.

Vivek

Former Member
0 Kudos

Hello,

I have red your query clearly - i simply dont understand why do u want to use exits to serve your purpose. You ask Business consultant to custamize such a way to copy shorttext and price into PO while you create PO with reference to the PR.

*********Poorna**********

Former Member
0 Kudos

Vivek, Poorna:

Thank you so much for your replies! I really appreciate it!

I was able to use user exit EXIT_SAPMM06E_016 after all...I got around the problem by using field symbols.

I think the BADI 'ME_PROCESS_PO_CUST' is going to be very useful for another requirement I have.

Poorna: I talked to the Business consultant about your suggestion but he they tried to do a substitution but it didn't work for this case :S.

Anyway, thank you both for your input.

Kind Regards,

Carlos

0 Kudos

Hello,

there is way good way to say thanks in this forum by rewarding points.

*********Poorna********