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

regarding sy-subrc

Former Member
0 Likes
608

i am confusing about sy-subrc...can you tell me the difference between

if sy-subrc = 0 or sy-subrc <> 0...and if it_vbak[] is not initial..whats the difference in this??

i am confusing about sy-subrc...can you tell me the difference between

if sy-subrc = 0 or sy-subrc <> 0...and if it_vbak[] is not initial..whats the difference in this??

3 REPLIES 3
Read only

Sijin_Chandran
Active Contributor
0 Likes
529

Hello Shilpa ,

There are already many related threads.

Like :

http://wiki.sdn.sap.com/wiki/display/ABAP/Sy-Subrc

http://scn.sap.com/thread/879001

Read only

Former Member
0 Likes
529

Dear Shilpa,

It is a system Return Code for identifying the Success/ Failure of code execution.

If Sy-Subrc = 0 means the previous statement is Success.

   Sy-subrc <> 0 means (not equal to zero) previous statement is failure.

if it_vbak[] is not initial

initial means Null. That is by this statement you are checking the internal table is having any records or not.

So not initial means there is some records in that internal table.

Thanks,

Anoop

Read only

marcelo_ramos1
SAP Mentor
SAP Mentor
0 Likes
529

Hi Shilpa,

Welcome to SCN ! I hope you have all your questions answered, but first you should read the

Please search the answer for you question in the SCN search before posting a new one.

Best Regards,

Marcelo Ramos