Quick ALV so ruft man schnell ein ALV auf
REPORT ZZ_FI_TEST.
data: gs_Input type ZFI_TAX_ST_TVAL,
gs_ouput type ZFI_TAX_ST_TVAL,
gt_Input type TABLE OF ZFI_TAX_ST_TVAL,
gt_ouput type TABLE OF ZFI_TAX_ST_TVAL.
DATA: alv TYPE REF TO CL_SALV_TABLE.
SELECTION-SCREEN BEGIN OF BLOCK 0 WITH FRAME TITLE TEXT-000.
PARAMETERS: p_bukrs type BUKRS,
P_stjahr type ZFI_STJAHR,
p_bfsnr type ZFI_TAX_BFSNR,
p_tkonid type ZFI_TAX_TKONID.
SELECTION-SCREEN END OF BLOCK 0.
START-OF-SELECTION.
gs_Input-BFSNR = p_bfsnr.
gs_Input-TKONID = p_tkonid.
Append gs_input to gt_input.
CALL FUNCTION 'ZFI_TAX_READ_TVAL'
EXPORTING
iv_bukrs = p_bukrs
iv_sjahr = P_stjahr
TABLES
it_tkond = gt_Input
et_tkonv = gt_ouput
.
cl_salv_table=>factory(
IMPORTING
r_salv_table = alv
CHANGING
t_table = gt_ouput ).
alv->display( ).