‎2007 Jun 28 6:57 PM
Hi,
I am getting the following error message several time on different internal table declarations:
"Tables with headers are no longer supported in the OO context."
This is the data declaration that it refers to:
I_ZDAILY_MVMT TYPE TABLE OF ZDAILY_MVMT WITH HEADER LINE.
Also, I am getting the following:
You cannot use the "RANGES" statement within classes. Instead, use the "DATA"
statement with the type "TYPE/LIKE RANGE OF" . . . . . . . . .
This is for the following data declaration:
RANGES: I_WERKS FOR EBAN-WERKS, "PLANT RANGE
I_VTWEG FOR I_TVTW-VTWEG,
I_VTWEG2 FOR I_TVTW-VTWEG,
I_VKORG FOR I_TVKO-VKORG,
I_AUART FOR I_TVAK-AUART.
What do I change and then how do i populate them?
Thanks,
John
Message was edited by:
John Damion
‎2007 Jun 28 6:59 PM
Hi JOhn,
The error message means what it says.
You cannot have internal tables with headers in OO Context.
You have to declare an explicit hedaer line for the itabs.
like this..
data: I_ZDAILY_MVMT TYPE TABLE OF ZDAILY_MVMT,
WA_ZDAILY_MVMT TYPE ZDAILY_MVMT.
‎2007 Jun 28 7:01 PM
We dont use tables with header lines any more.
Declare a work area and use it transfer the data.
e.g.
types: types_ZDAILY_MVMT TYPE standard table of TABLE OF ZDAILY_MVMT.
data: I_ZDAILY_MVMT TYPE type_ZDAILY_MVMT,
wa_zdaily type zdaily_mvmt.
Now use this work area to move data into the table.
Regards,
Amit
Reward all helpful replies.
‎2007 Jun 28 7:09 PM
‎2007 Jun 28 7:11 PM
It will work as normal internal table only since it has header line.
regards,
Dj
reward for all useful answers.
‎2007 Jun 28 7:14 PM
So i just have to change the data declaration and thats all?