cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_ACC_DOCUMENT_REV_POST

SumanaSoori
Participant
0 Kudos

hi all,

I am a Functional Consultant. I am trying to reverse a document using the BAPI, BAPI_ACC_DOCUMENT_REV_POST, but I am not able to reverse the document. It is throwing up the error like OBJ_TYPE, OBJ_KEY,OBJ_SYS, OBJ_KEY_R needs to be given.

I am confused whether the above paramaters are import parameters or export parameters. If these are import parameters, what are the details that are required to be given for each one of the above specified paramters. Please clarify. Thanks in advance.

Thanks and regards,

S.Sumana.

Accepted Solutions (0)

Answers (2)

Answers (2)

SumanaSoori
Participant
0 Kudos

Hi Eli,

I have checked for the logical system of the source document in BKPF table but there was no entry found for the logical system. In this case, please let me know what is value/ entry that need to be given while using the BAPI, becase without this I am not able to reverse the source document. Please help.

Regards,

S.Sumana.

Former Member
0 Kudos

Hi,

You should call the BAPI via a T-code insteads execute the BAPI directely or in test mode.

That means, you should create a program and call the BAPI in it, then create a T-code for your program. After that, you can run the T-code to execute the BAPI. In this way, the BAPI parameter REVERSAL-OBJ_SYS should be ignored.

Hope this is helpful to you.

Brian Liu

iklovski
Active Contributor
0 Kudos

Hi,

These are cetainly the parameters you have to provide in order to execute the BAPI.

Here is the meaning of the fields:

AWTYP (OBJ_TYPE) Reference transaction

Sender ID

AWKEY (OBJ_KEY) Reference key

Source document number

The reference key is made up of:

AWREF Reference document number (10 digits)

Source document number

AWORG Reference organizational unit (10 digits)

Number range ID (if required)

AWSYS (OBJ_SYS) Logical system

Logical system of source document

If you need more information, examples, etc., you can go to BAPI transaction and check documentation there.

Regards,

Eli