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

warning in call function

Former Member
0 Likes
551

Hi all,

Can any one explain the meaning of the following warning message.......

" *Return code (SY-SUBRC) for the EXCEPTION will not be processed after CALL FUNCTION*

*XXL_FULL_API*

*(You can turn off this check by setting all EXCEPTIONS to 0.) "*

My question is if i set the all exceptions to zero whether it will work without any problem to the calling program ?

Regards

sd

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
474

Hi,

The return Value of a function will be populated in sy-subrc.

So in program if u r writing like

exception x1 =1

x2 = 2

etc xn = n.

You should process those exception.

That is u should check the sy-subrc after the call function and disply error message or do something when sy-subrc is not equal to 0.

otherwise u can avoid this error msg by assigning all the exception to 0.

exception x1 =0

x2 = 0

etc xn = 0.

but by doing this no exceptions will be captured what ever exception has occured sy-subrc will be 0.

regards,

Sheeba

2 REPLIES 2
Read only

Former Member
0 Likes
474

Hi,

I think u r checking subrc after calling FM which is wrong concept.

calling FM will not set the sy-subrc..

i mean it willnot update the fiedl sy-subrc, if that FM was failed then it will raise its exception based on the condition where it failed..

hope i am clear to u...

Regards

Sunil Kumar Mutyala

Read only

Former Member
0 Likes
475

Hi,

The return Value of a function will be populated in sy-subrc.

So in program if u r writing like

exception x1 =1

x2 = 2

etc xn = n.

You should process those exception.

That is u should check the sy-subrc after the call function and disply error message or do something when sy-subrc is not equal to 0.

otherwise u can avoid this error msg by assigning all the exception to 0.

exception x1 =0

x2 = 0

etc xn = 0.

but by doing this no exceptions will be captured what ever exception has occured sy-subrc will be 0.

regards,

Sheeba