‎2006 Dec 13 11:23 PM
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.
‎2006 Dec 31 5:44 AM
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
‎2007 Jan 11 4:06 AM
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
‎2007 Jan 11 3:15 PM
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