Sale Order & Production Order

Hi! Friends
is there any table that links Sale Order and Production Order.  In a report i need to display the Production order based on the sale order .
as there is no key field for the table MSEG im not able to use it.
i have tried using the table AFPO and a Function Module - MD_MRP_LIST_API but dnt help me
Is there any table that links Sale Order and Production Order.
Thanks and Regards
Kv

TABLES : VBAK,  " Sales Header Data
         AFKO,  " Order Header Data
         AFPO,  " Order Item Data
         AUFK
DATA : IT_VBAK LIKE VBAK OCCURS 0  WITH HEADER LINE,  "To get Customer No,Sales Order Creation Date.
       IT_AUFK LIKE AUFK  OCCURS 0  WITH HEADER LINE, " ORDER MASTER TO GET ERDAT.
       IT_AFKO LIKE AFKO  OCCURS 0  WITH HEADER LINE, "To get Target Qty & Confirm Qty.
       IT_AFPO LIKE AFPO OCCURS 0  WITH HEADER LINE,  "To get Sales Order No.,Material
SELECT * FROM AFKO INTO TABLE IT_AFKO
       FOR ALL ENTRIES IN IT_AUFK
       WHERE AUFNR = IT_AUFK-AUFNR.
      SELECT * FROM AFPO INTO TABLE IT_AFPO
        FOR ALL ENTRIES IN IT_AFKO
        WHERE MATNR IN SO_MATNR
        AND AUFNR = IT_AFKO-AUFNR.
      SELECT * FROM VBAK INTO TABLE IT_VBAK
        FOR ALL ENTRIES IN IT_AFPO
        WHERE VBELN = IT_AFPO-KDAUF.
I.E
AFPO-KDAUF = VBAK-VBELN

Similar Messages

  • To include sales order/ production order characteris in COOIS

    Hi,
    We are using Variant configuration in our project.
    In COOIS transaction, we need to include the sales order/ production
    order (configuration) characterisitcs in the output screen.
    We may need around 20 characterisitcs from sales order/ production
    order to be displayed.
    Kindly help us on how to add these fields.
    Also,we are looking for characteristics in input selection screen of
    COOIS.
    Thanks & Regards,
    Atul.

    Hi
    See these notes
    SAP Note 615206 - COOIS: BAdI order delay in IOHEADER
    SAP Note 806375 - COOIS: Order delay Business Add-In in IOHEADER
    SAP Note 615176 - COOIS: BADI for predecessor status
    SAP Note 434123 - Filling and displaying own fields in information system
    SAP Note 363327 - COOIS/CO26/CO28: Change list of fields that can be displayed
    I hope this helps you
    Regards
    Eduardo

  • BAPI for Sales Order & Production Order

    Hi Experts,
    1)i need to Identify standard  BAPI's for Sales Order & Production Order.ie for one BAPI need both sales order and production order.
    2)i need to Identify standard BAPI to return delivery number and shipment number for a particular Sale Order. If any one give me answer thanks for advance. it's really helpful for my project.
    thanks and regards,
    bala.

    Hi Bala
    Kindly do not open duplicate threads for the same topic. Help to close one thread and continue with the other to avoid confusion.
    Kind Regards
    Eswar

  • Sales order / production order

    Hi
    In sales order / Production order when they run KKAK - RA there are 5 orders that is not showing up but when they reconcile it to GL there is a difference in the amount of these 5 orders are showing up as negative and these 5 orders are in WIP. what could be the reason for not showing the 5 orders in the report.
    Thank you.

    <b>Sales Order Tables:</b>
    VBAK Sales Document: Header Data
    VBAP Sales Document: Item Data
    <b>Production Order Tables:</b>
    AFKO Production Order Header
    AFPO Production Order Position (details)
    MAST Material BOM
    STKO BOM Header
    STPO BOM Positions (detail)
    <b>Purchase Order Tables:</b>
    EKKO Purchasing Document Header
    EKPO Purchasing Document Item
    MKPF Header- Material Document
    MSEG Document Segment- Material
    Regards,
    Maha

  • Disabling GATP for planned orders/production orders

    Hi,
    We have a scenario where we need to disable ATP check for production orders happening through GATP. That is, ATP check for production order materials should happen in SAP R/3.  This is a problem because we have activated ATP check in integration models for sales orders and it is happening through GATP.  Production Planning is happeninig in R/3 and we dont have either PP/DS or SNP in APO. ..only GATP.
    any pointers on how the ATP check for planned orders/production orders can be blocked in GATP for the same materials which are active for sales order GATP check?
    Thanks.

    hi Pawan /Prasun /vikas
    Thanks for your helpful answers
    @Pawan : Since we have recently gone live with production planning and its in the process of stabilizing we do not want to enable ATP check for production orders in GATP yet. Also since we are also using batch-determination with ATP check in production orders we still have to check how the system responds with the combination.  Therefore,as of now, we dont intend to switch on ATP for production orders in GATP.
    @ Prasun :  I understand there would be a user exit (EXIT_SAPLATPC_001) which would help in doing GATP check based on order type/business event.  However my concern is if the order does not belong to any of the order types will the system do a normal standard ATP check in APO or it will do a ATP check in R3 ? Our programmers are still looking how to tweak it but any pointers based on your experience will be helpful
    Thanks

  • MRP: how to avoid Purchase orders/ Production orders generation

    Hello,
    I would like to know how can I avoid the generation of purchase orders / production orders for MRP execution. I am interested in knowing which are going to be my future needs for a material running the MRP, but I am not interested in generating any new Purchase order / Production order.
    I've been changing some parameters in the MRP 2 tab: procurement type, but I think that it is also related with MRP type or MRP group or both. With the procurement type I've only been able to change the purchase requisitions to planned orders and viceversa.
    Any suggestions?
    Thank you

    Hi Cristian,
    W/o MRP run you cannot get the requirements at lower level.
    Please understand:
    FG - Stock 10, IndReq 20; Halb - Stock 5; RM - Stock 2
    > MRP run >
    FG - Stock 10, IndReq 20, PldOrd 10
    Halb - Stock 5, DepReq 5, PldOrd 5
    RM - Stock 2, DepReq 3, PurReq 3
    So, via MRP run the requirements are calculated with planning proposals together. As I told you this is material requirement planning, this is the very purpose of MRP.
    If you only want to display the stocks and requirements, create a query / riport for this purpose and use the appropriate filter.
    Csaba
    (sorry, refresh button helps only if you change the PO, PrdOrd, etc > one level under the material you can see the effect)
    Edited by: Csaba Szommer on Sep 2, 2008 1:42 PM
    Edited by: Csaba Szommer on Sep 2, 2008 1:43 PM
    PLEASE NOTICE THAT W/O MRP-generated-PldOrd YOU WON'T GET THE DepReq.
    Edited by: Csaba Szommer on Sep 2, 2008 1:50 PM
    Edited by: Csaba Szommer on Sep 2, 2008 1:51 PM

  • Can we obtain Inspection lots against a Process Order / Production Order

    Can we obtain Inspection lots against a Process Order / Production Order  on time basis i.e hourly or day wise against the same order

    HI
    i think there is no this option.Like Plant maintenance ther is no scheduling tool.
    or you have to go with stability studies...
    -ashok

  • Availability Check in planned Order & Production Order

    Dear All,
    How can I achieve the same Availability Check (missing Parts ) output in Planned Order & Production Order.
    Currently in Availability check in Planned Order is bit different in the sense, I have the Component in Stock without any reservation. But in Planned Order it shows in Missing part.
    But if I convert this Planned Order to Production Order, it is not visible in Missing parts which is correct.
    I want to have the same missing part report for both Planned Order & Production Order.
    Thanks
    Regards'
    Raghu

    Dear Brahmankar,
    Thanks for replay.
    Now i did, the said possibility, in OPJK is different from my Regular material master rule.
    When i see, availability in MD12 it shows the material available, and same as in Production Order check as well.
    But when, I use MDVP, for check. the same planned order shows the same component as missing.
    am i on the right track?
    Please suggest.
    Thanks
    Regards
    Raghu

  • Differrence Between Process Order & Production Order

    What is differrence between Process Order & Production order apart from that process order is used in process industry & other one in discrete mfg ??

    Hi
    there isn't really any difference. The main difference is in master data: Routing vs. Recipe.
    as you have mentioned, prodn. orders are used for discrete, repetitive & virtual mfg scenarios whereas process orders are used for process industries (chemicals, pharmaceuticals etc.,) where the prodn. is non-stop.
    You can use production order or process order for the same scenario even when you are in a process industry. It is your decision to use either one, but you have to know that process order is more appropriate when you have more machine integrations and interfaces. Process order, as well, requires more master data than production order since you are clubbing both BOM & Routing in the master recipe.
    also Process Order can handle batch management and joint production scenario in a better way in comparison to the production order. Also in process order you can maintain the inprocess instructions and special control paramters for production via the process instruction key and control recipe which is not there in a prodcution order.
    hope it helps
    regards
    Srinivas

  • Sales Order, Production Order, Purchase order

    Hi ppl..
         I have a req to pull and report with Pro order # and status
                                                           Purchase order # and status
    for a given sales order .... item level...
    need tables and relations between Production order, sales Order and Purchase Order and there status's.

    <b>Sales Order Tables:</b>
    VBAK Sales Document: Header Data
    VBAP Sales Document: Item Data
    <b>Production Order Tables:</b>
    AFKO Production Order Header
    AFPO Production Order Position (details)
    MAST Material BOM
    STKO BOM Header
    STPO BOM Positions (detail)
    <b>Purchase Order Tables:</b>
    EKKO Purchasing Document Header
    EKPO Purchasing Document Item
    MKPF Header- Material Document
    MSEG Document Segment- Material
    Regards,
    Maha

  • Contract - Sales Order - Production Order

    Hi all,
    i met an error regarding account assignment in sales order.
    i create sales order refer to contract, then my PP consultant wanna create Production order that refer to sales order, but an error appears.
    Error:
    Account assignment cannot be carried out because of different origin no. 
    Message no. V1134
    Diagnosis
    The sales document to which you want to refer is based on sales document 1100000002 and item 000010. Therefore, the settlement and possibly inventory management are carried out using the number of the preceding document.
    1100000002  is my contract number. does anyone has any idea regarding to this error?
    i used requirement class with consumption = E, and  account assignment category = E
    Best Regard,
    Hendry

    Hi,
    This not the error this is system's standard behaviour If you are creating SO with ref. to Contract or Quotation
    at the time of production order system will take ref of quotaion or contract.
    If you want system should show SO some development needs to do.
    reagrds,
    Rahul

  • Sales to Production order link

    Hi All,
    There is a requirment in my project to get the "Net profit per std hour".This is one of the KPIs. And they need the Sales order, material in the characteristics also.
    Basically I need to get Actual sales for a period and the production cost against it,then dividing it by quantity into SMV(Standard minute value). So I need to get the production order total cost for the relavant sales orders.
    Is there a cube that I can use to get the Sales order info and production info both?
    If not what would be the best approach for this?
    Cheers.
    DM

    Can someone please help me out?

  • Costins for Sales order & Production Order

    I require an urgent clarification on the following:
    We are in Producing to Sales Order scenario.  We are using separate costing variants for Sales Order and Production Order
    Sales order is costed first. 
    the valuation variant in the costing variant for Sales order treats material valuation in the following order:
    1. Plan price for the period
    2. Price indicator from the material master
    2. Future standard price
    Then the Production order is released.
    In the Production order, the valuation variant says the material valuation as :
    1. Preliminary cost estimate from sales order
    2. Price indicator from the material master.
    My doubt is since the production order costing variant says the first option for material valuation is 'preliminary cost estimate from sales order', which value of the raw materials will be picked in the Production Order cost analysis ?  Is it from the Sales order costimate as prer preliminary cost estimate or is it as per the price indicator from the material master ?

    I require an urgent clarification on the following:
    We are in Producing to Sales Order scenario.  We are using separate costing variants for Sales Order and Production Order
    Sales order is costed first. 
    the valuation variant in the costing variant for Sales order treats material valuation in the following order:
    1. Plan price for the period
    2. Price indicator from the material master
    2. Future standard price
    Then the Production order is released.
    In the Production order, the valuation variant says the material valuation as :
    1. Preliminary cost estimate from sales order
    2. Price indicator from the material master.
    My doubt is since the production order costing variant says the first option for material valuation is 'preliminary cost estimate from sales order', which value of the raw materials will be picked in the Production Order cost analysis ?  Is it from the Sales order costimate as prer preliminary cost estimate or is it as per the price indicator from the material master ?

  • VC while creation of Planned Order / Production Order

    Dear All,
    Can we Configure Planned Order or Production Order Just Like Sale Order.
    in CO01 / MD11,
    Is it Possible ? If Yes HOW?
    Thanks
    Regards
    Ravi

    Dear,
    It is not possible in standard SAP R/3. Because it is MTO scenario so you need to create sales order first then production order.
    Hope clear to you.
    Regards,
    R.Brahmankar

  • Standard or Suggestions for Engineer-to-Order Production Order Paperwork?

    Hello all,
    I am a business user in charge of production scheduling for a engineer-to-order / make-to-order manufacturer.  We print paper production orders and use these to drive manufacturing in the factory.
    Can anyone point me to information about best practices or suggestions for the production order paperwork?  Like, what information should be on it, and what the format should look like, etc?
    Right now we just have the operations, the produced material number, the confirmation numbers, and the production order header dates.
    Thanks for any advice!
    Timothy

    Hi Timothy,
    Printing of shop floor papers varies from client to client. It depends mainly on ground user requirement on what information he want to see. Users now are refering to standard tcode COOIS to check all the related informations.
    Some fields which are most required to users are as given below. Format should be operation wise information if each operation is performed individually by different users.
    Order Number
    Sales Order Number
    WBS Element
    Material Number and its description
    Order Quantity
    Order Start date and Finish date
    Operation Number
    Operation Quantity
    Operation Text
    Tools details if any PRT is linked
    Confirmation Number
    Reservation Number/Item number if materials are linked to the operation
    Thanks & Regards,
    Ramagiri

Maybe you are looking for

  • Order of dublicated subtree in MM

    Hi folks, I have a weird problem: I map IDOCs to a JDBC structure. I use the JDBC to Insert_Update changes that are transmitted in the IDOC. Now we discovered that the absence of fields in the IDOC leads to these fields missing as well in the JDBC (o

  • How to keep track of songs you already searched out on I-tunes ?

    I love buying songs individually on I-tunes. However if I go to an Artist on I-tunes and listen to all 149 of their songs, then how do I go back at a later date and search out just the songs that were added after the first 149. I don't want to be was

  • Can't create OD replica

    Hi I'm trying to create an OD replica but it won't stick and I get the following in my log file Aug 8 16:14:15 racer slapd[4763]: @(#) $OpenLDAP: slapd 2.2.19 $\n Aug 8 16:14:15 racer slapd[4763]: bdbbackinitialize: Sleepycat Software: Berkeley DB 4.

  • Counter in SWF

    Is there a way to put a hit counter into a flash video?  Or is that something that would need to go into the HTML file?  Also I need it to be invisible, but be able to check it somehow...hah is any of this possible? Thanks! cmo

  • Favicon doesn't show

    I've created an .ico file for a website. The website is not online yet. I am reading it from my hard drive. The favicon appears in Firefox, but not Safari. Can't be sure, but I don't think it is a cache problem. I've trashed the website icons cache e