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 internal table

Former Member
0 Likes
946

hello,

I am geting this error when refering to a field in the structure i created.

"I_MAKT" is a table without a header line and therefore has no

component called "MATNR".

what can i do, because i know that is does exist.

I am doing all entries for 8 table and relating them by matnr.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
886

hi,

fo removing this error just declare :

1) an internal table of that structutre

2) also declare workarea of that structure

and refer I_MAKTusing that workarea

eg: wa_name-I_MAKT

IT WILL DEFINATELY HELP U

REGARDS

RAHUL

7 REPLIES 7
Read only

soumya_jose3
Active Contributor
0 Likes
886

Hi,

Declare your table I_MAKT 'with header line'.

Regards,

Soumya.

Read only

Former Member
0 Likes
886

hi,

declare the table with header line

or with explict work area.

Ex: I_MAKT TYPE TABLE OF MAKT WITH HEADERLINE.

Regards,

R K.

Read only

0 Likes
886

hi,

t_mara TYPE STANDARD TABLE OF mara with header line.

hope it will help u.

Read only

Former Member
0 Likes
886

Declare one explicit work area and access data from that. Seems like you are trying to access matnr by directly giving the itab name. Since it doesnt have header line it is throwing this error. Either have implicit work area or an explicit one. Hope this solves.

Read only

Former Member
0 Likes
886

Hi , u have to create a teble with header line or u cretae separate work area and itab and compare fileds with workare.

data : wa_makt type ls_makt,

itab type table of ls_makt.

or itab type tabkle of ls_makt with headr line.

Note ls_makt is a struvure of required fileds .

always create a st, of required fileds , dont use all the fileds directly form stnd. table,

it will decrease ur performance,

regardfs

Read only

Former Member
0 Likes
887

hi,

fo removing this error just declare :

1) an internal table of that structutre

2) also declare workarea of that structure

and refer I_MAKTusing that workarea

eg: wa_name-I_MAKT

IT WILL DEFINATELY HELP U

REGARDS

RAHUL

Read only

Former Member
0 Likes
886

hey..can you provide us your program..by that we can tell u in a better way..