07-31-2006 2:23 PM
Hello all !
I have to update some fields in the billing plan data in sales order's item (VA02) with a program (receiving it's data form csv files).
I've searched a BAPI but infortunately there are no "Billing Plan" data structure to update thoses fields.
The transaction in VA02, the billing plan data is found in FPLT table, linked to VBKD table with key field VBKD-FPLNR.
I've tried theses Functions with no result :
BILLING_SCHEDULE_MAINTAIN
BAPI_SALESORDER_CHANGE
BAPI_SALESORDER_CHANGEBOS
BAPI_SALESDOCUMENT_CHANGE
For now I'm searching how VA02 is saving the billing plan data, but it's very tricky and maybe not reusable.
If someone have an idea for updating billing plan data in a abap program ( and not a batch input of VA02 because the line to update can have a variable position ).
Thanks a lot.
Message was edited by: Thomas B.
07-31-2006 3:21 PM
Hi Thomas,
You can go for a BDC which will update. i guess one you can use this function module to update. check this and let me know .
FM : 'SD_SALES_BILLINGPLAN_CHANGE'
Regards,
Kiran I
07-31-2006 4:45 PM
Thanks Kiran I for your answer.
This function might be helpful but there is a strange control at the begining of the code.
(I guess VBAK must be filled somewhere..)
IF I_VBELN NE VBAK-VBELN.
MESSAGE A044 WITH I_VBELN VBAK-VBELN.
ENDIF.
But I've found another way to update the billing plan dates: using the function BILLING_SCHEDULE_SAVE (with BILLING_SCHEDULE_READ before). My point is solved.
09-08-2006 3:42 PM
Hello Thomas
The strange "control" can be passed if you first call function module SD_SALES_DOCUMENT_READ which fills VBAK.
Regards
Uwe
PS: I am currently struggling with billing planes, too. Hope your input will help.
10-03-2006 4:32 AM
Hi Thomas
I am also trying to create the billing schedule though have been able to key in the dates, etc. am unable to generate a billing document which copies from the Billing Plan tab of the SO but it gets created if I click on CREATE DATES on the same tab. Appreciate if you could revert with your solution.
Regards
Ravi
07-16-2007 3:16 PM
hi Thomas
i have the same problem which u posted..
My scenarion is to create billing plan while creation of order using the BAPI_SALESORDER_CREATEFROMDAT2 but could not find any structure to pass billing plan details ,pls can u let me know if u found any solution for this if so can u send me detailed mail..i want to populate in both way header level and item level (by removing check header plan in the billing plan tab)
Pls let me know ASAP..
Thanks
anil
12-03-2009 4:09 AM
Hi,
Please let me know how you solved this problem.
Thanks a lot.
Ajith
09-18-2007 10:31 AM
Thomas
Can u Plaease Send me the Code of how to use
BILLING_SCHEDULE_READ
BILLING_SCHEDULE_SAVE
10-12-2010 2:22 PM
See reports SDFPLA02, SDFPLAC1 and SDFPLAC2 where is implemented changing of the billing plans ....