i am getting error in reversing account document using the function module BAPI_ACC_GL_POSTING_REV_POST.
error is :
1. Error in document VBRK 3000200510v1302005 T90CLNT090.
2. Reversal in Financial accounting not possible
3. Reversal not possible accounting document for the ref does not exist.
this is my code.
data t_bapiacrev type table of bapiacrev with header line.
data t_bapiret2 type table of bapiret2 with header line.
data : obtype type bapiacrev-obj_type,
obkey type bapiacrev-obj_key,
obsys type bapiacrev-obj_sys.
i have copied the key from the document header of the
account document
t_bapiacrev-obj_type = 'VBRK'.
t_bapiacrev-obj_key = '3000200510v1302005'.
t_bapiacrev-obj_sys = 'T90CLNT090'.
t_bapiacrev-obj_key_r = 'T90CLNT090'.
t_bapiacrev-pstng_date = '20051005'.
t_bapiacrev-fis_period = '05'.
t_bapiacrev-comp_code = 'v130'.
t_bapiacrev-reason_rev = '02'.
t_bapiacrev-ac_doc_no = '3000200510'." accounting document is exist in my system
append t_bapiacrev.
call function 'BAPI_ACC_GL_POSTING_REV_POST'
exporting
reversal = t_bapiacrev
importing
obj_type = obtype
obj_key = obkey
obj_sys = obsys
tables
return = t_bapiret2 .
loop at t_bapiret2.
write : t_bapiret2-type , t_bapiret2-id , t_bapiret2-message,
t_bapiret2-number.
endloop.
please help me
thnks,
suresh