Serial No in BAPI_GOODSMVT_CREATE

Hi All,
I m developing a Y transaction for GR using Barcode. For that I m using a BAPI 'BAPI_GOODSMVT_CREATE' to post the data.
Our requirement for serialized material is to maintain serial nos manually.
In BAPI, for Serialized material, I maintain a flag 'SERIALNO_AUTO_NUMBERASSIGNMENT'.
If i set 'X' for this flag it autogenerates the Serial Nos. and if i set 'SPACE' it gives me error message while posting the document that 'Maintain serial nos for serialized material', eventhough i have maintained the serial nos.
Can anybody guide me to use this flag?? It will be very helpful to me.
Thanks & Regards,
Sagar Vadher

Hi Cristian,
  I use 10 quantities for GR out of 10 quantities from PO and i fill up the GOODSMVT_SERIALNUMBER with below values.
and SERIALNO_AUTO_NUMBERASSIGNMENT is SPACE.
MATDOC_ITM            SERIALNO
0010                   000000000000000001
0010                   000000000000000002
0010                   000000000000000003
0010                   000000000000000004
0010                   000000000000000005
0010                   000000000000000006
0010                   000000000000000007
0010                   000000000000000008
0010                   000000000000000009
0010                   000000000000000010
Still it gives me error message
'Maintain serial numbers for total quantity'.
Thanks & Regards,
Sagar Vadher

Similar Messages

  • Serial no with BAPI_GOODSMVT_CREATE

    I'm using BAPI_GOODSMVT_CREATE and it seems okay, but sometimes I got the error
    "Exactly 2 serial numbers must be selected (instead of 2)"
    Sometimes there a lot of messages, but the message is the same, but only the quantity that's change - but if I run the program again and again, the message disappears, so I can't debug because I don't know if the error is gone .
    Anybody who knows what the problem can be?

    Hi,
    When you do goods movement for a serial number managed material then you should have respective number of entries in table "GOODMVT_SERIALNUMBER" of the BAPI. If the quantity is 4 then you should have 4 unique entries in the table. Put a debug point before calling this BAPI, and check entries in this table. Make sure it is equal to quantity you are trying to move. Also these serial numbers should be in the stock.
    If the material is not serial number managed then it is not required.
    Cheers,

  • Bapi_goodsmvt_create- serial numbers

    hi!
    i am using this bapi with code = 04(mb1b).
    if i use material with no serial numbers the bapi works.
    if i use material with quantity 2.00 for example and i load the table of the serialnumbers with two records,
    i get error that there is a difference between the serial numbers.
    there is the indicator xsaut in the item table do i need to set it? and what might be the problem?
    thanks

    Hi!
    I guess, your numbering in serial number table is wrong - at least in following topic, it was the solution:
    Serial No in BAPI_GOODSMVT_CREATE
    You have to fill '0001' (e.g. sy-tabix of GOODSMVT_ITEM) into  GOODSMVT_SERIALNUMBER.
    Regards,
    Christian

  • 'Maintain serial numbers for total quantity error in bapi_goodsmvt_create

    HI Experts,
    I am doing a goods movement programatically by using BAPI_GOODSMVT_CREATE.
    Though I am passing the serial no. for the document item still I am getting an error: 'Maintain serial numbers for total quantity'.
    My code goes like this:
    *-- Read all the items for the item category belonging to the plant
         loop at lt_lips into lw_lips where pstyv is not initial.
    *-- Process the goods movement -  Fill the data
              lw_gmvt-material = lw_lips-matnr.
              lw_gmvt-plant = lw_cat-werks.
              lw_gmvt-stge_loc = lw_cat-lgort.
              lw_gmvt-batch = lw_lips-charg.
              lw_gmvt-move_type = lw_cat-bwlvs.
              lw_gmvt-customer = <st_xvbpa>-kunnr.
              lw_gmvt-s_ord_item = lw_lips-posnr.
              lw_gmvt-entry_qnt = lw_lips-lfimg.
              lw_gmvt-entry_uom = lw_lips-meins.
              lw_gmvt-entry_uom_iso = lw_lips-meins.
             lw_gmvt-ref_doc = xlikp-vbeln.
              lw_gmvt-quantity = lw_lips-lfimg.
              lw_gmvt-base_uom = lw_lips-meins.
              append lw_gmvt to lt_gmvt.
              clear: lw_gmvt.
    BOC for serial numbers
              if lt_ser02 is not initial and lt_objk is not initial.
                clear: lw_ser02,
                       lw_objk.
                read table lt_ser02 into lw_ser02 with key sdaufnr = cvbak-vbeln
                                                           posnr = lw_lips-posnr
                                                           sd_postyp = lw_lips-pstyv binary search.
                if sy-subrc = 0.
                  read table lt_objk into lw_objk with key obknr = lw_ser02-obknr binary search.
                  if sy-subrc = 0.
    *-- Check if serial number is populated
                  if lw_objk-sernr is not initial.
    *-- Fill the serial number table for BAPI movement
                      clear: lw_sno.
                      lw_sno-matdoc_itm = lw_lips-posnr.
                      lw_sno-serialno = lw_objk-sernr.
                      append lw_sno to lt_sno.
                  endif. "Serial number not initial
                  endif. "OBJK read
                endif. "SER02 read
              endif. "SER02 and OBJK is not initial
    EOC for serial numbers
            endif. "Category table read
            clear: lw_cat, lw_lips.
         endloop.
    *-- Execute the BAPI only if item table is filled on the above condition
         if lt_gmvt is not initial.
    *-- Fill the header details
            lw_header-pstng_date = xlikp-erdat.
            lw_code-gm_code = lc_03.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
              EXPORTING
                GOODSMVT_HEADER               = lw_header
                GOODSMVT_CODE                 = lw_code
               IMPORTING
                MATERIALDOCUMENT              = lv_mblnr
                MATDOCUMENTYEAR               = lv_mjahr
              TABLES
                GOODSMVT_ITEM                 = lt_gmvt
                GOODSMVT_SERIALNUMBER         = lt_sno
                RETURN                        = lt_return.
    Please suggest.
    Regards,
    Sangeeta.

    Hi Banerjee,
    Actually we are trying to use the same bapi from se37, we are passing all the details which is required to process the bapi_goodmvt_create. But still the bapi returning the same error what sangeeta got in the above. Can you please guide me how to achieve this.
    how the values has to pass to the Serial Number?
    What exactly meant by Counter Values ?
    Regards,
    Siva

  • Maintain serial number for total quantity" error in BAPI_GOODSMVT_CREATE

    Hi!
    I also encountered the error "Maintain serial number for total quantity" in using BAPI_GOODSMVT_CREATE .
    In retrieving the serial number, I use this code:
    Select all
            READ TABLE l_it_ser03 ASSIGNING <ser03> WITH KEY mblnr = <gm_items>-mat_doc
                                                             mjahr = <gm_items>-doc_year
                                                             zeile = <gm_items>-matdoc_itm.
            IF sy-subrc is INITIAL.
              MOVE:
                <gm_items>-matdoc_itm TO l_wa_goodsmvt_sernum-matdoc_itm,
                <ser03>-sernr         TO l_wa_goodsmvt_sernum-serialno.
                APPEND l_wa_goodsmvt_sernum TO l_it_goodsmvt_sernum.
            ENDIF.
    And then i pass the l_it_goodsnvt_sernum to BAPI_GOODSMVT_CREATE.
    The error shows up whenever i tried to execute a PO having the serialised parts from the Goods Issue, but if the GI has no serialized part, the program works well.
    Please, please help.
    Thank you.

    may i know how you solve the issue ?

  • BAPI_GOODSMVT_CREATE with Serial Number

    Dear Gurus,
    Scenario
    We have to transfer serialized Material from one plant to another via STO
    ST order --> Delivery --> PGI (with Serial Number) --> MIGO at recieving plant.
    For MIGO (101) movement we want to use BAPI_GOODSMVT_CREATE.
    Now we have tried many combinations for it.
    if we se GM_CODE = '01'. and Movement Indicator 'B' (for purchase orders) then it gives error "Maintain Serial number."
    So if we maintaine serial number in thetable it says that you "cannot assign this serial number to the material "(AS the serial no is attached to the material at the time of PGI).
    Now if we try to change the the movement Indicator to 'L' (for deliveries) we are getting the error "Update control of movement type is incorrect (entry 101 X X _ L) "
    We have maintianed all necessary fields otherwise it would not give he Maintain srial no error (we think). I know this is very technical. but if anyone has prior knowledge please Help
    Dany

    hI,
    I have on similar error and i made this .  
    header
       IT_HEADER-PSTNG_DATE = SY-DATUM.
       IT_HEADER-DOC_DATE   = SY-DATUM.
       IT_HEADER-PR_UNAME   = SY-UNAME.
       IT_HEADER-HEADER_TXT = W_NUMDOC .
       IT_HEADER-REF_DOC_NO = IT_INPUT-NUMFR.
    Tcod MB01
       IT_CODE-GM_CODE = '01'.
    Fill item
       IT_ITEM-MATERIAL   = IT_PEDNEC-MATNR.     "Material Code
       IT_ITEM-PLANT      = ZGSARMZ-WERKS.      
       IT_ITEM-MOVE_TYPE  = ZGSMOVMOT-TPMOV1.    "Mov. Type
    If necessary used table T156t
    the field  KZBEW  most be used in th internal table .
    IT_ITEM-MVT_IND
       IT_ITEM-MVT_IND    = 'B'.                    
       IT_ITEM-ENTRY_QNT  = ABS( IT_INPUT-QTDSEL ).
       IT_ITEM-ENTRY_UOM  = 'UN'.                 
       IT_ITEM-PO_NUMBER  = IT_INPUT-EBELN.         
       IT_ITEM-PO_ITEM    = IT_INPUT-EBELP.   
    IT_ITEM-STGE_LOC   = .           
    IT_ITEM-BATCH      = .           
    IT_ITEM-COSTCENTER = .          
    IT_ITEM-CUSTOMER   = .           
       APPEND IT_ITEM.
    Regards .
    pedro

  • How to get serial number in bapi BAPI_GOODSMVT_CREATE

    hi everyone
    im using the bapi BAPI_GOODSMVT_CREATE to create goods receipt for a PO but its giving me an error 'Maintain serial numbers for total quantity' and I really dont know how to get the serial number data, i know the table GOODSMVT_SERIALNUMBER should be populated with the serial number data but i dont know where to get the data
    can anybody help me plz?

    Hi,
    Please check the following code
    DATA: lw_header         TYPE  bapi2017_gm_head_01,
             lw_headret        TYPE  bapi2017_gm_head_ret,
             lw_goodsmvt_item  TYPE  tw_goodsmvt_item,
             lt_goodsmvt_item  TYPE  tt_goodsmvt_item,
             lw_return         TYPE  tw_return,
             lt_return         TYPE  tt_return,
             lt_zprefg         TYPE  tt_zprefg,
             lw_zprefg         TYPE  tw_zprefg,
             lw_errorlog       TYPE  tw_errorlog,
             lt_zprefg_temp    TYPE  tt_zprefg,
            lw_afs_goodsmvt_sku TYPE /afs/bapi_gm_sku,
            lt_afs_goodsmvt_sku TYPE STANDARD TABLE OF /afs/bapi_gm_sku.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
         EXPORTING
           goodsmvt_header             = lw_header
           goodsmvt_code               = '04'
      TESTRUN                     = ' '
        IMPORTING
          goodsmvt_headret            = lw_headret
      MATERIALDOCUMENT            =
      MATDOCUMENTYEAR             =
         TABLES
           goodsmvt_item               = lt_goodsmvt_item
      GOODSMVT_SERIALNUMBER       =
           return                      = lt_return
          afs_goodsmvt_sku            = lt_afs_goodsmvt_sku.
    IF sy-subrc EQ 0.
         COMMIT WORK AND WAIT.
       ENDIF.
       LOOP AT lt_return INTO lw_return.
         IF lw_return-type EQ co_msgtyp_e OR
            lw_return-type EQ co_msgtyp_a.
           lw_errorlog-msgtype = lw_return-type.
           lw_errorlog-msgid   = lw_return-id.
           lw_errorlog-msgno   = lw_return-number.
           lw_errorlog-message = lw_return-message.
           APPEND lw_errorlog TO gt_errorlog.
         ELSE.
           UPDATE zprefg FROM TABLE lt_zprefg_temp.
         ENDIF.
       ENDLOOP.
    Pls mark points if helpful
    Line Turbin

  • BAPI_GOODSMVT_CREATE Serial Number not getting generated

    Hi All,
    I am using BAPI_GOODSMVT_CREATE to achieve the functionality of MB1B(Transfer Posting).
    I am able to create the material document successfully.
    But the issue is for materials for which the serial number is mandatory.  If i create the document in MB1B it asks for serial number as mandatory.  But this does not occur for the bapi.
    The BAPI does not create the material number with the serial number.  Further more it does not even validate the value which i enter in serial number(junk value if I enter).
    I am passing the serial number in the table
    GOODSMVT_SERIALNUMBER-MATDOC_ITM = '0001'
    GOODSMVT_SERIALNUMBER-SERIALNO      = 'ABCDEF'.
    Kindly suggest on what should be done.

    Can someone help me out here

  • How to update serial numbers in function module BAPI_GOODSMVT_CREATE

    Hi,
    Can you please let me know how to update the serial numbers for the movement type 561,563 and 565 with the material, plant,  storage location, quantity and Unit of measure values using BAPI_GOODSMVT_CREATE

    Hi,
    Can you please let me know how to update the serial numbers for the movement type 561,563 and 565 with the material, plant,  storage location, quantity and Unit of measure values using BAPI_GOODSMVT_CREATE

  • BAPI_GOODSMVT_CREATE + Serial Number locked by User

    I am posting a GR for a PO and assigning serial numbers in the goodsmvt_serialnumber table. This is working fine for small volumes ie 2000 , but when we reciept larger volumes e.g. 10,000 we are getting the error massage "Serial number    is locked by User    "
    Has anyone got any ideas ?? This program is a copy from one from our Legacy system, so I know that the code is ok, we are upgrading to ECC5.0 from 4.6C.
    Cheers
    Sharif

    Hello,
    I need to work with this BAPI. Actually I am in a "Pre Paid card Project". I 'll have to good receipt from purchase order about 2 million of cards. I am worried for performance problems.
    Do you have any problem in goods receipt for thsi quantity?
    Thanks in advance

  • Error while posting a document using  the  BAPI_GOODSMVT_CREATE

    Hi,
    i was trying to post the Goods Receipt document ( Tcode MB1C) using the bapi  BAPI_GOODSMVT_CREATE
    i am passing the item details and Serial number details.
    the error triggered was Maintain Serial Numbers for Total Quantity
    but i am passing the quantity as 1 ( in item data) and passing one serial number.
    is this error because of data problem or am i missing to pass the value to  some dependent parameter..?
    Please help me out.
    Thanks in advance.
    Sriram

    Hi David,
    i was tring to pass the same.
    in item table we have we have four item details ( below)
    RES_ITEM - Item Number of Reservation/Dependent Requirement
    ORDER_ITNO - Order Item Number
    S_ORD_ITEM - Item Number in Sales Order ( length mismatch with serial  item number)
    PO_ITEM  - Item Number of Purchasing Document ( length mismatch with serial  item number)
    out 4 , 2 are ruled out because of length mismatch. and in the reaming two are
    RES_ITEM - Item Number of Reservation/Dependent Requirement
    ORDER_ITNO - Order Item Number
    this is a Goods receipt document, please let me know which field is required to map with item number in the above two.
    Regards,
    Sriram.

  • BAPI_GOODSMVT_CREATE - Error while posting a Material Document

    Hi Experts,
    We are  trying to do the material document posting using the transaction "MB1C" manually in SAP. The movement type which we are using for the same is "261".  While doing this is, it is asking for a work order number and the Recipient number. We gave the Recipient Number as "123". Material document is created successfully.
    Again using the same transaction  "MB1C" , we are trying to do the reversal of the material document which we posted previously against another work order number for the same material and the serial number if the material is serialised and as well as for the non serialised material.
    Both this case, in SAP the material document is created succesfully. This is done manually in SAP.
    When we are trying to create the material document using the BAPI 'BAPI_GOODSMVT_CREATE', for the above scenario, posting the material document '261' movement type for one work order and the reversal for another work order '262' movement type for the same material (whether it is a serialised or non serialised) we are getting the eror as "RE Qty. transferred exceeded 1 PC: 50,003,695 C001 USED 1200".
    We are passing the following at the item level. MATERIAL Number, Plant, STGE_LOC, ENTRY_QNT, MOVE_TYPE, BATCH, ORDERID, RESERV_NO,  RES_ITEM, ACTIVITY, XSTOB for reversal.
    We are passing the GM_CODE as '05'.
    Please let us know what needs to be changed inorder to create the material document properly without getting errors.
    Thanks in Advance,
    Mohan.

    Hi,
    We fixed this issue by removing the reservation number of the material when we are trying to post the material document with the movement type "262".
    The reason for removing the reservation number for the movement type "262"
    The reservation number is getting created against a work order when we trying to create the work order in IW32. This reservation number is used for validating the stock while we are trying to consume and doing the reversal.
    SAP is allowing us to reverse the consumed quantities only based on the reservartion number and hence we got this error.
    To fix this error, if we are trying to reverse a particular material against a different work order for which it has been consumed previiously, remove the reservation number and item number and try posting the material document.
    Hope this solution will solve your issue:)
    Thanks and Regards,
    Mohan.

  • Use material number with profile serial number in SRM

    Hello,
    I created a material number in the back-end and I transfered it to the
    SRM.
    After creating and approving the PO with that material number, I tried to
    create a confirmation in the SRM and I got the error message:
    "Maintain serial numbers for total quantity".
    I do not have an a suitable field in the SRM.
    Please advice.
    Best Regards
    Eyal Weinreb
    HP

    check it up in ECC.
    even if you do MIGO, you will get same erro message.
    Note 1278707 - BAPI_GOODSMVT_CREATE: Message M7 175 during goods receipt
    You are using BAPI_GOODSMVT_CREATE to perform a goods receipt posting for a subcontracting purchase order where the materials being received are serial number managed. The BAPI incorrectly returns the error message M7 175 (Maintain serial numbers for total quantity) even though the correct number of serial numbers are being passed over in the parameter table GOODSMVT_SERIALNUMBER. This error also occurs when the serial numbers should be automatically created during the goods receipt posting (controlled by the field SERIALNO_AUTO_NUMBERASSIGNMENT in the table GOODSMVT_ITEM).
    Note 1337306 - Goods receipt for stock transport order with serial numbers
    In transaction MIGO, you post a goods receipt for stock transport orders for a material with serial number requirement and the system issues error message M7 175: "Maintain serial numbers for total quantity". On the "Serial Numbers" tab page, all you are told is that the item is not relevant for serial numbers. You are therefore unable to maintain serial numbers, even though there is a serial number requirement for this transaction/event. You can post the goods receipt in transaction MB01.
    IEN                    166     Maintain serial numbers for total quantity
    M7                     175     Maintain serial numbers for total quantity

  • Getting error while posting GR using IBD from BAPI_GOODSMVT_CREATE

    Hi Experts,
    While posting GR from IBD using BAPI_GOODSMVT_CREATE with all necessary values like plant,material,mvttype and serial numbers etc...
    getting error from BAPI return "1  E VLA 315 Item 000010 requires serial numbers; use the inbound delivery dialog".
    I have tried with same IBD number from Tx: VL32N able to post Goods receipt successfully with above data,but whereas tried to post same IBD with Tx:MIGO getting same bapi error as above mentioned.
    I have tried with solutions some of the blogs from SCN but no luck
    is it necessary to implement this note in my system?
    Error message VLA315 during GR for inbound deliv. using MIGO
    Can you please give me suggestions what i have missed in my code/Configurations.
    Thanks,
    Syam

    is it necessary to implement this note in my system?
    Error message VLA315 during GR for inbound deliv. using MIGO
    Yes. Installing notes using Tx SNOTE is very easy. If you find a note that is relevant for your system, just install it.

  • BAPI_GOODSMVT_CREATE - Account Assignment Error

    Hi,
    I have to issue a material from unrestricted project stock to a reservation on a service order(Txn : IW32 ). I'm performing Goods issue with ref to Reservation. For this I'm using the  BAPI_GOODSMVT_CREATE
    and passing the following parameters.
    GOODSMVT_HEADER-PSTNG_DATE                     05/07/2007      
    GOODSMVT_HEADER-DOC_DATE                       05/07/2007      
    GOODSMVT_HEADER-PR_UNAME                      USERS     
    GOODSMVT_CODE                      03
    GOODSMVT_ITEM:                                             
                MATERIAL                      MAT1
                PLANT                            2000                          
                STGE_LOC                     1000                          
                BATCH                            0000001490                    
                MOVE_TYPE                   221                           
                SPEC_STOCK                     Q                             
                VAL_TYPE                       AS_RECVD                      
                ENTRY_QNT                                 1.000              
                ENTRY_UOM                      EA                            
                ENTRY_UOM_ISO                  EA                            
               RESERV_NO                      0000012829
               RES_ITEM                       0005      
    GOODSMVT_SERIALNUMBER :
               MATDOC_ITM                     0001
               SERIALNO                       12  
    When I execute this BAPI it returns me this error message:
    "Enter only one true account assignment  "  (Msgid = KI , Msgno = 249 )
    I did some analysis of this error and found that BAPI internally is finding two account assignment (1. Service order 2. Project)
    When I try to perform this goods issue from txn MB1A it executes perfectly.
    I may be missing some interface parameters.
    Does anyone have any idea about this?
    Thanks,
    Ste

    Hello Delo Celo,
    Please, take a look on fololwing note:
    1046794 FAQ: BAPI for outline agreement
    3.  Question:
    You use either BAPI_SAG_CREATE or BAPI_CONTRACT_CREATE to create a scheduling agreement or a contract with some accounting data. Why is the accounting data not always taken into account?
    Answer:
    Please revise your accounting test data and ensure that a valid value for the serial number is given. Please observe that even for single account assignment the value '01' has to be provided in the field
    corresponding to SERIAL_NO in both tables ACCOUNT and ACCOUNTX.
    Also, please refer following note:
    1339645 BAPI_SAG_CREATE - E06 076
    Hope it helps to solve the issue.
    Cheers,
    Eduardo Junior

Maybe you are looking for

  • SYSTEM FAILURE로 PO STAUTS가 INPROCESS 상태시 해결방법

    제품 : MFG_PO 작성날짜 : 2006-05-17 SYSTEM FAILURE로 PO STAUTS가 'INPROCESS' 상태시 해결방법 ======================================================== PURPOSE Document approval manager가 fails 되어 down 되면 PO는 IN PROCESS 상태가 된다.이 PO에 대한 available한 workflow가 없고,reproces

  • 2x2 table. 4 empy cells. Can hide rows but not columns. grayed out. argh!

    Only one sheet with a single table with 4 cells. I don't see any merged cells. Is there any other attribute that prevents columns from being hidden? I realize that one cannot hide all the columns or all the rows. I was given a spreadsheet months ago

  • Is there another basic network product?

    i'm currently using the demo version of network magic.  it performs one of the tasks that i want (monitoring devices attached), but it doesn't seem to show band usage or give the ability to block a device (worried about wireless intruder) unless the

  • Tables without any entries in it.

    Hello experts, I am new to ABAP development environment. The following tables do not have any valid data in client 001.  The tables are :  MARA, BKPF, BSEG,EKKO,EKPO,VBAK,VBAP But i don't have the access to any other client...so can you please tell m

  • How do I create a pdf document from my scanner?

    How do I create a pdf document from my scanner?