While creating Goods Receipt for multiple serial numbers it is generating an internal error

Error:Internal error (-5002) occurred  [ 131-183]
we are using version SAP B1 9.0 PL 4
The code which we are using.
       Dim oPDN As SAPbobsCOM.Documents
       oPDN = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes)
                     Dim serno As String = "SH-A1,SH-A2"
                    Dim sernoval As String() = serno.Split(",")
                    Dim mnfser As String = "SH-B1,SH-B2"
                    Dim mnfserval As String() = mnfser.Split(",")
                    For k = 0 To sernoval.Length - 1
                        oPDN.Lines.SerialNumbers.InternalSerialNumber = sernoval(k).Trim
                        oPDN.Lines.SerialNumbers.ManufacturerSerialNumber = mnfserval(k).Trim
                        oPDN.Lines.SerialNumbers.Quantity = linedetails(iRowNo).Quantity
                    Next
                oPDN.CardCode = "C232323"
                oPDN.Lines.ItemCode = "A00004"
                'oGR.Lines.LineNum = 0
                oPDN.Lines.BaseLine = 1
                oPDN.Lines.BaseEntry = 202
                'oGR.Lines.BaseRef = 203
                oPDN.Lines.BaseType = 20
                oPDN.Lines.Quantity = 1
                oPDN.Lines.UnitPrice = 2
                oPDN.Lines.WarehouseCode = '01'
             oPDN.Lines.Add()
             lRetCode = oPDN.Add

Hi Vasanth,
I'm not really fluent in VB, but I think that a SerialNumbers.Add() and SerialNumbers.SetCurrentLine() are missing before the Next
Regards,
Eric

Similar Messages

  • 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.

  • Problem in picking base value from PO while doing goods receipt for multiple POs

    Hi,
    Our user is trying to post goods receipt for two purchase orders which have same vendor. After the materials of two POs are allocated in the item detail screen and checked the item ok, system throwing error as "Please check the base value of the item is zero" ( also excise tab does not appear for last three line items). This error does not occur when we are trying to do the goods receipt separately for each POs. Only when we do goods receipt for both the POs together, we are facing this error.
    Please let us know what could be the reason. Is there an issue with standard CIN? Any notes to be applied? Please help!

    Refer these notes for the issue.
    1528009 - MAA: incorrect distribution of goods receipt
    quantities
    and
    1677707 - Determining the valuation type for stock transport orders
    at the time of GI
    For Excise tab not appearing, you have to check J1ID for "Material-ChapterId combination" and "Cenvat Determination".
    Regards
    Binoy

  • Goods receipt for multiple vendors

    Hi
    Can it possible to do Goods receipt for multiple vendors at a time ?
    Also can it possible to do automatic goods receipt ?

    Hello Sanjay..plz go through the below link
    http://help.sap.com/saphelp_46c/helpdata/en/b1/c04bc4439a11d189410000e829fbbd/content.htm
    Thanks
    Arshad

  • DIAPI - Create Goods Receipt for Serial Number - on Release Only

    Hi Experts,
    I need your advise to create Goods Receipt by using DIAPI, where the item is managed by Serial Number - on Release Only.
    The option that I'm exploring is to use ‘Automatic Serial Number Creation on Receipt’ turned on.
    In standard SAP function with the above setting, we can create a Goods Receipt without entering any Serial Number, and SAP will automatically creates empty Serial Number. I'm trying to do the same thing by using DIAPI with the below code.
    oTargetDocument.Lines.ItemCode = 'abc'
    oTargetDocument.Lines.WarehouseCode = 'whs'
    oTargetDocument.Lines.UnitPrice = 100
    oTargetDocument.Lines.BinAllocations.BinAbsEntry = 1
    oTargetDocument.Lines.BinAllocations.Quantity = 1
    oTargetDocument.Lines.Quantity = 1
    '--       I skipped the below code, expecting SAP will create the empty Serial Number automatically
    '     oTargetDocument.Lines.SerialNumbers.SetCurrentLine(0)
    '     oTargetDocument.Lines.SerialNumbers.InternalSerialNumber = 2
    '     oTargetDocument.Lines.SerialNumbers.Add()
    '     oTargetDocument.Lines.BinAllocations.SerialAndBatchNumbersBaseLine = 0
    oTargetDocument.Add
    But, it returns 1470000838 - Invalid "SerialAndBatchNumbersBaseLine"; specify a valid "SerialAndBatchNumbersBaseLine"
    Can anyone please advise how we should achieve this?
    Any example or reference is very much appreciated.
    Thank you and kind regards,
    Krisma

    Hi Krisma,
    I was trying to simulate the issue here, but I couldn't post a good receipt PO even from the SAP itself with the setting you mentioned.
    I have set the management method as 'On Release' and ticked the Automatic serial number creation flag as well under general settings of inventory. Is that the setting you mentioned or something else?
    Best Regards,
    J S L Geeganage

  • Error while doing Goods receipt for process order. Error code: "BS027"

    I am getting error while doing GR for a day whereas previous day(s) GR is already done and also 2 days post that day are also done successfully.
    Error :  ""Goods receipt for prodn. order" is not allowed (ORD XX-CEMTSAL) " (XX = First two characters of plant code)
    Error code: BS027.
    Thanks to all in advance.

    Hello,
    This issue would occur when you want to post a confirmation for a production order. The error message is generated if you wanted to post a backflush for a component and if this component was assigned to a sales order stock. The sales order itself was assigned to a work breakdown structure element which should be debited with the actual costs. However, the business transaction 'Confirm' is not permitted for a work breakdown structure.
    Please look into SAP Note 62367 and 64370
    Hope the information is helpful
    regards

  • Error while doing Goods Receipt for Production Order

    We have created following test data in our Development System:
    Production Order:1000016
    We have processed the abv. production order thru create, release & confirm stages.However, on doing Goods Receipt of the Order thru MB31, system is giving following error:
    Msg.No.NA M7001:Check Table TFBEFU_CR entry 10 does not exist.
    Can u pl help me in analysing the same.
    With Rgds.,
    Rakesh Kumar
    09324847499

    Hi,
    Maintain the OPK9 (Valuation Variant for the Order Costing).
    It will go thorugh..
    Otherwise revert for further discussion..
    Regards,
    Siva

  • Goods receipt for multiple line items

    I have a SC with two line items:
       L1 = 5 pieces
       L2 = 10 pieces
    Let's say the supplier delivered 5 pieces of L2 and L1 is still outstanding. I cannot do a goods receipt for 5 pieces for L2 and 0 for L1 as it requires a number larger than 0. Does anyone know if this can be done in SRM?
    We're currently on SRM4.0 with classic scenario.
    Thanks much.
    SN

    That was silly. I didn't even see the tick marks. I thought it was strange that it didn't allow me to carry out such goods receipt.
    Thanks,
    SN

  • Unable to create Goods Receipt for Scheduling agreement

    Hi,
    I am have setup Scheduling agreement. When i try to create the Goods receipt on MIGO by entering the agreement #, I get an error : Purchase Order not yet released.
    Please help, I couldn't find similar issue reported on this forum.
    Thanks
    Ramya

    Release SA by T-code ME35L , If it's PO Release by ME29N

  • Cannot add row without complete selection of batch/serial numbers while creating Goods receipt purchase order

    Error:Cannot add row without complete selection of batch/serial numbers
           Dim oPDN As SAPbobsCOM.Documents
           oPDN = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes)
                         Dim serno As String = "SH-A1,SH-A2"
                        Dim sernoval As String() = serno.Split(",")
                        Dim mnfser As String = "SH-B1,SH-B2"
                        Dim mnfserval As String() = mnfser.Split(",")
                        For k = 0 To sernoval.Length - 1
                            oPDN.Lines.SerialNumbers.InternalSerialNumber = sernoval(k).Trim
                            oPDN.Lines.SerialNumbers.ManufacturerSerialNumber = mnfserval(k).Trim
                            oPDN.Lines.SerialNumbers.Quantity = linedetails(iRowNo).Quantity
                            oPDN.Lines.SerialNumbers.SetCurrentLine(k)
                            oPDN.Lines.SerialNumbers.Add()
                        Next
                    oPDN.CardCode = "C232323"
                    oPDN.Lines.ItemCode = "A00004"
                    'oGR.Lines.LineNum = 0
                    oPDN.Lines.BaseLine = 1
                    oPDN.Lines.BaseEntry = 202
                    'oGR.Lines.BaseRef = 203
                    oPDN.Lines.BaseType = 20
                    oPDN.Lines.Quantity = 1
                    oPDN.Lines.UnitPrice = 2
                    oPDN.Lines.WarehouseCode = '01'
                 oPDN.Lines.Add()
                 lRetCode = oPDN.Add

    Hi Vasanth,
    Invert the SetCurrentLine () and Add() at the end of the SSSerialNUmbers loop.
    Regards,
    Eric

  • Network budget exceeded error while creating Goods receipt/Invoice

    Hi,
    I created project , wbs element, and network and released the project...i created a Po using this network...after that i went to CJ30 and allocated budget for WBS element..I activated availablity control check and define the tolerance limits for all transaction groups (++) with usage as 3(Error message) but i am not getting any error message while creating GRN/Invoice...what setting i have to made to check the budget availablity at the time of goods receipt creation and invoice creation....
    Thanks
    regards
    Dinesh.a

    Hi Dinesh,
    First of all you check whether you have assigned the budget profile in Network Profile or not. 
    Question for you: I want to hide out Account Assignment Element for first 2 levels of WBS Element and i want to consider from 3rd level onwards for specific project profile.  Any Idea.
    regards.

  • Error while creating Goods Receipt.

    Hi all,
    I am generating a goods receipt against the purchase order but the system is showing me an error message when i click the check button, the message is: Number range for Trans/event type WE in year 2011 does not exist. Now when i go in the detail of this message it says: "A key allowing the user to differenciate between transaction and events that occur in Inventory management.  the transaction/event type controls the processes of document storage and document number management."
    Document no. range is already there for 2011 for doc type WE (#50).  Automatic posting configueration is correct. Than what could be the problem.
    Please suggest.
    thanks,
    kamal

    HI,
    Kindly check the WE document type in the T.code  OBF4, If you have maintained it year wise then u have to define the number range for every year i.e for eg
    NO 50 (for doc type WE),year 2011,from no 190000000, to no 199999999
    NO 50 , year 2011, from no 190000000, to no 199999999
    You have to maintain it for each and every year
    If you define the Number range irrespectie of year then you have to config like below
    no 50 , year 9999 , From no 190000000, to no 199999999
    You have to maintain only if the numbers has got exhausted in the system.
    Kindly check once again
    thank you
    D vasanth

  • Multiple Account Assignment at the time of Good Receipt for one line item

    Sap Members.     
      We have some contracts with cost center distributions that the exact amount is not known.  These Blanket Orders require a receiving confirmation.then only we can conclude the cost center, If we create one line item with total amount of contract to one cost center, is there a way can we distribute this cost to the different cost centers at the moment receiving the goods
    Any help will be highly appreciated.
    Thanks
    Nick

    Please Check SAP Notes - Oss Notes
    With multiple acct. assignment, enter GR non-val. or cancel GR
    Message no. 06417
    Diagnosis
    In the case of PO items assigned to more than one account, instead of valuation being carried out at the time of goods receipt, the relevant materials are not valuated until the invoice data is entered into the system.
    Procedure
    •     Set the indicator for non-valuated goods receipts
    or
    •     Cancel the GR indicator.
    OSS-Notes.                              -
    Version: 5        -
    Validity: valid since 12.04.2007
    Note 204252 - Valuated goods receipt for multiple account assignment
    Summary
    Symptom
    You cannot use the valuated goods receipt function in combination with multiple account assignment.
    Other terms
    EKPO-WEUNB, screen 0113, ME21, purchase order, 06417, 06 417
    Reason and Prerequisites
    We have not implemented this function since users who post goods receipts would have to determine the distribution to individual account assignment items during  partial deliveries. Generally, users cannot or should not determine this.
    An automatic distribution also causes problems and is also not implemented due to technical reasons

  • Unable to upload serial number from desktop while doing goods receipt MB01

    Hi,
    We have upgraded our system from 4.7EE to ECC6.0. While doing goods receipt for purchase order (MB01) in ECC 6 for serial number profile material, I can't find the option for uploading serial number from desktop where as the same option was there in 4.7.
    Please help me .....
    Thanks
    Nrusingha Dash

    Hi Experts.,
    Thanks for all of you for responding my questions.
    I found my question resloved.
    Actually, in previous version, the standard program has been modified by taking access key. When the upgradation happened, it got overwrited to the previous one. So, in recent version it is not appearing.

  • Batch number issue when posting goods receipt for Subcontracting PO

    Dear expert,
    I always heard there will be issues while posting goods receipt for subcontracting PO. If the component is managered by batch.
    No batch number will be proposed during PGR in MIGO...
    I dont quite understand where is the issue??
    My understanding:
    We have batch managered components and End Product. All have batch numbers, then we PGI the stock to 'SC stock' via 541 movement type.
    Then Vendor will finish the end product and send us back the end product.
    We consumption the components use 543 O movement type? And GR the end product..
    So while goods receipt, the sytem just need pick the existing batch number for both components and finish products..
    Where are the issues???
    Thanks.

    Hoo Laa wrote:
    I have questions for people always mentioning there are issues with batch determination while post goods receipt for subcontracting orders.
    >
    > I am thinking maybe they didnt active the batch determination for 543 movement type..
    >
    > Thanks.
    Hi Hoo,
    You are right!!
    Setting of batch number determination has its importance in Mvt Type be it 541, 543....
    The issue you might have observed would be with Batch Determination in Goods Issues which folks find it bit tough to achieve n make it work for them.
    Cheers!!
    Shiva

Maybe you are looking for

  • Lookup in Stored Procedure

    Hi Guys, I'm facing the following problem. I would like to write a stored procedure which insert into a table. What I want is that if I run again the procedure I'd like to write only the new records and update the existing records. Does anyone has an

  • Splitting Files and Insert

    Hi I am inserting bulk of records to temp tables from flat file using control files and sqlloader. There are million of records in a file. Someone suggested me to split records in the file and insert. Can anyone suggest an optimum number of records p

  • I am unable to open documents

    I recently got the new iPad and I have been unable to open documents.  I was previously able to on my old iPad.  Any suggestions?

  • How to develop a Chart from Actions button of an Interactive Report ???????

    Hi I am trying to implement a chart from Actions button of an Interactive Report through frond end. I am getting the Flash Security error for this. I know we have to change the HOST variable for this. But i am not sure where exactly I do this. For a

  • For Each Child in Controls

    To clear all the checkboxes on a form, I can do either this:         Dim chk As CheckBox         For Each ctl As Control In Controls             If TypeOf ctl Is CheckBox Then                 chk = CType(ctl, CheckBox)                 chk.Checked = F