Skip to Content
0
Former Member
Dec 22, 2008 at 09:46 AM

Need to display COlumn headers dynamically in ALG Grid

11 Views

Hello,

I need to display column headers dynamically in alv grid Display with its corresponding value.

Column headers should be picked from a field in Final Internal table and its corresponding field will also need to pick from the same table.

T_final... Suppose Field STCTS - (To pick coulmn headers)

CCNGN - (To pick appropriate value for that column)

Can anybody explain me how i can pass these values to ALV Grid using

CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE

EXPORTING

IT_FIELDCATALOG = Y_I_FCAT

IMPORTING

EP_TABLE = DY_TABLE.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Any suggestions will be appreciated....

Regards,

Kittu