Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Billing Plan Dates

former_member445996
Participant
0 Likes
896

Hi All,

I am creating Sales Contracts programatically. One of the requirements is to update the Billing Plan dates on the Billing Plan Tab. I am using FM BILLING_SCHEDULE_SAVE to accomplish this. My issue is that I have not been able to find out what the purpose of FPLTR field is. This obviously is not the Sales document line item number. According to the description of the field it says "Item for Billing Plan/Invoice Plan/Payment Cards". Does anyone know how to populate this field and what is it related to.

Any help will be greatly appreciated.

Regards.

3 REPLIES 3
Read only

uwe_schieferstein
Active Contributor
0 Likes
717

Hello Aurang

<b>FPLTR</b> is the billing plan number. This number is internally generated as soon as a billing plan is defined for a contract.

The billing plan number can be found in table <b>VBKD</b> (field FPLNR; POSNR initial => header billing plan). The billing plans themselves are found in table <b>FPLA</b>.

If the billing plan of an item is linked to the header billing plan then the record in FPLA contains the header billing plan in field RFPLN, otherwise it is empty.

Regards

Uwe

Read only

0 Likes
717

Hi Aurang and Uwe,

I require a similar thing. I am creating sales order using the BAPI "BAPI_SALESORDER_CREATEFROMDAT2" and must also define Billing Plan.

If anyone could help with any sample code or any other help, it will be greatly appreciated.

Thanks,

Rajeev

Read only

0 Likes
717

Rajeev,

I tried to handle it with BILLING_SCHEDULE_SAVE but due to our configuration and the new requirements it was not doing what we wanted so I ended up writing a BDC. BILLING_SCHEDULE_SAVE will work in most cases without any problems unless you have customized configuration, e.g, to link Billing plan start date to Contract start date, etc.

Regards

Aurang