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

Dinamic ALV Columns

santiagotenti
Explorer
0 Likes
635

Hello Fellows!

I would like to know if you have any idea on how to do this requirement i got.

A table must be printed as an ALV.

This table must contain:

Customer

Customer Phone ( amount of phones = n)

Customer mail ( amount of mails = n)

Address ( 1 )

Gender ( 1 )

Number of sons ( amount of sons = n)

*This are not the real fields i must print, there are just as example

So, I need to create an ALV, and this ALV must have Dinamic amount of colums ( n ) JUST for some fields, and those fields are in the middle of the table.

My data table its created by PK (lets say for this example PK = Customer) and if there is a new phone, a new line its appended in a loop, if there is a new mail the same, and so.

If you can guide me on how to to this, or where I can find something related to this, it will be appreciated !

Thanks!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
610

Hi Santiago,

Below link can help you with Dynamic table

http://scn.sap.com/docs/DOC-42525

Regards,

Ganesh Lathi.

Hello Fellows!

I would like to know if you have any idea on how to do this requirement i got.

A table must be printed as an ALV.

This table must contain:

Customer

Customer Phone ( amount of phones = n)

Customer mail ( amount of mails = n)

Address ( 1 )

Gender ( 1 )

Number of sons ( amount of sons = n)

*This are not the real fields i must print, there are just as example

So, I need to create an ALV, and this ALV must have Dinamic amount of colums ( n ) JUST for some fields, and those fields are in the middle of the table.

My data table its created by PK (lets say for this example PK = Customer) and if there is a new phone, a new line its appended in a loop, if there is a new mail the same, and so.

If you can guide me on how to to this, or where I can find something related to this, it will be appreciated !

Thanks!

2 REPLIES 2
Read only

Former Member
0 Likes
611

Hi Santiago,

Below link can help you with Dynamic table

http://scn.sap.com/docs/DOC-42525

Regards,

Ganesh Lathi.

Read only

0 Likes
610

Thanks for your help Ganesh, i've finished the program and the Dynamic ALV worked great using Field Symbols!