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

Similar Messages

  • Create return with reference to original sales order - partners

    Hi all
    I'm using the function SD_SALESDOCUMENT_CREATE to create a return order with reference to the original sales order. (Partially return works fine too).
    All the informationen from the original sales order (including partners). I'm reading with the function BAPISORDER_GETDETAILEDLIST. This works fine. I get all the correct datas from the sales order.
    The problem: when I create a return order with the SD_SALESDOCUMENT_CREATE it takes the partners from the standard defined partners table and not from the original sales order.
    For example, standard defined partners for Customer: 10101010:
    200010 Dealer 1
    300101 Subdealer 2
    501001 Salesman
    When I have in the sales order only this partner:
    200010 Dealer 1
    it takes into the Return still all the 3 partners. Also then, when I explicity delete these other partners in the partnertable (return_partners) before I leave to the Function: BAPI_CUSTOMERRETURN_CREATE.
    Can anyone help me?
    Thank you so much!!
    Petra

    Hi Petra
      Can you check how itz behaving when you create using
    VA01 with reference document for the same case.
    Kind Regards
    Eswar

  • Create return with reference to original sales order - pricing

    Hi
    I am using the function SD_SALESDOCUMENT_CREATE to create a return order with reference to the original sales order.
    All the information from the original sales order (including pricing conditions) I've read with the function BAPISDORDER_GETDETAILEDLIST.
    The problem : the pricing conditions. I need to copy the conditions from the original order and it is not working correctly.
    Any ideas?
    Thanks.
    Anca

    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.

  • How to restrict saving of a sales order without a material.

    Hi Gurus
    Please advice How to restrict saving of a sales order without a material. That is the system saves the order even if no item is assigned to it.

    Hi Raghu,
                 In standard SAP we can not do that. Even for some requirements of the customer this feature is required, specially in case of milestone billings, custom materials etc. client after saving the empty sales order they may create materials based on that sales order number.
                 If it is mandatary for u to save sales order only after the entry of the materials, u can try user exits or go for a code with the help of an ABAPer.
    Regards,
    Ravi Duggirala
    Edited by: ravi duggirala on Jun 20, 2008 11:11 AM

  • Sales Return Quantity to be adjusted in original sale order

    Dear All,
    We have a scenario, where Customer provides fixed quantity PO and we have to supply the items as per the schedule until the PO qty is completed and we have to supply additional quantity in case if there is any Sales return.
    Say the customer rejects 10 nos, we inward the item through sales return process. But we require these 10 nos to be reduced in the original sale order schedules, else we do not have track about the customer rejections and have to manually keep track to send the additional sales return quantity.
    Please guide how to accomodate the Sales Return Quantity in original sale order.
    Regards,
    Vinoth.

    Dear Vinoth,
    You can always create a return delivery without referencing a Sales Order.
    Goto the delivery type LR is the standard return delivery type.
    You could copy this delivery type and create your own delivery type.
    After copying then select the newly created delivery type and click on Details.
    Under the order reference , select No preceding documents required  for the order required field.
    Click on save.
    Now you can use this Delivery type to create return deliveries by using transaction VL01NO.
    Note :- The above solution is provided for your question but is not recommended as Best Practices.
    Thanks
    Murtuza

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

  • Is there a way on CONVERSION to create a sales order with a scheduled ship date in the past?

    Is there a way on CONVERSION to create a sales order with a scheduled ship date in the past?
    Customer wants to maintain the original scheduled ship date on converted ordered, but the scheduled dates is defaulting to sysdate for past due shipments on converted orders.

    Hi Friend,
    As of now there is no functionality to display SSD,RD,PD backdated, max it can be sys date, not lower then that.
    Regards
    Shyam
    Please see following Metalink Note ID for all in One solutions
    Oracle E-Business : All In One Metalink Note ID's
    If you are happy with the Document, please mark as Helpful by doing so this will provide assistance for other people looking for answers to their queries.

  • CProjects 4.0 - prj linking to multiple sales order

    Can a cProject Id be linked to multiple sales order? Please fwd. some/any documentation in this regard to [email protected]
    How do I create an internal order from cProjects - I intend linking this internal order to multiple sales order?

    Hi,
    The only link between Project and Sales order is as follows:
    In the sales order screen (VA01) go to line item and double click on same -- go to account assignment screen. There is a filed ‘WBS’ is available.
    You can copy your Project WBS and link sales order to project. You can link as many as sales order to same WBS using same link. There are standard reports also available to check the link. But don’t forget to tick the check box of ‘Billing element’ at the WBS header to run the link smoothly.   
    Enjoy SAP….
    Don’t forget to give points if its useful ans.
    Namskar,
    Ketan Dave

  • Create directly an IDOC for a sales orders

    HI,
    I would like to know if it exists a program to create an output IDOC for a sales order directly as does the program
    RBDSEMAT for materail / product.
    With RBDSEMAT we give the product's numeber the message type and the logical system.
    Of course before was customizing all the ALE flow.
    But for sales orders (VA02 / VA01) I don't find any program which allow us to have the same function.
    Does this program / function exist? I want juste to give the sales order number  the logical system and the message type.
    Thanks you
    Henri

    Funtion Module IDOC_OUTPUT_ORDRSP is used by standard SAP when output determination is used. I think you can populate the control record and use this function module directly. This will return the IDoc data, but the IDoc will not exist on the Database.

  • Re: Creating credit memo with reference to Sales Order in ICWC

    Hello gurus
    I am new to CRM and we hv ECC 6.0 & CRM 6.0 in our environment.
    We have a process where a Credit Memo Request is created with reference to a Sales Order.
    Now till this point we had launched VA01 in the ICWC and were creating the CMR with reference to the Standard Order.
    Henceforth we want to move this to the CRM ICWC.
    In ICWC we create Standard Sales order using Work Center IC_BT_SLO tied to the Navigation profile.
    I am looking for some way of copying this order to a Credit Memo Request in the ICWC.
    I tried adding the Complaints button on the navigation profile ... however it creates a new CMR ... not sure how to enable copying it from the Original Sales order in ICWC
    Any thoughts ?
    Thanks
    Vinit

    closed
    Edited by: vinit parkar on Sep 1, 2011 4:25 PM

  • Error when trying to create a delivery note from a sales order -  Internal error (-2010) occurred

    Hi
    I am trying to create a delivery note form a sales order in B1 V9 PL8 and I am getting the following error -
    Internal error (-2010) occurred
    The code has been working but we seem to be getting problems now
    Can anyone suggest anything please ?
    Copy of the code attached
    Thanks
    Andy

    Hi Andrew,
    Try replacing this line:
    odel.Lines.BaseLine = lineno - 1
    with this:
    odel.Lines.BaseLine = oorder.Lines.LineNum
    Beni.

  • XVBAP has the new line item but does not update Sales Order

    Hi
    I need to update the sales order with a new line item when the line item has a base unit of measure as the sales unit. I need to then convert the base unit to sales unit with a whole figure and the rest can be in the base unit.
    I am able to see the update in the xvbap but the line item doesn't get updated.
    I am puting this code in a perform within
    MV45AFZB  within   Form  USEREXIT_CHECK_VBAP
    But I guess I am doing something wrong can someone please take a look at it and tell me what is wrong with the coding.
    *&  Include       ZSD_CREATE_NEW_LINE_ITEM              *
    *&      Form  create_new_line_item
          text
    -->  p1        text
    <--  p2        text
    FORM CREATE_NEW_LINE_ITEM .
      CONSTANTS: C_MEINH LIKE MARM-MEINH VALUE 'CSE'.
    Variables Used
      DATA: WS_WMENG LIKE VBEP-WMENG.
      DATA: INPUT  LIKE VBAP-KWMENG,
            WS_EA  LIKE VBAP-KWMENG,
            WS_CSE LIKE VBAP-KWMENG.
      DATA: WS_MVKE_VRKME LIKE MVKE-VRKME.
    Internal Tables and Structures
      DATA: WS_XVBAP LIKE XVBAP.
    DATA:
    it_vbap  LIKE vbap OCCURS 0 WITH HEADER LINE,
    it_vbep  LIKE vbep OCCURS 0 WITH HEADER LINE,
    it_xvbap LIKE vbapvb OCCURS 0 WITH HEADER LINE.
      DATA: BEGIN OF WS_MARM,
              MEINH LIKE MARM-MEINH,
              UMREZ LIKE MARM-UMREZ,
              UMREN LIKE MARM-UMREN,
            END OF WS_MARM.
      CLEAR WS_MVKE_VRKME.
      SELECT SINGLE VRKME INTO WS_MVKE_VRKME
        FROM MVKE
        WHERE MATNR EQ XVBAP-MATNR
        AND   VKORG EQ XVBAK-VKORG
        AND   VTWEG EQ XVBAK-VTWEG.
      IF VBAP-VRKME <> WS_MVKE_VRKME.
       LOOP AT XVBAP.
          SELECT SINGLE MEINH UMREZ UMREN
            FROM MARM
            INTO WS_MARM
            WHERE MATNR = VBAP-MATNR
            AND   MEINH = WS_MVKE_VRKME.
          IF XVBAP-MEINS <> WS_MVKE_VRKME.
            IF NOT XVBAP-KWMENG = 0.
              WS_WMENG = XVBAP-KWMENG / WS_MARM-UMREZ.
              IF WS_WMENG > 1.
    This means that the line item needs to be split into CSE & EA
                  INPUT  = XVBAP-KWMENG.
                  WS_EA  = INPUT / WS_MARM-UMREZ.
                  WS_CSE = WS_EA.
                  WS_EA  = WS_CSE * WS_MARM-UMREZ.
                  WS_EA  = INPUT - WS_EA.
    Now we have the qty. split into EA & CSE. Now to
    assign it to xvbap
                  XVBAP-KWMENG = WS_EA.
                  XVBAP-VRKME  = WS_MVKE_VRKME.
              READ TABLE XVBAP WITH KEY POSNR = XVBAP-POSNR.
                MODIFY XVBAP INDEX SY-TABIX.
                  WS_XVBAP = XVBAP.
                  WS_XVBAP-KWMENG = WS_CSE.
                MOVE-CORRESPONDING WS_XVBAP TO XVBAP.
                INSERT XVBAP INDEX SY-TABIX.
              ENDIF.
            ENDIF.
          ENDIF.
      ENDIF.     " IF xvbap-vrkme 'EA'.
    ENDFORM.    " create_new_line_item

    Hi Clark,
    Pls check the Include MV45AFZZ instead of the one which you are using . Here in this include MV45AFZZ you can have access to the Header and Line items data .
    Here in this include
          FORM USEREXIT_SAVE_DOCUMENT                                   *
          This userexit can be used to save data in additional tables   *
          when a document is saved.                                     *
          If field T180-TRTYP contents 'H', the document will be        *
          created, else it will be changed.                             *
          This form is called at from form BELEG_SICHERN, before COMMIT *
    form userexit_save_document.
    Endform.
    Either you can write the code you want to update the XVABP table here or you can use the form .
          FORM USEREXIT_MOVE_FIELD_TO_VBAP                              *
          This userexit can be used to move some fields into the sales  *
          dokument item workaerea VBAP                                  *
          SVBAP-TABIX = 0:  Create item                                 *
          SVBAP-TABIX > 0:  Change item                                 *
          This form is called at the end of form VBAP_FUELLEN.          *
    form userexit_move_field_to_vbap.
    endform.
    This are the 2 performs in this include where you can do you code and it will defnitely solve your problem.
    Good Luck to you . Let me know if your problem get solved.
    Thanks & Regards,
    Naidu.

  • Do I need to create billing for FD (free delivery) sales order

    Hi
    I have a question. I created first a sales order (FD) in our sap system. but I don't know whether I need to create billing for the FD order. when I try to create billing for this FD order, SAP cannot to process it.
    I also research configuration. in VOV8, SAP not set billing function.
    thanks
    Henry

    Hi henry
    If you have created Free of charge delivery (FD) sales order then the item category will be KLN only.After PGI then stock level will reduce  and the effect of the stock is that you are issuing stock to  customer at free of charge.And as you have assigned cost center then the data will flow to the controlling area and the Financial document  after  PGI.
    Secondly if you assign TANN as a item category and do delivery and then PGI then if the reference document is different then it will have affect as the KMN and TANN item categories doesn't have same features
    Regards
    Srinath

  • Creating Mulitile Billing documents based on Sales order

    Hi All
    My requirement is to create a billing documents based on sales order. Item category is SERVICE.
    For example : In Sales Order the quantity is 100.
    1 st billing doument user can create of 10.Then after 1 month 2nd billing document of 9 and so on.
    when i create billing document related with sales order . the billing document is created with 100 quantity.
    i know it is possible with delivery but my requirement is billing document should be created related to service.
    Appreciate your time.
    Thanks and Regards
    Mahesh

    Hi ,
    You can use mile stone billing concept for this requirement.In mile stone billing ,we enter the billing dates and quanitity to be billed.We can bill the required quantity once the billing date reaches the system date.
    Hope it helps.
    Regards,
    Pasapula.

  • Inbound idoc to create outbound delivary with ref to sales order

    Hi,
           I am getting and inbound idoc from the external party to create Inbound delivary with reference to sales order.
           But my inbound process code FM(IDOC_INPUT_DESADV1) checking PO no. and item which is NON SAP PO no. and item in idoc.  So, it is giving error PO doesnot exist in the system .
           I want to create Inbound delivary with ref to SO not with reference to PO.
            Pls check techincal details which i am using for inbound process :
            Process code : DELS
            Inbound FM    : IDOC_INPUT_DESADV1
            Message type : DESADV
             Idoc : DELVRY05
            Kindly help me.
    Regards,
    Manoj

    Hi,
    For creating inbound Purchase Orders, you can use Idocs PORDCR1.PORDCR101 or PORDCR1.PORDCR102. I have used this and they are working perfectly for us.
    Reg,
    NJ

Maybe you are looking for