How to update billing plan date in contract
Hi guys!
I*m using the bapi BAPI_CUSTOMERCONTRACT_CHANGE to change some data in my contract
However, I want to set the date for the beginn of the billing plan. (Billing plan start date) and i don't find this field in the BAPI.
So is there a way to set and change this date?
...by the way. There is a rule initiated named "rule for origin of start date of billing plan". This should set the billing plan start date to the contract start date. - The contract start date is updated with BAPI_CUSTOMERCONTRACT_CHANGE - but the changes doesn't affect the billing plan startdate.
If i edit the contract, the changes to the billing plan occur automatically, but not in the BAPI
thanks!!
Edited by: tom54321 on Aug 6, 2009 9:36 AM
Hi,
Plz check the link given below:
BAPI_CUSTOMERCONTRACT_CHANGE is giving dump when start date of contract
It may help you.
Thanks & Regards,
Sarita Singh Rathour
Similar Messages
-
How to update Billing Plan using BAPI_SALESORDER_CHANGE
Hi,
In my case initailly sales order header data is created and saved, with reference to SO Project is created and then item level data is updated.
So clients requirement is to create any upload programme which can use for mass upload.
i.e to develop a program to upload,
i) Items in Sales Order.
ii) Billing Plan & Pricing Conditions in SO
I am trying to use BAPI_SALESORDER_CHANGE for this requirement. Problem is in this scenerio user exit is already used which validate "Amount" at item level and "Bill. value" in Billing plan tab should be same.
As observed Billing plan data can not be updated using this BAPI.
Even I've tried to use BDC for this requirement, but as we need to double click on line item while updating billing plan data and conditions it does not work while recording.
Incase anyone have worked on similar scenerio and found out solution, please share all your inputs.
Warm Regards,
NitishHi,
The following code will take you to Billing plan tab in BDC.
PERFORM bdc_dynpro USING 'SAPMV45A' '0102'.
PERFORM bdc_field USING 'BDC_CURSOR'
'VBAK-VBELN'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'VBAK-VBELN'
wa_vbap-vbeln.
PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ITEM'.
PERFORM bdc_field USING 'BDC_CURSOR'
itemno . "'RV45A-MABNR(wa_vbap-posnr)'.
PERFORM bdc_dynpro USING 'SAPMV45A' '4003'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=T\06'.
PERFORM bdc_dynpro USING 'SAPLV60F' '4001'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
Regards,
P Gomatheeswaran -
BAPI or Function to update Billing Plan in Sales Order Items
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.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. -
Billing Plan Data not getting copied from Contract to SO
Hi ,
I have a Business requirement in which i ham supposed to create a Contract and then release/sales orders with reference to this contract. Whle creating the SO, the header billing plan dates are not getting copied from COntract to Sales Order.
Please guide me on how can this be done.
Regards,
MadhavHi,
plz check your copy controls VTAA from contract to release order ,under the contract item category there is Field-FPLA check what is the routine that is assigned.
you can either use routine-401 or 402 -
Hi all,
I am using [BAPI_SALESORDER_CREATEFROMDAT2] for creating Sales order
and i also have billing plans data to be updated in the sales order. But i dont find any structures for populating the Billing plan data into the BAPI.
But i found the SD_SALES_BILLINGPLAN_CHANGE function module for updating the Billing plan schedule data. But this function module needs [Billing plan number / invoicing plan number] assigned to the sales order from the table VBKD.
When i create the Sales order through BAPI, the [Billing plan number / invoicing plan number] is not getting updated and i dont know how to update the billing plan for the sales order created using BAPI.
Can anyone help out how to create the Billing plan data for a Sales order?
Regards
Dhanapal Shi Dhanapal
i ahve 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 -
How to give Billing plan details to BAPI_CONTRACT_CREATEFROMDATA
Hi,
I am using BAPI-BAPI_CONTRACT_CREATEFROMDATA for creating contract (VA41), the problem is, i am not able to give the billing plan details in this BAPI. I mean, in VA41, in Billing plan tab, it will have 2 fields- Dates From, Dates Until.
These 2 fields i am not able to give in BAPI. Any help is appreciated.
VinothI face same issue now i solve so i tell how to solve
first u use
CALL FUNCTION 'BAPI_CONTRACT_CREATEFROMDATA'
then u commit
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
after that you can use following FM for billing plan details
CALL FUNCTION 'SD_SALES_BILLINGPLAN_READ'
CALL FUNCTION 'BILLING_SCHEDULE_READ'
CALL FUNCTION 'BILLING_SCHEDULE_SAVE'
CALL FUNCTION 'SD_SALES_DOCUMENT_SAVE'
using above FM u pass all billing plan data if u want sample code give ur mail id because if i past full code then can't read able it it more then 1500 char.
Edited by: kk.adhvaryu on Jun 8, 2010 8:57 AM -
How to create Billing Plan in sales order using Function module /BAPI
hi,
How to create Billing Plan in sales order using Function module /BAPI
i hv check few FM such
BILLING_SCHEDULE_READ
BILLING_SCHEDULE_GET_NUMBER
BILLING_SCHEDULE_SAVE
But unable to create billing plan for a sales order.....any other method to create???Hi,
Use this link.
Create sales order with billing plan via LSMW and BAPI BUS2032
BAPI or Function to update Billing Plan in Sales Order Items
Hope this will help you.
Regards,
Vijay -
Can it be possible to create invoice without billing plan date?
Hi Gurus,
I have made settings for billing plan in contracts. But, client wants billing plan at contract level only for the sake of reporting. Client doesnt want invoice to be created according to these billing plan.
Now, consider this scenario,
I have created contract A with billing plan values in it.
I have created sales order B with reference to contract A. There are no billing plan values in sales order B.
There is no delivery and PGI.
Now, when I try to create invoice with reference to sales order B, system doesnt allow me to save the same and says "No billing plan date found".
Will it be possible to create invoice irrespective of the billing plan in contract?
Please guide.Hi,
Then in that case i would advise not to use billing plan for your contract document type.
If you intend to create a sales order in reference to your contract document which has billing plan type attached, then in that case you need to maintain billing plan for your sales order document too.
Reward if helpful.
Regards
Ravi -
To track which line item the billing plan date changed.
Hi All.
I have a requirment of tracking changes done for the billing plan date and whenever i change the billing plan date it will be reflected in the FPLA table. But i was not able to track to which line item of the subscription/order the billing plan date changed.
In the FPLA table there is a relation to the VBELN(subscription/order) only not POSRN(line item) is there.How can i track to which line item it got changed.
Thanks for your help.
Thanks,
Neslin.Hi,
There should be entries in FPLTC for FPLNR found in table FPLA. Try from SE16, enter FPLNR preceded by zeros so that the total length is 10 and execute.For example, FPLNR is 10, enter 0000000010.
Hope it helps.
Regards,
Nupur -
To track the line item to which the billing plan date changed.
Hi All.
I have a requirment of tracking changes done for the billing plan date and whenever i change the billing plan date it will be reflected in the FPLA table. But i was not able to track to which line item of the subscription/order the billing plan date changed.
In the FPLA table there is a relation to the VBELN(subscription/order) only not POSRN(line item) is there.How can i track to which line item it got changed.
Thanks for your help.
Thanks,
Neslin.Hi,
There should be entries in FPLTC for FPLNR found in table FPLA. Try from SE16, enter FPLNR preceded by zeros so that the total length is 10 and execute.For example, FPLNR is 10, enter 0000000010.
Hope it helps.
Regards,
Nupur -
Billing plan date should be same as invoice date as per factory calendar
Hi,
We have two contracts, one is having billing plan material and another is having no billing plan material of same customer.When we go for the billing, as because these having all the header fields same it should give one single invoice of those two contracts,but its giving two invoices means the invoice splits.I check it and found, due to different billing date the invoice splits.If we go for VF04 we can force the billing date as same,but they are is a one batch running for this invoice.My invoice date of two contracts is 22.06.2014 which is factory calendar date and billing plan date is 26.06.2014 which is contract start date.My client is asking that can we get billing plan date same as invoice date as per factory calendar in standard to get single invoice? Kindly suggest me where is the settings.
Thanks in Advance
Regards,
BrajaBraja,
Check this
Goto the billing plan tab in the corresponding line item and check the rule that is determined. Now go to the configuration of this rule table by using the path
SPRO>SD> Billing> Billing Plan> Define rules for determining dates and choose your Applicable rule and click on the details.
There you will see the Calendar ID field where you will have to maintain the applicable factory calendar. I think this should work and your billing date on the item relevant for billing plan should be the same as the other item.
Hope this helps,
Ravin -
Problem in updating Billing plan while changing Sales order
Hi All,
I am using the BAPI 'BAPI_SALESORDER_CHANGE' to change a Prepaid Sale order.After calling this BAPI ,I am calling the function module <b>'BILLING_SCHEDULE_SAVE'</b> to update the Billing plan of the changed Sale order(Billing plan dates for Billing type ZF1 are changed).
The updated date values are getting reflected in the screen when I view through the transaction VA02 and the values are also updated in FPLT table but the values are not getting reflected in the table VKDFS.
Since the values are not getting reflectedin the table VKDFS the billing date is not correct while we view in the transaction VF04.
Please provide your valuable suggestions for updating the Billing date in VKDFS table.
Thanks in advance for your help.
Thanks and regards,
SivaHi,
I had the same problem. Here is an example code to resolve it:
REPORT ytestfg.
DATA: i_bsid LIKE bsid OCCURS 0,
i_bsid2 LIKE bsid OCCURS 0.
TABLES: bsid.
DATA: doc LIKE vbak-vbeln,
pos(6) TYPE n.
DATA e_fpla LIKE fpla.
DATA e_fplt LIKE fpltvb OCCURS 0 .
DATA: zfpla LIKE fplavb OCCURS 0,
zfplt LIKE fpltvb OCCURS 0.
DATA zfplt2 LIKE fpltvb OCCURS 0 WITH HEADER LINE.
doc = 'G03060619'.
pos = '000010'.
CALL FUNCTION 'SD_SALES_DOCUMENT_READ'
EXPORTING
document_number = doc.
CALL FUNCTION 'SD_SALES_BILLINGPLAN_READ'
EXPORTING
i_vbeln = doc
i_posnr = pos
IMPORTING
e_fpla = e_fpla
TABLES
e_fplt = e_fplt
EXCEPTIONS
no_billingplan_allowed = 1
no_billingplan_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Read the billing plan
CALL FUNCTION 'BILLING_SCHEDULE_READ'
EXPORTING
fplnr = e_fpla-fplnr
I_VFKDAT =
I_BFKDAT =
TABLES
zfpla = zfpla
zfplt = zfplt
Upddate the ZFPLT2 table with the new values
MOVE zfplt[] TO zfplt2[].
READ TABLE zfplt2 INDEX 1.
zfplt2-afdat = '20080927'.
Very important to set field updkz = 'U' ***
zfplt2-updkz = 'U'. "--> UPDATE!!
MODIFY zfplt2 INDEX 1.
CALL FUNCTION 'BILLING_SCHEDULE_SAVE'
TABLES
fpla_new = zfpla
fpla_old = zfpla
fplt_new = zfplt2 " --> NEW
fplt_old = zfplt.
CALL FUNCTION 'SD_SALES_DOCUMENT_SAVE'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
Regards,
Edited by: PHO_BA on Mar 9, 2009 5:28 PM -
Generic Delta Extraction (Bill Plan Data)
Hi BW Gurus,
We need to cerate data source from Bill plan extractor.
Please note that there is no SAP standard extractor for the bill plan data. So that is the reason we are using generic extractor (RSO2). We were using sales order delta extract program to find out the changes in bill plan data and there was routine in that extract which updated the custom table. But, soon they have to get rid of this design, because they observed that all the changes being done to bill plan were not being captured in the sales order delta extract. So, they have to go ahead with a full extract instead of the delta extract for bill plan data. Now we need to create design so we can do a delta extract on the billing plan data.
Please advice me ASAP.
In Advance Many thanks for your help.
Regards
SAP TeamYou could use the date field instead , you could have a lower safety interval and then when you do the delta again the records included in the lower safety interval are included. As for delta with timestamp , I have a question what is the timestamp used for delta - is it UTC Timestamp or the date and time concatenated together. UTC Timestamp did not seem to work for me and I did not have the luxury of having a concatenated timestamp.
When I checked the base tables for delta maintenance , I found both timestamps and am confused as to what timestamps to use.
Arun
P.S I have a current delta with changed date and a lower safety interval of 1 day and it is working fine so far. -
User Exit/Badi to change the billing plan date when create sale order
Experts,
Please advise which user exit/badi can be used to change the billing plan date wen create sale order.
My requriement is based on some rules to dynamically change the line item billing plan start date and end date when create sales order.
I tried some user eixt in MV45AFZZ, but the date got revert to the orginal date from billing plan.Hi,
check the include MV45AFZB.
Thanks & Regards,
Sateesh. -
Billing plan dates in Sales order
Hi Experts,
i am creating a sales order and i need to populate the date in billing per from Ztable as per payment terms.
1 . the enhancement i am using is V60F0001 - > EXIT_SAPLV60F_001 and inside i have kept a break point. but it is not stopping. i have also created the project in CMOD and assigned this enhancement but still it is not working.
2. is there any enhance ment or user exit i need to use.. to change the date in billing plan for sales order.
is there any BADI i can change the billing plan dates.
Thanks in Advance.Hi,
Yes this is std behaviour.
You need to do some enhacement to get this working.
BR
Maybe you are looking for
-
My 4 gig MuVo will only let me use 224 megabyt
I have a Nomad MuVo2 4.0 gig and I can put music on it but it will only let me use 224 mb. I updated the firmware, drivers, and I reformatted it more than once. I've also tried using different programs to load music but none can put on more than like
-
I am using TCS4 (FM11, RH10). In FM, I add images (import by reference), set the anchored frame to "Run into paragraph" and have it right-justified. Looks good, and publishes to PDF fine. RH imports it and ignores the anchored frame spacing. If the
-
My Photoshop elements 11 and 13 organizer suddenly exits. photoshop elements is not responding. Message occurs when the error is found. solicit help, That's all.
-
When I insert a cd or dvd it is mounted automatically in kde. When I try to umount it by right clicking on it and select unmount, it says: Unfortunately, the device system:/media/hdb (/dev/hdb) named 'cd title' and currently mounted at /media/cd titl
-
Question If tyere are no attributes for infoobject and master data is checked does it make any sense to load attributes data. It is having text data and datasource and no attribute datasource. What will happen if I remove check for master data.