cancel
Showing results for 
Search instead for 
Did you mean: 

User exit ME21N

jana_bankova
Explorer
0 Kudos

Hi,

I need any advice, I need insert to PO field eket-licha number of PO. This have to be in save PO process because I need know number PO. I tried user exit

EXIT_SAPMM06E_013, but any result. Unfortunately BADI ME_PROCESS_PO_CUST I do not know, how use it.

Please could you anybody advise me, how to do it? Thanks Jana

Accepted Solutions (0)

Answers (5)

Answers (5)

ankurch
Active Contributor

Hi Jana,

If you need PO number that means these changes should be done once PO has been created so please go for a custom program where based upon EBELN you can update the data for EKET-LICHA!

Thanks,

jana_bankova
Explorer
0 Kudos

Hi Ankur, what custom program do you mean. Jana

ankurch
Active Contributor
0 Kudos

I mean you should take help with abaper to write a query to update the EKET-LICHA with EBELN as key field to update the data as per your requirement!

Thanks,

jana_bankova
Explorer
0 Kudos

Hi, thanks everybody.

I tried implement BADI (succesfull) and I wanted write the code to POST, because I need PO number. But in this only im_ebeln and im_header. I would like to change eket-licha with PO number. Please could you advice me, how write code to fill EKET-LICHA? Thanks

Jana

NTeunckens
Active Contributor
0 Kudos

I second Philip's opinion : Go for the BAdI.

As for not having used the BAdI : Just search for "SAP ME_PROCESS_PO_CUST" on the Web and some SAP Blogs will pop-up : link / link / link ...


Hope this helps

Nic T.

former_member593648
Active Participant
0 Kudos

The best way is to use the BADI. As pointed out by Nelly you will have to implement the BADI & write the code in the CHECK or POST methods. If you have never implemented a BADI before, go through the blog below. The example is with another BADI but the fundamentals remain the same. Happy Coding !!

https://www.sapnuts.com/courses/core-abap/badi-sap/real-time-of-using-badi.html

0 Kudos

Hi Jana,

You need to create an implementation of the badi in transaction SE18, once you do that you need to implement one of the methods included in the interface, maybe the CHECK or POST method can suit your requirement.

Regards