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

small confusion ......

Former Member
0 Likes
644

Hi all,

here i ve declared simple table and trying to pass values to that.

but its giving some error like>

Field "FIELD" is unknown. it is neither in one of the specified tables nor defined by a "DATA" statement. where i ve gone wrong. let me know plz.

my code is:

TYPES: begin of header,

Field(25) type c,

End of header.

DATA: i_header type STANDARD TABLE OF header with HEADER LINE,

wa_header type header.

I_header-Field = 'field 1 descrpion'.

Append i_header.

I_header-Field = 'field 2 descrpion' .

Append i_header.

Thank in advance,

kandra.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
629

I think you can not use the name field , Change as field1 or some think else and check

Hi all,

here i ve declared simple table and trying to pass values to that.

but its giving some error like>

Field "FIELD" is unknown. it is neither in one of the specified tables nor defined by a "DATA" statement. where i ve gone wrong. let me know plz.

my code is:

TYPES: begin of header,

Field(25) type c,

End of header.

DATA: i_header type STANDARD TABLE OF header with HEADER LINE,

wa_header type header.

I_header-Field = 'field 1 descrpion'.

Append i_header.

I_header-Field = 'field 2 descrpion' .

Append i_header.

Thank in advance,

kandra.

4 REPLIES 4
Read only

Former Member
0 Likes
629

Hi.

This is working fine!

You can copy this statement in another program and check.

Btw is this the complete program?? Or is it just a part of program in which case the problem could be somewhere else!

Regards

Nishant

Read only

Former Member
0 Likes
630

I think you can not use the name field , Change as field1 or some think else and check

Read only

0 Likes
629

Hi,

Minal is wrong.

You can very well use the name as FIELD.

This code is perfectly fine.

regards

Nishant

Read only

0 Likes
629

Hi friends thanks for quick replay ! its resolved am using FIELD as it is.

i ve given rewards.

Regards,

kandra.