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: 

How to extract data from a structure?(Data Dictionary)

Former Member
0 Kudos

Hi all,

This is regarding extracting data from a structure.

For Eg:if we want to extract data from a structure ADDR1_DATA,How will we do that in report programming?Structures on its own has no existence unless it s attached to a database table or view.when am using 'Where used List' on that structure also I am not getting any database tables or views.What can I do about this?

Thanking you,

anjaly

3 REPLIES 3

Former Member
0 Kudos

Hi anjaly,

Suppose if a strcuture is of a type of a ZTABLE.

Then

DATA it_str LIKE TABLE OF ZSTRUCTURE WITH HEADER LINE.

SELECT *

FROM ZTABLE

INTO TABLE it_str.

Former Member
0 Kudos

Hi,

There is no data in structure.

You will have to extract the data from ADRC table and not from structure ADDR1_data.

Hope it helps.

Regards,

Shashank

Former Member
0 Kudos

HI Anjaly,

as you said structure does not have any value .. unless something is added to it..

So just use the structure to define the type of the sttructure you want..

Or to include it in your itab like..

 
 data : Begin of itab occurs 0.
       include structure ADDR1_DATA.
 data  i type i.
       end of itab.

you cannot directly extract data from the structure ADDR1_DATA..

regards

satesh