cancel
Showing results for 
Search instead for 
Did you mean: 

Parameters for reversal posting with using BAPI_ACC_DOCUMENT_POST

abdulhamitorman
Discoverer
0 Kudos
332

Hi All;

Does anyone know how to post reverse post with using standard posting bapi BAPI_ACC_DOCUMENT_POST just by changing the exporting parameters?

I read on the blog that some say by changing obj_type, obj_key and obj_sys bapi creates a reverse post. However, I am still not completely clear about what to use or change in the bapi to create a reverse post.

Thank you for your help.

Edit: I just realized that there is an FM namely CALL_FB08 that allows the system to reverse the document with the export parameters of BUKRS, BELNR, GJAHR and STGRD ( reversal reason).

Thanks for the responses.

Accepted Solutions (1)

Accepted Solutions (1)

raymond_giuseppi
Active Contributor
0 Kudos

Honestly, you should use BAPI_ACC_DOCUMENT_REV_POST.

Otherwise, change the document type (T003-BLART > STBLA) and posting direction (changing the sign of amounts) in the document creation BAPI. This would create a 'reverse' document, but not 'cancel' it.

Where are you stuck?

Answers (1)

Answers (1)

Eduardo-CE
Active Participant
0 Kudos

Hi,

I don't think it's possible, why not use BAPI_ACC_DOCUMENT_REV_POST?

Regards, Eduardo.

abdulhamitorman
Discoverer
0 Kudos

Hi;

The posting structure of the program fully relies on that standard BAPI. That is why, I don't want to change the way that works. I think that it will create other problems.

Thanks for the answer!