Application Development and Automation 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: 
Read only

Error in extended program check

Former Member
0 Likes
409

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.

1 ACCEPTED SOLUTION
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
380

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.

2 REPLIES 2
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
381

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.

Read only

Former Member
0 Likes
380

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