Error in bapi_goodsmvmt_create: Maintain serial numbers for total quantity.

Help!
I am using bapi_goodsmvmt_create.
But it always return the error message : Maintain serial numbers for total quantity.
I passed all the required parameters as specified in the forums that i had browsed.
Pls advise what is the cause of the error?
Thanks and God bless.

Hi Sridhar!
Thank you for the very helpful link.
That link ended solve my problem. 
Sorry for this late reply.
navi

Similar Messages

  • '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 ?

  • In Purchase Order Line item Maintaining Serial Numbers for Material Codes

    Dear Gurus,
    We have a business process in legacy system for Purchase Order like in PO line item, Material code with description, Quantity, unit of Measurement, Serial Number Start and Serial Number End is maintained, for example for Material code when we enter the data AXMLN00001 in Serial Number Start column, if the Qty 500 is maintained, by default system will calculate AXMLN00500 in Serial Number End column. 
    We understand that in standard SAP we donu2019t have this option of maintaining Serial Number Start and End in Purchase order Line item. Please let us know how this can be mapped and is it advisable to create two Z fields in EKPO table or else can we make any development.
    Suppose if this is not possible in SAP for PO then in Banks if we want to place a order for Cheque books how we can maintain Start and End Serial Numbers to print in cheque books.
    Also client is not agreeing to maintain manually Serial numbers in item text.
    regards,
    Dhanu

    Aamir,
    When the PO Item was created say for example Material had Valuation category "Y" and latter you wanted to change the category to "Y". Now system would have check for all open PO's etc...based on this you must have set Deletion Indicator to this Line Item to allow valuation category change in material master. Now when this Item got created in the table level (EKPO), system updates the valuation category "Y". Currently this valuation category is not active so it would not allow you to perform removal of deletion indicator as program cannot automatically nor you have an option to manually update the valuation category to this Item.
    Regards,
    Prasobh

  • Serial Numbers for Sales Orders

    We have a business Process where we do not maintain any serial numbers for the products. How ever one of our customer maintains serial numbers for the products that come to their warehouse.
    This customer will send in the serial numbers for each material and quantity in the inbound 850 Idoc and he wants those serial numbers to be printed on top of the boxes. so that he can scan them while receiving the GR and do automatic posting at thier system.
    we have to store this serial numbers against this sales order and print them in the shipping tags for the finished products  that are to be sent to  this customer.
    Now
    1) we do not want to use serial number profiles because it effects every sales order / delivery created for that material. the serial numbers should be assigned only to the orders from this specific customer.  Is there any way to acheive this?
    2) in the sap idoc 850 ( message type ORDERS05) how do we store the serial numbers. what segment and fields are available for this purpose. 
    3) how to save this serial numbers in the sap system against the sales order created for this customer.
    Your answers will be highy appreciated.
    Thanks,

    Thanks for all those wonderful replies..
    I am looking more at  a standard solution. with minor changes..
    Storing the serial numers in text items is possible but not practical, the more the quantity the more difficult and time consuming is this process for ex if this customer orders 10,000 qty. then it would be tough.. and again to solve that problem we have to break   the qty into multiple line items and this is only a alternatve but not a good solution i guess.
    I thought  this scenario should be more in practice because, customers can request us to put their serial numbers on the packing boxes that we send them.
    So just wondering if any our colleagues have already worked in this scenario.. While doing a search I saw a couple of questions regarding the same situations back in 2005 and 2007  but the questions were marked as answered without mentioning the solution they approached to solve this problem.
    Can any of you suggest me whether is this scneario a standard one ?

  • DI-Error: You cannot select batch or serial numbers for a closed row

    Hello Experts,
    I have several B1-Systems connected to R/3-Systems via B1iSN.
    In B1 for example I have 2 rows in Purchase Order. One row was closed by a goods receipt - 1 row is still open.
    From our R/3-System we send Order-Acknowledgements to B1. Because line 1 is already closed we want to ignore row 1 and update only information in row 2. By using KeyExpansion I could solve that requirement (check in B1-System if row is already closed -> insert row in IDoc only with LineNum). For example:
    <Document_Lines>
      *<row>* <!-- ignore -->
        *<LineNum>0</LineNum>*
      *</row>*
       <row> <!-- update -->
        <LineNum>1</LineNum>
        <ItemCode>ABCDEFGHIJK</ItemCode>
      </row>
    </Document_Lines>
    Unfortunately DI-API does not allow to update each row separated. I always have to send all rows in IDoc even if one row is closed.
    For one B1-Company batchnumbers on every transaction is required. When creating Goods Receipt we have to define a batchnumber for item. But now if I want to update a open row (as described above) I get an B1iSN-Error:
    DI Error: (-10) You cannot select batch or serial numbers for a closed row
    Any ideas to solve that Error? Thanks.
    Regards,
    GB

    Hi Bastian,
    I have still one open question. How to tread Document Lines Additional Expenses?
    If I use the logic of visual order I still get the error "You cannot select batch or serial numbers for a closed row".
    Example:
    <Document_LinesAdditionalExpenses> 
    -      <row>
               <LineNumber>4</LineNumber>*no expenses*
    </row>
    -      <row>
               <LineNumber>0</LineNumber>*no expenses*
    </row>
    -     <row>
               <LineNumber>1</LineNumber>*no expenses*
    </row>
    -     <row>
               <LineNumber>2</LineNumber>*no expenses*
    </row>
    -     <row>
               <LineNumber>3</LineNumber>*expenses correct*
               <ExpenseCode>3</ExpenseCode>
               <LineTotal>10.00</LineTotal>
    </row>
    </Document_LinesAdditionalExpenses> 
    How can I solve that?
    Thanks and regards,
    GB

  • How to maintain serial no for sales order created by BAPI

    Hi all,
    We are using BAPI for creating sales order "BAP_SALESORDERDAT2" but we are not able to assign Serial number while using this BAPI. Is there any function modul, BAPI, or workarround available to solve this problem. Or how to maintain Serial number.
    Regards
    Shambhu Sarkar

    Hi
    It is not possible to to maintain serial numbers with the normal SD
    BAPIS. This functionality is not scope of the BAPIS.
    regards,
    Ramana

  • Movements of a material which maintains serial numbers

    Hi experts,
    Need to track the movements of a material which maintains serial numbers. Need to get data such as PO number, PO line item,  Material code, GR number, GRN date, serial number of the item, Goods Issue note, issue date and the text feild.
    pls note that the requirement is need to fulfill in a single report,
    eg: For the material XYZ we have raised a po namely ABC123
    the most important thing in this report is to get the GRN, Serial number and the goods issue note
    with the use of ITOB table i can get the serial number and with the use of MSEG can get the GRN
    problem is with the issue note
    ichecked with IQ 09 T code and using the history tab i can get the movement of that serial number
    but when you check the table which maintain data for the movement of serial number, they are maintained in structure and not in a table,
    therefore how can i get the required information
    pls assist to solve this, thanks in advance
    Sasika

    Check IQ09 Tcode.

  • I have the Photoshop Photography Program and every time I try open Photoshop CC it asks me for a Serial Number. It keeps saying my trial period has ended. How can I get this working since Adobe doesn't issue Serial Numbers for CC.

    I have the Photoshop Photography Program and now every time I try open Photoshop CC it asks me for a Serial Number. It keeps saying my trial period has ended. How can I get this working since Adobe doesn't issue Serial Numbers for CC.

    Jodie84,
    I have just checked your account and found that you indeed have bought a Creative Cloud for Teams subscription but you have assigned the single seat to another user hence you ( If you are using your own Adobe ID ) are getting the trial error message.
    Two options : Either reassign the seat to your self or add an additional seat and invite your self in the same Team.
    Cheers,
    Kartikay Sharma

  • R12 - API to Create Serial Numbers for Ordered Item in Receipt

    Hello All,
    I got a requirement to create PO Receipt using PL/SQL code. For that i have created PL/SQL code to insert data in following Interface tables,
    a) rcv_headers_interface
    b) rcv_transactions_interface
    After inserting data in Interface table executed Concurrent Program "Receiving Transaction Processor" to process data from Interface table to Base Table. This process is working perfectly fine for "Non-Catalog" requests. But if i try to process any PO having Inventory Item whose Serial Control is set to "At Receipt" then i got following error at Interface table,
    "Fail to validate serials".
    To resolve this issue i need to create and process serial number for Ordered Item selected to Receive. Can anyone guide me regarding how can I generate Serial Numbers using API for PO Receipts.
    Regards,
    Priyanka

    Hi,
    Just populate mtl_serial_numbers_temp table correctly (by specifying transaction_temp_id = RTI.interface_transaction_id)
    and serial number range in fm_serial_number - to_serial_number respectively.
    You may entermultiple MSNT records with same transaction_temp_id.
    You may need to populate PRODUCT_TRANSACTION_ID = RTI.interface_transaction_id and PRODUCT_CODE = 'RCV'.
    Oracle will create all the serial numbers for you when the records get processed.
    Thanks,
    Hrishi

  • Serial numbers for materials

    hello,
    I have done a setup for serial numbers and when I do the GR I get a blank serial number list.
    I earlier used transaction IQ04 and maintained for one article the various serial numbers.
    When I do the GR I must be able to autmaticlaly see all the serial numbers related to the article. The system shows blank serial numbers although I have maintained them.
    Can you help to identify what I have missed that the serial number based on aarticle doesnt get coped over to the GR document?
    Another point is when I do the GI I also dont see the serial numbers for which I have done the GR for the article. What am I missing here?
    Thanks

    hi
    how the serial no profile has been configured ,ie if the exist required is marked in the serial no profile then while making the GR you have to select the serial no alredy created,but if you doesn't select the same you have to mark the serial no automatically while making the goods receipt
    kindly check
    regards
    thyagarajan

  • Serial Numbers for delivery

    Hi,
    i am cerated serial no. But it created only one no.
    when i am cerated outbound delivery, serial no. is assigned.
    But when i am trying to PGI showing the following error
    Pls help me out
    Item 000010 requires exactly 5 serial numbers for the asset
    Regards,
    Rao P

    Hi Mr. Rao,
    Looks like your material configure in that way, it requires 5 serial number.
    You do one thing --> Go to IQ04 --> Give your maerial number --> Then in the field "No. serial numbers" give the figure how many serial number you want --> Like one you have already created --> Give 4 in the field "No. serial numbers" --> Enter
    If your serial number require equipment view also --> then click at "View selection" --> Click at equipment --> Enter --> Save
    After that go to delivery and assign your serial number to your materials.
    Regards,
    MT

  • Serial Numbers for stock on hand.

    Hi guys,
    I want to migrate stock on hand of finished goods. I also have to migrate serial numbers for these finished goods. But, i cant find a transaction where I can do this!!! Can anyone help pls!? 
    I tried to do GR in MIGO, but the serial number tab opens up only for GR towards an order.

    Hello Sandeep,
    1. As suggested by Dillibabu, you need to maintain your material with Sr number profile as per the business needs.
    Please check the sr number profile usage in T-code OIS1 and OIS2 (Configuration mode - SPRO)
    2. There are two option to upload/migrate the data
    a. Manual Approch : incase, you have very few data you can think about this approch.
    b. LSMW : Use LSMW if you have mass data migration, the object is provided by SAP for goods movement.
    Object               0110   Goods movement
    Method              0000
    Program Name   RM07MMBL
    Program Type     B   Batch Input
    Take the help from technical guy if you are new to LSMW.
    Hope this helps.
    Regards,
    Arif Mansuri
    Reward if answer is helpful.

  • WHERE I SHOULD MAINTAIN SERIAL NUMBER FOR F.GOODS PRODUCT

    HI
    PLEASE TELL ME WHERE I CAN MAINTAIN SERIAL NUMBERS
    HOW WE CAN DO AUTOMATIC CREATION OF SERIAL NUMBER
    PLZ GIVE SETTING I SHOULD DO.
    DON'T GIVE ME LIKE WHICH NEED USER ID AND PASSWORD, I DON'T HAVE.
    PRASAD

    Dear PRASAD
    If you want to manage an item by serial number, you should define it in Item master Data -> General tab -> Serial and Batch Numbers->Manage Item by. You could choose 'Serial Numbers' or 'Batch'. After that, another field 'Management Methodwill' be available. You could choose 'On release only' or 'On every transaction'.
    If you choose 'On every transaction', on every transaction which will receive goods (for example, GRPO)  before adding, the 'Serial Number - setup' window will pop up. Or you can open this window by putting cursor on Quantity field and use Ctrl + Tab key. Under this window, you could create Serial Numbers.
    And there is a button named 'Automatic Creation'. Using it, you could create serial numbers automaticlly.
    Before adding documents which will issue goods, the serial number selection window will pop up.
    If you choose 'On release only', when you receive goods, the serial number setup window will not pop up. After receive them, you can finish the creation of serian number.
    Inventory -> Item Management -> Serial Number -> Serial Number Management.
    If you want to create Serial number for new received goods, choose 'Complete' in Operation. In this function, you also could automaticlly create Serial Numbers.
    If you want to update Update existing serial numbers, please choose 'Update' in Operation.

  • I originally bought Acrobat 9 and later upgraded to Acrobat 10 pro. My computer crashed and I am trying to re-install Acrobat 10 pro. I have serial numbers for Acrobat 9 and an Acrobat 10 pro upgrade. What do I do?u

    I originally bought Acrobat 9 and later upgraded to Acrobat 10 pro. My computer crashed and I am trying to re-install Acrobat 10 pro. I have serial numbers for Acrobat 9 and an Acrobat 10 pro upgrade. What do I do?

    Hi Shane,
    Please download Acrobat X Pro from the link below.
    http://www.adobe.com/downloads/other-downloads.html
    Install the software and when prompted for the previous version qualifying product, select Acrobat 9 and enter the serial key of Acrobat 9.
    This should install and activate Acrobat X Pro on the machine.
    Regards,
    Anand

Maybe you are looking for

  • Can you have two copies of Encore CS6 running on the same computer?

    I'd love to be able to have two copies of Encore on the same computer. While one copy is encoding and burning, I'd love to get another project started and encoding on the same computer and maybe, if possible, even start burning to a separate external

  • Cannot send mail to a group if hiding addresses

    I can't send mail to a group unless I show all member addresses. If I uncheck this preference I recieve the following error dialogue: This message could not be delivered and will remain in your Outbox until it can be delivered. Sending the message co

  • JVM crash on windows

    Hi I am developping a java swing application application. when i run my application, i get the authentification dialog of my application but after that the JVM crashes:i was using jdk 6 update 13 and now i switch to update 15 but i have still the sam

  • Problem in transporting Open Hub destination

    Hi, I have a open hub destination. The destination is a database table. When i try to  transport the open hub destination to staging, the transport fails saying "Unable to activate table /BIC/OHXXX" . What could be the reason ? Thanks, Satya

  • Download data only for user sync in pda

    Hi, I have a device with two user, but when I sync with one of them, DOE download data for the user sync and the other user. How can i filter? In DM, I have a filter with atribute USER. This scenario occur in Generic (JSP) and OCA. Thanks, Roberto