Register Login

How to Increase the length in field catalog- ALV ?

Updated Jun 16, 2019

Hi experts,
 
I wish to display 55 characters field using field catalog ' seltext_L ' , but the field is of only 40 characters as default value. How shall i increase the size while displaying the ALV output?
 
Thanks in advance


Comments

  • 30 Nov 1999 12:00 am Guest Best Answer

    Hi in this case you need to specify the value of outputlen in this way

    wa_fcat-fieldname = 'Name of Your Field'.
    wa_fcat-tabname = 'Table Name'.
    wa_fcat-ref_fieldname = 'Reference Field Name'.
    wa_fcat-ref_tabname = 'Reference Table Name'.
    wa_fcat-outputlen = '55'. " Give your length
    wa_fcat-seltext_l = 'Text---'.
    wa_fcat-seltext_m = 'Text---'.
    wa_fcat-seltext_s = 'Text---'.
    wa_fcat-ddictxt = 'Text---'.
    APPEND wa_fcat TO p_i_fieldcat.
    CLEAR wa_fcat.

    This will fix the problem

  • 03 Mar 2014 11:45 am Guest Helpful Answer

    wa_fcat-outputlen = '50'

  • 01 Jun 2008 10:38 am Guest
    SET OUTPUTLEN TO MAXLENGH.
  • 16 Jun 2008 6:33 am Guest
    wa_fcat-outputlength = '55'.

×