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

Similar Messages

  • Good receipt for serialized material

    Hi
    We are using Serial number functionality. When we do good receipt for serialized material, we canu2019t enter more than 6 serial no together. Generally we used to procure 50 -100 materials. We will get serial no to excel sheet by barcode scanner. But when we entered in SAP, system allows only 6 material .
    Is there anyway we can copy from excel sheet and paste it in SAP all materials together.
    Thanks
    Jeny

    Hi
    Yes there is a way of uploading more than 6 materials at a time in MIGO screen,
    You need to  first upload or create the serial numbers for the material using an LSMW for IQ01 & here donot give any plant or storage location specific details
    At the time of Goods receipt Copy the material serial numbers by clicking on find in MIGO in serial number tab, you need to enter the material & serial numbers copying from the excel sheet & click execute this will list all the serail number , you can select them all & copy into the MIGO screen.
    This is how we didi it in our system.
    Thanks & Regards
    Kishore

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

  • 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

  • Goods Receipt without Serial number?

    Hello Experts,
    Is there a way to do goods receipt on a material without entering the serial number even if the material is maintained with a serial number profile?
    Is there some type of special stock you can put the material into where you do not need to enter the serial number?
    rgds
    GAR

    Nope. If a material is serialized it will require a serial number. The only other way i can think of is having another plant where that material resides and unserialized but its not recommended.
    Regards
    Adeel

  • Post Good Receipt without serial number

    Dear Expert,
    My client use serial number management for good movement. But they have requirement to set serial number as blank when they perform GR non stock (GR for PO with account assignment) while serial number still mandatory for GR stock (GR for PO without account assignment). Is there any possibility to accommodate this requirement? Is there any user exit or enhancement to post GR non stock without serial number while serial number usage in serializing procedure set as 03 (Obligatory). Please kindly help. Your response is really appreciated and helpful answer will be rewarded.
    Thank you.
    -Stephanie-

    Hi,
    You have the solution already, tell the users not to use the material master when procuring non-stock items.
    Because later on your are going to reach a point where users want to procure non-material however they will use a material number and forget to enter a account assignment and then what is going to happen????
    It will result in procurement of stock materials...
    What are they procuring using material numbers as non-stock items????
    Thanks
    Silas

  • Create Inspection Lot for Serial Number

    Hello,
    Is it possible to create an Inspection Lot and associate it to a Serial Number right away.
    I've done a process were I've change the Material and Serial Number of my equipment, so now the old inspection lot is not usefull no more and I would need to have a new inspection lot so that the movement to place the stock on unrestricted is cone for the new inspection lot.
    Or is that any other way to do this???
    Thanks in advance.
    BMO

    Atul,
    The inspection lot is created when the mobile is delivered from client and dismantled, and my stock gets increased for the returned material - that stock remains in Quality.
    Later when the Usage Decision for the Inspection Lot is given (depending on the selection) my stock passes from quality to unrestricted, and this is the normal process without issues.
    Possible exception:
    If in the midle of the process I've to change the serial number for this mobile or to change the Material + serial number, the first Inspection Lot created is not helpfull to me because I can´t change there the Material or serial number. So the Usage Decision would be given for the old serial number, isn't it?
    Today I found a Ztransaction that is used to create Inspection Lot. In the first step the material, goes in the warehouse in Quality and in the second step, when the Usage Decision is given, the stock passes from Quality to Unrestricted.
    For the substitution Material / Serial number everything is correct, but for the first one it's not, should this obsolete stock goes to scrap?
    Thanks,
    BMO.

  • Import new quantity (PO Good Receipt) with serial number

    Hi,
    After reading all the threads related to this topic, Iu2019m a bit mixed-up.
    If my company is genuine new and Iu2019ve got no quantity in my stock, what is the best way to upload using a Good Receipt, quantities from a PO triggering at the same time creation of Serial Number?
    Thanks
    Stéphane

    Hi Stéphane,
    Good Receipt and Good Receipt PO are two different objects.  One is only inventory adjustment. The other is linked to PO.  GRPO would be better but more process would be needed including all PO imports.
    Thanks,
    Gordon

  • 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

  • Enter goods receipts for vendor .... only (Message no. M7107)

    Dear all,
    I know there are postings on this topic but I was unable to find the information I need.
    We have designed a process whereby we issue some goods (slices, for example) directly to the DC (3PL) which distributes them subsequently to the stores.
    We do this with the two-step stock transfer (we create an STO, do the GI with movement type 351 and the DC does the GR whereupon we receive the data file via the interface and a program converts and creates an IDoc for GR with movement type 101).
    We get the error status of the inbound IDoc after the GR takes place at the DC. However, if we are to perform a manual GR with MIGO, it works.
    What goes wrong in this process?
    Thank you in advance for your valuable input!
    Regards,
    Miro

    Hi,
    Do refer the below KBA , which explains you that transaction MIGO allows you enter multiple purchase order with single goods receipt.
    Which is a std behavior of the system.
    KBA: 1612531 - MIGO allows multiple purchase orders for a single goods receipt

  • 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

  • Goods receipt for subcontracting order! BAPI_GOODSMVT_CREATE

    I wanna use BAPI "BAPI_GOODSMVT_CREATE"  to create goods receipt for subcontracting order.
    But it says that this combination is not possible.  Combination of my movement type and this BAPI.
    What can i do to solve it?
    thanks in advance.

    >
    Julia Nikiforva wrote:
    > I wanna use BAPI "BAPI_GOODSMVT_CREATE"  to create goods receipt for subcontracting order.
    > But it says that this combination is not possible.  Combination of my movement type and this BAPI.
    >
    > What can i do to solve it?
    >
    > thanks in advance.
    Might work
    report zbapi_goodsmovement.
    parameters: p-file like rlgrap-filename default
    'c:\sapdata\TEST.txt'.
    parameters: e-file like rlgrap-filename default
    'c:\sapdata\gdsmvterror.txt'.
    parameters: xpost like sy-datum default sy-datum.
    data: begin of gmhead.
    include structure bapi2017_gm_head_01.
    data: end of gmhead.
    data: begin of gmcode.
    include structure bapi2017_gm_code.
    data: end of gmcode.
    data: begin of mthead.
    include structure bapi2017_gm_head_ret.
    data: end of mthead.
    data: begin of itab occurs 100.
    include structure bapi2017_gm_item_create.
    data: end of itab.
    data: begin of errmsg occurs 10.
    include structure bapiret2.
    data: end of errmsg.
    data: wmenge like iseg-menge,
    errflag.
    data: begin of pcitab occurs 100,
    ext_doc(10), "External Document Number
    mvt_type(3), "Movement Type
    doc_date(8), "Document Date
    post_date(8), "Posting Date
    plant(4), "Plant
    material(18), "Material Number
    qty(13), "Quantity
    recv_loc(4), "Receiving Location
    issue_loc(4), "Issuing Location
    pur_doc(10), "Purchase Document No
    po_item(3), "Purchase Document Item No
    del_no(10), "Delivery Purchase Order Number
    del_item(3), "Delivery Item
    prod_doc(10), "Production Document No
    scrap_reason(10), "Scrap Reason
    upd_sta(1), "Update Status
    end of pcitab.
    call function 'WS_UPLOAD'
    exporting
    filename = p-file
    filetype = 'DAT'
    IMPORTING
    FILELENGTH =
    tables
    data_tab = pcitab
    EXCEPTIONS
    FILE_OPEN_ERROR = 1
    FILE_READ_ERROR = 2
    NO_BATCH = 3
    GUI_REFUSE_FILETRANSFER = 4
    INVALID_TYPE = 5
    OTHERS = 6
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    exit.
    endif.
    gmhead-pstng_date = sy-datum.
    gmhead-doc_date = sy-datum.
    gmhead-pr_uname = sy-uname.
    gmcode-gm_code = '01'. "01 - MB01 - Goods Receipts for Purchase Order
    loop at pcitab.
    itab-move_type = pcitab-mvt_type.
    itab-mvt_ind = 'B'.
    itab-plant = pcitab-plant.
    itab-material = pcitab-material.
    itab-entry_qnt = pcitab-qty.
    itab-move_stloc = pcitab-recv_loc.
    itab-stge_loc = pcitab-issue_loc.
    itab-po_number = pcitab-pur_doc.
    itab-po_item = pcitab-po_item.
    concatenate pcitab-del_no pcitab-del_item into itab-item_text.
    itab-move_reas = pcitab-scrap_reason.
    append itab.
    endloop.
    loop at itab.
    write:/ itab-material, itab-plant, itab-stge_loc,
    itab-move_type, itab-entry_qnt, itab-entry_uom,
    itab-entry_uom_iso, itab-po_number, itab-po_item,
    pcitab-ext_doc.
    endloop.
    call function 'BAPI_GOODSMVT_CREATE'
    exporting
    goodsmvt_header = gmhead
    goodsmvt_code = gmcode
    TESTRUN = ' '
    IMPORTING
    goodsmvt_headret = mthead
    MATERIALDOCUMENT =
    MATDOCUMENTYEAR =
    tables
    goodsmvt_item = itab
    GOODSMVT_SERIALNUMBER =
    return = errmsg
    clear errflag.
    loop at errmsg.
    if errmsg-type eq 'E'.
    write:/'Error in function', errmsg-message.
    errflag = 'X'.
    else.
    write:/ errmsg-message.
    endif.
    endloop.
    if errflag is initial.
    commit work and wait.
    if sy-subrc ne 0.
    write:/ 'Error in updating'.
    exit.
    else.
    write:/ mthead-mat_doc, mthead-doc_year.
    perform upd_sta.
    endif.
    endif.
    FORM UPD_STA *
    form upd_sta.
    loop at pcitab.
    pcitab-upd_sta = 'X'.
    modify pcitab.
    endloop.
    call function 'WS_DOWNLOAD'
    exporting
    filename = p-file
    filetype = 'DAT'
    IMPORTING
    FILELENGTH =
    tables
    data_tab = pcitab
    EXCEPTIONS
    FILE_OPEN_ERROR = 1
    FILE_READ_ERROR = 2
    NO_BATCH = 3
    GUI_REFUSE_FILETRANSFER = 4
    INVALID_TYPE = 5
    OTHERS = 6
    endform.

  • Transaction BORGR: No tolerance on goods receipt for Kanban calloff

    Hello,
    we have the following situation:
    - MM scheduling agreement with tolerance of 10% for under and overdelivery, production supply "summarized JIT call" is set.
    - KANBAN cycle has 1 empty container with a summarized JIT call for replenishment, quantity 10 pieces.
    - ASN has been created with BORGR transaction, it contains: 1 line item for the material with delivery quantity 9 pieces, assigned to this line item is the JIT call with notified quantity 9 pieces as well.
    My expectation was that the JIT call can be booked with 9 pieces as it is inside the 10% tolerance defined for the scheduling agreement. In addition, I expected the KANBAN container be set to full.
    Instead, the following error message is given:
    'Post GR' carried out without success
    (Message no. BORGR215)
    Because of previous error, dispatching is not possible for ID 0180573431
    (Message no. /SPE/ID_HANDLING011)
    Inbound Delivery 0180573431 00010
    (Message no. BORGR210)
    Total of the summarized JIT calls does not match the current delivery qty
    (Message no. BORGR540)
    Changing the delivery quantity and the notified JIT quantity to 10 pieces, the goods receipt is booked correctly.
    I only found the following notes that deal with tolerances but they are outdated, as we are using DIMP release 603:
    https://service.sap.com/sap/support/notes/393421
    https://service.sap.com/sap/support/notes/508215
    Has anybody faced a similar problem or can help me with this?
    Thanks!

    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

  • Could not create Goods receipt.

    Hi,
    In a program, we are trying to create Goods Receipt for Purchase Orders by calling the function module MB_CREATE_GOODS_MOVEMENT. But it is just giving the error message "No goods receipt possible for purchase order & &". But we are not able to find out why it is giving this message. Could anyone please help me to resolve this error message.
    And for some Purchase Order items, it is giving the message "Batch Cannot Determined", please let me know why this error is coming for few items.
    Thanks..
    Priya.

    BZZZZ Wrong. I purchased "Clocks" by Coldplay and it is not a plus version and I am getting the -42160 error. I closed and reopened iTunes and still it doesn't work. However 5 minutes earlier I successfully created a ringtone from another song I purchased. Go figure...

  • 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

Maybe you are looking for