Corruption of sales un ms when changing sold-to while creating return order

Hi Gurus,
I'm recalling my message
Edited by: Akin Ozak on May 28, 2008 10:54 AM

i've decided my problem is invalid

Similar Messages

  • Serial number copy functionality when creating return orders from standards

    Hi all,
    Serial number is not copying when i create return order from the standard orders in below scenario.
    I implemented one BADI for copying Serial number to Sales order when doing Post goods receipt.
    So after doing inbound delivery and PGR, serial number is copied to the sales order but when i create return order with reference to the Standard order Serial number is not copying.
    When i go VA02 for standard order and selecting the technical objects then if i create the return order serial number is copying.
    Please help me in the above issue.
    I used the following logic to copy serial number from inbound delivery PGR.
    UPDATING THE SERIAL NUMBER TO THE RESPECTINVE SALES ORDER LINE ITEMS
                CALL FUNCTION 'SERNR_ADD_TO_AU'
                  EXPORTING
                    sernr                 = lwa_sernr-sernr
                    profile               = 'NEOP'
                    material              = lwa_mseg-matnr
                    quantity              = 1
                    document              = lwa_mseg-kdauf
                    item                  = lwa_mseg-kdpos
                    debitor               = lwa_mseg-kunnr
                    vbtyp                 = 'C'
                    sd_auart              = lv_auart
                    sd_postyp             = lv_pstyv
                  EXCEPTIONS
                    konfigurations_error  = 1
                    serialnumber_errors   = 2
                    serialnumber_warnings = 3
                    OTHERS                = 4.
                IF sy-subrc = 0.
                  CALL FUNCTION 'SERIAL_LISTE_POST_AU'.
                IF sy-subrc EQ 0.
                  COMMIT WORK.
                  WAIT UP TO 2 SECONDS.
                ENDIF.
    Edited by: Rajesh Sanapala on Feb 16, 2009 12:48 PM

    hi.
    I have the same problem.
    Can you please share how you solved it?
    thank you
    Bill

  • Sales BOM not exploding automatically while creating an order

    Hi CRM experts,
    While creating an order in CRM, the sales BOM is not exploding automatically. It explodes when doing a request download of it and then entering in order.
    Found that the FM CRM_BOM_EXPLOSION_EC is responsible for exploding the BOM and it is being called as an event call in CRMD_ORDER.
    CRMD_ORDER is making this event call successfully in development but not in quality system.
    Could you please provide help in this regard.
    Regards,
    Santosh

    Can you elaborate what happens when  the BOM explosion happens in Quality System ?
    Do you see a dump , message or exception in your WebUI ?
    If you see anything above mentioned do post for more information.
    Regards
    Kavindra

  • Err: Budget Exceeded(when int.order changed in asset) while creating invoic

    Hi All,
    Hope you are all doing wonderfull !
    We have created a statistical order type and wanted to assign them to assets as we don't wanna settle thoze expenses,but needed only for statistical purpose.
    It was okay, when we have changed them in asset master. However, we could not change them in already existing PO's, so when we are trying to create Invoices for the PO's having old internal order number, it is shooting us an error " item xxx order xxxxxx budget exceeded?
    Please let me know how to proceed further to clear this problem.
    Thanks
    Sri

    Hi Sri,
    Can you please elaborate a bit on your scenario. Have you assigned an internal order in asset master record.
    The internal order in asset master record has different purpose. It is used when you want to post depreciation of that asset to internal order.
    Regards
    Chetan.

  • Getting Error while creating multiple Orders using Sales order Create BAPI

    Hi,
    I am trying to create 2 orders thru the Sales order create BAPI before I commit and save the orders. The Orders are getting created and the BAPI is coming back with success, but it is not setting the system status on the line items of the 1st order. So when I try to cancel the line items on the first order I get the error 'No status object is available for SDI 4924/10' . I would really appreciate if anyone has encountered such error before and could help me out with the reason for this error and the possible solution.
    Thanks in advance,
    David.

    Hi,
    Check the following link:
    http://www.sap-img.com/bapi.htm
    Regards,
    Bhaskar

  • Condition Type to be excluded whil creating Return sales Order from invoice

    Hi Frnds,
    I have the following requirement.
    Sales order order is created and its delivered and invoiced too. This sales order has some freight pricing condition types (RCD1, RCD2...)included since its shipped to customer.
    When the customer wants to return the goods, there is a return sales order is created with reference to the invoice created above. Now, the RCD1 and RCD2... should not get copied to return sales order.
    How do i achieve this? Please let me know any user exit, BAdi or Enhancement spot where i can add code to avoide these condition types from being picked up.
    SAP system is ECC 6.0
    Regards.,
    Karthick C

    It can be achieved by implementing a custom requirement routine. If you go to the the transaction VOFM, you will find "requirement" in MENU. You select 'Pricing' on drilling-down it. Following document may help you in creating requirement routine..
    http://saptechsolutions.com/pdf/VOFMCopyRequirementRoutines.pdf
    All requirement routines has similar pattern of writing... Your code may look like as follows:
    FORM KOBED_901.
    sy-subrc = 4.            "By deault condition is false.
    If NOT XKOMK-AUART = 'RE'.                   "RE is returing order type.
       sy-subrc = 0.        "This means For other than returning orders all others condition is true.
    endif.
    ENDFORM
    Once you activate routine, ask functional consultant to attach this to the Condition RCD1 and RCD2. Then, You'll not get RCD1 and RCD2 for Return sales Order.
    Please check and confirm and revert back if you want further details..
    Edited by: Pikle Audumbar on Oct 17, 2009 1:09 AM

  • Enhancement to change the quantity while creating outbound delivery

    Dear All,
    Is there any enhancement to change the Actual Quantity while creating the Outbound delivery.
    I have tried using the BAdI LE_SHP_DELIVERY_PROC in the method CHANGE_DELIVERY_ITEM. But i am not able to change the quantity. In the runtime it allows me to change the quantity. After saving the document the quantity is not changed.
    I do not know what all are the parameters and fields to be passed to change the quantity. If anyone knows please help me.
    Anyone guide me to do this requireemnt.
    Thanks & Regards,
    M.Ashok kumar.

    Hi Ashok,
    I have a similar issue, i have done the same as you did by changing the fields LFIMG_FLO and LGMNG_FLO.
    But though Delivery qty is getting update but picking qty is remaining the same.
    Suppose when user give Delivery qty as 8 and Pick qty as 8, i am able to change the delivery qty to 5 but not Pick qty to 5.
    can you please let me know how to acheive it.
    Regards,
    Kartheek.

  • Error while creating "RETURNS" as ERP Sales transaction type

    Description: We are getting error while creating ERP SLO type "Returns-ZRE". Message prompts as "Creation of ERP Transaction failed". We do not get the message for other order types for example "Standard order".
    Please suggest. Please note that this is an ERP sales order in CRM UI not a CR< sales order.
    Thanks
    Shree

    Is this only for a particular order type?
    As stated above this can be to do with user authorisations or the trusted RFC set up. Some things to check are:
    - ST22 dumps in ECC
    - ST01 authorisation trace for the user in ECC
    - Trusted RFC connection set up

  • Free Goods not flowing when creating return order through invocie reference

    Hi ,
    we have configured free goods scenario for our client.
    Free goods are determined in sales order based on condition maintained
    In sales order Tan ,and Tann item category are determined and based on SO , delivery and billing type (F2 ) happens.
    Now we are creating the RE  return order , with reference to Billing document F2 , on copying the items , system is only copying the main goods article and free goods item cannot be determined .
    we have done the following configutration ,
    Item category assignment as RE  NORM  REN RENN  (free goods )
    Below detail of  Copy controls
    1)  F2 to ZRET
    Header level
    data type 051                  copy requiremetn 001
    data type 301
    data type 003
    Item level
    TANN  to RENN
    Data type151           copy reui 303 
    data type 102
    data type 002
    condition 251
    can you please check and confirm , how this can be handled or pls give me the config steps
    Thanks

    Hi
    If you want to happen this, you should assign the free goods procedure to the combination of Sales orgDistChDivDoc Pr ProcCust Pri Proc
    Thanks,
    Ravi

  • Problem when using BAPI to create return order

    Hi All,
    I need urgent Information.
    I am using BAPI_CUSTOMERRETURN_CREATE and BAPI_CUSTOMERRETURN_CHANGE to create and change quantity of return order. In both cases I am getting the result that quantity value is not getting updated.
    are these BAPIs are correct to fulfil my requirement, if yes could you please clarify?
    other wise, can I use BAPI_SALESORDER_CREATEFROMDAT2 and BAPI_SALESORDER_CHANGE?
    and could you please some details about quantity change in Outbound delivery?
    I am using BAPI_OUTB_DELIVERY_CHANGE for this

    Hi
    <u>You need to do exeute a BAPI_TRANSACTION_COMMIT after the succesful execution of both the function modules BAPI_CUSTOMERRETURN_CREATE and BAPI_CUSTOMERRETURN_CHANGE.</u>
    <b>I mean, please insert CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'  function module in the program, after each function module call</b>. 
    Hope this will help.
    Please reward suitable points.
    Regards
    - Atul

  • Referencing condition values when creating return order is wrong...

    Hello Experts,
    Lets say I have a billing document that has 3 line items namely material A, B and C.
    Now, I created a return order for material A with 2 separate line items because of different
    storage locations. Now, is there a user-exit that lets my 2nd line item copy the condition values of the
    1st line item of the reference billing document? because they are of the same material(A).
    Currently, we are having problems when creating a return order having multiple line items of the same material
    because the succeeding line items copies the wrong condition values of the referenced billing doc.
    For example:
    Original billing document:
    Material      Discount
    A          100
    B          200
    C          300
    Return Order:
    Material     Discount
    A          100
    A          200
    A          300
    The succeeding line items of my return order must point to the first line item since they are of the
    same material. Hope you can help me guys. Thank you and take care!

    You may need to explore in the copy control definition, especially the pricing type defined. Check if any customized requirements exists for condition which checks w.r.t to the document number instead of reference document number item.

  • Settlement Parameter change while creating maintenance order

    HI ,
    I am creating maintenance order PM  through transaction IW21 while saving the order based on revison the settlement profile has to change . i am using userexit IWO10009.
    Please send the replay.
    Thanks in Advance.
    Thanks
    satya

    Hi,
    Use this exit for settlement rules. IWO10027 :  User exit: Generate user-defined settlement rule
    Regards
    Ahsan

  • Change Request demanded while creating a Sales Order

    Dear All,
    I am creating a Sales Order. The solution is using user exits to communicate between SD and TEM.
    Whenever we create a Sales Order its corresponding sales order and line item is updated in TEM table HRVPAD25.
    While saving the Sales Order, its asking for a Change Request which is by default the Customizing Request created for functional configuration of that particular solution.
    Sales orders however are created successfully.
    Can anyone throw some light on the issue?
    regards,
    Prosenjit.

    Solved

  • Issue when changing a PO: it creates a new output record automatically

    Hello,
    The goal is to prevent that a new output record is automatically attached to a purchase order after a change has occurred.
    Current situation:
    Create a PO for holding and an output record is created for output type ZHP1.
    Release PO.
    Print the PO in ME9F.
    Change the condition record in MN05 and change the language of the print to a different language than the one of the supplier.
    Change the PO by adding some header text, the system adds a second output on the purchase order in the language of the cond record.
    This should not happen.
    Any idea how to achieve this goal rather via customizing than new implementation/changing the SAP standard code!
    Thank you in advance.
    Aydin

    Hi, I'm working with Aydin on this issue.
    It creates the second message on the PO and if processed via ME9F then it prints.
    But we dont want even that the second output gets created.
    We do not work with version management so changes to PO do not create second message.
    This second message comes up because language code has been changed in MN05 (one time change) after the first print.
    System sees that first message on PO is with language A and now condition record is with lang B.
    So If I change any little thing on the PO just to trigger message redetermination, it attaches a second output in the lang B. 
    If I dont change language code in MN05 and I still do my little change on PO, then it does not attach a second output message (which is good for us)
    I thought the only way out is to write a requirement program that would check that if a message already exists on the PO for that output type then dont create a second one. What do you think?
    Marc
    Edited by: mmlafe on Jan 3, 2012 5:02 PM

  • How to change workcenter in my routing while creating producton order?

    we have 4 workcenters in routing.
    PP guy configured the system in such a way that when production order is created, it will by default assign 1st workcenter in the routing as work center.
    I need to write prg to change the work center in the routing for that production order accroding to the free capacity on workcenter.
    I know which workcenter i need to assign to the production order in my routing.
    i am using enhancement ppco0007 for assigning workcenter to the produciton order automatically according to the free capacity.
    Can any one please suggest me if i am wrong in selecting the enhancement or ehat r the fields that i need to change to assign diffferent workcenter to the production order...
    thank you very much in advance...
    Any hint is very much appreciated..
    Points will be given for sure...

    Hello Lavanya,
                          You have to use the enhancement "EXIT_SAPLCOBT_001" for updating the Work center in Production order. You need to query to the table CRHD with the field value ARBID to get the work center number . This field is existing in the enhancemnet that you had mentioned before. Try that enhancement as well. That also may work.
    Let me know how it goes.
    Thanks,
    Greetson

Maybe you are looking for