‎2007 Mar 28 9:57 PM
After doing extended program check, I get the error
The current ABAP command is obsolete and problematic, Tables with headers are no longer supported in OO contexton this part of my code
DATA: BEGIN OF i_itab1 OCCURS 0,How do I fix this
‎2007 Mar 28 9:59 PM
Hi,
Please try this instead.
Types: Begin of structure,
field1 type c,
field2 type c,
field3 type c,
end of structure.
Data: itab type table of structure.
Data: wa type structure.
Regards,
Ferry Lianto
‎2007 Mar 28 9:59 PM
Hi,
Please try this instead.
Types: Begin of structure,
field1 type c,
field2 type c,
field3 type c,
end of structure.
Data: itab type table of structure.
Data: wa type structure.
Regards,
Ferry Lianto
‎2007 Mar 28 10:06 PM
You have to define explicit work area of the same structure as Ferry pointed out and then change your loop statements to
LOOP AT i_itab1 INTO wa_itab1. or READ TABLE i_itab1 INTO wa_itab1...
‎2007 Mar 28 10:07 PM
Hi,
In ABAP object context "occurs 0' is not allowed. Instead define like this.
TYPES: BEGIN OF i_itab ,
f1 TYPE c,
END OF i_itab .
DATA i_itab1 TYPE TABLE OF i_itab.Regards,
RS