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

Data statement cretaes a Structure or Table

Former Member
0 Likes
1,131

Hi friends,

I ahve one syntax... like this...

TYPES : BEGIN OF ITAB,

MATNR LIKE MARA-MATNR,

AEDAT LIKE MARA-AEDAT,

END OF ITAB.

DATA : JTAB TYPE ITAB..

I know that JATB is work as WORKAREA.. but .my doubt is Now JTAB is a structure.. or it's a table... because.. i use type statement in the second declaration..

thanks

Babu

1 ACCEPTED SOLUTION
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
1,097

Hi,

Its a strucutre.

COZ in your TYPES statement you are using BEGIN OF to start declaring a STRUCTURE TYPE not a TABLE TYPE

Regards,

Sesh

8 REPLIES 8
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
1,098

Hi,

Its a strucutre.

COZ in your TYPES statement you are using BEGIN OF to start declaring a STRUCTURE TYPE not a TABLE TYPE

Regards,

Sesh

Read only

amit_khare
Active Contributor
0 Likes
1,097

Its a structure.

Read only

Former Member
0 Likes
1,097

Hi babu,

this would be a structure.

regards,

kiran

Read only

Former Member
0 Likes
1,097

structure.

Read only

Former Member
0 Likes
1,097

Thanks

but can we write a select statement on structure... .. i mean can we get data directly from JTAB..

ex: select matnr aedat from mara into table JTAB.

can i write like this..

thanks

babu

Read only

0 Likes
1,097

hi,

no u cannot write into table jtab.

u can perform operation into jtab

it is a structure it can hold only one record.

regards,

Navneeth K.

Read only

0 Likes
1,097

for example:

select single *

into jtab

from mara.

Read only

0 Likes
1,097

Hi,

Its a structure.

No u can not get data from structure but it can not hold data.

regards,

sudha