Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Field catalog not generated using semi automatic method

Former Member
0 Likes
438

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??

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
418

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

2 REPLIES 2
Read only

Former Member
0 Likes
419

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

Read only

Former Member
0 Likes
418

Follow this thread..