Skip to Content
0
Former Member
Apr 22, 2008 at 06:15 AM

Problem in calculating fieldcatelog

12 Views

Hi All,

I have internal table with below structure.But while calculating fieldcatelog using FM 'REUSE_ALV_FIELDCATALOG_MERGE'

I am not able to get fieldcatelog structure for 'werks' and 'matnr'.

DATA : BEGIN OF l_t_vmcfao OCCURS 0.

INCLUDE STRUCTURE vmcfao.

DATA : werks TYPE werks_d,

matnr TYPE matnr,

END OF l_t_vmcfao.

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

i_program_name = gd_vmcfa_cb_program

i_internal_tabname = 'L_T_VMCFAO'

i_inclname = gd_vmcfa_cb_program

CHANGING

ct_fieldcat = pt_fieldcat

EXCEPTIONS

inconsistent_interface = 1

program_error = 2

OTHERS = 3.