Prodution Order

Hi gurus,
I am working on an interface where I will be getting the production order number and then based on this order number I need to update some fields in transaction code ... CO11N...such as Quantity produced, reason of variance, batch number and posting date. So what I believe is first I need to pass the order number to the BAPI_PRODORD_GET_DETAIL to get the details of the production order and then update the production order by using the BAPI_PRODORDCONF_CREATE_TT, but my problem is I am new to ABAP I got to know what should be the process but I am not being able to implement it. So basically the program needs to pick the data from the internal table and copy it in SAP. My internal table looks liks
data  :  BEGIN OF it_input occurs 0,
          order_no like afko-aufnr, "Order Number
          opr_no like afru-vornr,      
          quant like afru-lmnga,
          varian like afru-grund,      
          budat(10) type c,      
          matnr like caufvd-matnr, "Materials
          erfmg like cowb_comp-/cwm/erfmg,
          charg like mcha-charg,
                  END OF it_input.
So can you please help me out in this..I mean step by step or if there is any other suitable way.
Thanks,
Rajeev .......
Message was edited by:
        Rajeev  Gupta

Hi
Production Order issued based on the Finished Goods. You cannot issue project or cost centre wise. But You can create one UDF and Mention the Project code or cost centre name.
regards

Similar Messages

  • How to stop the prodution order creating when the product is not valued?

    Hi guyes:
    How to stop the prodution order creating when the product is not valued using CO01?
    I hope that when i create the production order,the system will check the product is valued or not,if not
    the system will show an error or warning message!
    How to config for this?
    Thank you!

    Dear Zhao Gang,
    Check with this user Exits mentioned in this link,
    Prevent Production Order from "Release" if there is no Cost Estimate
    Re: User Exit at Production Order Release
    Check and revert back.
    Regards
    Mangalraj.S

  • Prodution Order Quantity

    Hi,
    Please clarify me when the commited qty in Prodution order component overview will get updated.
    In My case one of my prodution order comitted qty is missing.can any one tell me the possibile resons why this is not getting updated.
    Cheers,
    Kumar.S

    Dear Kumar,
    Sorry wrong reply,
    As mentioned by vinod, it will get updated in production order after availability check  .
    Rgds,
    Manish

  • [SAP WM] Cancel Transfer Order after Technical complete of prodution order

    Hi gurus,
    i have this problem.
    In my SAP WM implementation, i have customizing the PP-WM interface to create automatically the TO from central warehouse to Production supply aera after releasing of production order. The steps are:
    - Release production order
    - Creation of TR  - automatically
    - Ceration of TO to be confirmed (red light) from central warehouse (001) to production supply area (100) - automatically
    Now i would that after technical complete of production order, automatically the TO to be confirmed is cancelled. There is a way to do it?
    thanks and regards.

    Allesio
    I am confused as to why you would want to CANCEL the TO. Surely if the order is complete (technically or otherwise) then the stock has been moved from its source to the order and therefore you would want to CONFIRM it and not CANCEL it.
    As I said if the TO is to take 100 of material A from bin 1111111111 to prod order 9999999999 and you cancel the TO the stock will stay in 1111111111 when in fact it has gone to 9999999999 .
    If your order is to say create 100 pieces of Z and to do this you need 100 pieces of A then you want to CONSUME 100 pieces of A  and GR 100 pieces of Z.
    If you cancel the TO the consumption will fail as the stock is not in 9999999999 but has gone back to 1111111111.
    The other problem is that you will be showing 100 pieces of A in bin 1111111111 which is NOT THERE as the order has used it.
    I hope that this helps
    Frenchy.

  • How the prodution order start and finis dates are changeing...?

    Dear friends,
    It was observed that one of my client's production order start and finish dates are changing frequently.
    No user is claiming the responsibility, I feel very dificult to to find out who did the changes.
    When I  observed, it is happening for orders if we Revert the Teco, and that to for those orders which doesn't have the sale order assignment.
    and some times it is not happenign for  even for the orders which does not have the sale order assignment also.
    Here it is having Forward type Sheduling.
    Please help me how and when , the prodcuction orders start and finish dates will get changed.

    Dear RS,
    Plz check in AUT10, by giving t-code CO02 for order changes
    in AUT10, u can track user id also
    this may help you to some extent
    Regards
    kumar
    Edited by: kumar kumar on Sep 17, 2009 8:32 AM

  • Table for total planned hrs and total confirmed hrs in prodution order

    Hi guys,
    I am creating a report for which i need total planned hrs (set up + machine + any other) and confirmed hrs.
    For eg., a production order has 10 qty. Standard values are Set up time is 20 min and machine time 5 min for a base quantitiy of 1. So here the planned hrs are 20 + (5*10) = 70 min.
    In which table can i find this planned hrs. I can see the standard value in AFVV table. But what logic can i use for calculating the total planned hrs.
    Is there any function module for this ?
    Thanks
    Srini

    Hi Srini,
    The following details are available in the table AFVV,
    Standard value, operation qty & Base qty.
    With this values create a formula Standard value * operation qty/ Base qty , this will equal to the planned hours for that particular activity type. Similarlt planned hours for other activities can be calculated.
    The actual/confirmed hours are available in the table AFRU.
    Regards,
    Senthilkumar

  • BS02 Control prodution order GR is allowed untill CNF--Cancel CNF question

    Dear All
    I  alreay control production order GR is allowed untill Order CNF by following step
    but now, i have another question, that when i cancel order confirmation, this setting is disable, after i cancel order confirmation by CO13, now the order status is converted to rel status(CNF status is removed), but user can process MB31 make good receipt for production order, how to do it GR is not allowed untill production order confirmed again?
    Thanks
    1. Use Tcode BS02 ( Customizing Users status profile).
    2. Select the order type which you want to configure (eg:PP000001) and choose "Details" button.
    3. In the User status table do the following:
    a. In the status no field type"1" , status field "Sta1", short text"GR not allowed",  lowest no "1",  Highest No "2". Mark a tick in the initial stats check box.
    b.Next line, type status no field "2" ,status field "sta2", short text"Gr allowed", lowest no "2" , highest no "2".
    4. Select the STA1 line and choose details. select the "create"button.select the "GR for prod order", mark "forbidden radio button" and "set radio button".
    5. Select the STA2 line and choose details. Selct the "create"button. select "confirm order", mark "permitted radio button" and "set radio button". Next choose "GR for prod order" , mark "permitted radio button".
    6 select the SAT1 line and choose details. select the "create" button & select "GR for production order", mark"Forbidden" ratio button and "Not active" button.
    7select the "SAT2" line and choose details. select the "create" button & select "confirm order", mark"allow" ratio button and "set" ratio button. Next "GR for production Order", mark "Allowed" ratio button and "set" ratio button.
    8 Save
    9 Now assign your Status profile"XXXXX" in th production order type (OPJH) -
    Status profile header:-XXXXX

    Dear Zeng,
    check these links to explore more on this,
    default quantity of confirmation(co11) should allowed in goods movements mb
    How to stop the goods receipt before issueing the goods for production orde
    Regards
    S Mangalraj

  • Deleting the Sales Order Linked to Prodution Order

    Hi all,
      I have created Production Order with ref. to Sales Order and made the status Released.
    Now my requirement is when i am able to delete the sales order which has been linked to the production order.I.e,At what status of production order the linked sales order will be able to get deleted.
    For Eg.If the Status is settlement rule completed.them am i able to delete the Sales order.
    And how do i know the status of production order that it is being processed or it is yet to get processed.
    Thaks in advance,
    M.Badrinarain.

    Hi,
    This is common problem of deletion of sales order in MTO scenario. First thing is that you cannot delete entire production order from database. you need to TECO for the that production order.
    sales order does not gets deleted unless its subsequent document gets deleted (production order).
    So only solution here is TECO for the that production order & then reject the line item in sales order by giving reason for rejection.
    Pls refer below link
    How can I terminate the sales order item?
    Regards,
    Sankaran

  • BOM Download with prodution order to SAP ME

    Hello Experts,
    I am having an issue with transfer of BOM with production order to SAP ME and would appreciate your inputs.
    The issue is as follows:
    I have a product assembled on two different routing. BOM is same and is assigned to respective routing in SAP ECC material master production versions.
    I am not sending the BOM to SAP ME and in system rule maintenance, setting for "Ignore BOM update" is set to FALSE.
    When I send a production order with routing 1, a corresponding BOM is created in SAP ME and operation assignment is also mapped in the ME BOM.
    But when I send a production order for same material on 2nd routing, BOM with assignment of operations from 2nd routing is not created. Instead it refers to the 1st BOM only with assignment of operations from 1st routing.
    In both cases correct routing are getting copied though.
    I have checked the Request and Response trace report for production orders. In request, components with correct operation assignments are coming. for both the production orders. In the response for 1st production order, BOM reference is coming correctly (either it refers to an existing BOM with same operation assignment or creates a new one).
    But the response for the second production order picks up the existing BOM with operation assignment of 1st routing and not creating a new BOM.
    As per the help documentation, it is supposed to create a new BOM when there is a difference in operation numbers in BOM downloaded with production order.
    Can some guide me on this please?
    Thanks in advance,
    K S Srinivas

    Hello Sergiy,
    Thanks for the inputs. I did have a look at the SAP Note mentioned by you. It does describe exactly the same problem that I have encountered. My Basis colleague is looking in to it.
    I will revert back once I am done with this.
    But in the absence of this, I was able to get a simple work around by creating two alternatives of BOM (same BOM components) and assigning to two production versions of same header material. In this case order download creates two BOMs.
    Thanks for the iput.
    Srinivas
    PS: I have posted another issue. Would be nice of you if you could give your valuable inputs on this too.
    Srinivas

  • Ordering party(customer) of Prodution order

    Hi,
    is there any table or FM that gives the customer for a prod.order.
    Thanks,
    Venkat

    Hi,
    From AUFK Table you can get the sales order no.(KDAUF) based on sales order no you can get the customer number.
    Other Wise use.
    BAPI_PRODORD_GET_DETAIL FM.
    Regards,
    Surendar Reddy.

  • Prodution order Print out

    Hi,
    i have an issue.When i take the print out of production order the Component qty in the printout is differs from BOM ( REquirement qty) Qty.
    Iam using the T-code CO04N. What is the pintout program?
    The component is maintained in Roll in the material master data and Meter is maintained in the BOM. But in the Printout it shows 5 Rolls.
    Pl advice
    Regards,
    Vijay

    Hi,
    I checked the Workscheduling view for that material is maintained in Meter.
    Regards,
    Vijay

  • Prodution Order made my SAP getting not Responding.

    Hi all Master,
    Currently i'm using SAP version 8.8 and already 3 years. now my SAP getting very slow. then i check on SQL server monitor, the query stuck on
    "(@P1 int,@P2 smallint,@P3 int,@P4 int,@P5 int)SELECT T0.[LayerInQty], T0.[LayerOutQ], T0.[TransValue], T0.[CalcPrice] FROM  [dbo].[IVL1] T0  INNER  JOIN [dbo].[OIVL] T1  ON  T1.[TransSeq] = T0.[TransSeq]   INNER  JOIN [dbo].[OILM] T2  ON  T1.[MessageID] = T2.[MessageID]   WHERE T2.[AppObjAbs] = (@P1)  AND  T2.[AppObjLine] = (@P2)  AND  T2.[ApplObj] = (@P3)  AND  T2.[TransType] IN(@P4,@P5)   "
    if i check OIVL already have 1 million records. is there solution to this issues.
    best Regards,
    YunPho

    Hi,
    1. Please advice 8.8 PL. You subject and requirement is not same. Are you upgrading your existing version?
    2. Check this guide how remove:
    http://www.pioneerb1.com/wp-content/uploads/2012/06/How-to-Prepare-for-and-Perform-Master-Data-Cleanup-882.pdf
    Thanks & Regards,
    Nagarajan

  • How to get the open production order quantity

    Hi,
    I need to generate a report with open prodution order quantity.
    I am planning to use the following rule
    (AFkO-GAMNG) - (AFKO-IGMNG)
    will this work ?
    Pls give me the feedback.
    Thanks

    Hi Anil,
    Using these two field from table afko, you will get the confirmed qty data. As per Rajesh suggestion you need to take data from MSEG TABLE.
    REGARDS,
    SATYAJIT

  • To see the cost of production order  after settlement to header material

    hello guys,
       In make to stock,we settle the total cost of prodution order on header material,right(if we keep as the default rule( distribution rule in order type)?
         If i want to see that cost of production order which we settled against the header material,where should i check it?should i check in material account or somewhere else?
             Thanking you guys in advance.

    Dear,
    There is a little missunderstanding in your thought.
    If the material of price control S, When you do the GR, the STD cost of material is deducted from production order cost, then when you settle the production order, the variance is settled to variance account/PD account. hence the production order cost balance is zero.
    Example- Production order cost is 60000
    After GR the production order cost balance is 60000-50000 = 10000.
    After settlement production order cost balance is zero.
    Now your question is where can i see the production order cost?
    You can see the production order cost in the production order itself.
    In the production order...cost disply option just filter the origin with test settlement and GR.
    Then total up the cost, then you can see the cost as 60000.
    please come back if you need more help.

  • Manual reservation for order category 10 not allowed

    why cant i make any manual reservations for a production order? is this possible or i can i configure the system to allow this?

    >
    R Brahmankar wrote:
    > Dear,
    >
    > It is not possible.
    >
    > You entered an order whose category only permits automatic reservations. The following order categories do not allow manual reservations:
    >
    > 10 PP production order
    > 20 network
    > 30 maintenance order
    > 40 batch order (process manufacturing)
    > 50 inspection lot
    >
    > When convert the planned order into production order, reservation will take place.
    > This planned order is created by mrp run.
    > Without running mrp, you are creating production order manually.So not possible to reserve.
    >
    > Order reservation will be created in issuing plant for components if u create production order manually.
    >
    > Plese check the "Plant"assigned in for the 2component in the "Component Overview" of the Prodution order.if it is 0002, order reservation will be created in at 0002 .
    >
    > Regards,
    > R.Brahmankar
    can this order category be configured?

Maybe you are looking for

  • How to copy an image from a photo onto another photo

    Im trying to figure out how to cut and paste an image from one photo onto another. I tried exporting the main photo to a pages document and then inserting the other image, but cant seem to get it to work. Is there an easy way to do this?

  • Error while running the ODI Scenario

    Hi All, I am trying to execute ODI Scenario from operator window getting below error. I am not sure why the error is comming yesterday it was running successfully. I checked the agent connection via test button, it is working fine. com.sunopsis.dwg.c

  • Facebook like button does not work in my FF 32.0.2

    Dear FF support-team, I've got a strange problem with the Facebook like button (in German called: "Gefällt mir") on my site and after some trying around myself, I need your knowledge, as mine seems not to be enough. :-) I have got a Facebook-Like but

  • Good receipt - invoice receipt

    Hi gurus, Do you know if exist a table that contain the link good receipt document - invoice receipt document? If not, do you know the way to link this documents? Thanks in advance Regards

  • For the iPhone video experts...

    I want to use my iPhone as a video camera or webcam for extended periods of time (i.e., 2, 3 or even 4 hours per instance), and to have an easy way to either download the files or record the webcam broadcast. I am on the edge of going 3g or 3gs but w