Skip to Content
0
Former Member
May 08, 2007 at 06:26 AM

Regarding ALV - FIELDCATALOG

56 Views

Hi

I tried program in ALV with fieldcatalog, But i am getting error like "Field catalog not found'.

How to resolve this problem? Can anyone tel me?

Program is:

REPORT YCL_ALV_CUSTOMER_GRID_01 .

TYPE-POOLs slis.

TYPES: BEGIN OF WA_ORDER,

VBELN TYPE VBAK-VBELN,

KUNNR TYPE VBAK-KUNNR,

NETWR TYPE VBAK-NETWR,

END OF WA_ORDER.

DATA: IT_ORDER TYPE TABLE OF WA_ORDER,

CT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,

repid LIKE sy-repid.

REPID = SY-REPID.

PARAMETER CUSTOMER TYPE KNA1-KUNNR.

SELECT VBELN KUNNR NETWR FROM VBAK

INTO CORRESPONDING FIELDS OF

TABLE IT_ORDER

WHERE KUNNR = CUSTOMER .

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

I_PROGRAM_NAME = REPID

I_INTERNAL_TABNAME = 'IT_ORDER'

CHANGING

CT_FIELDCAT = CT_FIELDCAT[]

EXCEPTIONS

INCONSISTENT_INTERFACE = 1

PROGRAM_ERROR = 2

OTHERS = 3 .

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

IT_FIELDCAT = CT_FIELDCAT[]

TABLES

T_OUTTAB = IT_ORDER

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2.

pls solve this problem.

Thanks & Regards

Senthil