Application Development and Automation 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: 
Read only

Error in Function module

Former Member
0 Likes
434

Hi Gurus,

I am using a standard function module in my module pool program(RF program). While executing standard function module, it is giving me error message due to some validations. I want to capture this error message and continue the process.....but because of this error message whole program is stopped. Please suggest any way to capture this message from standard function module and continue processing

Thanks

Sharat

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
401

Hi,

Try this..

CALL FUNCTION 'xxxxxxxxxx'
   EXPORTING
        .....
   IMPORTING
        .......
   EXCEPTIONS
              error_message = 1.

Using the above..You can catch the error messages raised inside a function module..

Thanks

Naren

2 REPLIES 2
Read only

Former Member
0 Likes
402

Hi,

Try this..

CALL FUNCTION 'xxxxxxxxxx'
   EXPORTING
        .....
   IMPORTING
        .......
   EXCEPTIONS
              error_message = 1.

Using the above..You can catch the error messages raised inside a function module..

Thanks

Naren

Read only

0 Likes
401

Hi Naren,

Thanks so much. That was very easy. Kuool.

Cheers

Sharat.