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: 

data from structure

Former Member
0 Kudos

hi i want to dislpay the data present in the resbd structure in my report output

plz help

9 REPLIES 9

Former Member
0 Kudos

try this

get all the data from the structure into the internal table and display your table as u what

0 Kudos

can u tell me how to declare an itab using the structure resbd.

0 Kudos

Hi,

For declaring an Internal Table You can use that Structure.But for Retreiving datas it is not Possible.

Regards,

Padmam.

0 Kudos

Hi..

You can declare like this.

DATA : ITAB TYPE TABLE OF RESBD, "internal table

WA TYPE RESBD. " work area

But Structure will not contrain any data. it is only a data type.

So you have to access the Data from the Respective table

For Eg: RESB is a table for storing reservations.

SELECT <FIELDS> FROM <RESB> INTO TABLE ITAB.

<b>Reward if Helpful</b>

0 Kudos

can i get data into an internal table from a structure

if yes plz tell how to declare and fill that internal table...

thanx

0 Kudos
" declaration
data: it_resbd like resbd occurs 0.

" appending
append resbd to it_resbd.

0 Kudos

<b>@donald</b>

it does not show anything

Former Member
0 Kudos

hi,

structures contains the data only at runtime. so, you can use internal tables with the same structure of your sorce structure and append all the data into it. by the by your question is not such a clear.

sekhar

Former Member
0 Kudos

Hi,

Structures do not contain data, they are mearly a way to describe it and are usually used in screen programming to collect data into which come from transparent tables. For example, lets say you have data from two tables that need to be displayed on a screen, the data is related, so a good programming practice is to use a structure either described internally in the program, or in the ABAP dictionary. Then in the program, you retrieve the data from the transpart tables and move the data to the structure fields, these structure fields are then defined within the screen.

Anyway, when you do F1 help on a field in a screen, and it is says that it is part of a structure, then this is becasue the structure is being used to group these fields into a common container when doing the screen programming, so it is a little trickier to find where the data is coming from, but not impossible. One way is to use the ST05 to do a SQL trace on the program, this will tell you the tables being hit, and you can find the data that way. Another way, is to debug the program, and see where the data is coming from.

Regards,

Padmam.