Application Development and Automation 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: 
Read only

Deep structured Internal table in ALV

Former Member
0 Likes
1,746

Hi All.

I have a table which has got some more tables in it.

For eg, one particular applicant can have taken 5 subjects at a level, 3 at another level and so on.

I want to show this data in ALV.

Is it possible? If so, how do I make the field catalog?

Table would be something like this :

begin of itab occurs 0,

field1 type c,

field2 type c,

deep_1 type table of ws1,

deep_2 type table of ws2,

field3 type c,

end of itab.

Please assist.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,117

Hi,

Define a structure of the required fields and use that in the REUSE_ALV_GRID_DISPLAY's I_STRUCTURE_NAME .

Regards

Subramanian

Hi All.

I have a table which has got some more tables in it.

For eg, one particular applicant can have taken 5 subjects at a level, 3 at another level and so on.

I want to show this data in ALV.

Is it possible? If so, how do I make the field catalog?

Table would be something like this :

begin of itab occurs 0,

field1 type c,

field2 type c,

deep_1 type table of ws1,

deep_2 type table of ws2,

field3 type c,

end of itab.

Please assist.

3 REPLIES 3
Read only

Former Member
0 Likes
1,118

Hi,

Define a structure of the required fields and use that in the REUSE_ALV_GRID_DISPLAY's I_STRUCTURE_NAME .

Regards

Subramanian

Read only

uwe_schieferstein
Active Contributor
0 Likes
1,117

Hello Aishi

You cannot use deep structures in ALV. The structure must be flat.

Regards

Uwe

Read only

Former Member
0 Likes
1,117

Hi Aishi,

You cannot add deep structure.

Instead what you can do is create another table and include the fields of the deep structure independently and then fill this table with the contents

so for one entry if you have 3 rows in deep structure then your new structure will have 3 rows in all.

This then you can display

In your case you can add the information 'level' also so it will distinguish which subject is chosen by also looking at level.

Hope this helps

Regards

Nishant

Message was edited by:

Nishant Rustagi