Skip to Content
0
Former Member
Jul 31, 2009 at 10:37 AM

The work area "ITAB" is not long enough

1342 Views

Hi,

When i activate my report, it gives an Syntax Error: - The work area "ITAB" is not long enough.

What is the problem. Please check my code:--

***************************

REPORT ztest.

DATA: BEGIN OF it_t100 OCCURS 0,

checkbox LIKE abgr-kzart,

ebeln LIKE ekbe-ebeln,

ebelp LIKE ekbe-ebelp,

gjahr LIKE ekbe-gjahr,

END OF it_t100.

DATA:program TYPE sy-repid VALUE sy-repid.

TYPE-POOLS slis.

DATA:it_fieldcat TYPE slis_t_fieldcat_alv,

wa_fieldcat LIKE LINE OF it_fieldcat.

DEFINE fieldcatalog.

wa_fieldcat-fieldname = &1.

wa_fieldcat-tabname = 'IT_T100'.

wa_fieldcat-seltext_m = &2.

wa_fieldcat-emphasize = &3. "highlight columns in color

append wa_fieldcat to it_fieldcat.

clear wa_fieldcat.

END-OF-DEFINITION.

START-OF-SELECTION.

SELECT * FROM ekbe INTO TABLE it_t100 UP TO 100 ROWS.

fieldcatalog: 'CHECKBOX' 'CHECKBOX' 'C210',

'EBELN' 'EBELN' 'C310',

'EBELP' 'EBELP' 'C410',

'GJAHR' 'GJAHR' 'C510'.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = program

it_fieldcat = it_fieldcat

TABLES

t_outtab = it_t100.

***************************

Regards,