‎2009 Apr 24 7:30 AM
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??
‎2009 Apr 24 7:44 AM
you need to pass a standard or z-structure created using se11 in parameter
I_STRUCTURE_NAME.
you need to create this structure in se11 instead of creating it using TYPE statement.
I_STRUCTURE_NAME is of type DD02L-TABNAME.
Regards
Suvi
‎2009 Apr 24 7:44 AM
you need to pass a standard or z-structure created using se11 in parameter
I_STRUCTURE_NAME.
you need to create this structure in se11 instead of creating it using TYPE statement.
I_STRUCTURE_NAME is of type DD02L-TABNAME.
Regards
Suvi
‎2009 Apr 24 7:59 AM