cancel
Showing results for 
Search instead for 
Did you mean: 

error is reversing account document

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

This might sound very silly but still for the info,

I dont think u can store company code in small letters in database. it cannot be v130 but has to be V130.

Hence ur ojbect key has to be

3000200510V1302005

and company code : V130.

Just let me know if this solves ur problem

Vinod_Chandran
Active Contributor
0 Kudos
Vinod_Chandran
Active Contributor
0 Kudos

Also check whether the object type is BKPF or not

t_bapiacrev-obj_type = 'BKPF'.