Application Development 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: 

is it possible to get values from a structure

Former Member
0 Kudos

in my report i am using a structure

can it possible to loop this structure and get its values to another internal table.

i done like this but when am executing its taking long time and going to short dump

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Structure doesnot hold any data.You cant get any values from it

5 REPLIES 5

Former Member
0 Kudos

Hi

Structure does't holds any data

you can't loop at structure also beacuse structure can hold only one record at a time

reward if usefull

Former Member
0 Kudos

HI,

create a internal with type of the structure and populate values into that n do wat ever u want.

ex:

data: itab type zstruct occurs 0 with header line. // where zstruct is a structure in a database.

select * from .............. into table itab where ...............

..........

............

.

loop at itab.

write:/10 itab-fld1,

20 itab-fld2,

...........

endloop.

if helpful reward some points.

with regards,

suresh aluri.

Former Member
0 Kudos

Hi,

Structure doesnot hold any data.You cant get any values from it

hymavathi_oruganti
Active Contributor
0 Kudos

structure will not store any values, its just a skeleton.

Clemenss
Active Contributor
0 Kudos

Hi Bharathi,

your question is confusing. I never looped a structure before. I'd suggest you post your code and let the point-seekers do their job.

Regards,

Clemens