‎2009 Jun 23 11:40 AM
Hi,
I encountered sy-subrc 8 in READ statement.
Can anybody please tell me how to correct it?
Thank you..
‎2009 Jun 23 11:42 AM
‎2009 Jun 23 11:44 AM
‎2009 Jun 23 11:46 AM
hi,
if your read statement for an internal table is setting the value of sy-subrc as 8 it means that the READ was not successful.
May be you have used BINARY SEARCH addition but your internal table is not sorted properly by the fields as specfied in the binary search.
There can be other reasons too.
Can you share your READ statement?
Regards,
Ankur Parab
‎2009 Jun 23 11:46 AM
Hi ,
Before read statement you have to first sort the internal table and after sorting only you need to use read ststement with binary search.
Please let me know if you still need any help.
Thanks and regards,
Rajeshwar.
‎2009 Jun 23 11:47 AM
Hi,
Sy-subrc = 8 means that no data was read.. Please check that you have specified the correct keys and if you are using the addition BINARY SEARCH.. You are sorting with the same field as mentioned in the read statment...
‎2009 Jun 23 11:50 AM
But my internal table has 1157 records,1013records are read properly but after that it is giving me sy-subrc value 8.
‎2009 Jun 23 11:53 AM
Hi,
may be the data does not satisfy your read criteria.. But, sy-subrc = 8 is returned if you ahve used BINARY SEARCH in the read statment and have sorted teh table with different key or have not sorted it at all..
Please do these changes and test again..
‎2009 Jun 23 11:56 AM
Hi,
If you have used some key fields in the read statement then they are not matching.
Can you show your READ statement.
Regards,
Ankur Parab
‎2009 Jun 23 12:43 PM
You sort your internal fields on key fields and then read with following syntax -
READ table with KEY ..BINARY SEARCH.
‎2009 Jun 23 12:52 PM
‎2009 Jun 23 1:24 PM
i think this will be helpfull
http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb35f8358411d1829f0000e829fbfe/content.htm
‎2009 Jul 15 12:20 PM