Goods Receipt entry for items with serial number

Hi All,
When I try to create a Goods receipt entry, for items with serial number, i'm always getting the following error message.
[OSRI] , 'The selected quantity of serial/batch numbers is greater than the quantity in row Id'
The following is the code that I'm using
Dim oInvetoryGenEntry As SAPbobsCOM.Documents
Dim oSerialNumber As SAPbobsCOM.SerialNumbers
Dim ErrCode As Long
Dim ErrMsg As String
Dim ret As Long
Set oInvetoryGenEntry = oCmp.GetBusinessObject(oInventoryGenEntry)
Set oSerialNumber = oInvetoryGenEntry.Lines.SerialNumbers
oInvetoryGenEntry.DocDate = Now
oInvetoryGenEntry.DocRate = 1
oInvetoryGenEntry.TaxDate = Now
oInvetoryGenEntry.PaymentGroupCode = "3"
oInvetoryGenEntry.Comments = "GRN Entry11"
oInvetoryGenEntry.Lines.ItemCode = "A00004"
oInvetoryGenEntry.Lines.Price = 100
oInvetoryGenEntry.Lines.Quantity = 1
oSerialNumber.SystemSerialNumber = 55555
oSerialNumber.InternalSerialNumber = "2354"
oSerialNumber.BatchID = "bt1"
oSerialNumber.Add
ret = oInvetoryGenEntry.Add
If ret <> 0 Then
        oCmp.GetLastError ErrCode, ErrMsg
        MsgBox ErrCode & " " & ErrMsg
    Else
        MsgBox "GRN Entry made."
    End If
It would be wonderful if anyone help me out to trace the exact reason for this issue.
Thanks
John

Hi John I'm almost sure that your working with SDK 6.5 with SP1 or lower, visit this address
https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode6-1&contenttype=url&content=https://DI: Add more than one serial numbers in Invoice
Maybe you can find your answer if you can fix it let me Know my email address is [email protected] because i had the same problem.
Regards

Similar Messages

  • In CO11N, no auto goods receipt & issues for materials having serial number

    Hi,
    I had activated for auto GR and backflushing for materials to happen auto GR and issue during confirmation - CO11N,
    FG material w/o serial number are auto receipted and SFG materials w/o serial number are auto issued during confirmation.
    But auto goods receipt and issues are not happening for materials happening serial number assigned, even these materials cant be seen in goods movement view in CO11N.
    Plz inform if any settings are to be made.
    Thank you in advance.

    Thank you very much for all of your replies,
    So with respect to SAP note 39230, it is not at all possible to have an automatic goods receipt or goods issues for serialized materials within an order confirmation.
    Thank you,
    with regards,
    Basanagouda Gudageri

  • No goods receipt possible for purchase order message number# M7036

    Hello,
    We are working in 4.7C , Created the scheduling agreements, with Shipping notification(Inbound delivery)   .
    Created the Scheduling agreement on 25.09.2009 and created the schedule line one same day with date 25.09.2009, (time column Blank).
    So in Practice for Goods receipt we are using MB0A t code for GR,(not using MIGO)..while MB0A..iam going to make GR with ref to Shipping notification then system will through below given message.
    No goods receipt possible for purchase order
    5500001447 0001
    Message no. M7036
    tried every thing but unable get. shar your views
    Regards
    Sapman man

    Hi
    If you use Shipping notification then you have to create inbound delivery VL31n and do the PGR in inbound delivery  VL32N itself.
    Incase of scheduling agreement schedule lines you have to make sure the following
    1) Schedule line delivery date shoud be todays date or in the past
    2) Schedule must be released by using message type based on the type of schedule ( Normal, JIT or forecast)
    Hope it helps
    Thanks/Karthik

  • No goods receipt possible for PO with confirmation

    Hello gurus,
    My standard PO has to be confirmed according to feed back from vendor.
    Then in confirmation tab, I selected the standard confirmation control "confirmations".
    The GR is then not possible, which is the standard behaviour.
    Now I got back to my PO in change mode, selected the "AB" confirmation category for order acknowledgment, enter a quantity and a delivery date and save this PO.
    BUT this is still not possible to do the GR...why that? what could be the problem behind?
    I precise
    - the goods receipt indicator is set
    - there is no PO history
    - before filling any confirmation control, I had the possibility to make the GR w/o problem.
    Could you please help?
    Thx in advance.

    Hello C Olivia,
    In the standard confirmation control 0001 - Confirmations, which you use in the PO, the confirmation sequence is:
    - AB - Order Acknowledgement - The vendor confirms that he can meet the requirment of your PO.
    - LA - Inbound Delivery - this one is sent from the vendor when he ships your goods.
    In your test you are partly doing the confirmation process and that is the problem. Without the second part (LA) the system won't let you make the GR. So what you need to do is go to ME22N change the PO by adding LA in the confirmation tab, add the quantity which is to be shipped, save and do the GR.
    And yes, you can create new confirmation control with different sequence (one step) which can also solve the problem.
    Regards,
    MD

  • No goods receipt possible for purchase order Number and Item number.

    Hello experts,
    When I create a Goods Reciept with reference to Purchase Order using BAPI_GOODSMVT_CREATE, the following error message appears.
    No goods receipt possible for purchase order <PO number> <line item number>.
    But the GR is getting created manually using Transaction MIGO for the same PO number.
    I found some blogs to check for deletion indicator and Movement type and quantity, when I searched SDN for the same Issue.
    In my case 
    1.deletion indicator is not set for the Purchase order line items
    2.And Movement type is 101
    3.And gm_code is 01.
    Could anyone please suggest me, what else could be the reason for this error?

    Here is the code what i have written.
      f_gmvt_header-pstng_date = sy-datum.
      f_gmvt_header-doc_date   = sy-datum.
      f_gmvt_header-pr_uname   = sy-uname.
      f_gmvt_header-ref_doc_no = p_ebeln.
      f_goodsmvt_code_tmp        = '01'.
    * Looping the PO details.
      CLEAR: gf_item,f_gmvt_item.
      LOOP AT gt_item INTO gf_item.
    * fill the bapi item structure details
        f_gmvt_item-material   = gf_item-material.
        f_gmvt_item-plant      = gf_sbms-werks.
        f_gmvt_item-stge_loc   = '0001'.
        f_gmvt_item-move_type  = '101'.
        f_gmvt_item-po_number  = p_ebeln.
        f_gmvt_item-po_item    = gf_item-po_item.
        f_gmvt_item-entry_qnt  = gf_item-quantity.
        f_gmvt_item-entry_uom  = 'PC'.
        f_gmvt_item-entry_uom_iso = 'PCE'.
        f_gmvt_item-po_pr_qnt = gf_item-quantity.
        f_gmvt_item-orderpr_un = 'PC'.
        f_gmvt_item-orderpr_un_iso = 'PCE'.
        f_gmvt_item-no_more_gr = 'X'.
        f_gmvt_item-ref_doc    = p_ebeln.
        f_gmvt_item-prod_date  = sy-datum.
        f_gmvt_item-mvt_ind    = 'B'.
        f_gmvt_item-move_reas  = '101'.
        f_gmvt_item-vendor      = gf_lfm1-lifnr.
        APPEND f_gmvt_item TO t_gmvt_item.
        CLEAR f_gmvt_item.
      ENDLOOP.
    * cALL THE bapi fm FOR gr POSTING
      CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
        EXPORTING
          goodsmvt_header               = f_gmvt_header
          goodsmvt_code                 = f_goodsmvt_code_tmp
    *     TESTRUN                       = ' '
    *     GOODSMVT_REF_EWM              =
       IMPORTING
         goodsmvt_headret              = f_gmvt_headret
    *     MATERIALDOCUMENT              =
    *     MATDOCUMENTYEAR               =
        TABLES
          goodsmvt_item                 = t_gmvt_item
    *     GOODSMVT_SERIALNUMBER         =
          return                        = t_return
    *     GOODSMVT_SERV_PART_DATA       =
    *     EXTENSIONIN                   =
      IF sy-subrc = 0.
    * For commit the changes use BAPI_TRANSACTION_COMMIT FM.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = 'X'.
    *      MOVE: f_GMVT_HEADRET-MAT_DOC   TO WA_DET-MBLNR,
    *            f_GMVT_HEADRET-DOC_YEAR  TO WA_DET-MJAHR,
    *            f_GMVT_HEADER-REF_DOC_NO TO WA_DET-EBELN.
    *      APPEND WA_DET TO IT_DET.
    *      CLEAR WA_DET.
      ENDIF.

  • MB26 ,CO27 - goods issue components with serial number?

    Hi ,everyone!
    I know CO27 and MB26 can do goods issue to production order very easily and quickly!
    But It seems CO27 and MB26 can not work well with the component with serial number.
    I aslo know MB1A and MB1B can post goods issue for component with serial number.But in MB1A and MB11 , it is very difficult to can material by material number quickly while doing more then 100 components issue to one production order.
    And for authorization purpose we restrict MIGO not to use goods issue for production order.
    So I want to ask how CO27 and MB26 do goods issue for the component with serial number?
    Or there is another ways to goods issue component with serial number to production order easily,exclude MB1A,MB11 and MIGO?
    Thanks for any reply!

    Hi Vivek     
    We use CO27 for goods issue to production order ,just like MB1A goods issue to production order.
    But in the BOM components of the production orders ,some semi finished products are with  with serial numbers ,so we can not use CO27 or MB26 to issue these components with serial numbers to production orders!

  • CO27, MF60 with serial number

    Hi Everyone,
    Does anybody know whether we can post goods issue for component with serial number using t-code CO27 and MF60... if can, how?
    I know MB1A and MB1B works with serial number.
    Best Regards,
    Bin

    Hi Bin,
    We can not post goods issue for component with serial number using t-code CO27 and MF60.
    In case of Serial number, auto GI (using backflush) / auto GR (indicator in PSP or routing key) does not work.
    Automatic goods movements are not permitted for materials that require serial numbers. However, if an automatic goods movement is specified for a material that requires a serial number then an error record is written. This error record can be displayed using the reprocessing function but it cannot be posted. Error records for materials that require serial numbers must be deleted manually. The goods movement must then be executed manually in inventory management.
    Regards,
    Sandeep

  • Goods receipt MB01 with serial number problem

    Dear MM Experts,
    Iam a PM Consultant and this problem faced me while doing goods receipt from external maintenance order so i will appreciate any help regarding this issue,
    In serial number profiles i did the stock check indicator to give an error message if there were incosistinces in stock data,
    now this is the scenario:
    after doing an external maintenance order and creating a PO with reference to the maintenance order PR, and also entering the specified serial number in the PO:
    1) Goods Issuing: i used MB1B with movement type 541 and as the serial number already exist and not wrong so it didnt show any error messages and by checking the stock data in MMBE the material was in stock provided to vendor.
    2) Goods Receipt: when using MB01 with movement type 101 and when entering the serial number of the material it gives an error message ALTHOUGH it is the same serial number issued and the same serial number in the PO
    This is the error message :
    Stock data of serial number G081 not suitable for movement
    Message no. IO231
    Diagnosis
    The current stock information for the serial number G081 contradicts the stock information of the movement to be posted. The following stock information is valid for the document and the serial number:               Batch Number Stock data Serial data   C2
    Only the first different field for the stock data/serial data is assigned. However, further data may also be inconsistent. To determine whether this is the case, you can start an analysis.
    System Response
    Two system responses are possible (set using Customizing): If the case of an error occurring, the assignment of the serial number to this posting procedure is not possible. In the case of a warning, you can, if necessary, transfer the notification.
    Procedure
    Assign a serial number which corresponds in your stock information to the stock data of the posting. You can display the serial numbers which can be used using Select serial numbers.
    Any help is appreciated
    Thanks in advance

    Hello,
    A possibility to fix serial number status is by running the report RISTEQ07 in SE38 transaction. Please run this report as mentioned in the SAP Note 316868 (point 2).
    While running the report please consider following points:
    The report does not set any locks on the records to be corrected, in other words, the report should only then be executed in the correction mode if the master records (within the client) are not being used in another (changing) access.
    During the search for inconsistent serial numbers, the system assumes that the stock segment is correct and the existence indicator might be incorrect.
    In the correction mode, the existence indicator is adjusted (depending on the existence of the stock segment).
    The report provides a test option (LP_TEST); if this option is active,  the system only checks whether inconsistencies exist. Corrections are  only carried out if the test mode is deactivated. Option LP_EXTD for the enhanced check should remain deactivated for the first run. In particular, if no inconsistency is recognized, the run should be repeated with the activated option.
    Another possibility is to create/post a physical inventory document for the affected material and serial number.
    Determine which material serial number is really on stock (physically on stock). You can do this, by either analyzing the history of each Serial Number or by carrying out a physical inventory.
    Before posting the Physical Inventory the stock validation of the serial number profile of the material has to be switched off in OIS2 transaction (if it is switched on).
    When you do this, you will get a Pop-up, please read the long text and execute the report RISERNR9 which is mentioned there.
    After executing this report the inventory can be posted. When this is done please switch stock validation on again and execute report RISERNR9 again.
    Perform this inconsistency correction only when you are sure that no one else is working on the system otherwise it could lead to more inconsistencies while the stock validation is switched off. Check SAP Note 612132 for further details.
    In another words, you have to:
    Create a physical inventory in MI01 transaction;
    Enter a counted quantity in MI04 transaction;
    Define each serial number to each qty on stock.
    I hope this information helps you.
    Good  luck,
    Fábio Almeida
    MM Consultant

  • Good receipt with serial number already on stock W

    dear all,
    I have this issue:
    Company "A" sent a material (with serial number) to another company "B" in SAP (Intercompany flow) with customer consignment stock (W).
    Company B has to post the good receipt for that material but the system shows the error message that the serial number can't be used.
    My question is:
    is it possible to post the good receipt for a serial number already used in another plant, special stock W?
    Thank you
    Enrico

    Sorry jurgen:
    Serial number 1000152198 cannot be used here
    System status ESTO is active (EQU 1000152198)
    Thank you
    Regards
    Enrico

  • Why can't Best Buy retrieve receipts for devices with serial #'s

    Unfortunate situation...I took one of my visiting exchange students to best buy to buy an iPAD 2...of course she is a foreign student so paid with cash.  She was so excited that she immediately took it out and started playing with it.  The next day she discovered that there was a minor defect on the ipad display.  If you are viewing a page with a white background, you can see two vertical shadows on the ipad screen...it is very subtle but for a 22year old student who just spent 2 weeks worth of salary on it, a very big deal! Unfortunately she couldnt find the receipt so shes stuck.  I called best buy and they stated they cannot help.  I just dont understand...if you have a device with a serial number why not....isnt that stuff inventoried?  Doesnt BB keep track of that.  It woudl seem easy enough to me to pull something up by serial #.

    Good morning trinisoca1976!
    It was terrific of you to take your student to purchase an iPad 2 from one of our stores! I am sorry to hear that it wasn’t in the condition it should have been out of the box. It is true that we do not capture serial numbers unless it is a product that needs service activation, such as mobile phones or tablets with 3G/4G capabilities. For these items, the serial number is captured during the activation process.
    While we wouldn’t have been able to locate the receipt by the serial number, we have a multitude of other ways to locate a receipt. We can track down receipts with your personal information, or as the store did for you, with the information such as time, date, register, and transaction amount. I am happy to know that the store manager was able to locate the receipt and get this issue resolved for you by exchanging the iPad 2!
    I hope your student is enjoying their iPad 2!
    Best wishes,
    Tasha|Social Media Specialist | Best Buy® Corporate
     Private Message

  • BAPI_GOODSMVT_CREATE, will do the goods receipt ( MB01 )for the subcontracting PO with batch management.

    Dear Professionals ,
    I Just want to confirm that whether BAPI "BAPI_GOODSMVT_CREATE " will do the goods receipt ( MB01 ) for the subcontracting PO with batch management.
    Since I will be passing only 101 mvy type in BAPi, will the system automatically call 543 mvt type with batch management and post the consumption.
    can I change the batch of the component items ?

    Hi ,
            Delivery note is like a ref document number
    so you can use the
    In the BAPI_GOODSMVT_CREATE There is header structure BAPI2017_GM_HEAD_01 which has a field REF_DOC_NO
    you can pass the delivery note value to that field .
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Jul 10, 2008 3:41 PM

  • To Set Goods Receipt Indicator For Particular Line Items In SRM

    Hi All,
      i am working on BBP_DOC_CHANGE_BADI in SRM. i am trying to set the goods receipt indicator for particular line items based upon certain conditions. The values are being set in the badi. But when the Purchase Order is created in the backend R/3 i coudn't able to find the goods receipt indiactor being set..
    i used this field to set the GR indicator
      GR_IND = 'X'.  " Goods Receipt Indicator
    Can anyone help me in this?
    helpfull answers will be rewarded....
    Thanks,
    Murali

    To Murali and Christophe,
    I have set the GR and GR non val indicator in CREATE_PO BADI but I face the following situation :
    problem -
    In case of multiple account assignment in the shopping cart, the R/3 transaction ME21N sets these flags. 
    The flag status determined as per EBP conditions is lost.
    I need to retain the flag status as per EBP conditions even in this multiple account assignment scenario.
    proposed solution -
    - CREATE PO badi is already implemented in EBP and customised logic for GR and GR non valflag is in place.
    - I create user exit in R/3 backend system in ME21N transaction 
    - I make RFC call in this user exit to EBP and check the table BBP_PDPSET for the shopping cart.
    This is how I get the flag status as per EBP conditions and copy the same to R/3 thereby overriding the multiple account assignment check of the R/3 system.
    issue - 
    When I tried to verify that I can check the BBP_PDPSET table from R/3, I found that this table is not having entries for all the records in  CRMD_ORDERADM_I table.
    For which shopping carts will the BBP_PDPSET table not  be populated ?
    thank you in advance,
    Bhakti.

  • How to add serial number contolled item with serial numbers in sales order.

    Hi OM Functional Experts,
    I need a help on sales order booking.
    We have serial controlled items in our inventory. At the time of booking a sales order, we need to call the items with the appropriate serial numbers [ for example, if i book an item for a qty of 10, then, the system should get the details ( serial number ) of the 10 item's serial number ].
    And the serial numbers are Pre-defined by the organization for their internal tracking from the porcess 1 till end of the assembly line.
    The purpose of this step, is to reduce the particular serial numbered item from the inventory, when we reserve/pick release the sales order.
    thanks in advance.
    Rdx,
    J kannan
    Edited by: J Kannan on Feb 17, 2009 1:23 AM

    Kannan
    OK. Unfortunately reservations cannot be created at the serial number level. So the unsupported way of doing this is updating the mtl_serial_numbers tables. I hope you would know (by some means) which serial numbers you want to allocate to a specific sales orders. If you know, update group_mark_id column in mtl_serial_numbers table with your order_line_Id, This will avoid any one from picking the serial numbers (they will not come up in the LOV or will not be auto allocated).
    But you have to make sure to take it off when you actually want to pick this order line and allocate this serial number. So just before you pick release/ confirm this order line you need to update column back to null so that you can allocate that serial number.
    Thanks
    Nagamohan

  • Error when doing GR for production order with serial number

    I'm not familiar with serial number and equipment management but I'm trying to help my user resolve this issue.
    This product is returned from customer site.
    I saw that this material is being reset in IQ02 from status in warehouse to become Available when the material is consumed in the production order via 261 movement type. So now the status is available. Then the user went to change a new serial number. Later, GR for production order is done in MB31. Errors are encountered when prompted to enter the new serial number.
    Configurations XX01 and XX02 are different
    Message no. CX126
    Configuration of serial number SN02 incompatible with document item
    Message no. IO226

    Hi..
    Can you please explain in detail, I facing same problem, while assigning unrestricted stock to sales order.
    Regards,
    Sumit Pukale

  • Inbound IDoc for Sales Order Creation with Serial Number

    I would like to create Sales Order with Serial Number input at Item Level using IDoc. I have tried to use the followings:
    1) Basic Type : ORDERS05
    2) Message Type : ORDERS
    3) Process Code : ORDE
    I have used segment E1EDP19 with the followings:
    1) QUALF = '014'
    2) IDTNR = Serial Number
    However, it fails. It seems that the system just expects us to input BOM explosion number (VBAP-SERNR) instead of the Serial Number that I want.
    If we use VA01, we can input the Serial Number from Menu: Extra --> Technical Objects.
    Is there any idea what should I do ?

    The error message is "Entry 1276 does not exist in SNUM - check your entry" (Message no. 00058).
    1276 is the Serial Number that I input. It treats the Serial Number that I input as the BOM explosion number (VBAP-SERNR).
    Regards,
    Alan.

Maybe you are looking for

  • Why is ical creating unwanted alerts for all-day events?

    If anyone can point to what might be going wrong here I'd be grateful. This is becoming a daily irritant. I have a number of all-day events listed for most week days in my diary which help me to know what is happening that day with childcare for my s

  • Options Team number

    Finally got around to  making my end-of-contract call and  the number seems to have changed? 0800-7832-326 no longer has an option #5. Of the others, only option #2, Billing, is remotely appropriate. But that leads to #1 Tell us you have made a payme

  • Variable to load data upto a fiscal period

    Hi gurus ,    i had created a customer exit variable Such that it gives the data from first month of the fiscal year to the period which is feed by the user in  a user entry variable 0P_FPER. our fiscal year start from october  (2009001). let user fe

  • Only able to view entered info. on PDF form when I preview it?

    I was almost finished completing a 127 page form and when I went to open it today I was unable to view all of the information I have entered.  The info. is no doubt there because I can view everything I've entered when I preview it but once I open th

  • JSP: making a jsp page wait

    How can I do to let my jsp page wait for a number of seconds before performing a task? I can't do it with javascripts, and I can't do it with threads. /Emil