2008 Jun 09 6:33 AM
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".
2008 Jun 09 6:40 AM
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.
2008 Jun 09 6:38 AM
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
2008 Jun 09 6:40 AM
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.
2008 Jun 09 6:44 AM
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
2011 Mar 21 9:07 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |