Application Development 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: 

Display more than 128 charetecters in ALV display

Former Member
0 Kudos

Hi ,

I want to display more than 128 charecters in ALV display .

As ALV cell limiation is 128 .

please suggest some solution .

Thanks ,

kamalakar

8 REPLIES 8

Former Member
0 Kudos

Hi,

Simple way is to break your string into a groups of 128 characters and in ALV report put this colums next to each other.

This may solve ur problem.

Rani.

venkat_o
Active Contributor
0 Kudos

Hi Kamalakar, <li>Where did you see ALV cell limitation is 128 chars. No its wrong. ALV List output width limitation is 1023 chars. <li>So there is one field in the fieldcatalog called OUTPUTLEN, and set your cell limitation based on the above ALV list width.



    wa_fieldcat-fieldname = 'MAKTX'.
    wa_fieldcat-tabname   = 'IT_DATA.
    wa_fieldcat-seltext_m = 'Material description'.
    wa_fieldcat-outputlen = '150'. 
   append wa_fieldcat to it_fieldcat.
    clear  wa_fieldcat.
Thanks Venkat.O

venkat_o
Active Contributor
0 Kudos

Hello, Did you get ? Thanks Venkat.O

Former Member
0 Kudos

Hi venkat ,

i already used this .

wa_fieldcat-outputlen is already SET to 1250

still not working

venkat_o
Active Contributor
0 Kudos

Hi Kamalakar, <li>Try this program. It works fine.



REPORT  zvenkat_alv_list.
DATA:BEGIN OF i_mard OCCURS 0,
       sno  TYPE i,
       text TYPE c length 250,
     END OF i_mard.
TYPE-POOLS:slis.
DATA:it_fieldcat TYPE slis_t_fieldcat_alv,
     wa_fieldcat LIKE LINE OF it_fieldcat,
     it_events   TYPE slis_t_event,
     wa_events   LIKE LINE OF it_events,
     wa_layout   TYPE slis_layout_alv.

DATA :i_header TYPE slis_t_listheader,
      w_header LIKE LINE OF i_header,
      l_date1  TYPE datum,
      l_date2  TYPE datum.

START-OF-SELECTION.

  DO 10  TIMES.
    i_mard-sno  = sy-index.
    i_mard-text = 'With this release of SAP NetWeaver Composition Environment, we deliver a significantly improved Business Process Management and Business Rules Management functionality, new features for service adaptation and composition, an enhanced'.
    APPEND i_mard.
    CLEAR  i_mard.
  ENDDO.
  DEFINE fieldcat.
    wa_fieldcat-fieldname = &1.
    wa_fieldcat-tabname   = &2.
    wa_fieldcat-seltext_m = &3.
    wa_fieldcat-outputlen = &4.
    append wa_fieldcat to it_fieldcat.
    clear  wa_fieldcat.
  END-OF-DEFINITION.
  fieldcat: "Field   Int Tab  Text
            'SNO' 'I_MARD' 'Serial No' '',
            'TEXT' 'I_MARD' 'Text'     '250'.
  DATA :program LIKE sy-repid.
  program = sy-repid.
  CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      i_callback_program = program
      it_fieldcat        = it_fieldcat
    TABLES
      t_outtab           = i_mard.
Thanks Venkat.O

Former Member
0 Kudos

Thanks venkat .

this is working in ALV list iam using alv grid iam not able to get it

so i displayed extra string in next row with other fields balnk

Former Member
0 Kudos

Kindly check ..............

wa_fieldcat-fieldname = 'MAKTX'.

wa_fieldcat-tabname = 'IT_DATA.

wa_fieldcat-seltext_m = 'Material description'.

wa_fieldcat-outputlen = '150'.

append wa_fieldcat to it_fieldcat.

clear wa_fieldcat.

Former Member
0 Kudos

thanks venkat for your inputs

I already kept atlast i given him out with next row keeping aal other feilds blank.they are OK with this solution .

thanks,

kamalakar