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

Issue while using Function Module REUSE_ALV_LIST_DISPLAY.

former_member576008
Active Participant
0 Likes
639

Hi,

I am currently using REUSE_ALV_LIST_DISPLAY function module for ALV display.

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

EXPORTING

i_callback_program = sy-repid

is_layout = l_layout

it_fieldcat = t_fieldcat

it_events = t_events

TABLES

t_outtab = t_final1

EXCEPTIONS

program_error = 1

OTHERS = 2.

The problem which I am facing is that when I try to download to Excel from the ALV display the Columns headings and corresponding data are getting misaligned.Like heading is getting downloaded at seperate column and their corresponding data in another column.

Could you please suggest your views on this issue.

Thanx in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
614

Hi,

Check the link. this is a sample program used to download data from alv to excel sheet.

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/11099070-0b01-0010-fd9d-af9dc930...

regards,

mani

4 REPLIES 4
Read only

Former Member
0 Likes
614

This occurs due to the insufficient line size. Try to reduce the lengths of the fields as much as possible and specify the line-size in the REPORT statement.

Regards,

Shailaja

Read only

0 Likes
614

Hi,

Tried increasing the line size from 30 to 255 but didnt work. Could you plz suggest ?

Thnx.

Nandha

Read only

Former Member
0 Likes
615

Hi,

Check the link. this is a sample program used to download data from alv to excel sheet.

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/11099070-0b01-0010-fd9d-af9dc930...

regards,

mani

Read only

former_member576008
Active Participant
0 Likes
614

got it thanks