Normally you can create Sales Order or Contract document using BAPI_SALESORDER_CREATEFROMDAT2 for Sales Order and BAPI_CONTRACT_CREATEFROMDATA. But you can’t insert or change Billing Plan data using those BAPI directly.

You can change or insert billing plan data after Sales Order or Contract doc finish created. then you can use 2 function module i.e  BILLING_SCHEDULE_READ and BILLING_SCHEDULE_SAVE to change or insert billing plan data.

Subroutine below is the ABAP source code to change billing plan data in sales document.


Incoming search terms: