2006 Nov 30 6:34 AM
2006 Nov 30 6:35 AM
HI Laxman,
Structure do not have any physical data in the underlying database.
Structure can only be used to fetch data during run time .
Hope this helps.
2006 Nov 30 6:36 AM
Hi,
you cannot select data from a structure. It does not contain any data. Only a Table contains data.
If you can tell me your exact requirement in detail, I will be able to help you.
Regards,
Anand Mandalika.
2006 Nov 30 6:37 AM
hi,
chk this how to fetch from a field structure.
data : begin of fs. "strcuture
field1 like ztable1-field1,
field2 like ztable1-field2,
endof fs.
now for getting values
val1 = fs-field1
val2 = fs-field2
2006 Nov 30 6:38 AM
Hi Laxman,
Structure holds single record of data. You can acess data by using the syntax <b>Structure-field</b>
Please see sample.
data: wa_mara type mara.
select *
from mara
into wa_mara
up to 1 rows.
endselect.
write:/ wa_mara-mandt,
wa_mara-matnr,
wa_mara-maktl.
if helps plz reward points.
Regards
Bhupal Reddy
2006 Nov 30 6:38 AM
Hi Laxman,
A Structure is just a composite data type...
it doesnt hold any data in it...
Regards,
~Sri.