Application Development and Automation 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: 
Read only

regarding ALV..

Former Member
0 Likes
621

hi all,

can anyone tell me upto how many columns an ALV can display output...

maximum limit of columns in ALV

please let me know...

thanks

prashant

hi all,

can anyone tell me upto how many columns an ALV can display output...

maximum limit of columns in ALV

please let me know...

thanks

prashant

4 REPLIES 4
Read only

Former Member
0 Likes
595

Hi Prashant ,

I dont think there is a limit to the number of columns in an ALV .

I just created a program with more than 10000 columns.

So feel there is no restriction.

Here is the code of my test program


TYPE-POOLS : slis.
TYPES : BEGIN OF ty_marc ,
          matnr TYPE matnr ,
          werks TYPE werks_d ,
        END OF ty_marc.
DATA : it_1 TYPE TABLE OF ty_marc ,
       wa_1 TYPE ty_marc.
DATA : events TYPE slis_t_event ,
       catalog TYPE slis_t_fieldcat_alv.

DATA : w_catalog LIKE LINE OF catalog.
START-OF-SELECTION.
  SELECT matnr werks
  INTO TABLE it_1
  UP TO 10 ROWS
  FROM marc.
  w_catalog-fieldname = 'MATNR'.
  w_catalog-tabname   = 'IT_1'.
  APPEND w_catalog TO catalog.

  w_catalog-fieldname = 'WERKS'.
  w_catalog-tabname   = 'IT_1'.
  APPEND w_catalog TO catalog.


DO 10000 TIMES.
  w_catalog-fieldname = 'WERKS'.
  w_catalog-tabname   = 'IT_1'.
  APPEND w_catalog TO catalog.

ENDDO.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
 EXPORTING
   IT_FIELDCAT                       = CATALOG
  TABLES
    t_outtab                          = IT_1
          .
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

Regards

Arun

Read only

Former Member
0 Likes
595

hi prashant,

default column size is upto 90,

there is a way to increase this.

regards,

seshu.

Read only

0 Likes
595

hi maddipatla,

can u tell me in wat way we can increase it

thanks in advance...

Read only

anversha_s
Active Contributor
0 Likes
595

hi,

Max number Columns -> 90.

Total Length of column heading shuld be not more than 255 in grid and 1023 in list.

Rgds

Anversha