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_PO_CREATE1 - Subcontracting components

Former Member
0 Likes
2,203

Dear Experts,

I am using BAPI_PO_CREATE1 to create a purchase order. I am able to create a po for all normal process except for 'Sub-Contracting' process. I need to add componennts to the items and I am passing data to POCOMPONENTS and POCOMPONENTSX but I am getting the following error messages.

E

This function only possible for subcontracting items.

On the ME21n screen, we pass 'L' to item category to mark it as subcontracting item. How do I pass it in BAPI. There is no field in the bapi to pass 'L'.

Please help.

Regards,

M.Madhusudan Rao.

1 ACCEPTED SOLUTION
Read only

nirajgadre
Active Contributor
0 Likes
982

Hi,

try to Pass the item category to the BAPIMEPOITEM field ITEM_CAT equal to 'L' and

also pass BAPIMEPOITEMX field ITEM_CAT = 'X'

2 REPLIES 2
Read only

nirajgadre
Active Contributor
0 Likes
983

Hi,

try to Pass the item category to the BAPIMEPOITEM field ITEM_CAT equal to 'L' and

also pass BAPIMEPOITEMX field ITEM_CAT = 'X'

Read only

Former Member
0 Likes
982

Hi Niraj,

Thanks for the quickest reply. I really wonder how I missed out Item_cat field in items table.

Now the BAPI is working

Regards,

Madhu.