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: 

Unable to get the message "Storage Bin XXXX is currently being processed by XXXX" in  FM L_TO_CREATE_MOVE_SU

Former Member
0 Kudos
1,084

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!

1 ACCEPTED SOLUTION

Former Member
0 Kudos
409

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.

5 REPLIES 5

Former Member
0 Kudos
410

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.

Former Member
0 Kudos
409

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

Former Member
0 Kudos
409

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.

0 Kudos
409

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.

former_member196064
Active Participant
0 Kudos
409

You could just do an ENQUEUE_ELLTAKE to see if it's locked.

Then unlock it, of course, before your function call