Skip to Content
0
Former Member
May 14, 2008 at 12:31 PM

Field Catalog error

26 Views

Hi ABAPers,

I have defined an internal table I_ACV in the following manner.

DATA: BEGIN OF i_acv_new OCCURS 0.

INCLUDE STRUCTURE zzscmm003.

DATA: multi(1) TYPE c,

z_ebeln TYPE ekko-ebeln,

z_elikz TYPE ekpo-elikz,

END OF i_acv_new.

DATA: i_acv LIKE i_acv_new OCCURS 0 WITH HEADER LINE.

now , while creating the field catalog, the function module doesnt work. The field catalog is blank.

REFRESH gt_fieldcat.

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

i_program_name = sy-repid

i_internal_tabname = 'I_ACV'

i_inclname = sy-repid

CHANGING

ct_fieldcat = gt_fieldcat

EXCEPTIONS

inconsistent_interface = 1

program_error = 2

OTHERS = 3.

IF sy-subrc <> 0.

ENDIF.

Any way in which this can be worked around?

Help is much appreciated.

Thanks in advance.