Gyan Factory

Gyan Factory
SAP Technical Project Support

Friday, January 8, 2016

Handling Exceptions in Function modules [with message class]

Step1. So here we have the message class with two message texts 000 and 001.




Step2. FM importing parameters.

Step3. FM exporting parameters.


  
Step4. FM exceptions.




Step5. Fm source code, When as exception is aligned with a message class text, it should be  raised in the RAISING clause not RAISE.


  
Step6. Here we have the program and the FM mapping when an exception is raised with  a message class .


  
Step7. Execute the program and here in the debugger we have the certain values of the sy-subrc and message details.



 Step8.  Though we raised a warning message type , on the UI it appears as error type.




--------------------------------------------------------------------------------------

No comments:

Post a Comment