Skip to Content
0
Jun 22, 2017 at 02:33 PM

Migration Sales Order Billing Plan

626 Views

Hello

I am trying to migrate the Sales Order Billing Plan. After some research on SCN, it seems that we can not migrate the Billing Plan using the LSMW based on idoc type SALESORDER_CREATEFROMDAT202.

I have decided so to create a specific report that will create the billing plan after the Sales Order have been created.

I have looked to SCN, I have used the following FMs:

- SALES_DOCUMENT_READ

- BILLING_SCHEDULE_READ

- BILLING_SCHEDULE_SAVE

- SD_SALES_DOCUMENT_SAVE

- BAPI_TRANSACTION_COMMIT

First of all, if I use the above FMs, it supposes that a billing plan already exists on the sales order but in my case the newly created sales order do not have any billing plan, is it possible to create directly a billing plan without modifying an existing one?

In case there is one generic billing plan linked to the sales order item, I can use the above FMs to update the billing plan header and item to meet our requirement BUT I could not add any new billing plan item, there is an indicator UPDKZ=U that I use to update the billing plan but there is no indicator to add a new billing plan, is it possible to add a billing plan item?

I hope my problem is clear.

Let me know if I am doing good or if there are other way to migrate the sales order billing plan.

best regards.