Attributes of Internal Tables:
KIND:
>> Kind is the keyword which returns the TYPE of the internal table.
>> If the internal table is Standard then it returns T.
>>If the internal table is Sorted then it returns S and if Hashed then it returns H.
LINES:
>> Lines is the keyword which returns the numbers of RECORDS are avaiable in the internal tables.
SYNTAX:
Describe Table <internal table > kind <variable 1> lines <variable 2>.
>> By default a variable is character data type and its length is 1.
sample program:
DATA : V1,
V2 TYPE I.
DATA : Begin of WA,
bukrs type t001-bukrs,
butxt type t001-butxt,
ort01 type t001-ort01,
end of WA.
DATA IT like hashed table of WA with unique key bukrs.
SELECT bukrs butxt ort01 from t001 INTO table IT.
DESCRIBE table IT KIND V1 LINES V2.
WRITE : V1, V2.
>> save , check, activate andd test the program as show in previous post.
we can write program in upper case or lower case.
message:
in next post i will discuss operations on internal tables

Thank you navya sree for your feedback.
ReplyDelete