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: 

BAPI_PO_CREATE1 - EAN11

Former Member
0 Kudos

Hi, my name is Javier Maldonado and I'm using the FM BAPI_PO_CREATE1 to create a purchase order, everything is ok except that is no place to map the european article number in the inteface, the system automatically takes the principal EAN, but I want to assign another valid EAN for the measurement unit used for the material.

Any way to send that field?

Best regards,

Javier

7 REPLIES 7

Former Member
0 Kudos

In your material set-up MM01/MM02 under additional data tab , under additional EAN's you should be able to select which EAN is the main EAN.

But from what you are saying , you are posting in SAP from an external system, so why not popultae the EAN you want in the BAPI from the data you have?

0 Kudos

The FM BAPI_PO_CREATE1 doesn't have the field on it's interface.

Regards,

Javier

0 Kudos

Did you try checking the main EAN against the european EAN in MM02?

0 Kudos

I don't know what you mean... I'm trying to use the FM 'BAPI_PO_CREATE1' to create a PO (that part works OK) and to update the EAN in the positions of the PO, but the BAPI doesn't have the field available.

I'm asking if there is any exit to move the EAN or a way to enhance the BAPI in order for it to take the EAN.

Best regards,

Javier

0 Kudos

Hi! I am having the same problem, how did you solve it?

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

Try to modify the value for EAN11 with the BADI ME_PROCESS_PO_CUST in method PROCESS_ITEM for MEPOITEM-EAN11.

I hope this helps you

Regards

Eduardo

mt13065
Explorer
0 Kudos

It's a pity to give a solution so late. I think I have found a solution. Please refer to my blog:

https://blog.csdn.net/DeveloperMrMeng/article/details/118385460

Hope to help more ABAPer~