2013 Jan 04 10:00 AM
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??
2013 Jan 04 10:11 AM
Hello Shilpa ,
There are already many related threads.
Like :
2013 Jan 04 10:14 AM
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
2013 Jan 04 11:41 AM