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: 

ALV - displaying transparent table in list

Former Member
0 Kudos

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?

5 REPLIES 5

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

One more question...

Is it necessary that itable has the same structure as I_STRUCTURE_NAME?