Copying multiple contract's data to sales order

Hello Experts,
We have a requirement to copy contract data into the sales order, reference multiple contracts and copy all data from referenced contract to the SO.The scenario is that a seperate contract is being refrenced at the header level and different contract is referenced to the line items.All the data needs to be copied to the header or item from the doucment being referenced.
The standard BAPI available for creating the SO (CREATEDAT2) references the contract doucment, but doesnt copy all the data from the referencing doucment to the SO, as the copy control are not called.We also tried using the BAPI 'BAPI_SALESDOCUMENT_COPY', which copies all the data but only does this for a single contract reference at a time.The BAPi doesnt allow the specific items to be copied or doesnt allow the reference of multiple contracts at the line item level.
Any BAPI which can be used or pointers to resolve this issue, will be very helpful.
Thank you.
Best Regards,
Gaurav Bhardwaj.

Hi PeteA,
I dont get any message, the problem is I dont see the contract no field on the screen.
I copied the SM01 order type to ZM01 and did the required configuration, now when I use the ZM01 order type I cannot see the contract field but when I use SM01 the same is appearing.
I saw some screen config for order types in Basic Order view but SM01 does not have any entries there.
Thanks,
Sarath.c

Similar Messages

  • Copying multiple contract's data to sales orders via BAPI.

    Hello Experts,
    We have a requirement to copy contract data into the sales order, reference multiple contracts and copy all data from referenced contract to the SO.The scenario is that a seperate contract is being refrenced at the header level and different contract is referenced to the line items.All the data needs to be copied to the header or item from the doucment being referenced.
    The standard BAPI available for creating the SO (CREATEDAT2) references the contract doucment, but doesnt copy all the data from the referencing doucment to the SO, as the copy control are not called.We also tried using the BAPI 'BAPI_SALESDOCUMENT_COPY', which copies all the data but only does this for a single contract reference at a time.The BAPi doesnt allow the specific items to be copied or doesnt allow the reference of multiple contracts at the line item level.
    Any BAPI which can be used or pointers to resolve this issue, will be very helpful.
    Thank you.
    Best Regards,
    Gaurav Bhardwaj.

    Better try to follow this
    [Read This Before Closing your Threads |Read This Before Closing your Threads;
    thanks
    G. Lakshmipathi

  • User exit for contract start date in sales order change mode.

    24.10.2008
    Hi Gurus,
    I need to disable the 'contract start date' (VEDA-VBEGDAT) field  in Contract data tab at header and item level. Can someone suggest a user exit for the same ???
    Regards,
    Udaynath

    Dear Udyanath,
    Please check these User exits with the help of ABAPer
    User exits in the program MV45AFZZ                                                                               
    The user exits which you can use for modifications in sales document         
    processing are listed below.                                                                               
    USEREXIT_FIELD_MODIFICATION                                              
         This user exit can be used to modify the attributes of the screen        
         fields.                                                                  
         To do this, the screen fields are allocated to so-called                 
         modification groups 1 - 4 and can be edited together during a            
         modification in ABAP. If a field has no field name, it cannot be         
         allocated to a group.                                                    
         The usage of the field groups (modification group 1-4) is as             
         follows:                                                                               
    -   Modification group 1:   Automatic modification with transaction      
             MFAW                                                                               
    -   Modification group 2:   It contains 'LOO' for step loop fields                                                                               
    -   Modification group 3:   For modifications which depend on check  tables or on other fixed information.
    USEREXIT_MOVE_FIELD_TO_VBAK                                                 
    Use this user exit to assign values to new fields at sales document         
    header level. It is described in the section "Transfer of the               
    customer master fields into the sales document".                            
    The user exit is called up at the end of the FORM routine                   
    VBAK_FUELLEN.                                                                               
    USEREXIT_MOVE_FIELD_TO_VBAP                                                 
    Use this user exit to assign values to new fields at sales document         
    item level. It is described in the section "Copy customer master            
    fields into the sales document".                                            
    The user exit is called up at the end of the FORM routine                   
    VBAP_FUELLEN.                                                                               
    USEREXIT_MOVE_FIELD_TO_VBEP                                                 
    Use this user exit to assign values to new fields at the level of           
    the sales document schedule lines.                                          
    The user exit is called up at the end of the FORM routine                   
    VBEP_FUELLEN.                                                                               
    USEREXIT_MOVE_FIELD_TO_VBKD                                                 
    Use this user exit to assign values to new fields for business data of the sales document. It is described in the section "Copy customer 
    master fields into sales document".                                  
    The user exit is called up at the end of the FORM routine            
    VBKD_FUELLEN.                                                        
    I hope this will help you,
    Regards,
    Murali.

  • Copy contract PO number and Date to Sales Order

    Hi freinds,
    I have one requirement. I want to copy contract PO number and date to Sales order PO Number and Date while creating the sales order with reference to contract.
    Thanks,
    Satya

    Hi,
    You have to modify your data transfer routine with the help of ABAPer.
    You have to give him the requirement that these value should be copied to sales order from contract.
    He will do the needful changes in the data transfer routine.
    Then assign that routine to the copy control of sales order from contract.
    Regards
    Raj.

  • Copy mode of payment from customer master data to sales order,

    Hi Gurus,
    Hope all is fine.
    I have a small doubt. If we want to transfer the mode of payment from customer master data to sales order, do we have to use Exit- MV45AFZZ.
    Can't we transfer the data without the exit?

    Hi,
    I have tested this in sand box.Thought the customer master is having payment method ( payer ) ,It is not copying from customer master to sales order but if you maintain manually in sales order ,it is copying into billing document level.FYI see below snap shot.
    Note:If you want it from customer master into sales order,may be you need to take help of abaper on this.
    BR's,
    Naren

  • 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
    Prabudh

    hi
    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
    1•USEREXIT_DELETE_DOCUMENT
    2•USEREXIT_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
    3•USEREXIT_NUMBER_RANGE_INV_DATE (Module pool SAPLV60A, program RV60AFZC)
    4•USEREXIT_PRINT_ITEM (Module pool SAPLV61A, program RV61AFZB
    5.USEREXIT_PRINT_HEAD (Modulpool SAPLV61A, Programm RV61AFZB)
    Reward if Useful
    Thanx & Regards..
    Naren..

  • Copy control and program name for Sales Order to Delivery

    Hi,
    Please provide the copy control and program name to split a single delivery into multiple invoices depending on the sales order it belonged to and to split a single sales order into multiple deliveries depending on the shipping type.
    Thanks in advance.

    Hi there,
    In VTFL, at item level, there is a field called "Data VBRK/VBRP". Routine 001 & 007 are for invoice split. Those may be relevant for your case.
    In VOFM, select data transfer --> billing docs in the menu bar. It will give you the requirement numbers & their description.
    Select the required routine num & click on Source text (note pad icon) on the above. It will give you the prog / include names.
    For eg for 001 its FV60C001, for 007 its FV60C007.
    Regards,
    Sivanand

  • Change Delivery date in Sales Order

    Hi all
    I want to change Request Delivery Date in Sales Order. But when I changed Request Delivery Date system appear" The default date is not copied into existing schedule lines"
    And Delivery Date didn't change.Could you tell me how to change Delivery Date ?
    I setup Request Delivery Date - September 21th but Availability Date is September 19th. Could you tell me how to setup loading time, picking time, packing time ?
    Thank and Best regards,
    Thang

    Hi,
    When you change the Request Delivery Date, it automatically changes the schedule line date of all the materials, but by default does not change the schedule line date of the ordered material.
    So just check the ordered material schedule line date and change it manually in the order.
    Similarly maintain the same date in all the resp fieldsi in the delivery, wherever you see the date.
    Regards,
    Siddharth.

  • Copy Billing plan from Quation to Sales order at header level

    Dear Gurus,
    I am using custom routine (600) to copy Billing plan from Quotation to Sales Order.
    I used following code to copy Billing plan.
    LOOP AT CFPLT.
    MOVE-CORRESPONDING cfplt TO FPLT.
    CLEAR FPLT-FPLNR.
    FPLT-FPLNR = FPLA-FPLNR.
    MOVE-CORRESPONDING FPLT TO XFPLT.
    XFPLT-UPDKZ = 'I'.
    APPEND XFPLT.
    CLEAR XFPLT.
    ENDLOOP.
    UPD_FPLT = 'I'.
    I also tried with CFPLA instead of CFPLT.
    Using this code all line item Billing plan is coping into header Sales order Billing Plan (Duplicating records). When I save and come back it is giving Express Document error.
    I could not able to save document.
    Please guide me this regards.
    Thanks,
    Vasanth.

    Hello Nag,
    Did you check your copy control routines in transaction VTAA? You need to see if these fields are included in the routines maintained for copy control between your contract and sales order.
    I hope this helps.
    Best regards,
    Ian Kehoe

  • Posting date on sales order to invoice

    hi all,
    I hope any can help, i need pass the posting date from sales order to an invoice,
    this is after made an sales order this sales order convert to invoice so i need the same posting date i have on sales order in the invoice.
    thnks for the help
    Humberto

    Another way of using is going deeper and modifying the SP_SBO_TransactionNotice store procedure to pull up the sales order posting date and passing that value to the invoice posting date.
    I know that this answer belongs in the SDK section of the forum, but its also another way of doing it; besides formatted searches have there restriction and it not always work in certain circunstances like using copy to.
    Regards,
    WB

  • Multiple deliveries from a single sales order

    Hi all,
    Can any body explain how to Configure the process to create multiple deliveries for one sales order and one invoice for these multiple deliveries.
    Thanks and regards,
    Dinesh Kumar

    Hi,
    In customer master in shipping screen of sales area data we have a field for partial deliveries. SAP allows 9 maximum deliveries for a single sales order. The partial deliveries should be allowed otherwise the system will not allow you to create multiple deliveries for the same order.
    Create a sales order in VA01, save it. Go to VL01N and as per your requirement change the delivery qty. For example the order qty is 50. For the first time when i go to VL01N, in the delivery qty field i will change it from 50 to say 10, accordingly i will pick 10 pc only and I will do PGI. The next time i go to VL01N the system will show me 40 in delivery qty field. I will change it from 40 to 10 and do the picking & PGI. Similarly i do the same thing 3 more times. Now my sales order qty is 50 and i have 5 deliveries for this sales order.
    <b>Creating single invoice:</b>
    Go to VF01 and enter all the 5 different delivery numbers there and press  enter. Click on execute or press "F8" the system will take you to a screen where it will show you 5 line items of the same material with 10 quantities each. Save the invoice. Thus you created a single invoice for multiple deliveries of a single sales order.
    <b>Invoice split:</b>
    Suppose when the delivery of the items is being done for different shipping addresses then the SH is different. Now the invoice will split - means after you enter the 5 delivery numbers and press "F8" the system will show you a button for "Split Analysis" If you click on this the system will show you the criteria because of which the split is taking place. The followig are important for invoice split:
    1. Ship to party,
    2. Incoterms,
    3. Billing date,
    4. Reference number
    Reward points if solution helps.
    Regards,
    Allabaqsh G. Patil

  • 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
    Pradeep

    Tried 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

  • Pricing date in Invoice same as pricing date in Sales order

    Dear Experts,
    I have a situation wherein i need to maintain the pricing date in Invoice same as pricing date in Sales order. what setting i should maintain in IMG so the default pricing date in Invoice is same sales order pricing date date?
    Regards,

    Hi,
    As per my knowledge, there is no need of any configuration. I have tried creating billing doc.
    System copies Pricing date from Sales doc. to Billing doc.
    Make sure that you have maintained Pricing date in sales order.
    You can set Pricing date in VOV8 as to what it should be like Today's date, req. del. date or contract start date
    Try once again. It should work
    Sagar

  • Delivery Date in Sale Order

    Dear All
    Delivery date in sales order should automatically changed or by defalt it should be after 2 days of creating the sales order.
    I have tried with lead time period and the ways given in the forum, but the schedule line/delivery date is by default coming as the day of sale order creation.
    Please guide me how to do it.
    Regards
    SB

    Hi,
    Goto Tcode: VOV8
    select sales document types
    goto request delivery date tab
    remove tick mark or uncheck propose delivery date
    and maintain lead time 2 days.
    thanks.

  • Two Delivery dates in Sale Order against one item

    Dear All
    I need two delivery dates in sale order. one is default at the time of creation sale order. second i need actual delivery date which will be confirmed by production planning department after analysis the order whether material can be ready on that delivery date or it need to change. Actual delivery date may vary from original delivery date and both need to preserve in system. kindly provide solution. best regards.
    Manjit

    You need to select the Availability & Transfer of Req. check box in Schedule Line Configuration.It will transfer the req. to PP.So while creating the sale order , schedule Lines will be confirmed as per the Available Stock.
    System will give you the Default Delivery Date as the Date added after Lead Time in days in the Configuration.Else system will give the Current Date.
    Best regards,
    Ankur

Maybe you are looking for