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

Help in try ans catch

Former Member
0 Likes
377

Hi,

i do method that get input and return table and i wont to use try & catch if the table i receive is empty how i can do that exception library?

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
361

if within ur method no exception is raised then no need to use try..catch..entry block.

After the method call u can directly check the contents of the return table. If it contains value then do further processing otherwise do the error handling.

Regards,

Joy.

2 REPLIES 2
Read only

Former Member
0 Likes
361

try this:

if table_name[] is initial.

message ....

endif.

Read only

Former Member
0 Likes
362

if within ur method no exception is raised then no need to use try..catch..entry block.

After the method call u can directly check the contents of the return table. If it contains value then do further processing otherwise do the error handling.

Regards,

Joy.