Application Development 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: 

LT_AFRU_IND_TAB is not type-compatible with formal parameter CT_CONF_IND

Former Member
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

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.

0 Kudos

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