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 in function module with no exceptions

Former Member
0 Likes
1,994

Hi all,

I am using standard function modules 'Bupa_address_add' and 'Bupa_address_change'. Both of them do not have any exceptions defined. I want to know that if in any case sy-subrc will have value other than '0' (zero). IF not, then is there no use putting sy-subrc check after this FM. What should i do then?

Thanks in advance,

Rohit Khetarpal

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,085

Hi Rohit,

There is no need to put Sy-subrc check for this FM. Use the table parameter RETURN. Based on the values populated in the table you can validate the function module execution is successful or not.

Regards,

Sreekanth

2 REPLIES 2
Read only

Former Member
0 Likes
1,085

Hi Rohit,

Sy-subrc can be other than zero.

In such cases where exceptions are not there you need to write your own error messages when the sy-subrc NE 0.

Reward points if useful.

Regards,

Atish

Read only

Former Member
0 Likes
1,086

Hi Rohit,

There is no need to put Sy-subrc check for this FM. Use the table parameter RETURN. Based on the values populated in the table you can validate the function module execution is successful or not.

Regards,

Sreekanth