Skip to Content
0
Sep 22, 2020 at 06:29 PM

Pricing in Invoice created through BAPI

224 Views

Hi,

We have a requirement to create an external Invoice. The invoice has to be created without any reference.

Using the BAPI BAPI_BILLINGDOC_CREATEFROMDATA or BAPI_BILLINGDOC_CREATEMULTIPLE, it is possible to create the invoice.

Using this BAPI, I am able to create an invoice successfully and it is getting posted to accounting too. No problem till now.

However, the challenge is, I am not able to maintain the pricing condition in the invoice through BAPI for all the line items. (It is possible to maintain the conditions manually in VF02, after the invoice is created, but this is not the expectation/solution)

If I enter the pricing condition and value (for eg. condition ZPR0 = 100) in CONDITION_DATA_IN, the same price (ZPR0 = 100) is getting updated for all the line items, but I am not able to maintain different values (like 100, 200, 300) at different line items.

Please help me out on this. Awaiting your valuable comments.

Thanks.