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_ACC_DOCUMENT_REV_POST

Former Member
0 Likes
3,564

Hi folks...

If i am using the function module BAPI_ACC_DOCUMENT_REV_POST for reversing the Account Document what are the mandatory fields i need to pass in the Interface. I mean the fields of BAPIACREV, so that It can generate the Reversal document internally.

Thanks in advance.

Regards,

Bhanu

7 REPLIES 7
Read only

Former Member
0 Likes
1,574

Hi Banu,

In the Structure BAPIACREV, I think you need to pass the first 4 fields which are OBJ_TYPE,OBJ_KEY,OBJ_SYS and the field OBJ_KEY_R.

Hope this will help u.

Read only

Former Member
0 Likes
1,574

Hi,

You must make entries in the following fields

Reversal document number:

OBJ_TYPE Sender ID (BKPF-AWTYP)

OBJ_KEY Reference number of the reversal document (source document) (BKPF-AWKEY)

OBJ_SYS Logical system (BKPF-AWSYS)

OBJ_KEY_R Reference number of the document to be reversed (BKPF-AWTYP).

Default

All other fields are transferred from the FI document to be reversed.

Read only

Former Member
0 Likes
1,574

Hi...

Thanks for replying...but my question is i want the BAPI to generate the Document number as in the case of Posting if we pass the value of OBJKEY = '$' then system will generate the next Internal number. In the case of reversal how to achieve this. One more thing is how can i pass the value for BSEG-SGTXT if i use this FM for reversal.

Thanks & Regards,

Bhanu

Read only

0 Likes
1,574

Hi,

For a document reversal I have used another FM -CALL_FB08. I suppose that changes to the text field can be done using FI substitution.

Message was edited by: Svetlin Rusev

Read only

Former Member
0 Likes
1,574

Hi svetlin,

The reason why i choosed BAPI is it should commit immediately. We need to generate the document and pass it back to calling program, where it will get committed based on other success transactions. Basically i mean to say we need to incorporate the concept of LUW. Please provide a solution of this scenario.

Regards,

Bhanu

Read only

0 Likes
1,574

I am also interested in this function module but havent yet seen a reply on how it can be usefully used. Has it been used by anybody and what data need to be populated in each field for it to work?

Read only

former_member469469
Discoverer
0 Likes
1,574

Hello dear colleagues, I am a FICO consultant. I am trying to use this bapi in trx SE37 by following Svetlin Surev's instructions and I have no success. I am receiving the following Return messages:

Reversal in component Financial Accounting not possible

Reversal not possible, accounting document for the ref. does not exist

I need to add that the document I am trying to revers has been originated by an IDOC.

Message was edited by: Silvia Domeniconi