we create custom bapi for transferring data to db table.
but after execution data did not transfer to db table even its not show any error
pls help me out.
i defined function module for bapi :
Source code :
*Function zbapi_fm1.
"local interface
"exporting
" value(return) type bapiret2
"tables
" it structure zbapi_vttk
********************************************
tables vttk.
data : wa type zbapi_vttk.
loop at it into wa.
move-corresponding wa to vttk.
endloop.
in program call fun.
data : t_vttk type table of zbapi_vttk,
w_vttk type zbapi_vttk.
call function 'upload'.
exporting
filename = ' '
filetype = 'DAT'
tables
data_tab = t_vttk
.
if sy-subrc = 0.
endif.
CALL FUNCTION 'ZBAPI_FM'
TABLES
IT = T_VTTK
.