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

Dynamic ALV report from internal table

rahul5791
Explorer
0 Likes
1,399

Hello experts,

I have a internal table with 4 records plz refer image.

Now i want to display alv report in which columns refers to data of internal table.

plz refer image.

plz help to solve this.

Hello experts,

I have a internal table with 4 records plz refer image.

Now i want to display alv report in which columns refers to data of internal table.

plz refer image.

plz help to solve this.

5 REPLIES 5
Read only

rajkumarnarasimman
Active Contributor
0 Likes
939

Hi Rahul,

Please find the following link.

Regards

Rajkumar Narasimman

Read only

0 Likes
939

thanks alot Rajkumar.

It is really helpful..

Read only

0 Likes
939

HI Rahul,

There are many post on this subject on scn.

I would suggest that you search more before creating a discussion.

Regards,

Ashvin

Read only

former_member201275
Active Contributor
0 Likes
939

This is an FAQ, please search you will find plenty of docs on this.

Read only

Former Member
0 Likes
939

Hi,

just combine a "CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'" and before, a method that read your iTab and fill your Fieldcat in that way:

Loop iTab to sTab

  ls_fieldcat-fieldname = sTab-dataValue.

  ls_fieldcat-datatype  = sTab-dataType.

  ls_fieldcat-outputlen = sTab-dataLenght.

  APPEND ls_fieldcat TO lt_fieldcat.

EndLoop

Rachid.