07-23-2007 7:45 AM
hi every body,
I have created a class in SE24, in that i have a method like status check where i had my coding. now i am not able to give a header to an internal table in that code and also i couldnt give read table statement .its prompting some syntax errors like no headers are used in OO context and similar to read table error that we cant use that statement in OO context, so how can i give a header and read a table in method ?
thanx in advance,
abhilash
07-23-2007 7:54 AM
You will not be able to use header lines in Object Oriented programming since it is obsolete. Instead you have to use explicit work areas.
Use the INTO wa addition with the read table statement to read your internal table.
READ TABLE itab INTO wa WITH KEY .....
READ TABLE itab INTO wa INDEX 1
07-23-2007 7:54 AM
You will not be able to use header lines in Object Oriented programming since it is obsolete. Instead you have to use explicit work areas.
Use the INTO wa addition with the read table statement to read your internal table.
READ TABLE itab INTO wa WITH KEY .....
READ TABLE itab INTO wa INDEX 1