Adding a goods reciept for production sets no unit price

Hey All,
We are performing a goods reciept for production using DI API.
We use a non continuous stock system
On the Bom we have set te price to 5 EUR.   When we report a completion using the Business one client the unit price of the goods issue has a value of 5.
When we add the goods receipt using DI API the price is not set.  After some investigaton we have seen that the DI API automatically uses the last purchase price of the Parent item.  According to me, this means that DI API is using the same logic as the SAP Business one Client
This is a code example of how we are adding the goods receipt:
SAPbobsCOM.Company m_company = new SAPbobsCOM.Company();
                //Set the company properties
                m_company.Server = "Server";
                m_company.CompanyDB = "TEST";
                m_company.UseTrusted = false;
                m_company.DbUserName = "sa";
                m_company.DbPassword = "******";
                m_company.UserName = "manager";
                m_company.Password = "manager";
                m_company.DbServerType = BoDataServerTypes.dst_MSSQL2005;
                //Connect
                m_company.Connect();
                Documents doc = (Documents)m_company.GetBusinessObject(BoObjectTypes.oInventoryGenEntry);
                //doc.Lines.ItemCode = "383100";
                doc.Lines.BaseType = (int)BoObjectTypes.oProductionOrders;
                doc.Lines.BaseEntry = 20035;
                doc.Lines.Quantity = 1;
                doc.Lines.BatchNumbers.BatchNumber = "TEST";
                doc.Lines.BatchNumbers.Quantity = 1;
                doc.Lines.WarehouseCode = "01";
                int error = doc.Add();
                if (error != 0)
                    //Error
                    MessageBox.Show("Error occured with code: " + m_company.GetLastErrorCode() + " " + m_company.GetLastErrorDescription());
Kind regards
Tom Baeyens
Produmex

no replay, clossing threat.

Similar Messages

  • Error during Goods Receipt for Production Order

    Hi All,
    When using MIGO to post Goods Receipt for a Production Order, I got a customize message saying that the posting is only available between 2010.08.25 to 2010.08.27.  I have checked in Business Add-in using SE19 but there are no implementation present.  I know that in Logistic Verification MIRO there is a transaction OMRM to set messages.  I would like to ask is there anything similar for MIGO.  
    Or is there any other place in Configuration which allows me to add these Customize message.
    Thanks.
    Edited by: jamison2004 jordan2004 on Jul 9, 2010 9:09 AM

    Hello Jiaul,
    Sorry I may have mislead you.  The actual error message is "Goods Receipt for Production Order XXXX can only be made on 2010.08.25 to 2010.08.27".  These two dates are the Start Date and FInish Date for the Production Order in CO03, 
    The Basic Start Date for the current Production Order is  2010.08.25
    The Basic Finish Date for the current Production Order is 2010.08.27
    I think what it means is that you can only Post Goods Receipt for the Production Order only after the Basic Start Date of the Production Order.  Do you know where I can find the configuration for this message?
    Thanks

  • Batch derivation in goods receipt for production order

    Hi all,
    i have set up batch derivation for the event 'goods receipt for production order'. The field derived is HSDAT (date of manufacture) /minimum. Although in the batch derivation monitor I can see tha the derivation was performed OK and the correct date (oldest of the components) is selected the field in the Batch is not updated. Can anyone help??

    Hi Vagia,
    Your problem sounds like derivation type issue.
    Please check your derivation type to be static for the 400 event.
    Let us know if this helped.
    Regards.
    St.Pan.

  • BAPI_GOODSMVT_CREATE  for Processing a Goods Reciept for a Delivery

    We have a requirement to use the Goods Movement Create BAPI to create Goods Reciepts for deliveries since it mimics MIGO.  Problem is that we cannot get this BAPI working to Goods Reciept our Deliveries... Has anyone used it for Deliveries? What data is required for the BAPI to work?
    thanks,
    brian

    Give a try on the following BAPI:
    BAPI_OUTB_DELIVERY_CONFIRM_DEC
    Check its documentation.
    Let me know,
    Leonardo De Araujo

  • Automatic Batch determination at time of Goods receipt for production order

    Hi SAP experts,
                             Greetings to you all. I wish to ask a query that how batch is determined automatically at the time of goods receipt for production order .
                             I have done the following settings:
    1.Specified batch level at material level
    2.External batch number assignment
    3.Defined production order condition table '501' (plant/material)
    4.Defined production order access sequence (order type-plant -material)
    5.Defined Production Order Strategy type.
    6.Defined Batch search procedure in Production Order.
    7.Assigned Batch search procedure to Production order type for a particular plant  , batch check not activated.
    Please let me know of any more settings to be checked for the same.
    For example, a production order is being confirmed for a quatity of 5 nos . at a time . However, the GI movement (261 movement type) for the production order components  is taking place for 1 EA qty. from 5 different batches.
    So now, how the system will define the GR (movement type 101) for the production order header material for the qty. 5 nos. EA ?
    It is desired that the system should do GR for the qty.  1 EA of the header material for the 5 different batches (batches which were automatically deteremined for the Goods issue of the components).
    Thanks in advance. good day.
    Best regards,
    RB

    HI Rahul,
    As explained earlier, for e.g., if the GR is taking place for the production order for qty. 5 nos. , and in that , if the component qty. is 1 EA for 1EA of header material ; then , the GR for the header material should take place for the same different batches from which the order components were issued for the order and not for the other batches in stock for the header material as well as components.
    I am not sure if i understand your requirement 100%.
    But let me explain you standard behaviour.
    When Confirmation for production order happens and GR is posted during confirmation , All the GR happens agaist same batch number which i sassigned in production order assignment screen.
    So for all the order qty single batch would be fixed. Say batch A1 is created for Header material for 100 qty.
    Now during components issue to production order, If 100 qty needs to be issued for compoenent B it is possible to use multiple batches of componenets ( using splilt batch functionality /or manual batch number entry agaist componenet in goods movement screen) but header batch remains the same.
    Check and Revert,
    Santosh Sarda

  • Bins problem while creating goods receipt for production order.

    Hi All,
              I am facing a problem with selection of bins while creating goods receipt for production order in transaction MB31 and MBBE.
    The order of filling bins is with respect to storage Unit not by document no, Please suggest something.
    The scene is like that.
    The bins are not filled in the proper sequence, the system checks for the empty bins and filled those later on.
    like this,.
    Typ StorageBin  SC SS    Stock Avail.st BUn GR Date    DocumentNo Storage Unit         Time   
    SLoc Batch      Re IA PutawayS Pick qty Cert. No.                                                                               
    VN1 106A088                 0        0  CS  01/25/2010    4739297 1005721391           10:00:59
    100  0001020069            60        0                                                        
    VN1 107B076                 0        0  CS  01/25/2010    4739298 1005721392           10:01:01
    100  0001020069            60        0                                                        
    VN1 108B076                 0        0  CS  01/25/2010    4739299 1005721393           10:01:04
    100  0001020069            60        0                                                        
    VN1 109A077                 0        0  CS  01/25/2010    4739300 1005721394           10:01:06
    100  0001020069            60        0                                                        
    VN1 110B079                 0        0  CS  01/25/2010    4739301 1005721395           10:01:08
    100  0001020069            60        0                                                        
    VN1 106B088                 0        0  CS  01/25/2010    4739302 1005721403           10:01:11
    100  0001020069            60        0                                                        
    VN1 123B158                 0        0  CS  01/25/2010    4739303 1005721389           10:01:13
    100  0001020069            60        0                                                        
    VN1 124A160                 0        0  CS  01/25/2010    4739304 1005721390           10:01:15
    100  0001020069            60        0                                                        
    VN1 118A133                 0        0  CS  01/25/2010    4739305 1005721396           10:01:17
    100  0001020069            60        0                                                        
    VN1 119A128                 0        0  CS  01/25/2010    4739306 1005721397           10:01:20
    100  0001020069            60        0                                                        
    VN1 120B162                 0        0  CS  01/25/2010    4739307 1005721398           10:01:22
    100  0001020069            60        0                                                        
    VN1 121B159                 0        0  CS  01/25/2010    4739308 1005721399           10:01:24
    100  0001020069            60        0                                                        
    VN1 122B159                 0        0  CS  01/25/2010    4739309 1005721400           10:01:26
    100  0001020069            60        0                                                        
    VN1 123B159                 0        0  CS  01/25/2010    4739310 1005721401           10:01:29
    100  0001020069            60        0                                                        
    VN1 124B160                 0        0  CS  01/25/2010    4739311 1005721402           10:01:31
    100  0001020069            60        0                                                        
    Thnks you,
    Anmol.
    Edited by: anmol112 on Jan 25, 2010 10:34 PM

    no replay, clossing threat.

  • 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

  • Good receipt for production order

    Hi experts,
    When good receipt for production order 60003408 , it shows error "No valid order items exist for order 60003408" like this how to resolve this...
    In diagnosis they were specified as change into good receipt in production order screen but in default it shows GR Non-valuated.
    Thanks

    Hi,
    You can create production order directly from sale order at CO08.
    You can create the production order without material in CO07.
    CO07 specially meant for Rework order (Production order without material) 
    Hope claer to you.
    Regards,
    R.Brahmankar

  • Not Possible to Process Goods Reciept for an Asset Purchase Order.Pl. Help!

    Dear All,
                                                                              I m not able to do Goods Reciept for a Purchase Order . It is an Asset P.O.As  i  wants to Process Goods Reciept am getting a System Message in task Bar as --> "No Goods Reciept Possible for Purchase Order
    XXXXXXXXXX. Message No. M7036.
    Can ne one please help me what to check in this P.O , The Message generated is not an Error it is a Message in task bar with Green Tick, Hope you got it.
    Please Help ,
    Rgds n thanx in advance.
    sap11

    Hi,
    Following could be the possible reasons for this message:
    o   The purchase order contains no items in the specified plant. - If you have specified plant in MIGO Screen, remove it and keep it blank, let system determine it from PO.
    o   The item specified does not exist. - If you are entering PO line item in MIGO screen then keep it blank and let it get determined form PO
    o   Currently, the scheduling agreement has no open schedule lines, or the schedule lines have not yet been transferred. - This is applicable in case of GR against Scheduling Agreement
    o   The item category of the purchase order items in the plant does not allow goods receipts. - Check the Item Category in PO, it should be blank.
    o   The purchase order items in the plant have been deleted or are blocked.
    o   For confirmation control for the order item(s) to be carried out, a confirmation (shipping notification) must have been received. This has not yet been entered. - Check under "Confirmations" Tab in PO whether any confirmation control key has been specified or selected wrongly. If yes then either create Inbound delivery in VL31N and then do MIGO or remove the Confirmation Control Key from PO ans Save and then do MIGO.

  • Automatic goods reciept in production confirmation.

    I have created production order for finished product which is having 3 operations.
    when I am doing confirmation from CO15 then it shows message that automatic goods reciept is not possible for all operations.
    and in goods movement of confirmation also it is showing the good issue of raw material with movement type 261 but not goods reciept.
    So please help me.

    Hi
    maintain Auto GR setting in production scheduling profile in IMG  then assign this to the finished product  in material master work scheduling view
    regards
    Dev

  • Goods Receipt for Production Order SDK example

    Hi all,
    Is it possible to do a goods receipt for a Production Order with the SDK?
    (I've tried but have no ideia hoe to fill the Documents & Document_Lines objects)
    If somebody could help me by providing an example, it will be great!
    Thanks all!
    mdias

    Ok, I've found the solution.
    I only need to set BaseType = 202 of my Documents object.
    Thanks anyway,
    mdias

  • Problem in Goods Reciept for PO w/ Internal Order. (GL Acct related)

    Hello guys not too long ago I asked you guys how to post an IO to a PR. So far it works except when I post the PO (after converting it from the PR) it to the Good Reciept I get an error message appeared.
    It goes something like this ...
    "Account determination for entry HXXX KBS HXXX not possible"
    "Diagnosis - The system did not find an account for this transaction. This means that the account determination for key HCMI KBS HCMI is not maintained in MM  Customizing (Valuation). The key is made up of:
    o  Chart of account                      
    o  Transaction key (= Posting transaction)
    o  Valuation grouping code               
    o  Account grouping code                 
    o  Valuation class"                       
    System response - The system cannot update a G/L account for this transaction. You cannot post the transaction.
    If you have the authorization, check the Account determination in Customizing for Valuation.                                       
    </b>
    From what I understand there is no G/L account assigned does not have a corresponding G/L account. My question is if that is the case, how does one assign a G/L Acct for that particular IO? And would that solve error I am getting? Thanks people and take care.

    Hi Chad.
    What about if you check with your MM Functional Consultant and try to provide him/her the OMWW transaction (MM Account Determination Wizard) to check whether the G/L Account is correctly set for this combination of data.
    regards,
    Daniel Carvalho.

  • Trapping Events such as Goods Reciept for Purchase Order

    Hi,
    I want to be able to trap events such as a Goods Reciept and respond to it.
    Because this can happen both in the goods reciept form or the AP Invoice Form or by automatic posting, is there a way to 'listen' for this event behind the scenes ?
    I also want to do it with reciepting production orders.
    Thanks
    Nick

    HI,
    USe SP_TRANSACTIONNITOFICATION for trapping events at SQL server SIDE.
    I am suggesting:
    1. Create your table
    2. Write a simple code in T-SQL into SP_TRANSACTIONNITOFICATION  which the monitored event inserts rows into your table
    3. Check the table from your addon and process the rows inside,
    Or use the following solution:
    Re: Stored Proc - BP Account On Hold
    It is hard, but working.
    Regards,
    J.

  • Early Inspection for a Goods Receipt for production order

    Dear Experts,
    This  is with respect  Early Inspection for a Goods Receipt for inspction type 04.( 03 is also active in material master)
    We made partial confirmation  250 qty for production order using t code co11n ( total qty of production order is 1000).
    made the usage decision with an acceptance and posted all open stocks. to unrestricted.
    Now  in second partial confirmation prodn order  of 250 qty was made . This suppose to be rejected .  but sytem will add this 250 qty directly to unrestricted stock .  how to over come this .
    Regards
    Sandeep

    Don't make the UD until all stock has been receipted?
    You basically approved the batch.  So why wouldn't the system put the stock to unrestricted?
    Why would you make a UD when you still have stock to be posted anyway?  You can post stock without without making a UD so why not just post some if you need it, and wait on making the UD?
    Craig

  • Reciept for production

    Hi All
    When we Release the Production Order from the Planned Stage .
    1) Can we able to make Receipt for Production Order without Issue for Production with the issue Method Kept as Manual.
    If yes then what is the concept behind it, to do Receipt before issue.
    Mona

    You can create a Receipt from Production without an Issue for a manual method, but I don't know why you would want to do so.  I consider it a design defect in Business One.  With the backflush method, the component items are automatically reduced, but with the manual method they are not, so when you do a Receipt without Issue, you are increasing the finished item inventory without indicating that you have used any of the components.  If you really acquired the finished items without using components, you should probably enter a Goods Receipt or Goods Receipt PO, not a Production Order.  If you actually did produce the item using components, then you should enter an Issue for Production to decrease their quantity.

Maybe you are looking for