2009 Nov 20 1:46 AM
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.
2009 Nov 22 8:37 AM
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.
2009 Nov 20 2:34 AM
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
2009 Nov 20 5:57 PM
Thanks for Jack's help.
You could get the material details by calling the BAPI BAPI_MATERIAL_GET_DETAILThere are two or more UPC for one articlenumber. If I call BAPI_MATERIAL_GET_DETAIL, I just get one UPC.
2009 Nov 22 8:37 AM
Hi ,
You can make use of the FM "WES_DEP_ARTICLES_DETERMINE" .
Regards,
Smart Varghese.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |