‎2007 Aug 13 5:08 AM
hi i want to dislpay the data present in the resbd structure in my report output
plz help
‎2007 Aug 13 5:14 AM
try this
get all the data from the structure into the internal table and display your table as u what
‎2007 Aug 13 5:23 AM
can u tell me how to declare an itab using the structure resbd.
‎2007 Aug 13 5:25 AM
Hi,
For declaring an Internal Table You can use that Structure.But for Retreiving datas it is not Possible.
Regards,
Padmam.
‎2007 Aug 13 5:26 AM
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>
‎2007 Aug 13 5:27 AM
can i get data into an internal table from a structure
if yes plz tell how to declare and fill that internal table...
thanx
‎2007 Aug 13 5:35 AM
" declaration
data: it_resbd like resbd occurs 0.
" appending
append resbd to it_resbd.
‎2007 Aug 13 5:41 AM
‎2007 Aug 13 5:21 AM
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
‎2007 Aug 13 5:23 AM
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.