‎2007 Oct 25 4:12 AM
In an internal table if I have 2 records and I try to execute the following read statement wht will be the result??
READ TABLE <tabname> INDEX 5.
‎2007 Oct 25 4:16 AM
Hi,
Just write and try
Sy-subrc will be 4 after READ thats it.
Regards,
Atish
‎2007 Oct 25 4:16 AM
Hi,
Just write and try
Sy-subrc will be 4 after READ thats it.
Regards,
Atish
‎2007 Oct 25 4:17 AM
It will end with SY_SUBRC = 4.
The read statement fails here
Regards
Gopi
‎2007 Oct 25 4:50 AM
Hi Srinivas,
The Read Stmt would fail here giving the SY-SUBRC = 4: No entry was read.
Reward if Useful.
Regards,
Chitra
‎2007 Oct 26 10:17 AM
Srini,
You should first check the no of records and then issue the read as:
Describe table <itab> lines <line No>.
if <line no> GE 5.
READ TABLE <itab> INDEX 5.
endif.
‎2007 Oct 29 11:08 AM
hi,
the fith record inthe internal table will b fetched.
‎2007 Oct 29 11:08 AM
‎2007 Oct 29 11:17 AM
hello srinivass.
<b>why don't u try this kind of small issue..</b> u can find the solution with littile effort... u no need post this question in SDN this kind questio0n.. by doing so. there are some importtant thread goes unseeen by the respondes..
sorry for this.
Arun once agin go throung the Question...
‎2007 Nov 06 7:14 AM
Hi,
In READ TABLE <tabname> INDEX 5,Into some work area should be there.
So empty space you will get.
Regards,
Rama.Pammi
‎2007 Nov 06 9:53 AM
Hi
<b>READ statement will execute and return the SY_SUBRC value as not ZERO
that means READ condition fails to find that INDEX
it won't give any values</b>
<b>REward if usefull</b>