Skip to Content
0
Former Member
Jun 30, 2007 at 07:26 AM

Error in ALV field Catalog creation

14 Views

Hello experts I am using the following code in my program and it is throwing a dump saying:

The ABAP source code lines are longer than the width of the internal

Please help me in resolving this error.

TYPE-POOLS: slis.

*variable for Report ID

DATA: g_repid LIKE sy-repid.

*declaration for fieldcatalog

DATA: git_fieldcat TYPE slis_t_fieldcat_alv.

DATA: BEGIN OF gt_display OCCURS 0,

PERNR LIKE pernr-pernr,

vorna like p0002-vorna,

nachn like p0002-nachn,

landx50 like t005t-landx50,

END OF gt_display.

  • Store report name

g_repid = sy-repid.

  • Create Fieldcatalogue from internal table

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

I_PROGRAM_NAME = g_repid

I_INTERNAL_TABNAME = 'GT_DISPLAY'

I_INCLNAME = g_repid

CHANGING

CT_FIELDCAT = git_fieldcat

EXCEPTIONS

INCONSISTENT_INTERFACE = 1

PROGRAM_ERROR = 2

OTHERS = 3.