Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ALV-OO: FIELDCAT for COUNT4

Hi,

i use ALV-OO. In internal table i fave this field:

TYPES: BEGIN OF TY_ITAB,

...

COUNT4 TYPE COUNT4,

DMBTR LIKE MSEG-DMBTR,

...

END OF TY_ITAB.

*

Fieldcat:

CLEAR: GS_FIELDCAT.

GS_FIELDCAT-REF_TABLE = 'MSEG'.

GS_FIELDCAT-REF_FIELD = 'DMBTR'.

GS_FIELDCAT-FIELDNAME = 'DMBTR'.

GS_FIELDCAT-TABNAME = 'IT_ITAB'.

APPEND GS_FIELDCAT TO GT_FIELDCAT.

...

CLEAR: GS_FIELDCAT.

GS_FIELDCAT-DOMNAME = 'COUNT4'.

GS_FIELDCAT-FIELDNAME = 'COUNT4'.

GS_FIELDCAT-TABNAME = 'IT_ITAB'.

APPEND GS_FIELDCAT TO GT_FIELDCAT.

*

For DMBTR i get the rigth description, but not for COUNT4. Does anyone know

wich field of fieldcat i have to set with COUNT4 to get the right description (zähler).

Thanks.

Regards Dieter

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question