Updating lines in a production order

Hi Experts,
A customer of mine wants to have the ability to change items in production orders.
So if a particular item is out of stock it can be replaced by another item in multiple production orders.
I now made a add-on which can do this. Despite there is one condition that makes it impossible to update any line on the production order: This happens when the the first line of the production order has been issued for production. If this occurs it is not possible to update any other line on the production order.
This is very rare, cause I can still update all lines (that have not been issued) in SAP so why can't I do it via DI API?
I hope someone is familiar with this problem and can give me an advise how to solve this.
Kind regards,
Hendri Wessels

Hi,
The customer is using SAP 2007A PL49, but I also tested this issue in SAP 8.8 PL10 and it still occurs.
Kind regards,
Hendri Wessels

Similar Messages

  • How can I add a new line item for production order?

    HI all,
    How can I add a new line item for production order through BAPI/FM? Thanks in advance.

    Hi Mil,
      Unfortunetly SAP is not in front of me.
    But if possible go to BAPI transaction , check for any production order's bapi for CHANGE purpose. Where you will be able to add your new line.
    Reward if useful!

  • Update Serial Numbers to Production Order

    Hi,
    Has anyone used any Function module for updating the Serial Numbers to the Production Order Header. I am using the FM - SERNR_ADD_TO_PP . The Serial Numbers needs to be assigned when doing Goods Issue in MIGO. At this point The FM is updating the Serial Numbers to Order but it is putting it in Status PMP1.
    Once the Status is PMP1 it prevents anymore Serial Number update to the same production order using the same Function module. This is preventing us from doing partial Goods Issue in MIGO.
    Is there any more Function Module that can be used to updating the Serial Nos in the Production Order.
    Regards,
    Arunava

    HI rasheed,
    Check this resolution on table control for BDC.
    https://wiki.sdn.sap.com/wiki/x/DQGqAw
    Note: Do not post the same question twice.
    Regards,
    Bhumika

  • Bapi for update Master Data in Production order

    Dear All ,
        I am working in a car manufacturing company here production order is made month wise planning qty , but every day its Bom is get changed by Autocad/PLM interface and all changes are being recorded through ECN .
       I have to  generate daily reservation for assemblies for a perticular finish vehical ,so I need to update the Masterdata in production order no through the PLM( VB platform) interface .
      So please suggest me any BAPI so that I can update the master data regular basis in monthly production order  or if you have any better way to map this process into SAP please suggest .
    Thanks in advance .
    regards ,
    Pralay ..

    Not sure what master data in production order you want to change. Anyway if it is at header level, then evaluate BAPI - BAPI_PRODORD_CHANGE.
    Alternatively evaluate the usage of Order Change Management if it is feasible in your solution. Do a search in this forum you will find many threads on it, also read SAP help & do a test a test in your sandbox. If you face a specific issue then do revert

  • Update error while creating production order (TCODE CO01)

    Hello,
    We have created new plant into development server for testing. We have created production Order few days back at that time we have not faced any problem. But from last two days , when we create new production Order , system gives following error:
    ORA-00947: not enough values
    DBIF_RSQL_SQL_ERROR" "CX_SY_OPEN_SQL_DB
    SAPLCOVB" or "LCOVBF10"
    HEADER_POST"
    and
    Update was terminated
    System ID....   DEV
    Client.......   500
    User.....   HPLSU
    Transaction..   CO01
    Update key...   4B6E4F48C08D027FE1008000C0A802F3
    Generated....   08.02.2010, 10:35:48
    Completed....   08.02.2010, 10:35:49
    Error Info...   00 671: ABAP/4 processor: DBIF_RSQL_SQL_ERROR
    Our work is held up.
    Please also note that If we increase the QTY in the existing Order ( already created few days back) , System accept the same and Order is saved.
    We are looking for the solution for the above.
    Early reply will be highly appreciated.
    thanks
    harish

    Hi Rishi,
    You better check with your BASIS team.
    Check this link also
    Supervisor Error ADM0015
    Regards,
    Satyajit Kumar
    Edited by: Satyajit Kumar on Feb 8, 2010 7:47 AM

  • Update Long Text of Production Order

    Hi ABAP Gurus,
    We want to update some information in long text automatically while releasing production order.
    We try PPCO0007
    We found that we must update AUFK-LTEXT as 'E' then we can see long text via CO02, CO03.
    Without updating AUFK-LTEXT, even if the long text value saved in SXTL, but it can not be displayed via CO02, CO03.
    After saving the text using 'SAVE_TEXT' function module and commiting it we update the 'ltext' field in AUFK table.
    SELECT SINGLE * INTO wa_aufk FROM aufk WHERE aufnr EQ '000012345678'.
    wa_aufk-ltext = 'D'.
    MODIFY aufk FROM wa_aufk.
    However, it only works when we go to CO02 and press 'Save' button without changing anything.
    If we press 'release' button, AUFK-LTEXT will be overwritten by system. >_<
    What we expect system to do is that when we release production order, AUFK-LTEXT can be changed to 'E', so that we can display long text via CO02, CO03.
    Please help.
    Cheers,
    Qiang

    There is no standard SAP enhancement we can use for this purpose.
    We have developed another program to maintian the long text in production order.
    This call can be closed.
    Cheers,
    Qiang

  • Update Itemcost from the Production order.

    Hi Experts,
    I have created a UDF(Amount) in the Production order rows, if iam entering the amount for the input item the Amount should get updated in the Itemcost of the Itemmaster data.. How to write the update statement? Is it possible to update the Average price of the item from the Production order using a UDF?
    Regards,
    Magesh.

    Magesh,
    The Item cost of an Item is managed and calculated by SAP based on the different transactions.  You should not be updating this Cost using SQL UPDATE statements.
    The times you generally change Item cost manually is when you are using Standard Cost and you want to set the Cost for the Item.  This is also possible only when there is no Quantities on Hand.
    Suda

  • Update user staus on production order

    Hi,
    Can you please let me know if it is possible to update the user status on production order while saving.
    I have tried with exit PPCO0007 but with no success.
       header_exp-astex = 'X'.
       header_exp-asttx = 'XDIS'.
    I have checked exit PPCO0001,but this exit is trigerred after the log record has been saved and just before update.
    So this does not serve the purpose.
    Can some one advise here.
    Many Thanks.
    Regards,
    Babul

    Hi,
    I see in your code, you won't fill AUFNR.
    Try this because SAP check first if HEADER_IMP-AUNR = HEADER_EXP-AUFNR.
    HEADER_EXP = HEADER_IMP.
    header_exp-astex = 'X'.
    header_exp-asttx = 'XDIS'.
    Rgds

  • Storage location and Batch updation for components in Production Order.

    Hi Friends,
    After creating Production Order,need to update components with Storage Location(RESBD-LGORT) and Batch(RESBD-CHARG).
    Plese any one can help me by providing FM/BAPI for the same(Update Component level)
    Points will be rewarded.
    Thanks,
    Prb.

    Hi Prathap,
    Path - OCHA
    Condition type,access sequence, strategy type,
    Work on automatic batch determination. Assign standard search procedure to order type dependent parameter, check against manual entry.
    Make sort sequence for material by CU 70, tick ascending order, Then assign component in COB1, enter selection values and sort sequence. In finish product material master set automatic batch determination.
    System will copy the required material with batch & storage location, also check against manual entry.
    I think it will solve your problem.
    Regards,
    Suhas

  • Update commitment quantity in production order

    Dear Expert,
    I have a case which i have created a production order and it has created the reservation document for the material which is available. So when i run the missing part list, it will show which part is not available.
    I have do some update on the missing part list stock, lets say i have GR for one of the missing component. But when i run the missing part list, it is still showing the same missing part list although this the component has been added to stock.
    I have check the overview of component in Prod Order, the specific component committed quantity still not update although i have add the stock and and posted it before the requirement date.
    Question is: how to update the missing part list?
    Regards,
    LY

    Lukas,
    You can see the elements that are reducing your available stock in CO09.  Enter the matl number, plant, and the checking rule.  You will see the display.  The quantity you are interested in is the one at the right, ATP qty.
    Hit the "all details" button.  Now, on the rows, you will see the details of all of the supply and demand elements that are contributing to your 'negative 1' qty.  In the column titled Rec/Reqd qty, there will be a minus sign for each requirement, and no sign for each supply element.  ATP uses its internal arithmetic to then calculate the ATP qty.
    You can review which elements are being considered by hitting the 'scope of check' button.
    It is hard to troubleshoot from a distance.  However, if you can give us details of the detailed CO09 display, we can probably point you in the right direction.
    A common problem is is storage location.  If your prod order ATP is 'storage location specific' (this is common), and the stock and the requirements both exist in different storage locations, it can cause symptoms similar to the ones you have described.
    Rgds,
    DB49

  • Selection indicator for costing line items in production order

    Dear all,
    Do anyone know how to change field "AFVGD-SELKZ" of operation inside producion order? Any user-exit or standard program?
    As content of field "AFVGD-SELKZ" is carried from routing. But is it possible to change in production order level?
    Please kindly adivce.
    Cheers,
    Karen

    Karen,
    Let me give some more additional inputs, for an operation to become relevant for costing there are 2 options.
    1. As Ramanujam suggested - Control Key.
    2. In the Routing operation details you have a field to mark an <b>operation costing relevant this field takes priority over control key in defining the costing</b>. This field can be found in the operation details - General Data section of routing.
    <b>Some tricks,</b>
    What i mean here is a control key may not be relevant for costing, but still if this field is marked as costing relevant or percentage costs then this is the priority.
    if this field is marked not relevant for costing  and if the operation has a control key relevant for costing then in this case control key takes priority.
    In short what i meant is that you need to consider both "Control key" as well as the operation costing relevancy defination field.
    Hope this helps your understanding in resolving your problem....Reward your points if so,
    Regards,
    Prasobh

  • Schedule lines for an external operation in a production order

    Hi All,
    I have an external operation defined in a production order and a scheduling agreement is assigned to it in the Routing operation details.  Now, i want to generate schedule lines when a production order created but the system always generating a purchase requisition.  Do we need something to be configured in the background?  Please help!
    The idea is to have the goods receipt done against the same agreement always.
    Regards,
    Sravan

    Hi Sravan,
    As per my view point, this is standard SAP behaviour. System will generate PR only in case of external operation.
    If you go to OPL8 (Order type dependent parameters) for your respective order type & plant combination you have option of maintaining setting related to PR only and there is no option of using scheduling agreement or generating schedule lines.
    I don't see any possibility to use scheduling agreement using to have schedule lines for external operation.
    Regards,
    Tejas

  • PLD Production Order need to add BOM lines

    I have a need to add the comments from the BOM lines table (ITT1) to the production order.
    As soon as I add the field (copied the definition from the BOM report) the lines go wild.  I go from 5 lines to 35 lines with the production components printing multiple times.
    Any body have a way to link the BOM lines to the production order lines so I get the right lines printing?

    I would suggest you create a user field at the Production Order Rows and use the following formatted search to copy the comments from the BOM definitions.
    This user field can be easily added to the PLD and will help avoid duplicating rows which you are currently facing.
    SELECT T0.Comment FROM  [dbo\].[ITT1\] T0  WHERE T0.Code = $\[$37.4.0]   AND  T0.Father = $\[$6.0.0]
    Suda

  • Link from scheduling agreement line to original demand production order

    Hi all,
    I'm wondering if there is a definitive link between a scheduling agreement schedule line and the production order that caused MRP to generate the schedule line?
    I need to build a report which looks at material availability for a production order and extends to also see if the required JIT/JIS lines are on an inbound delivery (ASN) or not. To do this I need to know which JIT/JIS lines relate to which production order.
    Thanks,
    Mark.

    Hi Mark,
    Such a link exists only in MAKE-TO-ORDER and MAKE-TO-PROJECT (individual planning) scenarios.
    If this is not your case, pegging is dynamic. You can see a similar report to what you are looking for in standard SAP "order report", which will show you all the supply situation to a ProdOrd (even multi level).

  • Block the user updating UDF in Production Order

    Hi All,
    I want to block a particular user updating a UDF in the Production Order. He should not update the UDF only. But ha can update other fields in Production Order. He can add row or delete row or change quantity or change the status. But he should not update the UDF only.
    Can anyone help me in how to write a Stored Procedure for this.
    Thanks..
    Marikannan

    Hello,
    By standard the Editing feature of UDF can be customized by User.
    Open  Production Order, and Press CTRLSHIFTB.  On the window apperaring is similar to Form settings. You can unmark the Active Flag, and the fields will be read only.
    Please note: stored procedure is not a good way, because it is running after the data has been written into the database.
    Regards,
    J

Maybe you are looking for