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

help please

Former Member
0 Likes
928

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
897

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

9 REPLIES 9
Read only

Former Member
0 Likes
898

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

Read only

0 Likes
897

what is occurs 0.yaaaa iam new to ABAP,also please provide me the documents regarding to ABAP which contains more examples.

Read only

0 Likes
897

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

Read only

Former Member
0 Likes
897

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

Read only

Former Member
0 Likes
897

'T' is an internal table with fields linfr and name1

Read only

Former Member
0 Likes
897

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

Read only

Former Member
0 Likes
897

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.

Read only

Former Member
0 Likes
897

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

Read only

Former Member
0 Likes
897

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.