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

Append statement

Former Member
0 Likes
669

Hi all,

I am trying to append one of my internal table but I am getting this error, can you please tell me how to get rid of this error:

<b>"the internal table it_temp has no header line"</b>

I have declared this table as:

DATA: it_temp TYPE TABLE OF t_temp.

TYPES:BEGIN OF t_temp,

date(10) type c,

name(20) type c,

END OF t_temp.

Thanks,

Rajeev .....

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
651

Hi,

Your code should be

DATA: it_temp TYPE TABLE OF t_temp with header line.

plz try .

with regards,

Neptune.M

5 REPLIES 5
Read only

Former Member
0 Likes
651

Hi,

Try giving like this,

TYPES:BEGIN OF t_temp,

date(10) type c,

name(20) type c,

END OF t_temp.

DATA: it_temp TYPE TABLE OF t_temp.

Regards,

Padmam.

Read only

0 Likes
651

Hi Padman thanks for the reply....I think this is what I have declared and I have just posted in the wrong order but the order in which you hve asked me to do ...I have done it in the same way !!!

Thanks

Rajeev

Read only

0 Likes
651

Hi Rajeev,

I checked for syntax in the order that i ve given.But it is showing no Syntax Error.

Regards,

Padmam.

Read only

Laxmana_Appana_
Active Contributor
0 Likes
651

Checks this :



TYPES:BEGIN OF t_temp,
date(10) type c, 
name(20) type c, 
END OF t_temp.

DATA: it_temp TYPE TABLE OF t_temp,
           ty_temp TYPE t_temp.

Use work area ty_temp.

ty_temp-date = <date>
ty_temp-name = <name>
append ty_temp to it_temp .

Regards

L appana

Read only

Former Member
0 Likes
652

Hi,

Your code should be

DATA: it_temp TYPE TABLE OF t_temp with header line.

plz try .

with regards,

Neptune.M