Application Development and Automation 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: 
Read only

BAPI reverse post don't work

Former Member
0 Likes
5,706

Hi all,

I use  BAPI_ACC_DOCUMENT_REV_POST to reverse document but I always get error message:

E RW 609 Error in document: BKPFF $ BE6CLNT100

E RW 632 Document BKPFF TEST000001BAPICALL BE6CLNT100 cannot be reversed

E RW 630 Reversal in component Financial Accounting not possible                          REVERSAL

E F5 009 Reversal not possible, accounting document for the ref. does not exist           REVERSAL

I used sample program ACC_BAPI_TEST_DOCUMENT.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
3,508

Don't use BAPI, call a FI FM like POSTING_INTERFACE_REVERSE_DOC which will generate a BDC of FB08.

(After a call of POSTING_INTERFACE_START and before a call of POSTING_INTERFACE_END)

Regards,

Raymond

7 REPLIES 7
Read only

Former Member
0 Likes
3,508

Problem is in FM G_RWIN_REVERSE_PRECHECK which call BAPI inside.

This raise RAISING REVERSE_IMPOSSIBLE but don't know how to resolve this problem.

Read only

0 Likes
3,508

Hello Marcin Augustyniak.

     Ensure all relevant data are in BAPI for system to post the reversal.

     Also the data should be in right format. For instance, preceding zeroes.

Regards.

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
3,508

Hi Marcin

Did you try by reversing the document via Tcode. If it shows same message their then Functional people can help you with configurations

Read only

0 Likes
3,508

There aren't any message in FB08 when I reverse the same document.

Document was posted by BAPI.

Read only

Former Member
0 Likes
3,506

Hi,

The issues are coming initial checks of header before reversing the document!

Please place the break point  and test the code! for example error 609!

Include: LACC9F10 ( document number or logical system issue in the test program)

Rg, Kiran

Read only

former_member187748
Active Contributor
0 Likes
3,506

Hi Marcin,

Please check SAP Note 1799990 - Error message RW628 is raised when reverse documents via BAPI

Read only

RaymondGiuseppi
Active Contributor
3,509

Don't use BAPI, call a FI FM like POSTING_INTERFACE_REVERSE_DOC which will generate a BDC of FB08.

(After a call of POSTING_INTERFACE_START and before a call of POSTING_INTERFACE_END)

Regards,

Raymond