Skip to Content

Material text is coming in two lines when exporting to excel from ALV

Hello All,

Greetings !!!

1. When downloading report output from ALV in excel, half of the material text is coming in next line. As per below screen shot:

2. Also even though I have passed column width optimise pragmatically, then also for the same report in quality server column width are fully optimised whereas in production server, User manually need to drag the column till the text end.

My doubt is 1st issue is coming because of 2nd issue.

Please Advise how to approach.

Thanks in Advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Aug 11, 2016 at 08:24 AM

    May i know how you are downloading the file.

    Right click on the report and Save

    else.

    By clicking on the Local field icon pressing.

    Check with two ways and update me the result.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hello NewB

      Earlier I was downloading with local field option, Now I tried with right click. With Right click option, it is coming correct.

      But what if I have list display where right click does not work.

      Why I am asking this because, for those material text mentioned in query, even from se11, half of text is coming in next line.


      Please advise.

  • author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2016 at 08:28 AM

    Hi Anand,

    You can explicitly set the column width at the time of creation of field-catlog.

    maximum you can go is till 128 characters.

    For eg.

    IF p_fldname = 'PROJK'.

    l_wa_fieldcat-convexit = 'ABPSP'.

    l_wa_fieldcat-domname = 'PS_POSNR'.

    l_wa_fieldcat-dd_outlen = 24.

    ENDIF.

    Regards

    Kishan

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 11, 2016 at 08:42 AM

    Hi,

    Are you downloading using CSV ?

    Please post a screen shot of your internal table content (debug) .

    Regards.

    Eitan.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 16, 2016 at 02:03 PM

    Hello Experts,

    Any solution or work around, Please reply.

    Thanks,

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.