Production Order & Issue for production query

Hi All,
My scenario is in BOM it is mentioned that to make
A -   1 quantity  needed
Child items  B - 2 Quantity
But Actual consumption of B is 4 Quantity
How can I Map this in B1
Regards
Shashi

Actually it happens over here lot of times. the child items will be issued less or more and production people will come to know it later date.
I tried to change in the Planned quantity after receipt from production in production order it is allowing me to change and I can able to issue. and the difference is posted to WIP variance account.
But what if the child items are less. system is not allowing to reduce the quantity of child items after issue.
so what should be done for that..
Regards
Shashi

Similar Messages

  • Problem Posting Receipt From Production and Issue for Production

    Hi Everyone,
    I am posting Receipt from Production and Issue for Production through DIAPI in SAP Business One 2007A SP00 PL03.
    I am using following lines of code
    oDocument.Lines.SetCurrentLine(0);
    oDocument.Lines.BaseEntry = int.Parse(BaseEntry);
    oDocument.Lines.Quantity = double.Parse(Quantity);
    lRetCode = oDocument.Add();
    The Document adds perfectly but when I open the document in SAP Business One i am not able to see the Order Number at Line level on which this document was Based.
    I identified the problem being Order Number Column being binded to BaseRef field hence form is not able to Show the Order Number and we cannot set BaseRef via DIAPI since the property to set that field is not exposed.
    I donot want to update the table through a Recordset Update Query. I would appreciate if the property to set that field is exposed by SAP or any other workaround can be put forward by anyone who has faced the same problem.
    Thanks
    Kapil

    Do you need to set
    oDocument.Lines.BaseType = 17 (if this is sales order)
    and then baseentry = baseentry....etc
    If you bind the base entry correctly it should alwasy shows the base document on both database as well as front end. I have never had any problem with this
    Sincerely

  • Query based on production order,receipt for production and issue for produc

    hello  sap experts i need a query on
    this is my query but iam not getting correct result could anypne help out  any relation is wrong in this pls verify it and reply asap .
    SELECT T0.[DocNum], T0.[ItemCode], T0.[PlannedQty], T1.[ItemCode], T1.[PlannedQty], T3.[Quantity], T5.[Quantity]
    FROM OWOR T0  INNER JOIN WOR1 T1 ON T0.DocEntry = T1.DocEntry, OIGN T2 INNER JOIN IGN1 T3 ON T2.DocEntry = T3.DocEntry, OIGE T4 INNER JOIN IGE1 T5 ON T4.DocEntry = T5.DocEntry
    WHERE T1.[ItemCode]   =  T3.[ItemCode] and  T1.[ItemCode]   =  T5.[ItemCode] and T0.[PostDate] between [%0] and [%1]
    GROUP BY T0.[DocNum], T0.[ItemCode], T0.[PlannedQty], T1.[ItemCode], T1.[PlannedQty], T3.[Quantity], T5.[Quantity]
    ORDER BY T0.[DocNum]
    regards
    Jenny

    Hi,
    Here is another suggestion.
    select t0.docnum,
    case 
    when t0.status = 'P' then 'Planned'
    when t0.status = 'R' then 'Released'
    when t0.status = 'L' then 'Closed'
    when t0.status = 'C' then 'Cancelled'
    else t0.status end as 'Production Order Status',
    t0.ItemCode as 'Parent Item', t0.PlannedQty as 'Planned Parent Item',
    T1.ItemCode as 'Component Item', T1.PlannedQty as 'Planned Component Item',
    (select T2.Quantity
    from ign1 t2
    where t0.itemcode=t2.itemcode and t0.docentry = t2.baseentry) as 'Received End Product',
    case
    when t1.issuetype = 'B' then 'Backflush'
    when t1.issuetype = 'M' then convert(varchar(15), t3.quantity)
    end as 'Issued Component Item'
    FROM OWOR T0
    INNER JOIN WOR1 T1 ON T0.DocEntry = T1.DocEntry
    left join ige1 t3 on t1.docentry = t3.baseentry and
    t1.linenum = t3.baseline
    Somehow I get the feeling it would make more sense to have it in 2 separate reports. But if it works for you it's good.
    Let us know how it goes and if these are indeed the reports you are looking for.
    Jesper

  • To restrict Issue for production than planned qty in production order

    Hi Experts,
    In my scenario, the production staff will prepare production order and right click in production order document and select "Issue Components" option to Issue raw materials for production floor. After issuing the raw materials to production floor closes the "Issue for Production" document and now we have "Production Order" document open in screen. When he again select "Issue Components" option and issues the raw materials once again. Materials are issued once again wrongly. This happens since the production order document is not getting refresh after "Issue for Production" document is done.
    Is there any way to restrict issue of raw materials than the planned qty.?
    I have tried lot of ways to restrict this through SP. Please revert me an solution to this issue.
    The procedure should trigger immediately when the "Issue Components" option is selected second time (If the raw materials are issued in full in first time itself). And it should allow only the qty which is to issued to production order qty (if they issue part issue to production order)
    Thanks in advance
    Raja.S

    Hi Neetu,
    Thanks for your quick response. I have tried this query. But it is not blocking the issue for production document even the raw materials are issued already for the production order.
    I'll explain my work flow again. The Production staff will prepare production order and then release the same and update the production order after changing  the status for "Release". Then he will right click the Mouse button and select "Issue Components" option and perform the Issue for Production process. He will issue the required raw material completely in one shot and add the Issue for Production document.
    After adding the Issue for Production document he will close that document and now we will be in Production order document. Now our production order document will not get refreshed. Now the Production staff go for "Issue components" option, then it should not allow him to issue the components once again. But it is allowing him to issue components any number of times. there is no control.
    If we browse the production order document to previous record and browse back to the same record then my Production order document get refreshed and now we can control the issue. But what should i do to control in the earlier case. Since they want to perfrom lot of production order, there is a chance to issue components for same production order more than one time before the production order document get refreshed.
    Please provide me the SP to control this scenario.
    Thanks in advance.
    Raja.S

  • How to show returned components on Issue for Production on a query.

    Hi Guru's,
         Is there a way to show the items that have been returned (Return Components) on Issue for Production using a query?
    Thanks and Regards,
    Christian

    Hi,
    1. Create row level UDF for issue from production order.
    2. Assign below FMS to this UDF and set it auto refresh based on quantity.
    SELECT T0.[Quantity] FROM IGN1 T0 WHERE T0.[BaseRef]  = $[$13.61.number] and  T0.[ItemCode]  = $[$13.1.0]
    Thanks & Regards,
    Nagarajan

  • Issue for Production Report With Production Order Details and Batch Number

    Hi Guys,
    I am looking for a  batch report.I have tried it but i didnt get the desired results.Pls any body give me some solution.
    I need to include the Batch number  in this report and when i have done the same  the values are repeating  and also need to display the Item Description for (Description in Production Order - Parent Item)
    SELECT  distinct t0.docnum,T0.[DocDate], t4.IssuedQty as 'Consumed Qty', T1.[ItemCode] as 'Circle Codee',T1.[Dscription] as 'Circle Name',t3.itemcode
    FROM [dbo].[OIGE]  T0
    INNER JOIN [dbo].[IGE1]  T1 ON T0.DocEntry = T1.DocEntry
    LEFT JOIN owor t3 on t1.baseref = t3.docnum
    left  join wor1 t4 on t3.docentry=t4.docentry
    INNER JOIN OITM T5 ON T1.ItemCode = T5.ItemCode
    INNER JOIN OITB T6 ON T5.ItmsGrpCod = T6.ItmsGrpCod
    INNER JOIN IBT1 T7 ON T5.ItemCode = T7.ItemCode
    INNER JOIN OIBT T8 ON T7.BatchNum = T8.Batchnum and T7.ItemCode = T8.itemcode
    where t0.docdate between  [%0] and [%1] and T6.[ItmsGrpNam] = 'Raw Materials' and t0.JrnlMemo = 'Issue for Production'
    Any body provide me some idea for achieving this....
    Regards,
    Vamsi.

    Hi Bala.
    Thanks for the query but still  not acheived the result.
    The Scenario is to know the quantity of the Coil (Raw MAterial) used IN making a product in different stages and from which batch and Whse the RawMaterial is Consumed in making of the Product(Production Order Parent Item)
    ------------- (Issue for Production )-----------------------|    Production Order Qty(IssuedQty)    Production Order       |  BatchNum
    DocNo/Date      | ( RawMaterial/Coil Code/Desription)  |   (Quantity issued for RM)                  ItemCode/Description | Batchnum
    Regards,
    Vamsi..
    Edited by: VamsamP on Dec 1, 2010 5:06 PM

  • Issue for Production Query

    Hi,
    I'm having a situation when I print "Issue for Production" for an item, sometimes the batch issued printed out wrongly. I'm wondering is there a way to write a query to display issue for production (item code, item description, quantity, batch) based on production number? Please advise. Thank you for your help and time.
    Cheers,
    serene

    Try the code below. You will have to replace the XXXXXXXXX with Document Number of the Production Order.
    SELECT     dbo.OIGE.DocEntry,dbo.OIGE.DocNum, dbo.IGE1.ItemCode, dbo.IGE1.Dscription,
    dbo.IBT1.BatchNum,dbo.IBT1.Quantity, dbo.IGE1.LineNum
    FROM         dbo.OIGE INNER JOIN
                          dbo.IGE1 ON dbo.OIGE.DocEntry = dbo.IGE1.DocEntry
    INNER JOIN dbo.IBT1 ON dbo.IGE1.ObjType = dbo.IBT1.BaseType
    and dbo.OIGE.DocEntry = dbo.IBT1.BaseEntry and dbo.OIGE.DocNum = dbo.IBT1.BaseNum
    and dbo.IGE1.LineNum = dbo.IBT1.BaseLinNum
    and dbo.IGE1.ItemCode = dbo.IBT1.ItemCode
    where dbo.IGE1.BaseType = 202
    and dbo.OIGE.DocNum = XXXXXXXXX
    order by dbo.IGE1.LineNum
    Krishnan

  • Error while doing Good Issue for Production Order using BAPI

    Hi All,
    I am facing an error like 'u2018Content of order 1011907: MDT218AJ10 transferred to interface (IMSEG): T-86410-71".
    I have written the code as below. Please let me know what is missing when using the BAPI 'BAPI_GOODSMVT_CREATE'. What is the cause of this error ?
    *Action in Transaction (GM_CODE)
    *GM Code for Goods Issue for Production Order is 03
      gs_gmcode-gm_code = '03'.
    *Header Data
    *Posting date
      gs_header-pstng_date = sy-datum.
    *Document date
      gs_header-doc_date   = sy-datum.
    *Item Data
    *Material
      gs_item-material  = zptp_s_rf_migo_261-matnr1.
    *Movement Type
      gs_item-move_type = '261'.
    *Movement Indicator
      gs_item-mvt_ind   = 'F'.
    *Stock Type
      gs_item-stck_type = 'F'.
    *Plant
      gs_item-plant     = gv_plant.
    *Storage Location
      gs_item-stge_loc  = gv_str_loc.
    *Quantity
      gs_item-entry_qnt = zptp_s_rf_migo_261-menge2.
    *Unit
      gs_item-entry_uom = gv_uom.
    *ISO code for unit of measurement
      gs_item-entry_uom_iso = gv_uom.
    *Order Number
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = zptp_s_rf_migo_261-aufnr
        IMPORTING
          output = gs_item-orderid.
    *Reservation Number
      gs_item-reserv_no = gv_resv_num.
    *Reservation Item
      gs_item-res_item = gv_resv_itm.
    *Reservation Type
      gs_item-res_type = gv_resv_type.
      APPEND gs_item TO gt_item.
    Calling BAPI_GOODSMVT_CREATE to create the Material Document Number
      CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
        EXPORTING
          goodsmvt_header       = gs_header
          goodsmvt_code         = gs_gmcode
        IMPORTING
          goodsmvt_headret      = gs_headret
        TABLES
          goodsmvt_item         = gt_item
          goodsmvt_serialnumber = gt_serial
          return                = gt_return.
    Thanks in Advance.

    hi,
    did you look at message ?
    System says, there are differences between the interface data and the order data. It can be anything. I think you should check
    data in the interface . 
    this is the long explanation of your message :
    Diagnosis
    When calling the function module MB_CREATE_GOODS_MOVEMENT or the BAPI GoodsMovement.CreateFromData (BAPI_GOODSMVT_CREATE) to post a goods receipt for a production order, there are differences between the interface data and the order data.
    Example: The order was created for plant 0001, but plant 0002 is passed on in the interface.
    The system checks this for the material and the order item.
    System response
    Due to this difference, the system cannot post the goods receipt.
    Procedure
    Check the data in the interface (IMSEG-WERKS, IMSEG-AUFNR). If necessary, correct the plant or the order number in the interface.
    << Moderator message - Point begging removed >>
    Edited by: Rob Burbank on Feb 6, 2012 11:24 AM

  • Issue for Production-Production order button is hidden

    Hi,
    I am trying to place one extra button in issue for production through SDK
    When i am running the code the system shows the button which i have created but at the same time it hides 'Production order' and 'Disassembly order' button which are default in SAP B1 issue for production screen
    I am using 8.8 version PL 12
    Kindly help
    Thanks
    Md.nazeer Shaikh

    Hi,
    Try this one,
    If pVal.Before_Action = True Then
                If pVal.FormTypeEx = "65213" Then
                    oForm = objSBOAPI.GetForm(pVal.FormTypeEx, pVal.FormTypeCount)
                    Select Case pVal.EventType
                        Case SAPbouiCOM.BoEventTypes.et_FORM_LOAD
                            Dim newItem, newItem1 As SAPbouiCOM.Item
                            Dim OButton As SAPbouiCOM.Button
                            newItem1 = oForm.Items.Item("71")
                            newItem = oForm.Items.Add("Newbutton", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
                            Dim sss As Double = oForm.Items.Item("70").Left
                            Dim sss1 As Double = oForm.Items.Item("71").Left
                            newItem.Height = newItem1.Height '19
                            newItem.Left = newItem1.Left - 109 '360
                            newItem.Width = newItem1.Width '100
                            newItem.Top = newItem1.Top '497
                            OButton = newItem.Specific
                            OButton.Caption = "XXXXXXXXXXXXX"
                            objPRForm.Items.Item("70").Left = 1200
                            objPRForm.Items.Item("Newbutton").Enabled = False
                    End Select
                End If
            End If
    Regards,
    Siva

  • Error While Updating Issue For Production

    Hi,
            When i am trying to update an UDF in issue for production i am getting the following error message.
      Item is Not a Component to the Referenced work order[Goods Issue - Object Type] Message 3560 -5

    Dear Manikandan K,
    Regarding the message we can tell you that the error message           
    "Item is not a component of the referenced Work Order" usually appears 
    because there is a case sensitive problem between the item code given  
    in the BOM and the item code given in the item master data.            
    Please check if the item codes of the BOM are exactly the same as the  
    codes given in the item master data. There should not be any differences
    between spelling of the codes (for example item code in the item master
    data is with capital letters X00014447 while the item code in the BOM  
    is with normal letters x00014447).                                                                               
    In case you find item with this issue please correct its item code     
    in the BOM manually so it will be exactly identical with the code given
    in the item master data.                                               
    Regards,
    Marcella Rivi
    SAP Business One Forums Team

  • Updating materials issued for  production thru movement type

    hi
    we are using repetitive manufacturing scenario, and we are using back flush,  how to find out the materials issued for production thru movement types, from which tables can i get the data
    from AUFK  i am getting the movement types and the order number, and i am unable to find out material numbers.
    the requirement is need to update the costs of the materials based on the movement types for the production

    Hi
    I dont know if this question falls under the category of "Asking basic questions"
    You can use MB51 to get the desired info.. It will give you the Material Consumed +  mvt type (261) and Order where the Material is consumed
    br, Ajay M

  • How to add issue for production using SDK?

    1. Here i am creating a production order
    2 .after release of production order
    3. i wants to "issue component" for production order using SDK
    Please provide solution
    Thanks
    Vijay T
    Edited by: Vinay Kulkarni on Jun 23, 2009 7:57 AM

    HI,
    Issue for Production is an Inventory Exit document (BoObjectTypes.oInventoryGenExit) where the base type is Production Order
    Set the following on Invenroy Exit:
    oPoExit.Lines.BaseType = 202; // production
    oPoExit.Lines.BaseEntry = AbsEntry;
    oPoExit.Lines.BaseLine = LineNumber;
    Where AbsEntry is the Production order DocEntry field
    LineNumber is the line number of Production order.
    Regards,
    J.

  • Issue for Production Price list field missing

    Hello all,
    I have a strange issue with a field missing in the issue for production window. When an issue for production is created, the Price list field is missing. Please see the attached screenshot. Does anyone know how to show this field? I have checked form settings and it's not an option there.

    Hi Chris
    Following is the SAP Note No: 1720071
    Symptom
    When opening "Issue for Production" from "Production Order", "Price List" field is missing.
    Reproducing the issue
    1. Login to SAP Business One.
    2. Go to Production->Production Orders, open a "released" production order document.
    3. Right-click a row whose "issue method" is "Manual", and choose "Issue Components". (If all the rows have "Backflush", you need to change one of them.)
    4. "Price List" field is missing on the left top of the new screen.
    5. If you click "Attachments" tab, the field will be showing correctly.
    Solution
    Current workaround is to click "Attachments" tab to make "Price List" showing.
    The issue is planned to be fixed in SAP Business One 9.0.
    With Regards
    Balaji

  • Production order %00000000001 for schedule line in Sales order

    Hello Experts,
    We have an issue with the production order whih is created from SO
    There is a sales order and have production order for CTO parts. But the Production order is deleted before confirming. Now when we check in the sales order in schedule lins we are getting as "Production order %00000000001 for schedule line" 00010/0001 can no longer be changed.
    Could any one provided the valuable imputs for what resasons this weeor appears
    Thanks in advance...
    Regards
    Madan

    Hello Vivke,
    Please find teh delatis of the issue
    We have an SO created for the CTO parts and to corrsponding to that generally a production order will be created, But in one of the case for SO the production order is showing as %000000001 in the schedule lines in the SO apart normal number ranges for Production orders.
    Now we need to know in what case the production order appears as %000000001 in the schdule lines, are we missing any thing in order to create production orders?
    Note: Initially there was production order is created correctly when scheduled lines are confirmed, but it is deleted for some reasons and again when the schedule lines are confirming we are facing this issue
    Could you please provide any suggestion on this
    Thanks
    Madan

  • DTW--  How to Import  Issue for Production

    Hi ,
             How do i import Issue for Production Through DTW.
    Thanks & Regards
    somi mishra

    hello,
    why do you want to use DTW to issue for production ? You could use backflush as issue method so that you can skip issue for production job. If you have issue for production batch job which it means you want to add all the qty of RM issued to production one times and all at onces for more than 10 PO, I think it is better to use addon. You create an excel template and export the data to be txt file, the txt file imported to the issue for production form using the addon. I just compare this situation with the client request in long time ago. they request fast and not manual sales order creation from quotation. just to compare it to your situation but need your detail explanation.
    Rgds,

Maybe you are looking for

  • Watch iphone videos on a Macbook Pro

    I can't figure ot how to do this.  It's probably a simply procedure but I am brain dead. Help appreciated.  Anyone?  Anyone?

  • Array or Table of Records or...what is best for my scenario?

    I have been given task to trap last 5 action taken on a form application by user. This would be used where user gets a FRM or ORA error, dump last 5 steps to a table in the database along with error. Trapping FRM or ORA error is easy; I am wondering

  • Dtterm and xterm - problems with special characters

    I run SGD 4.2 on a Solaris 8 box with 50 users globally. This installation replaces a 3.42 installation. Clients are all Solaris 8. Currently my most nagging problem is that I have "special characters" (at least on a german keyboard layout). @, �, `,

  • InterMedia Section Searching

    I am thinking about inserting my XML document content into a database column and use interMedia's "Section Searching" capability to search author name, or headline etc. My DTD is an external DTD, and it is very complicate. On page 8 of your interMedi

  • Just learning EJB - having problems compiling

    I'm trying to learn EJB by going through the Sun J2EE tutorial. When trying to compile the converter example I get the following error messages: E:\MostlyJava\j2eetutorial\examples>ant converter Buildfile: build.xml init: converter: [javac] Compiling