Copy control Returns order to invoice or sales order

Hi all,
we are using Sold-to's with a variety of partners and partner types of which all are not being used in the sales order.
Unfortunately when we create a returns order in refernce to either the original sales order or the invoice, we are bing presented with pop ups showing all partners. i.e the original invoice does not have a special partner we use (ZF) but when we create the returns order we are being asked to pick this partner or if there is only one it is populating the partners.
We do not wish this to happen we wish only for the original partners to be copied, i.e. no additions and no requests for us to pick one if there is more than one.
Can anbody advise on copy control settings to manage this we have tried various options but none have worked.

Hello Greenbum
1) You can use your own copy routine in the header  ( Copying Control: Billing Document to Sales Document) where for Copying requirements for partner data VBPA-  the bottommost Data Transfer routine- you may copy and modify routine FV45C001.
If the above does not work
1) Assign a Partner Determination Procedure with only requisite Partner functions to the 'Return' Order.
2) In the procedure, populate  the 'Origin' filed for all the partner functions with X, Y or Z and devise user exit for partner determination- EXIT_SAPLV09A_003.
Let me know how it goes.

Similar Messages

  • Copy controls in reference with contract to sales order

    hi,
    sap gurus,
    good monring to all,
    what are the copy control settings for
    contract - sales order
    can any explain the controls.
    regards,
    balaji.t
    09990019711.

    Hi
    Balaji
            Please go to SPRO -
    S&D -- SALES - SALES DOCUMENT ---SALES DOCUMENT HEADER - -- DEFINE SALES DOCUMENT TYPE select yr order type and diplay the same then go to General Control there reference mandatory field is there. If you assign G then contract is mandatory for your SD doc. type. Please take F4 help and check the different ref. mandatory field. ( T code VOV8 )
    Hope this will help u.
    If u get help pl reward.

  • Tax condition not copying to invoice from sales order

    Dear All
    I have created condition record fro material. In that i have mentioned tax condition types.During Sales order creation the tax condition type copying into sales order. But from sales order to invoice it is not getting copied.Kindly guide me.
    My order type is OR and my invoice type isF2.
    Shobana

    Dear Shobana
    Go to VTFL, select the combination of your billing type / delivery type and select "Item" tab on your left screen.  Now select the item category and click on blue lens on top left.
    Here see what is maintained for the field "Pricing Type".  Please maintain "B" if this is not maintained and retry.
    thanks
    G. Lakshmipathi

  • Create return but linked to original sales order where the material was delivered in the first instance

    Hi Everyone
    I want to create return but linked to original sales order where the material was delivered in the first instance, I don’t want to create other sales order (to return) with references to the original, and then other sales order to be delivered again (replacement).
    Example
    SALES
    1. Create a sales order number 33 with 10 Ton
    2. The delivery is linked to sales order 33 just with 8 Ton
    3. Invoice is created linked to the delivery with 8 Ton
    4. Sales order number 10 pending qty is 2 Ton
    RETURN
    5. We would like to link the return delivery to the sales order, 5 Tons will be retuned
    6. Credit memo is created
    7. Sales order number 10 pending qty update to 7 Ton

    The only way is to change the item categories in the delivery.
    Create the delivery wrt the original sales order.
    Change the item category(In the config make sure the return is checked)- But I think you need to do some changes in the user exit to enable the item category in the delivery)..
    The other option is to have a return order document(type RE) and then create the return delivery for this document. In the copy controls you can maintain the return item categories while creating the return order from sales order..
    Thanks

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

  • Need Order Reference Number in Sales Order Lines- Returns Tab

    Hi All,
    From which table i can get sales order reference number in salesorder->lines->returns.
    I have checked in oe_order-lines_all tables...I need to get total information for sales order like Reference type, order number, line number all those details...This information will be stored in DFF.
    Please help!!
    Thanks!!

    Hi Sanjay,
    I have checked the DFF 'Additional Line Return Information' and it contains two columns 'Return Attribute1' and 'Return Attribute2' which are storing header id of the reference item and line id respectively of a perticular sales order.
    In the sales order form on lines-->returns tab there are 3 attributes are enabled in the DFF 1) Reference Type 2) Sales Order/PO/Invoice etc.. 3) Line Number.
    Any ways i got 2 attributes ie.. Refernce Type and Sales Order/PO/Invoice Number from the DFF. Now, i am unable to findout LineNumber...Can you pls help to get this..
    Thanks!!

  • AR invoice and Sales order # to be the same

    this is an email from one of our customers, and we cannot confirm if it is possible. Can someone help?
    We require the AR Invoice # to be the same as the Sales Order Invoice #, so that the Account Statement shows information (the original Sales Order #) that the client understands. If the Account Statement were a little more flexible, we might be able to get around this issue, but it is hard to change the SAP account statement.
    Currently we manually copy the S/O # over from Every Sales Order as we copy the S/O to A/R. This is inefficient & should not be necessary.
    Plus, we want to automatically copy one of the dates over from the S/O. Surely other businesses want to copy over a S/O date to the AR Invoice (for instance, to fill in the Document Date field of the AR invoice - ie. the document date of the S/O).
    The Bug in SAP is that you can not AUTOMATICALLY retrieve the SO# (using a Formatted Search) BEFORE saving the AR Invoice.
    This whole issue also applies to copying over POs to A/P Invoices.
    (AFTER saving the AR Invoice on the database, my formatted search CAN pick up the original SO#, but by then it is too late, because the AR Invc # has to be Specified BEFORE saving the AR Invc)

    Dear Mr. Emery,
    I hope you don't mind if I am interfering in your issue.
    Regarding the manual Invoice number to be equal to the original based Sales order Number AND
    providing that you only work in a 1-2-1 relation between the two sales document:
    Settings:
    Create the following query: SELECT $[$38.44]
    Link that query to the invoice number field, refreshed automatically on 'series, Displayed Saved-User defined values
    Process:
         The user opens a new sales invoice
         The user choose the Business Partner
         The user choose u2018copy from a sales orderu2019
         The user change the series from u2018primaryu2019 to u2018manualu2019 -> this trigger the query
    Regarding the invoice posting date = based sales order posting date:
         Settings:
              Create the following query: SELECT CONVERT(CHAR,T0.DocDate,103)  FROM ORDR T0 WHERE T0.DocNum =  $[$8.0.0]
              Link that query to the invoice posting date field, refreshed on u2018Seriesu2019, Displayed Saved-User defined values
         Process:
              When the user change the series to manual, the based sales orderu2019s posting date will automatically overwrite the invoice posting date.
    This solution does not cater for an invoice created directly (Not based on Sales Order). But you have here a basic idea on how to solve your issue, thus easily can improve the solution.
    Tested on 2007A PL42.
    Regards,
    Frederic Bada
    Pretoria, South Africa

  • ORDERS05 - Create a Return with reference to a Sales Order

    Hi all,
    I'm trying to create a return with reference to a sales order via IDOC ORDERS05. I'm indicating referenced Sales Order number into segment E1EDK02; indicating qualifier (QUALFR = 002) and Sales order number (BELNR). By this way, I create a Customer Return but without reference.
    Which fields or segment have to be filled in order to create it correctly?
    Thanks
    Marí

    Correct...
    You need something like:
    *Get the pricing cond number.
    select single knumv from vbak into cond
      where vbeln = '0000080347'.
    if sy-subrc = 0.
    Get the pricing record which are by line item.
      select * from konv into table konv_tbl where knumv = cond.
    Loop thru them one line at a time.
      loop at konv_tbl.
       bapi_cond-itm_number = '000010'.
        bapi_cond-cond_st_no = konv_tbl-stunr.
        bapi_cond-cond_count = konv_tbl-zaehk.
    CALL FUNCTION 'BAPI_CUSTOMERRETURN_CREATE'
      EXPORTING
        RETURN_HEADER_IN               = bapi_hdr
       BUSINESS_OBJECT               = 'BUS2102'
        CONVERT                        = 'X'
      IMPORTING
        SALESDOCUMENT                 = bapi_salesdoc
       RETURN                        = BAPI_RET
      TABLES
        RETURN                        = bapi_ret_tbl
        RETURN_ITEMS_IN                = bapi_itm
        RETURN_ITEMS_INX               = bapi_itm_out
        RETURN_PARTNERS                = bapi_prtnr
        RETURN_SCHEDULES_IN            = bapi_schd_lin
        RETURN_CONDITIONS_IN           = bapi_cond.  "pricing
      ORDER_TEXT                    = bapi_text.

  • Copying WBS element (a/c assignment ) from sales order  to Service order

    HI Controllers,
    I got one requirement it is , we need to copy the account assignment (WBS element ) from sales order line item to service order line item . Morever same  wbs element shud be used to create automatic settlement rule in service order.
    This should also work even if user changes the WBS element later. i.e, updated WBS element should again update service order and settlement rule automatically.
    << Moderator message - Everyone's problem is important. Please do not ask for help quickly. >>
    Thanks in advance
    Sneha
    Edited by: Rob Burbank on Apr 25, 2011 1:39 PM

    Hi Sneha
    You can use Exit MV45AFZB in order to copy the account assignment objects... Use the Form  USEREXIT_MOVE_FIELD_TO_COBL with in MV45AFZB
    You can use the same exit to update your settlement rule as well
    br, Ajay M

  • Not able to create Invoice against sales order

    Hello
      I have a sales order with one main item and having 4 sub items to the main item. For all the 4 sub items the delivery and goods issue process is done . For one of the sub item , delivery document is archived in the system.
    Now user trying to create the invoice with reference to the sales order and the system is not allowing to create the invoice by giving the following error message "  0001528482 000020 No goods issue has been done for this sales order item" .
    For sales order 1528482 item 20 , delivery document already  created but archived in the system.
    Is it possible to create the invoice ? Any work around solution or any suggestion plz .

    Hi,
    Try like this
    go to T-code VF01 and enter the Delivery number after that click on the selection list button , in that you need to select the those line items and click on the execute button or F8
    Check & revert
    Regards,
    Prasanna

  • Invoice from sales order

    My requirement is to get invoice from vbfa table by delivery no., where vbtyp_n is M or N. But there are some deliveries which vbtyp_n is not 'N', then to get those invoices:
    I went to lips table retrieve sales order and item(vgbel, vgpos) for a particular delivery.
    then I went to vbrp table to get the invoice by sales order and item.
    But my question is performance is not good in this way, Is there is any better way to achieve this? Your inputs please.
    Thanks
    Shailaja

    Hi,
    You are right,
    Instead of using the relationship between LIPS and VBAP
    LIPS-VGBEL = VBAP-VBELN and LIPS-VGPOS = VBAP-POSNR (order related)and
    VBRP-VGBEL = LIPS-VBELN (delivery) VBRP-VGPOS= LIPS-POSNR and
    VBRP-AUBEL = VBAP-VBELN (Order) VBRP-AUPOS= VBAP-POSNR
    it is advisable to use VBFA to fetch the linked documents since it is faster.
    so to get the billing doc for the sales order from VBFA
    pass Preceding doc type = C and Prece doc no = Sales Order
    and subsceeding doc type = M and you will get the billing doc for that sales order.
    To get the delivery for sales order pass the Subsceeding doc = J to VBPA
    hope this is usful
    reward points if useful
    regards,
    ANJI

  • Sales order with reference to sales order

    Hi,
       I need to create a sales order with reference another sales order using bapi CreateFromDat2.  Please note, Sales Ord. Dist. channel, Div, sold-to to of the new order are different from original order.   I gave reference order in field order_header_in-REFDOCTYPE .  I am getting following error when I perform single test " FB Call: insufficient parameters.  Can any of you tell me how to overcome this issue.  And is it possible to create an order refering to another Saler order with different Sales Ord, Dist. channel, Division, sold-to ?
    <b><REMOVED BY MODERATOR></b>
    Cheers
    Sudhaker
    Message was edited by:
            Alvaro Tejada Galindo

    There is an OSS note <a href="https://service.sap.com/sap/support/notes/370988">Note 370988 - BAPIs in SD: Creation with reference</a>
    <i><b>Symptom</b>
    This note describes the problems of the 'Create with reference' function when using BAPIs to create sales documents.
    If you are working online, you can use this function module to create a sales document with reference to an existing sales document or a billing document (for example, a debit or credit memo request) according to fixed rules. The rules for transferring information from the source document to the target document are defined in the copying control on header and item level. The creation with reference permits an item selection.
    When you use BAPIs in SD, a function of this type is not fully available. A reference is only possible for a quantity contract, so that the target quantity of the contract can be reduced by the order quantity of the sales document. Furthermore, the document flow is also updated.
    As an alternative to 'Create with reference' in Transaction VA01, two variants are provided for solving the 'Create with reference' problem in the BAPI.
          1. Create a '1:1 ' - that is, a document copy of a sales document (customer quotation, order) with 'BAPI_SALESDOCUMENT_COPY'. At this point, you cannot create the 1:1 copy of either a billing document or a delivery.
          2. Create a sales document that refers to an existing document with 'BAPISDORDER_GETDETAILEDLIST' and 'BAPI_SALESORDER_CREATEFROMDAT2'.
    <b>Other terms</b>
    BAPI_SALESDOCUMENT_COPY, BAPI_SALESORDER_CHANGE, BAPI_CUSTOMERINQUIRY_CHANGE, BAPI_CUSTOMERQUOTATION_CHANGE, BAPI_SALESORDER_CREATEFROMDAT1, BAPI_SALESORDER_CREATEFROMDAT2, BAPI_SALESORDER_CREATEFROMDATA, BAPISDORDER_GETDETAILEDLIST
    <b>Reason and Prerequisites</b>
    As of yet, no method exists for creating a sales document that refers to an existing document.
    Solution
    For solution No. 1
          1. Create the documents using the BAPI_SALESDOCUMENT_COPY function module. However, this only permits a 1:1 copy without factoring out individual items.
          2. After you have created the document copy, you can use a change BAPI to edit this copy.
    For solution No. 2
          1. Collect the data for the reference document (for example a customer quotation) with the 'BAPISDORDER_GETDETAILEDLIST' function module. In the example code, focus exclusively on the partners, items, schedule lines and conditions.
          2. Prepare the Data. Execute the 'copying control' manually. This way, you decide which values are to be transferred.
          3. Create the sales document using the 'BAPI_SALESORDER_CREATEFROMDAT2' function module by transferring the prepared data.
          4. Finally, you must remove a COMMIT WORK so that the sales document can be written into the database.
    An example of solution 2 is attached as a text file. You are allowed to select items and quantities for example, if you use input parameters. If there are no entries, then transfer 1:1 from the reference document. When you enter the 'condition type' parameter, you can determine whether conditions are copied or recalculated ('G' for transferring from the preceding document; 'B' or ' ' for re-determining, and 'C' for re-determining with transfer of the manual elements).</i>
    Sample : <a href="https://websmp108.sap-ag.de/~sapidb/012003146900000486112004E/BAPI_COPY_WITH_REF.txt">ZZ_MS_BAPI_COPY</a>
    Regards

  • Issue in Outbound Delivery Creation w/o order reference & w/o sale order

    Hi ,
    I have an issue in outbound delivery creation without order reference and without sale order through
    BAPI_OUTB_DELIVERY_CREATENOREF . I am getting an error like
    1. Copying is not poss.because an entry is missing in Table TVCPL:  ZLR (Checked entries are there in the Table TVCPL)
    2. No instance of object type OutboundDelivery has been created. External reference.
    But I can able to create an outbound delivery through VL01NO txn.
    Pls help me where I am gng wrong.
    Regards
    Rupachandran

    hi,
    this is to inform you that,
    1. Copying is not poss.because an entry is missing in Table TVCPL: ZLR (Checked entries are there in the Table TVCPL)
    1.a. sorry for sending the link
    Re: can't create DN for sales return order
    balajia
    Edited by: balaji timmampalli achari on Dec 9, 2010 3:15 PM

  • Problem creating process order with ref of sale order

    Dear all,
    Kindly give solution for this scenerio..............................
    I am creating Process Order with ref of sale order manually in cor1. In the COR1 screen copy from field i gave my ref sale order, so that particualr order and batch is assigned to that order only.
    My problem was suppose if sale order is created for 10 tonns, but my batch size and resource capacity is 2 tonns only. so first time i change my batch quantity 2 tonns instead of 10 tonns and created my order and confirmed.
    if i go to second time the same process i am doing creating process order with ref of same sale order but it comes again 10 tonns instead of 8 tonns. why it comes like this already i confirmed 2 tonns in this sale order?
    my requirement is if any process order is created with ref of any sale order and again if i am creating any process order with ref of same sale order left quantity only system should show.
    for this what i have to do kindly help to this
    regards,
    s.sakthivel

    Dear KK,
    Pls check whether ZKIN, ZKQT, ZKOR have all the properties similar to IN, QT, OR respectively. If they are different, please ensure that you know the reason why they are different. This check has to be done at tcode VOV8
    Some fields like sales document category, Transaction group, screen seq group, Doc pricing procedure need to be similar to the parent document unless you know why you have changed them.
    Once this check is done, check the copy controls in VTAA. Before that try creating these documents separately without reference. This shoudl work fine only after which you need to check copy control. If this is not working fine, then there is some problem with the document type settings in VOV8. Testing this is possible only if Reference mandatory field is left empty. Make sure that is properly configured.
    Once this is done, check copy controls in VTAA. You can just copy the copycontrol between IN and QT and QT and OR and create for ZKIN to ZKQT and ZKQT to ZKOR.
    Once this is done, check whether your item category settings are properly done , also the schedule line settings. The tcodes are VOV7, VOV6, VOV4, VOV5 etc.
    Now check whether your material master and customer master are consistent with the item category settings(Item category group).
    Now create the transaction. It shoudl work fine.
    Reward if this helps.

  • Confirmation of the production order qty equal to sales order qty

    Hi Experts,
    I need to control the confirmation of the production order should be equal to sales order qty.
    I'm having the scenario as follows
    If sale order qty for X material = 3
    while running the MRP, system will plan the order qty as 8 because of we maintained rounding profile in the Material master and enhancement we used for this.
    Rounding Profile Qty=5
    Total Production Order Qty=8.
    But, finally they will do the GRN for sales order qty only, remaining will be used for testing purpose.
    So, the confirmation also has to happen for only sales order qty. There, we need to control the qty based on the sales order.
    Is there any exit or Enhancement is available for this.
    Please help me.
    Naren

    Hi,
    Exit for confirmation check is CONFPP04.
    However, opening orders for quantities higher than demand and leaving pieces undelivered and unconfirmed in production orders does not make sense. I could not get the requirement of incresing production quantity by adding rounding value? Moreover, if rounding is to be used for test purposes, why not do you receive them into stock? Why don't you receive 8 pieces into stock, deliver 3 pieces to sales order and transfer 5 pieces to related department?
    If it is because of MRP and you really do not want to produce extra 5 piece immediately, you may use material reservation or any other form of demand for 5 pieces, use EX for lot size calculation and have MRP create two planned orders for sales order and testing requirement, then you can convert planned order for sales order requirement into production order and continue processing.
    Regards.

Maybe you are looking for