Fields required for linking production order with sales order

I need to link production order and sales order to get the part no#. need to see in md04.

The link between production order and sales order can be made by using the KDAUF KDPOS fields of AUFK or AFPO and linking them to VBELN and POSNR of VBAP.
Regards,
Rich Heilman

Similar Messages

  • To create a return order with sales order as reference in CRM.

    Hi guys,
    How do i create a return order with sales order as reference in CRM. Is CRMD_BUS2000115 the transaction for this?? and if yes how do i pass sales order as reference??

    Hi,
    While archiving the documents, the backup of the documents (Archive FIles) would have been taken. Using the archive file, you can reload the required documents and do your transaction.
    It is better to check with your technical team to do the same.
    Regards
    Vijay

  • How to link Material Document with Sales Order

    Hi,
    When we receive stock through MFHU transaction it becomes sales order stock. The movement type used to receive these into stock would be 131 for MTS & 131 E for MTO. My question is how link Material Document (MKPF/MSEG) with Sales Order because later using that sales order and line item I want to get the planned order number in SAP from PLAF table.
    Thanks & Regards,
    Balaji Viswanath.

    Hi,
    To refer to Sales order you have to go to Purchase order .
      Step1 -From MSEG table you can get  the EBELN ( PO)  EBELP 
      BWART (Movement  Type).
      Step2-Now go to EKPO and retrieve all the PO EBELN, LABNR corrresponding
      to the PO  found the MSEG table.
      Step3-Now go to the VBAK for Sales order Header record and compare the field 
      VBELN = EKPO-LABNR+0(10) and to rerive Sales order item go to VBAP and
      copmpare the fields  VBELN = EKPO-LABNR+0(10)  and
       POSNR = EKPO-LABNR+10(5).
    Thanks
    PK

  • How to link Down Payment with Sales Order

    Hello Experts,
    How to link a down payment with sales order.
    Regards,
    Shazad

    Hello Shazad,
    You may check these threads first:
    Down Payment Invoice/Request
    Re: Down Payment Invoices
    Thanks,
    Gordon

  • How to make Different Price for same product in one Sale Order

    How can i customizing my system?
    I need to sale for different price same product A in one sale order. And price condition type cant be manually. i can separate them by position. for ex. in first position: product A is one price and in 2nd product A with discount. i tried to do it by changing a price group for 2nd position to determinate a discount condition but it generates invoice split.
    Someone have any suggestions?

    Hi
    you can have it automatically determined after some custo and using userexit_pricing_prepare_tkomp in MV45AFZZ and RV60AFZZ.
    The idea is to use ítem category field (PSTYV) as a part of pricing data to determine different prices for same material by changing manually ítem category when creating a sales order
    - you'll need to create a new ítem category copied from the one you´re using and do all assignments
    - add field PSTYV, if not there, to pricing field catalog. This thread has an example on how to and coding required for userexits
    http://scn.sap.com/thread/1693234
    - Adjust your pricing sequence as per new table
    - Maintain specific prices in new table for materials with this new ítem category
    Finally, when creating a sales order change, when required, default ítem category by new one to get specific price for material.
    Regards,
    JM

  • Production order with sales order in MTO

    Using SAP ver 4.7 for make to order scenario.
    Presently production order creation is automated. At the time of creation of sale order the production order is created in the background.
    Now wants to create the Production order manually with reference to a sale order.
    Where this needs to be configure. Kindly advise.
    Thanks
    anya

    Hi Anya,
    Nice to meet you,
    I am Ram, working as CRM and SD consultant in a client palce. I want to know how to generate a production order automatically in back ground while creating a sales order.
    and How can we inform this production order to the production department.
    I request you to please educate me on this issue, your help is most awaited, and will be highly appreciated.
    thank you

  • Query for calculating raw material requirements for the remaining quantities in sale order.

    Dear SAP Experts,
    Clients requirement :
                                         Client wish to know the quantities of raw materials needs to run the production order inorder to complete the remaining quantities in sale order.
    Need Clarification:
                                  I"m using the below query for this requirement. I wish to know whether this query suits for my clients requirement or not. If its so, I need to know how to group by T4.[Code] (Raw material Name)   and need to get the sum of    T4.[Quantity]  (BOM quantity)      and  (T1.[OpenQty]*T4.[Quantity]) as TOTALQTY under each raw material group
    SELECT T0.[DocNum], T0.[DocDate], T0.[CardCode],T0.[CardName], T1.[ItemCode], T1.[Dscription], T1.[Quantity] as salesorderQty , T1.[OpenQty], T2.onhand, T4.[Code] as Raw material Name,T4.[Quantity] as BOMQTY,  (T1.[OpenQty]*T4.[Quantity]) as TOTALQTY FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.[DocEntry] = T1.[DocEntry] INNER JOIN OITM T2 ON T1.[ItemCode] = T2.[ItemCode] INNER JOIN OITT T3 ON T2.[ItemCode] = T3.[Code] INNER JOIN ITT1 T4 ON T3.[Code] = T4.[Father] WHERE  T0.[DocStatus] ='o' 

    You're posting in the Portuguese B1 space.
    You might want to post in the English one: SAP Business One Application

  • Link of contract with sales order

    Does anyone know how to link sales order with warranty contract.i want the query or even table name will work.

    Check the OKC_K_REL_OBJS table

  • Purchase Order with Sales Order Reference

    Hi Gurus,
    I have created a Purchase Order with reference to Sales Order.Now when I post Goods Receipt Mvt 101 system throws a message Update Control of Movement Type is incorrect.
    I have checked in customizing Transaction (OMJJ) cannot find settings related to this particular scenario.Can anyone suggest where I can update control for posting Goods Receipt for this purchase order.

    Hi, Check in OMJJ ,select Movement type>101
    Here click Update control / WM movement types on the left side , maintain the entries with the 101,
    Movement type indicator -B - Goods movement for purchase order

  • Subcontracting Purchase order with Sales order Reference

    Hi friends,
    I am facing a problem during GR of Purchase order with Acc. Assignment E and Item Cat L i.e. purchase order is MTO and of Subcontracting.
    During GR, system is purposing movement type 543 E instead of 543 O for BOM components. Please suggest how can I get the correct movement type during GR. I would like to appreciate for your kind response.
    Kraheja.

    Hi
    Go to SPRO->Logistic general->Tax on goods movement->India->Movement types.
    Here you will find the group of movement types check which movement types is mantained for the out side movement groups or inward movement.
    also check the Material Master in MRP view if the collective requirements (02) is mantained.
    Regards
    Sujoy

  • Can you add a Purchase Order with Sales Order as its Base Type using DI-API

    Is it possible to set the basetype on a PurchaseOrder document line to 17 to create a document as you would using the Procurement Confirmation Wizard in the UI?
    I am using 8.81 SP00 PL09.

    Anyone?
    We already have code to automatically generate Sales Orders using the DI-API, and if we could automate the create of the Purchase Orders as well, it would save a lot of end-user time.
    We would like to do it with the Base/Target references set so that end users can navigate between them in the UI.
    You can do it with the Procurement Confirmation Wizard, and I would like to know if it is possible to replicate this functionality through the DI-API or if I should move forward by just creating the Purchase Orders without reference to the Sales Order and using a UDF to tie them together.

  • BDC for notification with sales order

    Hi,
    I have to code a BDC program for IW51 :  Service Notification with sales order.
    The problem is that in simulation mode (SHDB) the button "Sales order" is not working !!!
    although it works well in transaction mode!
    please help!
    A+
    Ihsen

    hi all,
    so anyone came across any BAPI or FM that creates Orders from Notification.
    My requirement is similar to "Order Explode" functionality in WPS1 transaction (MEB). For two notificaitons, if the task list having the same operation and same type, then a single order gets created.
    I want to know whether any FM/ BAPI is available that creates Order in reference to Notification. I just want to simulate Order creation.
    Waiting for reply.
    Debs

  • Goods valuation with sale order stock

    use S price valuation material, goods have production order ,with sale order stock, when the produciton order have GR, the goods stock value do not use standard price for material accounting view,why ? what problem? use standard price valuation sale order stock is standard program for the SAP system ? this is very touchy problem.

    make sure that for the final product manufactured in accounting view u have maintinaed the price contrlo indicator as S
    and if still error comes then let me know system would be showing the  actual cost and planeed cost
    if there is variance then system is goingto post that to the cost difference account

  • Business Content for Product Cost by Sales Order

    Hi,
    We need to do reporting on costs associated to Sales Orders. The corresponding R/3 Area is "Product Cost by Sales Order" in Cost Object Controlling. We have looked at the standard cube for Cost Object Controlling (0PC_C01) but this cube only contain costs related to manufacturing orders, whereas we need to look at costs associated with sales orders after Result Analysis.
    Have you guys any ideas which content that might support this, if any?
    Many thanks!
    / David

    Hi Christian,
    please refer to SAP Note 584791: <a href="https://websmp208.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=0000584791&nlang=E">BW-BCT-CO: Costs not extracted on sales orders</a>.
    Unfortunately there's no DataSource providing the data you need for your analysis scenario. A custom development is needed (<i>awful!!</i>)
    <b>Note 584791 - BW-BCT-CO: Costs not extracted on sales orders</b>
    <b>Symptom</b>
    In R/3, costs are posted directly to sales orders. The costs have to be analyzed in the BW system. In the standard system, however, this data is not extracted into the BW system.
    <b>Other terms</b>
    0CO_OM_OPA_1; 0CO_OM_OPA_6
    <b>Solution</b>
    1. There are currently no DataSources for costs on sales orders in the standard BW Business Content. Unfortunately, there are currently no resources scheduled for a new development in this area either.
    2. Therefore, the DataSources and the Business Content must be created in the customer project within the framework of consulting as a customer solution concerning the generic extraction options of the BW Service APIs or function modules you have programmed yourself for extracting data.
    3. Technical background information about costs on sales orders:
    The transaction data is available in the following R/3 tables
    COSS and COSP - Totals records or COEP - Line items.
    This concerns records for the VB* object numbers.
    The master data of the sales orders is contained in the VBAK and VBAP tables.
    The 0CO_OM_OPA_1 and 0CO_OM_OPA_6 DataSources only extract costs for orders with master data in the AUFK table. These types of requests always have OR* object numbers. Therefore, these DataSources cannot be used for sales orders.
    However, you may be able to assign requests from the AUFK table (for example, maintenance orders or production orders) to a sales order through the AUFK-KDAUF table field.

  • Product cost by sales order - conceptual clarity required

    Hi,
    We are a manufacturing company with both Make to Stock and Make to Order Scenarios. In cost object controlling, we have made the settings for product cost by order. Now, the question is whether product cost by sales order is a mandatory setting in MTO scenario. I understand this is a conceptual question but i never got the clarity after reading help files, threads and blogs.
    I'll put down my understanding - pls correct me.
    If i do the product cost by sales order, there will be a statistical cost object ie sales order. Now every cost incurred (with a component split) will be recorded stastically in the sales order in case of production orders created from S.O.s
    If I don't do the setting i cannot get a component wise split for the cost of sales order to do any analyses. but still I'll have the COGS which i'll capture to COPA and take the profitability.
    Can you please give me some more clarity on this scenario? Are there any other factors/ advantages/mandates in product cost by sales order?
    Best Regards
    Vimal

    Hi  Vimal
    Prod Cost by SO is done in the case of MTO.. Here, you have 3 possible scenarios
    A. Only Qty i.e. GR from Prod order is tagged to Sales Order.. Sales order is not a CO Object....
    This scenario is as good as MTS... Only that GR is tagged to SO....
    Your costs are collected on Prod order....
    PGI uses GBB-VAX i.e. does not post to sales order... Billing updates revenue and COGS to costing based COPA
    B. SO is cost obj with non valuated stock (SAP recommends this)
    C. SO is cost obj with valuated stock...
    B -
    Prod Order is settled upon sales order.. GR from prod order does not update any acc doc
    Sales order is settled to COPA.. Here you can use a PA Trf Str where in you have replicated your Cost Comp Str... i.e. You can create as many assignment lines in KEI1 as your CCS in OKTZ and assign each one of them to a separtae value field
    No question of variances in this case
    C
    Prod order is not settled upon sales order.... GR from Prod order updates acc doc.... However, variance from prod order can be settled to the sales order if you create variance account as a cost element... Else, it is settled to COPA
    Upon PGI, the COGS is posted to Sales Order as a single line item
    Here, in your PA Trf Str, you would create an Assignment line and tick "Qty Billed/Delivered".... This would update the Billing Qty to COPA upon settlement of Sales order
    This Qty update will trigger KE4R.... i.e. You need to assign CCS to VF in KE4R for PV=01 and Rec Type = C.... This would update the CCS in COPA as per the Sales Order cost estimate
    The Costing Key in KE40 should refer to "Sales order cost estimate" and not "Std Cost estimate"
    br, Ajay M

Maybe you are looking for