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

How's to select data from structure data object?

0 Likes
1,041

Dear Guru,

If my data is kept in structure data object (not a table type). How can I select data from that kind of data object. Thank you.

Cheers,

9 REPLIES 9
Read only

Former Member
0 Likes
942

hi,

Data cannot be stored in Structure Data Object.

Regards

Sumit Agarwal

Read only

Former Member
0 Likes
942

Hi Noppy,

You cannot have data in a structure. Only a table contains data.

Regards,

Chandra Sekhar

Read only

Former Member
0 Likes
942

Hi,

Data cannot be stored in structure.

Structure is just like a view , so its a medium with which you can create a view relevant to your needs.

The fields that we need together , we put in a structure.

Structure is a medium where we collect all our relevant fields.

we can include the structure in internal table so that we can actually store data , process data and retrieve data.

hope this helps.

thanx,

dhanashri.

Read only

Former Member
0 Likes
942

Hi noppy,

In structure u can not have data. If u want to store data and then select it for further use then use tables

for this purpose. Go to se11--> put name of Database table. There u can select data.

Hope this information vl help u.

Best Regards

saurabh

Read only

Former Member
0 Likes
942

hi check this...

get the value table for the structure and get the data from this...and use an internal table of the same structure type

Read only

former_member585060
Active Contributor
0 Likes
942

Hi,

Structure is like work area, it has data at runtime. U can append that data into internal table of same structure or a paritcular field value in that structure to a variable of same field structure.

Regards

Krishna

Read only

Former Member
0 Likes
942

Hi,

Structure is a definition and does not contain any data. so there no question of keeping data in a structure.

Regards,

anirban

Read only

Former Member
0 Likes
942

Hi,

first I would tell you that structure can not stor data. secondly data in structure id loaded only in run time. if you want to fetch data from a structure which is loaded with data. you must declare a internal table of type that structure see below exampls.

Data : it_data type standard table of strc_data.

Loop at strc_data

move strc_data to it_data.

append it_data

Clear it_data.

endloop.

rgds

rajesh

Read only

Former Member
0 Likes
942

hi,

Structures are similar to tables but structures do not have an underlying database as tables.

Due to this structure does not contain any data. It can contain data at runtime.

As soon as the program terminates, it looses all the data.

Regrads,

Aleem.