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
Similar Messages
-
Creating Billing Plan data for sales order using BAPI_SALESORDER_CREATEFROM
Hi All,
We are using BAPI_SALESORDER_CREATEFROMDAT2 to create the sales order.We are unable to get the fields for billing plan tab in this BAPI.
Kindly let me know the fileds in BAPI that corresponds to the fileds of billing plan in sales order.
Thanks in Advance,
Kiran I.Hi kiran
hi 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 -
Creating Billing Plan data for sales order using BAPI
Hello,
Someone ones if there is any way to create a sales order (BAPI) and then create a billing plan (by means of another BAPI)?
Or is there any way to create both at the same time?
Kind Regards.Hi David and Nisha here is the code for creating sales order with bapi
*& Report YOBJ_BAPI_SALESORDER
*& REPORT : CREATING SALES ORDER USING STANDARD BAPI
*& AUTHOR : S.PAVAN KUMAR INUMARTHY
REPORT YOBJ_BAPI_SALESORDER.
DATA : ORDER_HEADER_IN LIKE STANDARD TABLE OF BAPISDHD1 WITH HEADER LINE.
DATA : ORDER_ITEMS_IN LIKE STANDARD TABLE OF BAPISDITM WITH HEADER LINE.
DATA : ORDER_PARTNERS LIKE STANDARD TABLE OF BAPIPARNR WITH HEADER LINE.
DATA : RETURN TYPE STANDARD TABLE OF BAPIRET2 WITH HEADER LINE.
DATA : SALESDOCUMENT LIKE BAPIVBELN-VBELN.
*APPENDING VALUES FOR HEADER.
ORDER_HEADER_IN-DOC_TYPE = 'TA'.
ORDER_HEADER_IN-SALES_ORG = '1000'.
ORDER_HEADER_IN-DISTR_CHAN = '10'.
ORDER_HEADER_IN-DIVISION = '00'.
ORDER_HEADER_IN-SALES_GRP = '130'.
ORDER_HEADER_IN-SALES_OFF = '1030'.
APPEND ORDER_HEADER_IN.
*APPENDING VALUES FOR ITEM
ORDER_ITEMS_IN-MATERIAL = 'M-13'.
ORDER_ITEMS_IN-PLANT = '1000'.
ORDER_ITEMS_IN-SALES_UNIT = 'ST'.
ORDER_ITEMS_IN-DIVISION = '07'.
ORDER_ITEMS_IN-GROSS_WGHT = '28000'.
ORDER_ITEMS_IN-NET_WEIGHT = '28000'.
ORDER_ITEMS_IN-UNTOF_WGHT = 'KG'.
ORDER_ITEMS_IN-VOLUME = '0.780'.
ORDER_ITEMS_IN-VOLUNIT = 'M3'.
APPEND ORDER_ITEMS_IN.
*APPENDING VALUES FOR PARTNER
ORDER_PARTNERS-PARTN_ROLE = 'AG'.
ORDER_PARTNERS-PARTN_NUMB = '0000001000'.
ORDER_PARTNERS-COUNTRY = 'DE'.
ORDER_PARTNERS-TRANSPZONE = 'D000080000'.
APPEND ORDER_PARTNERS.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
* SALESDOCUMENTIN =
ORDER_HEADER_IN = ORDER_HEADER_IN
* ORDER_HEADER_INX =
* SENDER =
* BINARY_RELATIONSHIPTYPE =
* INT_NUMBER_ASSIGNMENT =
* BEHAVE_WHEN_ERROR =
* LOGIC_SWITCH =
* TESTRUN =
* CONVERT = ' '
IMPORTING
SALESDOCUMENT = SALESDOCUMENT
TABLES
RETURN = RETURN
ORDER_ITEMS_IN = ORDER_ITEMS_IN
* ORDER_ITEMS_INX =
ORDER_PARTNERS = ORDER_PARTNERS
* ORDER_SCHEDULES_IN =
* ORDER_SCHEDULES_INX =
* ORDER_CONDITIONS_IN =
* ORDER_CONDITIONS_INX =
* ORDER_CFGS_REF =
* ORDER_CFGS_INST =
* ORDER_CFGS_PART_OF =
* ORDER_CFGS_VALUE =
* ORDER_CFGS_BLOB =
* ORDER_CFGS_VK =
* ORDER_CFGS_REFINST =
* ORDER_CCARD =
* ORDER_TEXT =
* ORDER_KEYS =
* EXTENSIONIN =
* PARTNERADDRESSES =
IF SY-SUBRC = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
* WAIT =
* IMPORTING
* RETURN =
ENDIF.
WRITE : 'SALES ORDER IS :', SALESDOCUMENT.
I have tested and go it.
please go through it -
How to enable Billing plan tab in sales order (lean) with NWBC
Dear All,
The Billing plan tab in sales order (lean) is not availabe with NWBC. How to enable this tab?
Is there is any documentation to do the modifications of NWBC's webdynpro screens?
for example, there is a standard webdynpro screen in NWBC from SAP best practices to create sales order (lean). The lean sale order screen having restricted elements and tabs when compare with standard SAP GUI (t code va01).
So I want to include the few missing tabs for data entry.
any documentation or solution?
thanks in advance,
Suresh Yerra.Dear All,
Is there is any documentation to do the modifications of NWBC's webdynpro screens?
for example, there is a standard webdynpro screen in NWBC from SAP best practices to create sales order (lean). The lean sale order screen having restricted elements and tabs when compare with standard SAP GUI (t code va01).
So I want to include the few missing tabs for data entry.
any documentation or solution?
Thanks,
Suresh Yerra. -
Bill plan of a Sales Order/Contract
Hi,
Where do we create/update the bill plan for a sales order/contract.
I tried VA41 where a bill plan button is provided. But need to understand the bill plan from a functional perspective.
Any short summary on the same will be helpful.
Also please provide Transaction/steps to update a bill plan.
Thanks.
ShreyasHi
A billing plan is a schedule of individual billing dates
for a single item in a sales document.
You can define a billing plan at header level, which is
then valid for all items assigned to it.
During sales order processing, the system determines from
the item category whether a billing plan is required and,
if so, which type of plan: The type of billing plan that
is determined at this point is set up in Customizing and
cannot be changed in the sales document.
For each billing plan you create, you can enter a freely-
definable search term in the details screen of the billing plan in the sales document.
When you save the document, the system automatically
assigns a number that later uniquely identifies the
individual plan.
You can use the search term later to locate specific billing plans.
Transaction code for Sales order - VA01, VA02 & VA03
Kindly check the following link for more information on Billing plan:
http://help.sap.com/saphelp_47x200/helpdata/en/dd/560674545a11d1a7020000e829fd11/frameset.htm
kindly reward points for useful answers!
best regards,
Thangesh -
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 -
BAPI or FM for changing billing plans of a sales order
Hi guys,
I tried the FMs BILLING_SCHEDULE_SAVE and BILLING_SCHEDULE_MAINTAIN for updating the billing plan of an SO but it doesn't work. Tried adding coomit work after calling the FMs but didn't affect the results.
Can anyone provide me with a BAPI or FM for updating the billing plan?Below is a sample code.
I am able to delete the details....
Take a look...:)...imp to add wait for few seconds
REPORT z.
PARAMETER: vbeln TYPE vbak-vbeln.
PARAMETERS: fplnr TYPE fplnr.
DATA: t_zfpla TYPE STANDARD TABLE OF fplavb WITH HEADER LINE.
DATA: t_zfplt TYPE STANDARD TABLE OF fpltvb WITH HEADER LINE.
DATA: t_fpla_new TYPE STANDARD TABLE OF fplavb WITH HEADER LINE.
DATA: t_fpla_old TYPE STANDARD TABLE OF fplavb WITH HEADER LINE.
DATA: t_fplt_new TYPE STANDARD TABLE OF fpltvb WITH HEADER LINE.
DATA: t_fplt_old TYPE STANDARD TABLE OF fpltvb WITH HEADER LINE.
*DATA fplnr TYPE fplnr.
IF NOT vbeln IS INITIAL.
SELECT SINGLE rplnr INTO fplnr FROM vbak WHERE vbeln = vbeln.
ENDIF.
CALL FUNCTION 'BILLING_SCHEDULE_READ'
EXPORTING
fplnr = fplnr
TABLES
zfpla = t_zfpla
zfplt = t_zfplt.
LOOP AT t_zfpla.
MOVE-CORRESPONDING t_zfpla TO t_fpla_old.
t_fpla_old-updkz = 'D'.
APPEND t_fpla_old.
ENDLOOP.
LOOP AT t_zfplt.
MOVE-CORRESPONDING t_zfplt TO t_fplt_old.
t_fplt_old-updkz = 'D'.
APPEND t_fplt_old.
ENDLOOP.
BREAK-POINT.
*CALL FUNCTION 'BILLING_SCHEDULE_SAVE'
TABLES
fpla_new = t_fpla_new
fpla_old = t_fpla_old
fplt_new = t_fplt_new
fplt_old = t_fplt_old.
DATA fpltr TYPE fpltr.
CALL FUNCTION 'BILLING_SCHEDULE_MAINTAIN'
EXPORTING
I_FPLA =
I_FPLT =
i_upd_fpla = 'X'
i_upd_fplt = 'X'
i_fplnr = fplnr
IMPORTING
E_DATALOSS =
E_UPD_FPLA =
E_UPD_FPLT =
e_fplnr = fplnr
e_fpltr = fpltr
TABLES
fpla_new = t_fpla_new
fpla_old = t_fpla_old
fplt_new = t_fplt_new
fplt_old = t_fplt_old.
WAIT UP TO 2 SECONDS. -
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 -
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 -
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 date in sales order should not be modifiable to backwards dates
hi gurus
I have a requirement where in few users while creating a sales order , they should not be able to modify the billing dates to previous dates . So that particular field shd not be modifiable . Could use some help here .
Regards
JNMDear JaganNM,
While creating the billing document in VF01 the billing date will be changed manually by the user.
This change will not applicable in sales order.
Once you save the billing document you can't change the billing date in sales order ,it will be graded out.
Before saving the billing document only the date can be changed in sales order.
Let me know if you have any further clarifications.
Thnaks&Regards
Raghu.K -
User exit to copy the data from sales order to billing document
hi everyone,
Is there an user exit to copy the data from sales order to billing document?
Regards
Prabudhhi
copy control would be the better option to choose.. but still u can a give a search in list below and opt for the right one..Refer to the link below..
http://www.planetsap.com/Userexit_List.htm
User exits for Sales order
1USEREXIT_DELETE_DOCUMENT
2USEREXIT_FIELD_MODIFICATION
3.USEREXIT_MOVE_FIELD_TO_VBAK
4.USEREXIT_NUMBER_RANGE
5.USEREXIT_SAVE_DOCUMENT
User exits for billing
1.USEREXIT_ACCOUNT_PREP_KOMKCV (Module pool SAPLV60A, program RV60AFZZ)
2.USEREXIT_ACCOUNT_PREP_KOMPCV
3USEREXIT_NUMBER_RANGE_INV_DATE (Module pool SAPLV60A, program RV60AFZC)
4USEREXIT_PRINT_ITEM (Module pool SAPLV61A, program RV61AFZB
5.USEREXIT_PRINT_HEAD (Modulpool SAPLV61A, Programm RV61AFZB)
Reward if Useful
Thanx & Regards..
Naren.. -
Tax date in sales orders and invoices (Billing)
Hello Experts,
I have an issue related to Tax date in sales orders and Billing documents.
In our environment we calculate taxes at the time of sales order creation and billing document (invoice) creation.
Currently we modified 'ZXFYTU03' exit to pass tax date which is system date. Our business processes are such that, there is a gap of 3-5 days between sales order creation and billing creation. So for some orders we see tax discrepancies between order and billing.
Through forums I understand that we can use 'service rendered date' at sales order item level. Solution would be passing date in 'service rendered date', we can pass date in 'service rendered date' field in sales order.
The problem is to copy same date in billing document 'service rendered date'
Does anyone have any idea how we can copy the sales order service rendered date to invoice service rendered date?
Through forum i understand that we can use copy controls, data transfer routines etc...Appreciate if someone can guide me on how i can use these...
Thanks in advance
PradeepTried 2 options...
1. Modify program RV60AFZC (FORM USEREXIT_FILL_VBRK_VBRP) to pass VBRP-FBUDA = VBKD-FBUDA. But in later part of the process, in SAPLV60A-LV60AA21 (perform fakturadaten_lieferbezogen), VBRP-FBUDA is overwritten by LIKP-WADAT_IST which is goods movement date. So this is not solving my problem.
2. Modify program ZXVVFU08, to get service rendered date from VBKD-FBUDA based on CVBRK-XBLNR (Sales order) and populate CVBRP-FBUDA. But unfortunately this user exit is being called after user exit 'ZXFYTU03' where tax related data including tax date which is being passed. Somehow tax date in this user exit 'ZXFYTU03' is document creation date which is system date.
With 2nd option, service rendered date from sales order is copied to invoice doc, but the tax is calculated based on document creation date since the tax user exit 'ZXFYTU03' is being called first...
Per this, coustom routine did not work...
Refer: Service Rendered Date (VBRP-FBUDA) for SD Invoice -
Contract Start and End Dates in Sales Order
Hi
I have a situation where a service item is bundled with a deliverable item. The order is as follows
Line Item Mat Qty Higher Level Item
10 Item No.1 (Physical Item) 1
20 Item No.2 (Service Item) 1 10
For the deliverable item 10 , Revenue is recognized immediately. For the Service item no.20 , revenue needs to be recognized over a period of 1 Year (It is a 1 year service contract).
The whole order is created via BAPI from an external 3rd party order capture system.
In order to do revenue recognition properly for service items , SAP I believe has 2 options
1. Based on Billing plan dates
2. Based on contract start dates
Since order with both the line items need to produce 1 invoice, I cannot use billing plan . The only other option is to use contract start and end dates. I have enabled contract data at the sales order level. So when I enter the contract start and end dates manually at the line item level and set the item category to recognize revenue based on contract start and end dates based on time-based revenue recognition it is working fine.
But I need a way to automate the population of contract start and end dates at the line item level. My ABAP guy is not able to find a user exit that can change the XVEDA or any VEDA structure in any of the user exits.
I guess the SAP SD gurus out there would have definitely dealt with a situation of product bundling (Service and non-service items in the same sales order with one billing document , but seperate revenue recognition for service and non-service items)
Please help.
Thnx
SivaHi Siva,
Kindly let me know what criteria you want to give for automatic population of start date of contract...
Standard SAP comes with a few baseline dates for contract start date and we can control this from customization itself.
01 Today's date
02 Contract start date
04 Acceptance date
05 Installation date
06 Date contract signed
07 Billing date/Invoice date
08 CntrctStDate+contract duration
09 Contract end date
If you have some criteria which is not covered here, then let me know and i will try to provide some help then.
Thanks
Kapil Sharma -
WBS Element ( Billing element ) assignment at sales order header level
HI,
There is provision of assign WBS Element at sales order header as well as item level , If Project WBS Element is assigned for each line item delivery and stock updating is happening from the project, But WBSE will assign at sales order Header system will not allowing to create project delivery( moment type 601Q), and stock updation ftom project.
Please let me know how this will happen ,
Regards,
Gangi
Edited by: Gangi Reddy Botchu on Jul 7, 2008 4:50 PMSPRO - SD - Billing - Billing Plan - the first 5 config nodes (Define Billing Plan types / Define Date descriptions / Assign Date categories / Maintain Date Proposals / Assign Billing Plan types to Sales Doc types) are applicable to you.
this is pretty tranparent for a reference.
What else is required?
Maybe you are looking for
-
At the moment my privacy settings are Use Custom Settings in Private Browsing mode with no third party cookies. Recently however when I log out of hotmail the msn homepage comes up. So I decided to change to never remember history settings. However,
-
Can i put a solid state drive in my hdx16
Has anyone tried to put a solid state drive in a HP HDX16 and, if so, what problems, if any, did you encounter? Thanks.
-
Hi friends, hope my post will find you all in healthy state. I have two queries and shall be very thankful to you if you guide me accordingly: Q1: I want to restore factory settings of my N900, but unfortunately forgot the lock code. How lock code ca
-
What is the easiest way to enter a calendar event on an iPhone in a time zone which is different to one in which one is at present? Can this synchronise with Outlook, which allows for time zones to be set manually for each event? This was easy on my
-
Where can i find .trn file location when i successfully take the back up of the database? I accidentally deleted some records in my table, then i followed the procedure based up on this blog: "http://sqlbak.com/blog/recover-deleted-data-in-sql-server