Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Error msg "GT_ALV" is not type-compatible with formal parameter "CH_GT_ALV"

Following error msg is coming

"GT_ALV" is not type-compatible with formal parameter "CH_GT_ALV".

DATA: BEGIN OF gt_alv OCCURS 0,

bukrs LIKE bkpf-bukrs,

t_auste_ep TYPE rfums_tax_item OCCURS 0, "Augangssteuer, Ein.p.

t_auste_sum TYPE ty_auste_sum OCCURS 0, "Augangssteuer, Summe

t_voste_ep TYPE rfums_tax_item OCCURS 0, "Vorsteuer, Einzelpos.

t_voste_sum TYPE ty_voste_sum OCCURS 0, "Vorsteuer, Summe

t_sdiff_ep TYPE ty_sdiff_ep OCCURS 0, "Steuerdiffer., Ein.p.

t_bukrs TYPE ty_bukrs OCCURS 0, "Summe ├╝ber den Bukrs

END OF gt_alv.

DAta : g_ref_to_exit_016 TYPE REF TO if_ex_fi_tax_badi_016.

CALL METHOD g_ref_to_exit_016->end_of_selection

EXPORTING

im_bkpf = bkpf

flt_val = g_bukrs_land

par_sort = par_sort

CHANGING

CH_GT_ALV = gt_alv[] "500308

ch_trvor = tab_trvor "400505

ch_bukrs_sum = gt_bukrs_sum[].

please guide

Edited by: ABHUT on Sep 23, 2008 10:51 AM

Tags:
replied

gt_alv should of type TY_RFUMS_TAX_GT_ALV, but you defined differently. Change it to below ..

data: gt_alv type table of  TY_RFUMS_TAX_GT_ALV with header line.


DAta : g_ref_to_exit_016 TYPE REF TO if_ex_fi_tax_badi_016.

CALL METHOD g_ref_to_exit_016->end_of_selection
EXPORTING
im_bkpf = bkpf
flt_val = g_bukrs_land
par_sort = par_sort
CHANGING
CH_GT_ALV = gt_alv[] "500308
ch_trvor = tab_trvor "400505
ch_bukrs_sum = gt_bukrs_sum[].

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question