Changing the Assignment of production order in sales order in MTO scenario.

Hello all!
I have following problem:
After the MRP a production order was created for a sales order. Because of the production in another plant
the production order which was created automatically had to be technically completed and a new one
created.
If you want to check now the availability, the sales order finds nothing, because it's linked to the one,
which was technically completed. Now is the question how can I change the production order for this
sales order. (In the production order the correct sales order is connected!)
As I found out it's connected to the field AUFNR in the table VBEP. But how can I change this
field within a transaction and not in the database?!?

No replies

Similar Messages

  • Change the Sold to Party(SP) in sales order in change mode

    Hi,
    Is it possible to change the Sold to Party(SP) in sales order in change mode?
    If yes then How??
    Regards
    Somnath

    Hi somnath,
    It is very much possible to change the sold-to-party in the change mode of Sales order(VA02).
    Goto VA02-->enter the sale order number.
    Press enter.
    In the overview screen if you change the sold-to-party then every thing will be redetermined(Taxes and pricing procedure etc...).These will be determined from CMr etc.
    You cannot change the sold-to-party at the partners tab that is present in the Header details.
    It will be greyed out.
    If you change the sold-to-party at the overview screen as suggested earlier it will not apply to the item.
    You are also going to see this message while changing.
    And finally save the document.
    Regards,
    Krishna.

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

  • User Exit to change the Ship-to party address at Sales Order headder level

    Hi,
    I have requirement like this......
    I need to change the  ship-to party address at Sales Order headder level. for that which user exit i need to  use and which structure i need to use to update the transaction.
    I used : userexit_save_document_prepare, in that i passed data to 'xvbpa' and 'xvbadr' structures. even though it is not update the transaction.
    Please let me know the answer.
    Thanks,
    Satish.

    Hi Satish,
    Step1. Create new Data Copy Routine using Tcode VOFM.
    Step2. *-----------------------------------Ship to Party from contract
       IF CVBPA-PARVW = 'WE' OR
          CVBPA-PARVW = 'SH'.
        REFRESH IT_STP.
        SELECT KTOKD
               A~KUNNR
               NAME1
               NAME2
               A~ADRNR
               FROM VBPA AS A INNER JOIN KNA1 AS B ON A~KUNNR = B~KUNNR
               INTO CORRESPONDING FIELDS OF TABLE IT_STP
               WHERE VBELN = CVBPA-VBELN . 
    Step3.
       CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
            EXPORTING
              ENDPOS_COL   = 80
              ENDPOS_ROW   = 10
              STARTPOS_COL = 10
              STARTPOS_ROW = 5
              TITLETEXT    = 'Your Title'
            IMPORTING
              CHOISE       = T_SELIDX<=====Index No of selection
            TABLES
              VALUETAB     = IT_STP
            EXCEPTIONS
              BREAK_OFF    = 1
              OTHERS       = 2.
    Step4.
           READ TABLE IT_STP INTO WA_STP INDEX T_SELIDX.
            IF SY-SUBRC = 0.
              CLEAR:CVBPA-KUNNR, CVBPA-ADRNR.
              MOVE WA_STP-KUNNR TO CVBPA-KUNNR.
              MOVE WA_STP-ADRNR TO CVBPA-ADRNR. <========Address ID (Change Here).  
           ENDIF.
    Regards,
    Amrendra
    Moderator Message - Please do not reply to old, dormant threads.
    Message was edited by: Suhas Saha

  • Changing the receiving partner in idoc (Outbound SALES ORDER)

    Hi All,
         In my scenario Sales order (ORDERS) outbound is created and it should send to Delivering plant not to the Sold-to party. how to do this in partner profile? Is there is any coding should be written?
    Thank you in advance,
    Adithan S.

    Hi,
      Aveek is right, you only option is to use partner type 'LS'. So you need to create logical systems for these delivering plants, but since setting up 'LS' as the partner function for all the customers requires lots of illogical customizing changes and master data changes, I suggest that you use 'ALE' medium instead of 'EDI'. So that all you need to do is maintain distribution module for any one of these logical system so that output type processing can take place. Later you can use exit 'EXIT_SAPLVEDC_001' to change control record (change recipient to delivery plant).
    Cheers,
    Sanjeev

  • How to change the sequence that VL10 use for sales order during DN creation

    We are using VL10 for DN creation , VL10 is executed in  background as a batch job ..... we have created a variant and have given range of shipping points for which we want to create  the Deliveries.
    What we want to understand is that how SAP standard code for VL10,  sorts the sales orders for which the delivery are to be created using VL10?
    we would like VL10 to process the sales order which belong to same shipping point in some order....so that delivery needs to be created for the first sales order rather than last sales order for a given shipping point....
    Is there any sort order that SAP follows to pick which order it will consider for delivery creation ....first over the other sales order where the shipping happens to be same ?  if yes then is there any way we can change it  ?
    Any guidance is appreciated
    Thanks
    Rajey

    We are facing the same problem and are running at 4.7.
    There are orders with the same goods issue date and if so, it should be sorted by order no.
    Nevertheless, it does not sort it by order no but we could not find yet what the sort criteria is if it runs in the background and how to change these rules.

  • How to change the status of material while creating sales order via BDC

    Hai.
    In BDC while creating sales order( va01 posting ) it is stucking up in middle saying material is new. I.e Sales order (va01) is not  getting created because  of material status is new . I want to create sales order  (va01) even  material status is new.
    pls give me out the solution. Points will be rewarded.
    thanks & regards,
    sami.

    Hi,
    If you drag the line item a little towards the right side, you will find a filed material entered. The one you see in the material filed on sales order over view screen is the one determined. You can as well double click and see the fields material entered and material determined.
    Is there anything else you are expecting to see as part of analysis ?
    Regards
    Sadhu Kishore

  • Changing the Ship-to partner details in Sales order header through exit

    Hi all,
      I have a requirement where in during the process of the sales order creation, based on certain
      criteria, the details in the ship-to partner would have to be modified.
      These details like the Name, Street, etc would be maintained in a local table and based on the criteria,
      the appropriate record from this table would be fetched and updated to the ship-to partner.
      I was trying to implement this in the MV45AFZZ user exit. However, I was not able to update this through the exit.
      Would I have to somehow update the ADRC table directly through this exit or is there any better method.
      Please suggest.
    Regards,
    Sudeep

    Hi,
    If you could not find Street in this Routine call the BAPI BAPI_BUPA_ADDRESS_CHANGE to update Street and required details ..
    Thanks and regards,
    Sree.

  • Product costing by sale order

    Dear all,
    Please tell me the process in product costing by sales order.
    In my client place, i have done the configuration but i dont know the process.
    Please guide me.
    Thanks & Regards,
    AR

    Hi,
    Product cost by sales order is useful when  a finished product is manufactured  for a specific customer rather than for the normal make-to-stock inventory. You can use the Product Cost by Sales Order component in the following situations:
    When you are manufacturing in-house with reference to a sales order in complex make-to-order production
    When you are purchasing customer-specific trading goods with reference to a sales order and reselling them to your customers
    When you are providing services whose costs are assigned to a sales order
    When you want to collect the sum of the actual costs incurred for the sales order item on the sales order item (standard cost of goods manufactured of sales plus variances) For detailed information, refer to the sections Valuated Sales Order Stock and Settlement in Product Cost by Order or Period.

  • Different product hierarchy in sales order and in service order

    Dear experts,
    In VA03, I notice that
    - under Line Item > Sales B, there is a field Product Hierarchy
    - under Line Item > Account assignment, there is a field Order. From here, it links to a service order. In the service order, I can see a field Product Hierarchy too.
    I would like to know if there is an implication when the field Product Hierarchy in sales order and in service order are different. Is it possible that this will cause an inconsistency?
    Usually these two fields have the same value, since the value in sales order is copied from service order. However, in my case, the product hierarchy is changed/updated in service order, but not in sales order.

    Hi,
    We have document pricing procedure maintained at two levels for Sales order or Billing type.
    The pricing procedure is determined based on SAles Area Customer pricing procedureDocument Pricing procedure+pricing procedure.
    Example :For Sales Document type the document pricing rpocedure will be A and for billing type 'B"
    Sales Area1A+Pricing procedure A
    Sales Area1B+Pricing procedure B
    Now A will be maintained in VOV8 and B will be maintained in VOFA.So two pricing procedures.
    Regards,

  • Creation of IBase for Production data or sales order  in R/3

    Hi,
    My client is a locomotive manufacturing Company, They want to track the failure of parts in the locomotive  and any changes made in the locomotive during service.
    Kindly explain your thought on the following:
    1. Here Each locomotive will have an MBOM created for each sales order. We need to create a IBase equivalent to the MBOM in SAP R/3 47. Is it possible to create an IBase with reference to Production order or Sales order. Will it copy all the BOM components to IBase.
    Thanks in advance
    Manik

    Hi Madhu,
    There can be multiple reasons why it does not go to APO.
    Two of the most common overlooked points are:
    1.   ATP tick in integration model.
    2.   Activation of ATP in external system: this is done in SPRO in the data transfer section.
    Another common point is cheking rule: In SPRO see that your business event(SO) is enabled for ATP check.
    Also you can go to transaction CO09 for ATP simulation in R/3 .
    Hope it helps. Otherwise you can revert with specific questions.
    Regards
    Santanu Dawn

  • WBS element , Production Order and Sales Order Link

    HI,
    I have to get the name of the customer mentioned in the sales order. In Sales order line item assignment WBS element has been assigned as this is a sales order for customer specific.
    Now I am doing MRP run against WBS element and getting the planned order.
    After that i am doing Conversion of planned order into production Order with transaction code MD04.
    In the production order, Assignment tab WBS element is showing.
    My query is that against the WBS element and that particular production order how can i trace sales order as well as the customer name.
    Note: The WBS element can be assigned to more than one sales Order line item.

    Asutosh Mahapatra,
    Since each production order is created for 1 unique Sale order number you should see the sale order number on the header screen in production order ( General data tab). Also customer number & name will appear there.
    Hope this helps. Else please come back.
    Thanks,
    Ram

  • Product costing valuated sales order stock

    Hi all,
    We are in complex mfg & currently re-vamping all the ERP SAP instances ( totalling 13 company codes into one single)
    All 13 units( who use NON Valuated scenarios for cost object controlling) wil use valuated sales orders & projects. The old 13 companies will be trated as profit centers with transfer pricing functionality ( Multiple valuations)
    My issue is to get a product cost for sales order in <b>profit center view</b> ( plan cost) exactly same as to the marked standard cost itemisation of the FERT material.
    We mark & release the std cost in Jan & the client wants to have the same itemisation of the cost ( with same values) even if they create a sales order in 2nd or 3rd or last quarter. ( As you might be knowing that the sales order wil always cal;culate the values as per the current qty structure date. In Std SAP date control, there is nothing which allows us to cost exactly the same cost estimate as marked & released in JAn)
    Could somebody pls give pointers as how to get this sales order plan cost itemisation exactly equal to prevously marked & released itemisation ?
    We use the Std costing variant ( Costing Type = Profit center valuation) with Std date control.
    Thanks in advance to all of you,
    Warm Regards
    Dhiraj

    Hi,
    If the sales order stock is valuated, you have immediate access to its value in Financial Accounting. The assigned accounts are debited and credited as a result of the valuated goods movements. From the viewpoint of MRP, the sales order stock is available for the sales order only.
    If the sales order stock is not valuated, it is managed via a cost collector. The system does not carry out invoice verification postings for goods movements, and you cannot obtain an overview of how the stock is valuated until the end of the settlement period in Controlling.
    Valuated sales order stocks have the following advantages:
    The full costs are available at each manufacturing level.
    All goods movements are immediately reflected in Financial Accounting
    Assign points if helpful
    Regards,
    Saurabh

  • Product cost by sales order

    Dear FICO Gurus,
    I come to know that for the above method, production order in company A can be settled to Sales Order item in Company B (with assumption that Company A & Company B are intercompany and assigned to 1 Controlling area.
    My question, under what scenarios that organisations adopt this method of settlement. To me, Company A still needs to report its profitability. Without Purchase Order from Company B to Company A, Company A would not have the revenue to sustain its operation.
    Can anyone share with me, what is the logic for organisation to practice the above mentioned business process.
    Regards,
    -Alice-

    HI,
    It could be a complex MTO scenario and hence the need to track costs on sales order along with revenue.
    Company B - Trade invoice (PR00/PI02)
    Company A - I/C invoice at a predetermined transfer price (PI02/EK02).
    As far profitability, both 'Trade invoice' & 'I/C invoice' are posted to CO-PA for margin reporting.
    Hope this helps.

  • Product wise pending sales order

    Hello,
    From which transaction code we can find out the Product wise pending sales order list.
    thanks
    harish

    Hi,
    Kindly make use of filter options and change layout options.This might help you for report format.But ultimately the details are going to be the same I guess
    In the initial screen if you give the date range you will get the list of pending orders for that particular material and the organizational detail you give.
    Reward points if helpful.
    Regards,
    Amrish Purohit

Maybe you are looking for

  • Firefox 3.6.12 is painfully slow

    Running Windows XP home edition on Asus netbook. All add-ons are disabled except for McAfee site advisor. IE is working with great response time, so it's not FiOS. I am running Firefox 3.6.12. It's been like this since the last update. Please, I need

  • Problem with validating text field

    Hi All i want to validate the text fields present in jsp page for a sturts application.. i have a jsp page for input then struts form for validation as struts machinism provides and if error occurs it add error to error object. i want to display erro

  • CREATING XML TAG W/SPACES and CDATA.  EXPORTED FROM PDF BUTTON

    Hello All, I was wondering if anyone could help with the following when working with livecycle Designer. In our current XML we use in production we have a tag that looks like a.       <action function='Form1650' method='Add' and Action 'Upload' /> Ho

  • [TEMP-WORKAROUND] 290 NVIdia/3.2 kernel tests I've done

    It's not fixed as it is a kernel issue. Link to article in post #5. But there is a workaround in the meantime to at least get you back up and running. I have an up to date Arch x86_64 machine. And an NVidia GTX-560TI. Like others, today's updates bro

  • Video loses audio when using transitions

    On my band's website, I frequently post videos of us rehearsing or playing at a show. Before I upload the videos, I bring them into iMovie, add a simple fade in and fade out to the beginning and end, and then save them compressed so that they downloa