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

what are internal table fields?

Former Member
0 Likes
1,196

hi sdn,

Somebody asked me what are the internal table fields?

8 REPLIES 8
Read only

Former Member
0 Likes
1,102

Hi,

data or varaibles that u declare inside the internal table are internal table fields

Regards

Read only

Former Member
0 Likes
1,102

Hi Phani,

Variables declared in the internal table are the fields.

Thanks,

Swati

Read only

Former Member
0 Likes
1,102

If you are defining and internal table with header line the statement begins with stmt like

data:begin of itab occurs 0,

f1(2),

f2(5),

end of itab..

Here f1 and f2 are fields of itab. I general what are the things you are defining in between 'begin' and 'end' are internal table fields..

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Mar 18, 2008 6:46 PM

Read only

Former Member
0 Likes
1,102

Hi sdn,

Is there any system fields, are used on internal table only?

Read only

0 Likes
1,102

Hi,

SY-TABIX

Current line of an internal table. It is set only for index tables. The field is either not set or is set to 0 for hashed tables. It iset by ABAP commands APPEND,COLLECT,LOOP AT,READ TABLE,SAERCH itab FOR .

SY-TFILL

After the statements DESCRIBE TABLE, LOOP AT, and READ TABLE, SY-TFILL contains the number of lines in the relevant internal table.

Database Access

SY-DBCNT

It contains the number of table entries processed. In an loop it is not set until after the ENDSELECT or ENDEXEC statement. It is set by ABAP

Regards

Read only

Former Member
0 Likes
1,102

hi,

data or varaibles that u declare inside the internal table are internal table fields

eg

BEGIN OF itab_final , "OCCURS 0 ,

mtart LIKE mara-mtart ,

wwghb1 LIKE t023d-wwghb , " DIVISION DESCRIPTION

wwgha LIKE t023d-wwgha , " MAJOR CATEGORY

wwghb LIKE t023d-wwghb , " MAJOR CATEGORY DESCRIPTION

wwgpa LIKE t023d-wwgpa , " CATEGORY

matkl LIKE mara-matkl , " MERCHANDISE CATEGORY

ean11 LIKE mara-ean11 , " International Article Number (EAN/UPC)

numtp LIKE mara-numtp ,

END OF itab_final .

mtart wwghb1 wwgha wwghb wwgpa matkl ean11 numtp . these are internal table fields

Regards,

pankaj

Read only

Former Member
0 Likes
1,102

Hi,

variables defined within the 'begin of' and 'end of' statements are the fields of an internal table. In technical terms Internal table is a dynamic sequential dataset in which all records have the same data structure and a key.

Read only

Former Member
0 Likes
1,102

In my opinion the asked question was wrong.