10-12-2007 10:14 AM
Hi
When executing standard tcode CO11n ,getting this error "LT_AFRU_IND_TAB' is not type-compatible with formal parameter 'CT_CONF_IND'.
the include for this is LCORFF59 ,it is giving error at this particular line
CALL METHOD LP_BADI_IF->BACKFLUSH
EXPORTING
I_ORDER_HEADER = i_caufvd
IT_CONFIRMATIONS = lt_xafrud_tab
CHANGING
CT_COMPONENTS = lt_ximseg_tab
CT_FAILED_COMPONENTS = lt_emseg_tab
<b>CT_CONF_IND = lt_afru_ind_tab.</b> ---<b>Error line</b>
please let me know how to rectify this error.
10-12-2007 10:19 AM
Hi,
Check the structure of <b>CT_CONF_IND and lt_afru_ind_tab.</b>
I thing the structures are incompatiable.
Create the Internal table structure like CT_CONF_IND structure.
Thanks,
Reward If Helpful.
10-12-2007 10:37 AM
Hi Viji
Both the types are compatible, but still it is giving this error.
In the BADI WORKORDER_GOODSMVT
CT_CONF_IND TYPE TY_T_AFRP1
please find the code of the include program
----
INCLUDE LCORFF59 *
----
&----
*& Form call_badi_backflush
&----
text
----
FORM call_badi_backflush TABLES T_XAFRUD_TAB STRUCTURE AFRUD
T_XIMSEG_TAB STRUCTURE IMSEG
T_EMSEG_TAB STRUCTURE EMSEG
<b> T_AFRU_IND_TAB STRUCTURE AFRP1</b>
T_AFRU_MAT_TAB TYPE T_TY_AFRU_MAT_TAB
USING I_CAUFVD LIKE CAUFVD.
BADI 'WORKORDER_GOODSMVT'
data: lp_badi_if type ref to if_ex_workorder_goodsmvt.
<b> data: lt_afru_ind_tab type standard table of afrp1.</b>
Check if BADI 'WORKORDER_GOODSMVT' is active
call function 'CO_BADI_GET_BUSINESS_ADD_IN'
exporting
i_badi_name = con_badi_name_order_goodsmvt
changing
c_badi_instance = lp_badi_if
exceptions
NOT_ACTIVE = 1
OTHERS = 2.
if sy-subrc is initial.
further processing only if BADI is active
-> call BADI method 'BACKFLUSH'
lt_afru_ind_tab[] = t_afru_ind_tab[].
CALL METHOD LP_BADI_IF->BACKFLUSH
EXPORTING
I_ORDER_HEADER = i_caufvd
IT_CONFIRMATIONS = lt_xafrud_tab
CHANGING
CT_COMPONENTS = lt_ximseg_tab
CT_FAILED_COMPONENTS = lt_emseg_tab
<b>CT_CONF_IND = lt_afru_ind_tab.</b>
Thanks and Regards
First