Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Serial no with BAPI_GOODSMVT_CREATE

Former Member
0 Likes
1,154

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?

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?

3 REPLIES 3
Read only

Former Member
0 Likes
758

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,

Read only

0 Likes
758

The quantity is equal, so that's why I think the error is strange.

And without changing anything, the message disappears after running the program again and again and again.

Read only

Former Member
0 Likes
758

Hi,

1. Check the clear and refresh of the internal table. The link between the item table and serial number table has to be established correctly.

2. Is it working for some times for serialized material also? or is it working for non-serialized parts only.

Cheers,

Sujay