Skip to Content
avatar image
Former Member

BAPI_GOODSMVT_CREATE Error Maintain serial numbers for total quantity

Hello Experts,

This question has been asked before but I can not seem to find a solution that works for me.

I am getting the error 'Maintain serial numbers for total quantity' while calling the BAPI BAPI_GOODSMVT_CREATE. I know the error has to do with the serial numbers I feed to the BAPI but I can not seem to pin down the error.

In my upload file I am using the same material, the client says they can do the same movement e.g. 561 for the same material in the same upload file.

It is worth noting that the upload file has two tabs, one with the item information and the other with the serial numbers. The two tabs are linked using a sequential serial number. So during execution, the program picks the sequential serial number and uses it to pick the appropriate serial numbers from the serials tab before calling the BAPI. See the attached images. The serial numbers for that particular item are then used to populate the  goodsmvt_serialnumber  table of the BAPI. The item information populates the goodsmvt_item table.

The first material entry processes ok but the second one produces the error 'Maintain serial numbers for total quantity'. The 'second item' image shows the data contained in the goodsmvt_serialnumber table when the bapi is called for the second material. I know it is the same material, client instruction.

I hope I am clear.

The links I found are the following:

http://scn.sap.com/thread/1552978

http://www.sapfans.com/forums/viewtopic.php?f=13&t=144519

items tab.png (8.9 kB)
second item.png (9.6 kB)
serials tab.png (2.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jan 05, 2015 at 04:20 PM

    The goodsmvt_serialnumber table when the bapi is called for the first material.


    first item.png (9.4 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 06, 2015 at 05:21 AM

    Hello Experts,

    Does someone have an idea of how to go about this?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 06, 2015 at 08:19 AM

    Hello,

    Solved it on my own. The problem was the numbering for the items and the serial numbers. If an item is number one in the goodsmvt_item table of the BAPI, then all serials associated with it will need to have value one in the matdoc_itm field of the table goodsmvt_serialnumber.

    Add comment
    10|10000 characters needed characters exceeded