Skip to Content
0
Former Member
Jul 21, 2006 at 06:10 AM

Additional Fieldcatalog in ALV Grid

17 Views

Hi,

Using ALV grid for output list. In fieldcatalog i have field names but also want column nos in a row just below the Column headings. How it can be done.

Like 1 should be displayed in 1st row for EBELN.

Right now using following code

DATA: FIELDCATALOG TYPE SLIS_T_FIELDCAT_ALV

WITH HEADER LINE.

FIELDCATALOG-FIELDNAME = 'EBELN'.

FIELDCATALOG-SELTEXT_L = 'PO No'.

FIELDCATALOG-COL_POS = 1.

APPEND FIELDCATALOG TO FIELDCATALOG.

CLEAR FIELDCATALOG.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = GD_REPID

I_CALLBACK_TOP_OF_PAGE = 'TOP-OF-PAGE'

I_CALLBACK_USER_COMMAND = 'USER_COMMAND'

IS_LAYOUT = GD_LAYOUT

IT_FIELDCAT = FIELDCATALOG[]

IT_EVENTS = GT_EVENTS

IS_PRINT = GD_PRNTPARAMS

I_SAVE = 'X'

TABLES

T_OUTTAB = ITEMP

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2.

Looking forward for your responses.

thanks

anu