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

ALV hide column when no values

Former Member
0 Likes
2,045

Hi friends,

Is it possible to hide a column in ALV when there is no value for that column

Thanks

Chandra

1 ACCEPTED SOLUTION
Read only

bpawanchand
Active Contributor
0 Likes
1,143

Yes by using the FM ALV_OPTIMIZE_OUTPUT you can acheive it

ALV_OPTIMIZE_OUTPUT   :  Suppress Blank Columns in ALV Output

  • Execute SE37 enter FM name

  • Check the Function Module Documentation for more details

Hi friends,

Is it possible to hide a column in ALV when there is no value for that column

Thanks

Chandra

4 REPLIES 4
Read only

Former Member
0 Likes
1,143

when you are filling final internal table at that time check if there is no value in the column.

and fill the field catalog at same time and dont include that column if there is no value.

Loop at final it into wa.

if there is no value then dont include that field in field catalog.

endloop.

it will solve ur problem.

Read only

bpawanchand
Active Contributor
0 Likes
1,144

Yes by using the FM ALV_OPTIMIZE_OUTPUT you can acheive it

ALV_OPTIMIZE_OUTPUT   :  Suppress Blank Columns in ALV Output

  • Execute SE37 enter FM name

  • Check the Function Module Documentation for more details

Read only

0 Likes
1,143

Thanks Pavan....

Read only

0 Likes
1,143

Hi,

You can use filter option also for this. After displaying or before displaying.

Best Regards,

Surendar Reddy.