Hi,
I have this structure defined in my program.
TYPE: BEGIN OF TY_OUTPUT,
BUKRS TYPE BUKRS,
KUNNR TYPE KUNNR,
NAME1 TYPE NAME1,
BUSAB TYPE BUSAB,
KONZS TYPE KONZS,
LAND1 TYPE LAND1,
WAERS TYPE WAERS,
BALAN TYPE WRBTR,
CAT01 TYPE WRBTR,
CAT02 TYPE WRBTR,
CAT03 TYPE WRBTR,
CAT04 TYPE WRBTR,
CAT05 TYPE WRBTR,
CAT06 TYPE WRBTR,
PYAMT TYPE PYAMT,
WROFF TYPE WRBTR,
END OF TY_OUTPUT.
Using this structure i m creating field catalog semi automatically passing structure name as an exporting parameter.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
I_STRUCTURE_NAME = 'TY_OUTPUT'
CHANGING
CT_FIELDCAT = P_GT_FIELDCAT[]
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3.
But P_GT_FIELDCAT table is initial after the function hence grid is not displayed.
Can anyone suggest me what to do??