2015 Jan 05 4:19 PM
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:
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:
2015 Jan 05 4:20 PM
The goodsmvt_serialnumber table when the bapi is called for the first material.
2015 Jan 06 5:21 AM
Hello Experts,
Does someone have an idea of how to go about this?
2015 Jan 06 8: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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |