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

Former Member
0 Likes
596

DATA i_fldctlg TYPE LVC_T_FCAT,

PERFORM s_build_fldctlg CHANGING i_fldctlg.

FORM s_build_fldctlg CHANGING i_fldctlg TYPE lvc_t_fcat.

CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'

EXPORTING

I_BUFFER_ACTIVE =

I_STRUCTURE_NAME = 'ZSMM_ASSORT'

I_CLIENT_NEVER_DISPLAY = 'X'

I_BYPASSING_BUFFER =

I_INTERNAL_TABNAME =

CHANGING

ct_fieldcat = i_fldctlg[]

EXCEPTIONS

INCONSISTENT_INTERFACE = 1

PROGRAM_ERROR = 2

OTHERS = 3

.

IF sy-subrc 0.

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

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

ENDIF.

Hi all,

I have declared as above to build my field catalog. But when I activate it, I am getting an error like,

'In PERFORM or CALL FUNCTION "S_BULID_FLDCTLG", the actual parameter "I_FLDCTLG" is incompatible with the formal parameter "I_FLDCTLG".

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
567

Hi,

While passing I_FLDCTLG to perform declare it as of type

ct_fieldcat in FM 'LVC_FIELDCATALOG_MERGE'.

e.g.

PERFORM s_build_fldctlg CHANGING i_fldctlg type LVC_T_FCAT.

Hi,

While passing I_FLDCTLG to perform declare it as of type

ct_fieldcat in FM 'LVC_FIELDCATALOG_MERGE'.

e.g.

PERFORM s_build_fldctlg CHANGING i_fldctlg type LVC_T_FCAT.

4 REPLIES 4
Read only

Former Member
0 Likes
567

Hi Sharan,

Your code should be giving a syntax error... as you are using "," in the "DATA" statement without usign ":".


DATA i_fldctlg TYPE LVC_T_FCAT,

Reward points if this helps,

Kiran

Read only

Former Member
0 Likes
568

Hi,

While passing I_FLDCTLG to perform declare it as of type

ct_fieldcat in FM 'LVC_FIELDCATALOG_MERGE'.

e.g.

PERFORM s_build_fldctlg CHANGING i_fldctlg type LVC_T_FCAT.

Read only

Former Member
0 Likes
567

Hi Sharan,

Try using TABLES .

PERFORM s_build_fldctlg TABLES i_fldctlg.

FORM s_build_fldctlg TABLES i_fldctlg TYPE lvc_t_fcat.

Best regards,

raam

Read only

Former Member
0 Likes
567

Answered