2007 May 29 10:10 AM
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
2007 May 29 10:21 AM
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
2007 May 29 10:32 AM
hi prashant,
default column size is upto 90,
there is a way to increase this.
regards,
seshu.
2007 May 29 10:49 AM
hi maddipatla,
can u tell me in wat way we can increase it
thanks in advance...
2007 May 29 10:59 AM
hi,
Max number Columns -> 90.
Total Length of column heading shuld be not more than 255 in grid and 1023 in list.
Rgds
Anversha
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |