2015 Feb 24 3:03 PM
Unable to get the message "Storage Bin XXXX is currently being processed by XXXX" FM L_TO_CREATE_MOVE_SU.
We have a scenario wherein before the FM L_TO_CREATE_MOVE_SU is executed the Storage Bin is on change mode.
But the problem is, the program does not proceed on the next code and the error message is not properly capture by the exceptions neither sy-subrc.
Are there any way to capture the error message?
Appreciate any response from you guys!
2015 Feb 24 5:30 PM
Yes,
Add below parameter under EXCEPTIONS of FM.
ERROR_MESSAGE = 18
Now the exceptions will capture those type of error messages through sy-subrc value 18.
Cheers.
2015 Feb 24 5:30 PM
Yes,
Add below parameter under EXCEPTIONS of FM.
ERROR_MESSAGE = 18
Now the exceptions will capture those type of error messages through sy-subrc value 18.
Cheers.
2015 Feb 24 8:26 PM
Hi Sonim,
I understand that you want to display the exception message for the function module L_TO_CREATE_MOVE_SU.
1) You have to have all the exceptions uncommented.
2) Once you execute the function module L_TO_CREATE_MOVE_SU check the SY-SUBRC .
3) By using the function module SWO_QUERY_FUNCTION_EXCEPTION you will get all the descriptions/exception messages for the particular function module.
call function 'SWO_QUERY_FUNCTION_EXCEPTIONS'
exporting
functionmodule = 'L_TO_CREATE_MOVE_SU'
tables
function_exceptions = lt_excep
exceptions
function_not_found = 1
others = 2.
4) Based on sy-subrc you can display the exception message.
Hope it helps.
Thanks,
Tooshar Bendale
2015 Feb 25 7:22 AM
Are above suggestions are applicable even the error message is coming from other FM which is calling by FM L_TO_CREATE_MOVE_SU?
As what we have check, the error is coming from Program SAPLL03A.
Appreciate any response.
2015 Feb 25 12:40 PM
Yes, I think so. Could you try my suggested way. Just add the additional exception in the end of the exception list in your code.
2015 Feb 25 2:46 PM
You could just do an ENQUEUE_ELLTAKE to see if it's locked.
Then unlock it, of course, before your function call