Skip to Content
author's profile photo Former Member
Former Member

ALV header cannot display fully as assigned in fieldcatolog

Hi,

my ALV output has nearly 100 columns. i assign the fieldcatlog as below.

CLEAR ls_fcat.

ls_fcat-fieldname = 'ANSWER01' .

ls_fcat-scrtext_l = text-011 .

APPEND ls_fcat TO gt_fieldcat.

in sap the field 'ls_fcat-scrtext_l' is 40 char length. and some text-XXX has length less than 40 char but still not display fully in the ALV output screen .

i also assign the layout as ' gs_layout-cwidth_opt = 'X' '.

how to resolve the bug ?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 26, 2008 at 03:31 PM

    replace ls_fcat-scrtext_l = text-011 .

    this with the below

    ls_fcat-reptext_ddic = text-011 .

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 26, 2008 at 05:14 PM

    give this also...

    fieldcat-ddictxt = 'L' "<---- L for Long, S for SHort , M for Medium

    fieldcat-seltext_l = text-002.

    and check .

    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.