Application Development 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: 

problem with global class

Former Member
0 Kudos
63

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos
39

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 

1 REPLY 1

Former Member
0 Kudos
40

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