Hi everyone,
i enhancing generic datasource D_VBSEGK by calculating net due date using FM: "DETERMIN_DUE_DATE". Here is my Code:
DATA: l_s_ZOXERS0119 LIKE ZOXERS0119,
lwa_faede type faede.
CASE i_datasource.
WHEN 'D_VBSEGK'.
LOOP AT i_t_data INTO l_s_ZOXERS0119.
l_tabix = sy-tabix.
lwa_faede-koart = 'K' or 'D'. "Acct type
lwa_faede-ZFBDT = SOURCE_FIELDS-ZFBDT.
lwa_faede-SHKZG = 'H' or 'S' ."Credit or Debit
lwa_faede-ZBD3T = SOURCE_FIELDS-ZTERM.
CALL FUNCTION 'DETERMINE_DUE_DATE'
EXPORTING
i_faede = lwa_faede
IMPORTING
e_faede = lwa_faede
EXCEPTIONS
OTHERS = 1.
l_s_ZOXERS0119-ZZFAEDT = lwa_faede-netdt.
MODIFY i_t_data FROM l_s_ZOXERS0119 INDEX l_tabix.
ENDLOOP.
ENDCASE
then when i check the code, there is Error:
The field "I_T_DATA" ist unknown, but there is a field with the similar
name "C_T_DATA". "C_T_DATA".
i am really new with ABAP, to write this Code, i have read alots on SCn and ABAP Forum. But its still not correct
Can you please help me how to correct this?
Thankyou very much!