I woudl like to use the BAPI_ACC_GL_POSTING_REV_POST to reverse a document. I got the following situation
1- When the original was created by the BAPI_ACC_GL_POSTING_POST then no reversal document will be created.
2- When the orginal was created by a call transaction then a reversal document will be created.
For both case, if 'm using the call transaction FB08, it will be created a reversal document.
Does anybody have any ideas why it's happing like that.
Thanks in advance.
Either in creation of the posting or in the rev_post some info is missing.
Compare two documents with SE16, one created by Bapi, the other created by CT. If Bapi-version has less fields filled, try to add according fields in Bapi call.
Otherwise Rev-Bapi might need additional info. Have a look at FB08-created document and try to guess some additional fields, which you might fill in Rev-Bapi call.