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

sy-subrc check after function module call

soumya_jose3
Active Contributor
0 Likes
1,690

Hi,

I am using the standard function module 'CONVERSION_EXIT_ABPSP_OUTPUT'.This doesn't have any exception defined.

When I am calling this function module by PATTERN, the sy-subrc check is also not coming automatically.

I would like to know in any case, the sy-subrc will have value other than zero.If not there is no use putting sy-subrc check after the function module call.Please clarify.

Thanks & Regards,

Soumya.

2 REPLIES 2
Read only

vinod_vemuru2
Active Contributor
0 Likes
717

Hi,

I think it can have the sy-subrc other than zero. Just check the source code of the FM. Fm CONVERSION_EXIT_KONPR_OUTPUT is being called where sy-subrc can be set to non zero insdie this FM which will be transferred back to the caller.

So, better you keep a check for sy-subrc.

Thanks,

Vinod.

Read only

Former Member
0 Likes
717

Hi Soumya

I checked a 'Where-Used' list of this FM and across classes and programs where it is called, the sy-subrc check is not used.

Still its a good programming practise i believe to handle sy-subrc <> 0. values.

The rest is upto you.

Hope this helps.

Harsh