Skip to Content
author's profile photo
Former Member

alv grid display

i have a field TEXT2 in the internal table ITAB with Type string .In one record which(text2) is having 645 characters .

my problem is i am not able to display all 645 characters in alv grid thu i am able to see all in internal table itab.

thanks.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 11:27 AM

    Hi Ekta,

    ALV grid fields have a limitation of 255 characters. So even though u see it in internal table, the text exceeding it cannot be displayed on ALV completely....

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 11:29 AM

    You cannot see the TEXT2 bcoz it is long..645 characters..although u can see in internal table..

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 11:29 AM

    hi,

    first u assign the fieldcatlog then u can see.

    i hope its correct.

    regards

    baskaran.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 11:32 AM

    In fieldcatalogue there is a field 'outputlen ' set it to the length required.

    fld_cat-outputlen = '630'.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Ekta,

      As i have mentioned previously, there is a limitation of displaying for ALV. For your satisfaction i am giving a logical solution for this.

      there is a parameter IS_LAYOUT in the exporting parameters. Declare a workarea of this type and assign <b>colwidth_optimize</b> field with 'X'. This displays the content of the full field.

      data : wa_layout type slis_layout_alv.

      wa_layout-colwidth_optimize = 'X'.

      IS_LAYOUT = wa_layout.

      reward if useful

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 12:21 PM

    Hi Ekta,

    I think u need to use this Fm 'SCMS_STRING_TO_FTEXT' for compressing the length of the field before passing it to ur table...

    Regards,

    S.Agarwal

    Add comment
    10|10000 characters needed characters exceeded