Child Item Warehouse in Production Orders

In a Production Order, I am trying to change the child item warehouses when the parent item warehouse is changed.  I created a UDV that is set in the child item warehouse field and triggers when the parent item warehouse is changed.
SELECT $[OWOR.Warehouse]
The error I get is:
Internal error 'Items - Warehouse' (OITW)(-2118) occured [Message 131-183.
What could be causing this error?

Hi,
Try Below
$[$78.1]
and refresh it on item code.
Regards
Deepak Tyagi

Similar Messages

  • Replicate the Sales order Line Item Text to Production Order

    I want to replicate the Sales Order Line Item Text to Production Order? Please tell me if this is Functional job or a Developers Job?
    I believe this can be achieved by customization and doesnot need any programming and I am trying hard to gather relevant posts for this, but didnt find any.
    Please help me with some information if some body encountered this earlier.
    Regards,
    Jessica Sam.

    Hey Jay, thanks for your reply.
    Please confirm me if this is a developers job or a functional job?
    Do i need to do some programming to achive this?
    I checked with couple of my collegues and friends and 90% people say it can be achieved throug functional configuration.
    can thorugh some light on this as i had been researching on this seriously and still have mixed opinions .
    Thanks,
    Jessica

  • Class for Purchase order item components and Production order components

    I'm looking for a some classes.   I'm very new to objects, so I could be searching for them incorrectly.
    The first class I'm looking for is a purchase order class that contains the item components.  I've looked at CL_PO_ITEM_HANDLE_MM and CL_PO_HEADER_HANDLE_MM.  I couldn't find components as a part of either of the classes.
    The second one I'm looking for is not as critical.  It is for the components for a production order.   I have a function module: BAPI_PRODORD_GET_DETAIL that gets the components for the order.  However, to take advantage of objects - I read somewhere - that if possible I should avoid calling a function module.
    Any help that you could give would be greatly appreciated.
    Thank you!
    Michelle

    Hello Michelle
    I do not think there are already classes available on ERP 6.0 for reading production order (yet I might be wrong...). However, regarding purchase order you are already on the right track.
    *& Report  ZUS_SDN_OO_READ_PO
    *& Thread: Class for Purchase order item components and Production order components
    *& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1206523"></a>
    "& NOTE: Coding adapted from BAPI_PO_GETDETAIL1
    REPORT  zus_sdn_oo_read_po.
    TYPE-POOLS: abap, mmpur.
    PARAMETER:
      p_ebeln   TYPE ebeln  DEFAULT '3000000045'.
    DATA: gs_document    TYPE mepo_document,
          go_po          TYPE REF TO cl_po_header_handle_mm,
          gs_header      TYPE mepoheader,
          gd_tcode       TYPE sy-tcode,
          gd_result      TYPE mmpur_bool.
    data: gt_items       type PURCHASE_ORDER_ITEMS,
          gs_itm         type PURCHASE_ORDER_ITEM,
          gs_item        type mepoitem.
    START-OF-SELECTION.
    *  prepare creation of PO instance
      gs_document-doc_type    = 'F'.
      gs_document-process     = mmpur_po_process.
      gs_document-trtyp       = 'A'.  " anz.  => display
      gs_document-doc_key(10) = p_ebeln.
    *  object creation and initialization
    **  l_ebeln = purchaseorder.
      CREATE OBJECT go_po.
      CALL METHOD go_po->po_initialize( im_document = gs_document ).
      CALL METHOD go_po->set_po_number( im_po_number = p_ebeln ).
      CALL METHOD go_po->set_state( cl_po_header_handle_mm=>c_available ).
    *  read purchase order from database
      gd_tcode = 'ME23N'.
      CALL METHOD go_po->po_read
        EXPORTING
          im_tcode     = gd_tcode
          im_trtyp     = gs_document-trtyp
          im_aktyp     = gs_document-trtyp
          im_po_number = p_ebeln
          im_document  = gs_document
        IMPORTING
          ex_result    = gd_result.
    *  there was a problem in reading the PO
      IF ( gd_result EQ mmpur_no ).
    **    l_messages = l_handler->get_list_for_bapi( ).
    **    PERFORM return TABLES l_messages return
    **                          poitem poschedule poaccount.
    **    CALL METHOD l_po->po_close( ).
      ELSE.
        gs_header = go_po->if_purchase_order_mm~get_data( ).
        WRITE: / gs_header-ebeln,
                 gs_header-bukrs,
                 gs_header-bsart,
                 gs_header-lifnr.
      ENDIF.
      gt_items = go_po->if_purchase_order_mm~get_items( ).
      LOOP AT gt_items INTO gs_itm.
        gs_item = gs_itm-item->get_data( ).
        write: / gs_item-ebelp,
                 gs_item-matnr,
                 gs_item-menge.
      ENDLOOP.
    END-OF-SELECTION.
    Regards
      Uwe

  • How Do i Assign a Warehouse in Production Order Rows(Lines)

    Dear All,
    I can successfully create ProductionOrder through SDK, but when i create a Production Order i need to assign in rows the warehouse for the child item. What is the syntax for it? has any one have the idea of how to set the warehouse for child item.
    Here is my code but it doesn't work and doesn't assign the warehouses for that item. That item has the warehouse defined in the Item master but still doesn't set the one which i pass.
    Dim sboProdOrder As SAPbobsCOM.ProductionOrders
    sboProdOrder = MyCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductionOrders)
    sboProdOrder.Lines.SetCurrentLine(0)
    sboProdOrder.Lines.Warehouse = "FG_01"
    Pls reply if you have any solution to this,
    Thanks & Regards,
    Murtaza.

    you only perform this after you have populated the first line:
      If docctr > 0 Then
                                vPO.Lines.Add()
                                vPO.Lines.SetCurrentLine(docctr)
                            Else
                                vPO = oDiCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseOrders)
                                vPO.Comments = GetDocNum(Tblname, InsDocentry)
                                vPO.DocDate = docdate
                                vPO.DocDueDate = docduedate
                                vPO.TaxDate = taxdate
                                vPO.CardCode = InsVendor
                                vPO.DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Items
                                If InsAddr <> "" Then
                                    vPO.Address2 = InsAddr
                                    dropshiptran = "Y"
                                Else
                                    dropshiptran = "N"
                                End If
                            End If
                            vPO.Lines.ItemCode = InsItem
                            vPO.Lines.WarehouseCode = InsWhs
                            vPO.Lines.Quantity = InsQty
                            vPO.Lines.UnitPrice = InsCost
                            vPO.Lines.LineTotal = (InsQty * InsCost)
                            vPO.Lines.ShipDate = GetLeadTime(InsVendor, InsItem)
                            vPO.Lines.UserFields.Fields.Item("U_XX_BDoc").Value = InsDocnum
                            vPO.Lines.UserFields.Fields.Item("U_XX_BDe").Value = InsDocentry
                            vPO.Lines.UserFields.Fields.Item("U_XX_BOBJ").Value = Doc
                            vPO.Lines.UserFields.Fields.Item("U_XX_BLn").Value = InsLinenum
                            docctr += 1
    Edited by: John O'Neill on Jan 30, 2008 12:19 PM

  • Err: No WIP Variance Account exists for item, when closing Production Order

    I'm sure the 'WIP Inventory Variance Account' property had been set for the Warehouse of the Production Order.
    But I can not update this Production Order from 'Release' to 'Closed' status.
    Pls help me out.
    thanks.

    Hi,
    Can you confirm whether the,for the item involved, has checkbox 'Manage Inventory by Warehouse' marked or not under the Inventory tab of the item master data?
    Check in COPY of the database, by defining the WIP Variance Account for all the Warehouses for the Item involved and check whether you can not set the status of the Production Order to Close.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Change Alternative Item Quantity in Production  Order BOM

    Hi Gurus,
    I woould like to ask how can I make the Alternative item quantity to become editable. As of now, the system will calculate the percentage in the BOM and default it in the Production order.
    Now I have a requirement that in the Production order Change, the user can change the quantity of the Alternative Item based on the situation with out changing the BOM. Just change in the production order. What settings do i need to change?
    Thanks,
    Raymond

    Hi,
    Can you let us know why you want the user to make the changes manually ?
    Not in front of the system at the moment, but just do an Av. Check to see if you're able to get the switch if the stock situation has changed for the alternative items.
    Based on what i know, the field will not be editable & there is no specific setting to make it editable.
    Regards,
    Vivek

  • Exit to transfer SD item text to Production order material text

    Hi Experts,
    I have a requirement to copy the sales order item description into the material description of the production order .
    I guess I need  to do the same, using exit enhancement.
    please guide me on this.

    Hi prasann
        go to this thread it will be helpful
    How to copy sales order item text in to purchase requisition

  • Query items consumed on production order

    suggestions on creating a query to show items (itemcode, description, quantity, date) consumed on a production order?
    i would like it to prompt for date range and itemcode.  audit report is similiar but i want something custom and simple to run.

    Hi
    Query will depend - what consume means to you ?
    You can start with this
    SELECT T0.[DocNum], T0.[CreateDate], T1.[ItemCode],T2.[ItemName],  T1.[PlannedQty], T0.[CmpltQty], T0.[Status] FROM OWOR T0  INNER JOIN WOR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode WHERE T1.[ItemCode] =[%0] and (T0.[PostDate] >=[%1] and  T0.[PostDate] <=[%2]) ORDER BY T0.[CreateDate]
    Does itemcode mean product code ... Please explain your requirement more in detail ...
    Hope this helps
    Bishal

  • Change of Warehouse In Production Order

    Hello,
    I need to change the warehouse 04 to 02 but i can't change the warehouse in the production order because already issue for production is made.
    Is there any possibilities to change the warehouse....
    Regards,
    Pushpa Damodaran.

    greetings pushpa,
    well there are a few way, which u can try.
    1.  u have issued components but have u reported completion? if not, u can go to the production order, in the header u can select the warehouse to which it needs to go.  first copy the output product, and then delete the name of the product, select the component again, question will be asked, do u want to update rows?, click yes, then change ware house.
    2.  if report completion is done, then close production order and do goods receipt.
    3.  change released to planned and change warehouse.
    thanks and regards.

  • Plant Determination for Third Party Material as Child Item in Sales Order

    Hi All,
    We have an issue with the Plant Determination for Third Party Material as Child Item in a Sales Order.
    Even when a Delivering Plant is maintained for the child item which is a Third Party Material, the plant of the Parent Item is only populated as the Default plant in the Sales Order
    Can someone explain the reason behiind this determination.
    P.S.- For all non -Third PartyChild Items (with non-Third Party Item Catefory & Material Type), the Plant is population correctly as per Delivering plant in Material Master.
    TIA.
    Regards,
    Sridhar

    Hi,
    Thanks everyone for the feedback.I agree with Samir Danish.It is a standard functionality of SAP which does not allow free goods for BOM material.
    However, can someone suggest work around to deal with this issue.I mean if any one has been doing any work around for this issue then please let me know.It s becoming critical for me.
    Regards,
    BM

  • Notification on Receipt and Purchase documents getting fired on Production order having Items with planning method as MRP

    I have written a SP Notification to block adding of documents if block number is not provided. Notification is working fine on Purchase and Receipt documents. This notification also gets executed on Production Order where items included in Production order have planning method as MRP.
    Can anyone explain me the relationship between
    "MRP planned items"
    and
    "Purchase documents (Purchase Order; GRPO; Purchase Return; AP Invoice and Credit Memo) and Receipt of Production."
    Thanks & Regards
    Sonil Bhardwaj

    Hi Sonil,
    Can you post your SP , to look if there is any problem with SP ..
    Regards

  • Why some items can not change issue method in Production Order?

    Hi,
    I have a Production Order which had been released.
    As some reason, I need to change issue method on some items in this Production Order, but I found that some items can be changed with a dropdown list, and some items can not be changed without dropdown list.
    Why they are different?
    What should I do to meet my users' request?
    Thanks.

    Hai wilson,
    sorry i visits forum after long time .. item category means , when create item group there are two option Service / Material if u select service , inventory come under that group only in "Back flush" other wise u can select "Manual / Back flush"
    Regards
    Janeesh

  • Can serial number be entered for a BOM child material in production order

    Hi,
    Kindly let me know whether it is possible to enter serial numbers for a BOM child material in a production order. In case yes, then under what circumstances (parameters) and where do we display it in a production order? e.g. for a BOM parent material, we display it in transaction CO03 --> Header --> Serial Numbers.

    Dear Sourav,
    In myunderstanding I dont think we can maintain the serial numbers for the components in the production order,but however
    while performing GI using MB1A or during CO11N(,if backflushing is activated) we can enter the serial numbers for the
    components and then using documented goods movements we can trace for each production in CO03 or else in COOIS.
    But kindly check with T.Code COIB which seems to define the header-component serial no relationship.
    Check and revert with your findings.
    Regards
    Mangalraj.S

  • Can sales order line item text be replicated into production order

    Hi
    Can sales order line item text be replicated to production order through standard PP configuration? If so how can it be done?
    If that is not possible through standard configuration then can it be possible to read both sales order line item information and production order information using a BAPI or a program?
    Please help me, i have been trying hard for this and also searches sdn for relevant posts but could not find any, I thank all people who can help me with some information on this.
    Regards,
    Jessica

    Sample code:
    DATA:
      wa_order_objects    TYPE bapi_pp_order_objects.
    DATA:
      it_order_header     TYPE STANDARD TABLE OF bapi_order_header1.
    *--Setting Flag to get details of BAPI
      wa_order_objects-header         = c_x.
      CALL FUNCTION 'BAPI_PRODORD_GET_DETAIL'
        EXPORTING
          number           =  "Order number"
          order_objects    = wa_order_objects
        TABLES
          header           = it_order_header.

  • Error while raising Production Order

    Experts
    I get an error for a particular Item while raising a PRODUCTION ORDER
    'Location Input does not match the warehouse location of Item'
    I work in SAP B1 2007B - PL 18
    It will be great if someone can give me the reason/solution for the above ERROR.
    REGARDS
    KARTHIK

    Hi,
    Parent item and child items warehouses location should be same.......
    Regards
    Deepak Tyagi

Maybe you are looking for