08-06-2020 4:00 AM
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?
08-06-2020 6:01 AM
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.
08-06-2020 6:01 AM
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.