‎2008 Mar 18 11:23 AM
hi sdn,
Somebody asked me what are the internal table fields?
‎2008 Mar 18 11:25 AM
Hi,
data or varaibles that u declare inside the internal table are internal table fields
Regards
‎2008 Mar 18 11:26 AM
Hi Phani,
Variables declared in the internal table are the fields.
Thanks,
Swati
‎2008 Mar 18 11:28 AM
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
‎2008 Mar 18 12:41 PM
Hi sdn,
Is there any system fields, are used on internal table only?
‎2008 Mar 18 12:44 PM
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
‎2008 Mar 19 4:55 AM
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
‎2008 Mar 19 5:13 AM
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.
‎2011 Jul 12 6:28 AM