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

system message needs to be changes ? please suggest

Former Member
0 Likes
548

My user is complaining that she getting system message .

I have checked the z-program and system message is coming because in the Z-program code... the internal table became emtpy ...

so at the loop stmt..sy-subrc is becoming 4.

LOOP at internal table.

ENDLOOP.

then next immediately there is one more if condition in the program which is false

say IF 'V' = 'F'.

ENDIF.

here also sysubrc is 4. so the next program execution goes to below condition and giving system error.

IF sy-subrc <> 0.

MESSAGE s899(m3) WITH 'Invalid ZXXX table Configuration'(m09).

ENDIF.

What I need to do now ? Do I need to remove the above codition ?

I am just confussed.

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
527

Information given here is not much. please paste your code that may help to give better replies

a®s

Information given here is not much. please paste your code that may help to give better replies

a®s

2 REPLIES 2
Read only

former_member194669
Active Contributor
0 Likes
528

Information given here is not much. please paste your code that may help to give better replies

a®s

Read only

Former Member
0 Likes
527

The IF does not reset sy-subrc. It is retaining the value from the empty LOOP.

Rob