WDDOINIT code error
I am trying to populate context attribute with values from database table MARC in WDDOINIT code.
I posted this question in Abap dictionary forum, but the answers received were not applicable to OO context. Hence posting it here.
This is my code:
data:begin of t_marc occurs 0,
strgr type marc-strgr,
end of t_marc.
select strgr from marc into table t_marc.
I am getting the error:
"Tables with headers are no longer supported in OO context"
Please let me know what is missing.
Thanks and Regards.