‎2007 Mar 01 4:14 AM
data: begin of t occurs 0,
linfr like lfa1-lifnr,
name1 like lfa1-name1,
end of t.
give the explanation of this user defined structure.
‎2007 Mar 01 4:16 AM
Looks like you are very new to ABAP
this is the declaration of an internal table with headerline
this internal table consists of 2 fields lifnr and name1
‎2007 Mar 01 4:16 AM
Looks like you are very new to ABAP
this is the declaration of an internal table with headerline
this internal table consists of 2 fields lifnr and name1
‎2007 Mar 01 4:22 AM
what is occurs 0.yaaaa iam new to ABAP,also please provide me the documents regarding to ABAP which contains more examples.
‎2007 Mar 01 4:24 AM
Occurs will represent the memory allocated,
Occurs 0 means initially memory allocated for 0 recods(No memory)
Occurs 10 means initially memory allocated for 10 recods
chk allsaplinks.com
also in SE38 DEMO* examples
Message was edited by:
Chandrasekhar Jagarlamudi
‎2007 Mar 01 4:17 AM
data: begin of t occurs 0,
linfr like lfa1-lifnr,
name1 like lfa1-name1,
end of t.
This is an Internal Table defined. the Internal Table's name is T. It is like simple table which contains two fields linfr and name1.
hope this will help
Thanks
Ashwani
‎2007 Mar 01 4:19 AM
‎2007 Mar 01 4:19 AM
this is an internal table with header line which consist two fields lifnr and name1.
if you are populating this like
itab-lifnr = '0001'.
itab-name1 = 'ABC'.
append itab.
itab-lifnr = '0002'.
itab-name1 = 'DEF'.
append itab.
you can get the values like this in itab
lifnr name1
0001 ABC
002 DEF
so it can store n no of rows inside within this with the specified coloumn name and it is like the data type of lfa1-lifnr and lfa1-name1.
regards
shiba dutta
‎2007 Mar 01 4:19 AM
Hi Srinivas,'
This is the declaration of the Internal table data with header line.
lifnr n name1 are the fileds which are the type of the fields in lfa1 table.
This is used to store data.
Regards,
Priyanka.
‎2007 Mar 01 4:20 AM
Hi Srinivasa,
In those statements you r defining the internal table with all those fileds
data is the key word to define the internal table and occurs 0 is providing the space for the internal table. when you begin the block you have to close the block with end of.
Here lifnr ( any varible) your r defining like the filed of table lfa1 and the file lifnr.
~~Guduri
‎2007 Mar 01 4:24 AM
Hi srinivasa,
data: begin of t occurs 0,
linfr like lfa1-lifnr,
name1 like lfa1-name1,
end of t.
This is one type of declaring an internal table.here t is internal tbale name.
in that internal table u r declaring 2 fields of lfa1-lifnr and lfa1-name1 type.