Application Development 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: 

SERNR_ADD_TO_LS without 'I' type message

0 Kudos

Hello Experts,

When I used function SERNR_ADD_TO_LS to add serial number to DN, there is always popup a message that 'All serial numbers have been entered'. How to cancel the pop-up message?

1 ACCEPTED SOLUTION

michael_piesche
Active Contributor
0 Kudos

If you set the QUANTITY according to the numer of objects, or even higher, the message will not pop up.

The parameter I_BAPI would suppress the pop-up of the message. But instead it will pass an error message IO 212 "Exactly &1 serial numbers must be selected (instead of &2)" to the "CO Message Handler". Regarding the message, &1 is the QUANTITY parameter (Number of Serial Numbers/Pieces of Equipment to be Created) that is passed with the FM and &2 is the number of objects (Object List Editing/Serial Numbers). The message comes up, when the QUANTITY parameter is smaller than the number of objects.

The parameter I_BAPI might also change other logic as well, for instance further serial numbers will be ignored. Test well before production.

1 REPLY 1

michael_piesche
Active Contributor
0 Kudos

If you set the QUANTITY according to the numer of objects, or even higher, the message will not pop up.

The parameter I_BAPI would suppress the pop-up of the message. But instead it will pass an error message IO 212 "Exactly &1 serial numbers must be selected (instead of &2)" to the "CO Message Handler". Regarding the message, &1 is the QUANTITY parameter (Number of Serial Numbers/Pieces of Equipment to be Created) that is passed with the FM and &2 is the number of objects (Object List Editing/Serial Numbers). The message comes up, when the QUANTITY parameter is smaller than the number of objects.

The parameter I_BAPI might also change other logic as well, for instance further serial numbers will be ignored. Test well before production.