Q
Problem solve Get help with specific problems with your technologies, process and projects.

Passing the pricing for the component material via the BAPI

How can we pass the pricing for the component material via the BAPI, when we have only the header material?

While creating orders using BAPI_SALESORDER_CREATEFROMDAT2, a material is passed in the item structure. This material is actually substitution material. If you do this manually, what happens is when you enter this material it throws in a second line item with the components of the material. The pricing has to be done at the component level and not at the header level. How can we pass the pricing for the component material via the BAPI, when we have only the header material? Any input on this will be highly appreciated.
This sounds like a difficult customizing exercise. I presume that you are talking of bill of materials. If you know the BOM then one solution would be to send the resolved BOM in the IDoc, then you can configure each BOM item individually.

Alternatively you can do a two step process: send the IDoc plain and create the Sales order. Then send a change...

sales order IDoc with the prices for the desired resolved items.

Of course, some customizing cheat might help, but I cannot tell this without debugging deeper in your system.

This was last published in July 2004

Dig Deeper on SAP APIs

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchContentManagement

SearchHRSoftware

Close