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

BAPI for subcontract PO

Former Member
0 Likes
1,343

Hi

I am using BAPI_PO_CREATE1 for creating subcontract PO but in my system there is no table like POCOMPONENTS. So i am unable to do this subcontract purchase order. I am using 4.7 version and patch level 28. Do we need to apply for any notes?

regards

sun

Hi

I am using BAPI_PO_CREATE1 for creating subcontract PO but in my system there is no table like POCOMPONENTS. So i am unable to do this subcontract purchase order. I am using 4.7 version and patch level 28. Do we need to apply for any notes?

regards

sun

2 REPLIES 2
Read only

Former Member
0 Likes
749

Hi,

POCOMPONENTS is like BAPIMEPOCOMPONENTX,

and the BAPIMEPOCOMPONENTX has the structure below.

So, create a structure or table whatever else which has components like below and try to use or put it instead of your structure.

PO_ITEM->EBELP

SCHED_LINE->ETENR

ITEM_NO->RSPOS

PO_ITEMX ->BAPIUPDATE

SCHED_LINEX->BAPIUPDATE

ITEM_NOX ->BAPIUPDATE

MATERIAL->BAPIUPDATE

ENTRY_QUANTITY-> BAPIUPDATE

ENTRY_UOM->BAPIUPDATE

ENTRY_UOM_ISO->BAPIUPDATE

FIXED_QUAN->BAPIUPDATE

PLANT->BAPIUPDATE

REQ_DATE->BAPIUPDATE

CHANGE_ID->BAPIUPDATE

MATERIAL_EXTERNAL->BAPIUPDATE

MATERIAL_GUID->BAPIUPDATE

MATERIAL_VERSION->BAPIUPDATE

For example, "PO_ITEM" is field name and "EBELP" is component type of this field. If you have trouble with the data elements, post it to me and i can give you another suitable data elemt for it, and try to solve your problem with this structure.

Regards,

Reward points if helpful.

Read only

0 Likes
749

Hi Kenan,

There is no table by name POCOMPONENTS in BAPI_PO_CREATE1. Then how can i create a structure or a table with this structure and where should i pass this structure or table. I did not get you correctly please make it brief.

Regards,

Sun.