Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Use FM BAPI_ACC_DOCUMENT_POST for reversal of FI document

Former Member
0 Kudos

Hello All,

I have to use the BAPI BAPI_ACC_DOCUMENT_POST for doing of reversal of FI document so that special ledger(SL) document also gets created.

Currently I am using BAPI BAPI_ACC_INVOICE_REV_POST for reversal, but FI document is getting created, but special ledger(SL) document is not getting created. When I checked forums, some suggested to use BAPI BAPI_ACC_DOCUMENT_POST for reversal. Let me know the parameters which needs to be passed to this BAPI so that reversal happens. Also let me know if it would create SL document as well.

Thanks in Advance.

Regards,

M M Jaffer.

1 ACCEPTED SOLUTION

Former Member

You can try using function: 'BAPI_ACC_DOCUMENT_REV_POST', 

the input parameters will be: company code, reason for reversal, fiscal period, doc. number and accounting principle against reversal and business transaction (GLVOR) against bus_act.

You can use 'BAPI_ACC_DOCUMENT_REV_CHECK' before using the post BAPI.

Regards,

Gopal

6 REPLIES 6

raymond_giuseppi
Active Contributor
0 Kudos

Did you look at BAPI_ACC_DOCUMENT_REV_POST, or what is your version ?

Regards,

Raymond

Former Member

You can try using function: 'BAPI_ACC_DOCUMENT_REV_POST', 

the input parameters will be: company code, reason for reversal, fiscal period, doc. number and accounting principle against reversal and business transaction (GLVOR) against bus_act.

You can use 'BAPI_ACC_DOCUMENT_REV_CHECK' before using the post BAPI.

Regards,

Gopal

0 Kudos

Thanks Raymond and Gopal for your inputs.

Just wanted to know whether functionality wise how different is BAPI_ACC_DOCUMENT_REV_POST and BAPI_ACC_INVOICE_REV_POST.

Whether the reversal document (data in it ) created using the BAPI BAPI_ACC_DOCUMENT_REV_POST would be similar)?

Thanks.

M M Jaffer.

0 Kudos

Basically those are the same program BAPI_ACC_INVOICE_REV_POST is a subset of BAPI_ACC_DOCUMENT_REV_POST (same perform with a hard coded value, take 1 mn to read the source code of both FMs...)

Did you check for OSS notes for your level of SAP, like Note 1415000 - FI reversal: Missing general ledger view/incorrect BELNR, Note 1500000 - FI reversal:  Problems with alternative fiscal year variant, etc.

Also you did not write which kind of document you tried ti reverse, how was it posted ?

Regards,

Raymond

0 Kudos

Hi Mohammed,

BAPI_ACC_DOCUMENT_REV_POST  is used to reverse FI accounting document while

BAPI_ACC_INVOICE_REV_POST reverses the corresponding invoice receipt in the Accounting components.

Regards

Pankaj

gaurab_banerji
Active Participant
0 Kudos

do a negative posting and clear it.