‎2006 Mar 23 7:02 AM
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
‎2006 Mar 23 7:15 AM
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.
‎2006 Mar 23 7:15 AM
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
‎2006 Mar 23 7:19 AM
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