cancel
Showing results for 
Search instead for 
Did you mean: 

Migration Sales Order Billing Plan

christophe_hu2
Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

sez41
Active Contributor

Li,

I remember coming across to the same scenario, and I am sorry to say this but we had decided to create a batch input recording for billing plans. The functions you have mentioned are not BAPI's actually, they are directly updating the tables if I do remember correctly. So, if you send a value which should have resulted an error within the billing plan interface, it actually does not give an error and is written to the database table without any validation. So, creating the order via a BAPI or an IDOC is fine, but billing plans are not supported via these interfaces.

Jelena
Active Contributor
0 Kudos

Sorry, I'm not following this... "Migrate" from where to where and why?

Normally, billing plan can be assigned to the item category and it'd be just added automatically. There might be some additional entry needed in case of, say, a milestone billing plan. But periodic billing plan can be easily defaulted in the configuration, if memory serves. I'm rather confused what are you attempting to do exactly. You might want to explain in standard SAP terms.

christophe_hu2
Participant
0 Kudos

Hello,

thank you for your answer. I want to migrate from non SAP legacy system to SAP system.

I have migrated Sales order using idoc and now I want to migrate sales order billing plan and as far as I know, there is no LMSW to execute this step.

Let me know if you have any question

thank you for your help