Approval Query for Receipt from production

Hi experts,
I want to define an approval process for receipt from production.
The condition is below:
Only if it is " Receipt from production" then the goods receipt document should go to approval of quality.
If is any unplanned direct goods receipt then system should allow to add it straightly.
To do so, Please provide me the required query.
regards
Ravindran Srinivasan

Hi Ravindran,
I once encounter same problem like this. And I found out that, unfortunately, approval procedure can't work on receipt from production document.
Yes, we all know that receipt from production and inventory goods receipt are actually same object type in SAP B1 and stored in same table. But, try it by yourself in your testing database, even if you apply the approval templates for goods receipt document, and you apply the condition as "always", you won't get prompted for approval if you try to add the receipt from production document.
However, I said this based on my experience with version prior to 8.81 and 8.82. But somehow I have a strong feeling that this issue still not yet realized by SAP.
Best Regards,
Hendry Wijaya

Similar Messages

  • Re:Query for no.of days delayed using Receipt from production posting date.

    Dear SAP Experts,
    I need a query to calculate no of days delayed by using Receipt from production posting date and prod.order due date..i have already done the query but there is no link for joining the tables.Is there any link to join the tables..
    Plz Suggest a good query for this issue..
    With Regards,
    Revathy

    Dear Revathy,
    I think there is no need to link table if you just need calculate no of days delayed by using Receipt from production posting date and prod.order due date.
    You may check this query with the above:
    SELECT T0.ItemCode,T0.DueDate,
    T0.DocNum, T0.CloseDate,
    Datediff(dd,t0.DueDate,T0.CloseDate) Diff
    FROM dbo.OWOR T0
    WHERE  Datediff(dd,t0.DueDate,T0.CloseDate) > 0
    Thanks,
    Gordon

  • Approval Procedure for Issue to Production and Receipt from Production

    Hi All,
    Is there a way to create an approval procedure for Issue to production and Receipt from production?
    Thanks.
    Eric

    Hi Riyaz,
    Yes it is not in Standard SAP Business One.  But is there a way to create one for issue to production and receipt from production? 
    Thanks.
    Eric

  • 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

  • Receipt from Production

    Hi Expert !!!
    Here is my Client Requirement..
    System will provide the List of Specific warehouses into which use can enter the quantity u201Creceived from Productionu201D. By default it will show Zero for each warehouse. User can enter the received quantity into respective warehouse. And By click save system will save a New u201CReceive from Productionu201D?? document. This process will update the Balance Quantity field. The process can be repeated numerous times on a single day until the balance qty is equal to zero. There needs to be a check that does not allow the user to receive more than the planned qty.
    This is in the Matrix form.
    Goods Received  of Production Order XXX
    Warehouse1 |  WareHouse2 |   WareHouse3 |    WareHouse4    |  Quarantine
    10                 |       2                |     1.0               |        5                  |            200
    2                   |
    for this i have to make the Query in which i got All the wareHouses and in those warehouses i have to enter the Quantity which is completed in the Receipt from Production..
    Can anybody write the Query for this scenario...
    Thanks

    Hi Expert !!!!
    I want to add Receipt from Production Document Using "oInventorygenentry" , but there is problem i m not be able to add a single Document..
    My Code is here !!
    _Receipt = _Company1.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry)
    If _WH5 <> 0 Then
                    _Receipt.Lines.BaseType = 202
                    _Receipt.Lines.BaseEntry = Buff  (Integer value)        ' The DocNumber Of a Production Order
                    _Receipt.Lines.Quantity = _WH5  (Quantity )
                    _Receipt.Lines.TransactionType = SAPbobsCOM.BoTransactionTypeEnum.botrntComplete
                    _Receipt.Lines.WarehouseCode = "01" (Wahre House Code )
                    ' Try to add the Draft object to the database
                    Ret = _Receipt.Add()
                    If Ret <> 0 Then ' If the addition failed
                        Company1.GetLastError(ErrCode, MsgErr)
                        MsgBox(_ErrCode & " " & MsgErr)
                        SBO_Application1.StatusBar.SetText("Item Could not be issued !!!!!") ' Display error message
                    Else
                        _Receipt.Add()
                    End If
    here i got error -5002 IGN1 trnas type ..something like that...
    if anybody tell me how to resolve this error..
    thanx

  • Not able to select Base unit in Receipt from production and Sales order

    Can anybody help me out for the below scenario
    I have defined Sales UOM , Sales Packaging UOM, Items per Sales unit and Quantity per Packing UOM  for all finished product in the item master.
    I have created Production BOM and Production Order (with Issue method is Manual because they maintained items batchwise ) for all Finished products. 
    Based on Production orders, I received finished products(Batch wise) through receipt from production.  But the base unit shows Yes and it is not allow me to change. 
    In Sales order, the quantity column shows the value of quantity per packing UOM instead of Items per sales unit. 
    For Ex. ItemA - 01 No (Item per Sales Unit)
                             3600 Pcs ( Quantity per Packing UOM)
                             Receipt from Production - 10 Nos
                             In Sales order - it shows 36000 (10*3600 ) instead of 10 nos
    Expecting favourable solution for that.

    The selectable units on the sales order are the inventory unit or the sales unit. So if you want to see in units of 3600 Pc-s you should define this as Sales Unit (not as packaging unit). Then you can show the item in this unit in the sales documents.
    (In the receipt from production document you should always use the inventory Uom.)
    Edited by: István K#rös on Dec 22, 2009 10:07 AM

  • UDF in receipt from production

    Hello Experts
                   Can we create UDF in receipt from production window?
    regards
    Manoj

    Hi Manoj,
    Both answers are right. Receipt from production and issue for production share the same structure of marketing document. You can treat it the same way. However, the UDF will also be available to all other marketing documents too.
    Thanks,
    Gordon

  • Not shown batch no in receipt from production

    Hi
    Experts
    we issued the materials to production with batch numbers. but that production was rejected so we have to receipt the materials from that production order only in that time one item batch number was not shown when we take the receipt from production
    Regards
    Venkat.

    Hi Venkat,
    Show the Batch Number Transaction Report Ware house wise with Particular Item No. you have a issue.
    Check Issue Ware house material are outgoing with particular Batch Number or not.
    For that need to post this issue to SAP with this result and reference of note no.1250867 (Inconsistency of Items Managed by Batches / Serial Numbers )
    =========
    Solution
    =========
    In order to fix your database, please, log a support message via the Service Marketplace referring to this note including all relevant information and results of the attached queries.
    Thanks,
    Srujal Patel

  • Receipt From production number - Choose From List

    Hi all,
    How to filter the Receipt from production number only comes in choose from list.  now i used object is 59. when i choose all value comes that means goods receipt, and receipt from production document numbers comes. I want only list out the Receipt from production Numbers only how to i restrict this.
    Thanks & regards
    B.Sudhir

    Hello
    It is very hard to do the CFL, because the information, that is it a receipt from a production is stored on the line level, not on the head level
    you can 2 choices
    1. define a query which includes all the DocEntry related to the Receipt documents, and on form constuction you add them into the conditions of the CFL (it takes much time to build up the CFL)
    2. Define FMS, and assign to your field. And when the user press the TAB key, you call the FMS.
    Regards
    János
    We always done the 2nd method until the cfl was not implemented.

  • Document Date in Receipt From Production in 2007B via DI API

    Hi,
    My item has valuation method "standard" and I had created production Order of current date by DI API and realese it. and by giving same date I try to generate Receipt from Production by DI API. but I am not able to generate Receipt from Production by giving Document Date.
    I got the same problem for goods issue and goods reciept also.
    I also try to format by Bridge from strin to date to application server date but it gives same error.
    Dim ldoc_RecHdr As SAPbobsCOM.Documents
    Dim ldoc_RecLines As SAPbobsCOM.Document_Lines
    ldoc_RecHdr = g_di_company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry)
    Dim ldt_date As Date
    ldt_date = g_di_functions.Format_StringToDate(g_ui_application.Company.ServerDate)
    ldoc_RecHdr.DocDate = ldt_date
    ldoc_RecLines = ldoc_RecHdr.Lines
    ldoc_RecLines.TransactionType = SAPbobsCOM.BoTransactionTypeEnum.botrntComplete
    ldoc_RecLines.BaseEntry = DocEntry
    ldoc_RecLines.BaseType = 202
    ldoc_RecLines.WarehouseCode = ls_WhsCode
    ldoc_RecLines.Quantity = 4
    Dim li_RetVal As Integer
    li_RetVal = ldoc_RecHdr.Add()
    I had tried it by two standalone m/c
    one m/c gives "Server Threw an exception"
    another one gives "Attempted to read or write protected memory.this is often indication that other memory is currupt"
    What can be reason with Document date
    Plaese help me
    thanks for your reply

    Hi,
        Thaks for your answer. I had given Base line also  but It gives error. It does not takes value for "ref2" ,in Header Part also. I had patch level 08.Is it patch level problem.
    i.e. Any thing I give in header part gives error
    Thank for answer

  • Backflush --Goods receipt from Production -- Goods Issue 261 Process

    Hi all
             Can anyone please explain the steps that take place in SAP right from when backflush -goods receipt from production happens to the goods issue with movement type 261. At what point does 914 Interim get involved, TR/TO creation etc..
    I have an issue where there are stranded open TR's left out which are associated to 261 mvmt type and I would like to understand the whole process better to be able to look analyze the issue. .
    Thanks

    Hi,
    In Standard SAP and RF transaction,
    If GR is done for the order, system will generate a TO to place the stock in the warehouse bin, based on the stock placement strategy (thro stock placement indicator) it will search the correct bin location.
    So TO will be generate automatically then you can scan the TO to confirm it through RF gun, warehouse staff can confirm the TO by scanning it (LM03).
    If you need the GR to be done by the production staff by scanning the order number, you need to go with the development, so in the RF gun, they can scan the order and enter the qty to be received and in the back ground TO will be created and warehouse staff can scan and confirm the TO.
    Thanks,
    JK

  • Unit Price in 'Receipt from Production'

    Hi
    Shouldn't the Unit Price in 'Receipt from Production' show the sum of current cost of all items that are within the respective Production Order? That would be AvgPrice for items set to Moving Average and the cost from the respective FIFO layer for items set to FIFO.
    What if the price shown is something completely different ??
    Thanks for any suggestions.
    Franz

    OK, I did some more testing in a test environment.
    It was my mistake that I thought that 'Unit Price' is the value that is posted as cost to the product. Actually, the cost posted is not calculated before really posting, at least it is not shown, since 'Item Cost' is empty before posting. When recalling the same 'Receipt from Production' after posting, 'Item Cost' is populated with the value posted to the Item Master data of the product - which is the correct value as far as I checked up to now.
    I have no clue where the value in 'Unit Price' is coming from and what it represents. If somebody can shed some light on this ....
    Anyway, Thanks
    Franz

  • Return Components in Receipt from Production by DIAPI

    Hi,
    I need to return components from a production order.
    I'm trying to create a receipt from production with some of the items on the production order and the order no of the production order.
    this is my code:
    Dim oEntradaP As SAPbobsCOM.Documents
    oEntradaP = B1Connections.diCompany.GetBusinessObject(BoObjectTypes.oInventoryGenEntry)
    Dim RecSet As SAPbobsCOM.Recordset
    RecSet = B1Connections.diCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
            RecSet.DoQuery(sql)
            RecSet.MoveFirst()
            For i As Integer = 0 To RecSet.RecordCount - 1
                    oEntradaP.Lines.BaseLine = RecSet.Fields.Item("VisOrder").Value.ToString
                    oEntradaP.Lines.BaseEntry = RecSet.Fields.Item("DocEntry").Value.ToString
                    oEntradaP.Lines.ItemCode = RecSet.Fields.Item("ItemCode").Value.ToString
                    oEntradaP.Lines.Quantity = RecSet.Fields.Item("Quantidade").Value.ToString
                    oEntradaP.Lines.TransactionType = SAPbobsCOM.BoTransactionTypeEnum.botrntReject
                    oEntradaP.Lines.Add()
                    RecSet.MoveNext()
            Next
            Dim iRet As Integer = oEntradaP.Add()
            Dim sErrMsg As String
            If Not iRet = 0 Then
                B1Connections.diCompany.GetLastError(iRet, sErrMsg)
                B1Connections.theAppl.MessageBox("Error : " & sErrMsg)
            End If
    I'm geting this error :
    "The field should be empty if the document is referenced to a production order.  [IGN1.ItemCode][line: 0]"
    Regards,
    Ana Silva

    Hi Ana,
    oEntradaP.Lines.BaseLine = RecSet.Fields.Item("VisOrder").Value.ToString
    oEntradaP.Lines.BaseEntry = RecSet.Fields.Item("DocEntry").Value.ToString
    oEntradaP.Lines.ItemCode = RecSet.Fields.Item("ItemCode").Value.ToString
    oEntradaP.Lines.Quantity = RecSet.Fields.Item("Quantidade").Value.ToString
    oEntradaP.Lines.TransactionType = SAPbobsCOM.BoTransactionTypeEnum.botrntReject
    If you fill the BaseLine and BaseEntry fields, you cannot input the ItemCode. The DI API will do that automatically to ensure data integrity.
    Regards,
    Vítor Vieira

  • Undo a receipt from production

    How can I undo a receipt from production. The date is incorrect on the Receipt of production. I want to correct it.
    Zaigham Khan

    Hi
    There is no Undo option in Production order
    U have to Create Good issue as in Goods receipt to nullify the wrong entry and make one more receipt with correct.
    Giri

  • DI API - Receipts from Production

    Hi all,
    Do you know if it is possible to create programmatically Receipts from Production (with DI API)?
    Thanks a lot.
    Cheers,

    Hi Cyril,
    yes, I did it...
    Simply create a InventoryEntry instance and set baseentry property of Document_Lines with DocEntry of your production order.
    Here's a snippet of my code
    Set oInventoryDocument = sboCompany.GetBusinessObject(oInventoryGenEntry)
    oInventoryDocument.Lines.SetCurrentLine 0
    oInventoryDocument.Lines.BaseEntry = SelProductionOrder.AbsoluteEntry
    // SelProductionOrder must be a valid instance of ProductionOrder object
    // Then set other line properties (quantity produced, etc.
    // Finally call ooInventoryDocument.Add()
    Hope this helps

Maybe you are looking for