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: 

Reverse document with BAPI_ACC_DOCUMENT_REV_POST

Former Member
0 Kudos

Hi all,

I want to reverse FI document with BAPI_ACC_DOCUMENT_REV_POST for documents that was posted with BAPI_ACC_DOCUMENT_POST, but it showed this error: OBJ_SYS is missing. How do we set the data for OBJ_SYS, OBJ_TYPE, and OBJ_KEY?

I tried to fill in with something similar with the one when we do manual posting, but it's still showed error.

Please help,

Meila

3 REPLIES 3

ThomasZloch
Active Contributor
0 Kudos

I have not used this BAPI yet, but maybe you can find out how it works by studying program ACC_BAPI_TEST_DOCUMENT.

OBJ_SYS is most likely the logical system as found in T000-LOGSYS.

Thomas

0 Kudos

Thank you, Thomas!

I'm currently learning the program..

Meanwhile, anyone have any other suggestions for me to try?

Regards,

Meila

Former Member
0 Kudos

Unfortunately there are a lot of posts to this topic, without meaningful answers. When creating a reversal, those fields are used to create the actual "new" document number.

However, if you have an internal number range assignment when creating FI documents, you do not need to fill these fields.

But your system may be requiring those fields to be filled and if that is so, you may not have the correction installed in your system, that allows you to post reversals via this BAPI without having to fill those fields.

This note explains it perfectly: 1005440.

It shows you what fields to fill based on whether you want to use internal or external number range assignments AND you can check whether you have the associated correction installed in your system. If you have the note installed, you will be able to post reversals without those fields filled.