‎2007 Jul 04 6:34 AM
Hi,
I m getting following error in Extended Program Check..
<b>The current ABAP command is obsolete
Tables with headers are no longer supported in the OO context.</b>
for the below declaration..
<b>data: I_fieldcatalog type slis_t_fieldcat_alv WITH HEADER LINE .</b>
could anyone help me.
Thanks in advance.
‎2007 Jul 04 6:37 AM
Hi,
Use as follows
<b>DATA: I_fieldcatalog type slis_t_fieldcat_alv,
wa_fieldcaalog like line of I_fieldcatalog.</b>
When you use HEADERLINE you will get one WOrkarea and an intenral table with one declaration.
In your case I_fieldcatalog is a workarea and I_fieldcatalog[ ] is the table.
This usage is obsolete as it leads to confustion with CLEAR.
When you use CLEAR I_fieldcatalog you may assume that table is cleared but here only workarea is cleared.
So you need to use the above given declaration and change all your
APPEND I_fieldcatalog. to
APPEND wa_fieldcatalog toI_fieldcatalog.
simlarly for INSERT and MODIFY.
Regards,
Sesh.
‎2007 Jul 04 6:37 AM
Hi,
Use as follows
<b>DATA: I_fieldcatalog type slis_t_fieldcat_alv,
wa_fieldcaalog like line of I_fieldcatalog.</b>
When you use HEADERLINE you will get one WOrkarea and an intenral table with one declaration.
In your case I_fieldcatalog is a workarea and I_fieldcatalog[ ] is the table.
This usage is obsolete as it leads to confustion with CLEAR.
When you use CLEAR I_fieldcatalog you may assume that table is cleared but here only workarea is cleared.
So you need to use the above given declaration and change all your
APPEND I_fieldcatalog. to
APPEND wa_fieldcatalog toI_fieldcatalog.
simlarly for INSERT and MODIFY.
Regards,
Sesh.
‎2007 Jul 04 6:47 AM
Hi Kalyani,
Already u r using TYPE statement. So with header line is not allowing in the type statement. So remove that with header line statement.
Hope this helps you. Reply for queries, shall post the updates.
Regards.
Kumar