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

MM module,Purchase order

Former Member
0 Likes
588

HI experts,

I can call 'BAPI_PO_GETITEMS' to get all items in a PO#. Now I have some question.

1. I can get vendor number (HEADERS-VENDOR). how to get vendor name?

2. I get some articlenum in that PO#. Now I want to get UPC/pack/size of every articlenum in this PO#. I try read MARA table, or call BAPI_MATERIAL_GET_DETAIL, but all failed.

Who will help me?Many thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
554

Hi ,

You can make use of the FM "WES_DEP_ARTICLES_DETERMINE" .

Regards,

Smart Varghese.

HI experts,

I can call 'BAPI_PO_GETITEMS' to get all items in a PO#. Now I have some question.

1. I can get vendor number (HEADERS-VENDOR). how to get vendor name?

2. I get some articlenum in that PO#. Now I want to get UPC/pack/size of every articlenum in this PO#. I try read MARA table, or call BAPI_MATERIAL_GET_DETAIL, but all failed.

Who will help me?Many thanks.

3 REPLIES 3
Read only

JackGraus
Active Contributor
0 Likes
554

Hi,

1. You could get the vendor name and address by calling the BAPI BAPI_VENDOR_GETDETAIL where GENERALDETAIL-VENDOR = PO_HEADERS-VENDOR from the PO BAPI. The vendor name is returned in GENERALDETAIL-NAME.

2. You could get the material details by calling the BAPI BAPI_MATERIAL_GET_DETAIL where MATERIAL = PO_ITEMS-PUR_MAT from the PO BAPI. The UPC is returned in MATERIAL_GENERAL_DATA-EAN_UPC. The pack/size depends on how it is implemented at your site but MATERIAL_GENERAL_DATA-SIZE_DIM could be used for that.

Regards Jack

Read only

Former Member
0 Likes
554

Thanks for Jack's help.

You could get the material details by calling the BAPI BAPI_MATERIAL_GET_DETAIL

There are two or more UPC for one articlenumber. If I call BAPI_MATERIAL_GET_DETAIL, I just get one UPC.

Read only

Former Member
0 Likes
555

Hi ,

You can make use of the FM "WES_DEP_ARTICLES_DETERMINE" .

Regards,

Smart Varghese.