11-12-2007 2:17 PM
Hi everyone!
I need to display one transparent table in ALV list. the problem is that i don't have structure for exporting parameter: I_STRUCTURE_NAME. (like 'sflight' in standard examples).
Is there any solution for this?
11-12-2007 2:20 PM
Hi,
Declare an internal table like database table.
Populate the data into the internal table from database table using select query on DB table.
pass this internal table to I_STRUCTURE_NAME.
Reward points if it helps,
Satish
Message was edited by:
Satish Panakala
11-12-2007 2:20 PM
If you have a dictionary object available which is going to be your output structure then pass the dictionary object to this. i_structure_name...
And if thats not the case and if you have your output based on fields from different dictionary structures then you will build an internal table based on that and pass the Internal table to i_internal_tabname using them you will have to build a Field Catalog and use the FM to report.
11-12-2007 2:23 PM
No need to give structure name..
Take all the data of transaprent table into an internal table..
n pass dis table to ALV DISPLAY function..
Hope dis helps..
Reward if it does
11-12-2007 2:24 PM
Hi,
data itab type mara occurs 0 with header line.
select * from mara into table itab UP TO 30 ROWS .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_STRUCTURE_NAME = 'MARA'
TABLES
t_outtab = itab.
Try this,
KC
11-13-2007 6:20 AM
One more question...
Is it necessary that itable has the same structure as I_STRUCTURE_NAME?