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 layout issue in excel sheet

Former Member
0 Likes
418

Hi all,

When i executed my report, it will send the output data in excel format to my email id.

It is ALV report. When i changed the layout , the layout change is happening in report output, but in my excel sheet chagned layout set was not coming. It is coming old format only.

Is there any FM to handle the dynamic layouts

please help me in this.

regards,

Ajay Ram

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
381

Hi Ajay

When you change the layout, its done in the ALV o/p or rather in foreground.

You can't make this layout change be reflected in the excel sheet that is made thru background job.

One option is to save the layout you want and then before executing the ALV report, load the layout you want by using FMs

REUSE_ALV_VARIANT_DEFAULT_GET

REUSE_ALV_VARIANT_F4

REUSE_ALV_VARIANT_EXISTENCE

You can get the sample codes in sdn by searching for these FMs

Reward points if useful

Cheers

~Arun

Hi all,

When i executed my report, it will send the output data in excel format to my email id.

It is ALV report. When i changed the layout , the layout change is happening in report output, but in my excel sheet chagned layout set was not coming. It is coming old format only.

Is there any FM to handle the dynamic layouts

please help me in this.

regards,

Ajay Ram

1 REPLY 1
Read only

Former Member
0 Likes
382

Hi Ajay

When you change the layout, its done in the ALV o/p or rather in foreground.

You can't make this layout change be reflected in the excel sheet that is made thru background job.

One option is to save the layout you want and then before executing the ALV report, load the layout you want by using FMs

REUSE_ALV_VARIANT_DEFAULT_GET

REUSE_ALV_VARIANT_F4

REUSE_ALV_VARIANT_EXISTENCE

You can get the sample codes in sdn by searching for these FMs

Reward points if useful

Cheers

~Arun