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

Former Member
0 Likes
743

is thre any pblm if we check subrc inside the loop?

isit possible?

Edited by: rs me on Jun 24, 2008 12:34 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
719

hi,

yes v can check sy-subrc in s loop...

go to debugger nd dere u can check this...

there is no problem doing this...

continue...

is thre any pblm if we check subrc inside the loop?

isit possible?

Edited by: rs me on Jun 24, 2008 12:34 PM

5 REPLIES 5
Read only

Former Member
0 Likes
719

no problem....

Read only

Former Member
0 Likes
720

hi,

yes v can check sy-subrc in s loop...

go to debugger nd dere u can check this...

there is no problem doing this...

continue...

Read only

Former Member
0 Likes
719

hi,

you can sy-subrc in a loop, like for some read or select statement???? but are u looking for to capture the sy-subrc of loop in itself, then it is of no use.try that!

regards,

madhu

Read only

Former Member
0 Likes
719

Hi friend,

Sy-subrc check whether an ABAP statement is succesful or not.

Executing a loop itself means that we are processing the correct and valid records. Then where is the issue of checking sy-subrc value. It will always be equal to 0(zero).

Hope this hepls you.

Any queries, get back to me.

Regards,

Chandra Sekhar

Read only

Former Member
0 Likes
719

Hi,

You can Check sy-subrc inside your Loop pass.

Sy-subrc can be used to check the execution of any ABAP Statement.