Skip to Content

BAPI to replace batch input of tx. FB08

Hi,

I need to reversal FI documents. I have found BAPI's: BAPI_ACC_GL_POSTING_REV_POST and BAPI_ACC_DOCUMENT_REV_POST, but I can't make to work correctly, instead I get the following messages:

"Error in document: BKPFF $ QAS300

Document BKPFF 000400002020002010 QAS300 cannot be reversed

Reversal in component Financial Accounting not possible

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

Any suggestions? Is there other BAPI or functions module?... Am I passing wrong parameters?

Thanks in advance...

Best regards,

Mayra.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Feb 14, 2010 at 12:29 AM

    Hi,

    it's really hard to say if you are passing wrong parameters or not without seeing you code. But you should be able to reverse document using BAPI BAPI_ACC_DOCUMENT_REV_POST. Have you checked documentation for this BAPI in SE37? It tells you which fields are mandatory.

    Cheers

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 14, 2010 at 12:48 AM
    Reversal not possible, accounting document for the ref. does not exist"

    Based on above statement, looks like some thing wrong with accounting doc number. Check your data.

    Thanks

    Satyasuresh Donepudi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 14, 2010 at 03:28 AM

    Hi,

    First try to post reversal manually through the standard transaction. Observe what are all the mandatory parameters need to be passed.

    Then proceed with the similar way by passing all the parameters to the BAPI.

    Hope this helps you to find out the missing/ incorrect parameters !!!

    Regards,

    Ganga

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 15, 2010 at 09:56 AM

    hi ALL,

    i am currently doing a program using this BAPI as well. Unfortunately, it generates an error 'Required field OBJ_KEY_R was not transferred in parameter REVERSAL'. This field is suppose to be the reversing document number. This doc number is generated only after the BAPI execution. I want to ask your help why this is as required field in the inmporting parameter of the BAPI. If this reversal BAPI fails, my PLAN B is BDC processing.

    Has anyone processed this BAPI successfully before? Any information will be highly appreciated.

    Thanks a lot!

    -Rhea

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 18, 2010 at 04:18 PM

    Hi,

    I have some progress but still have not accounted the reversal document.

    I'm testing by "Test Sequences" in transaction SE37 these BAPIs:

    1. BAPI_ACC_DOCUMENT_REV_POST

    2. BAPI: BAPI_TRANSACTION_COMMIT

    For the first one, the import parameter data is:

    REVERSAL-OBJ_TYPE BKPF

    REVERSAL-OBJ_KEY 000400000720002010

    REVERSAL-OBJ_SYS QAS300

    REVERSAL-OBJ_KEY_R 000400000720002010

    BUS_ACT RFBU

    And the export parameters and RETURN table, it shows:

    OBJ_TYPE BKPF

    OBJ_KEY 000400000720002010

    OBJ_SYS QAS300

    RETURN-TYPE S

    RETURN-ID RW

    RETURN-NUMBER 605

    RETURN-MESSAGE Document posted successfully: BKPF 000400000720002010 QAS300

    RETURN-LOG_NO

    RETURN-LOG_MSG_NO 000000

    RETURN-MESSAGE_V1 BKPF

    RETURN-MESSAGE_V2 000400000720002010

    RETURN-MESSAGE_V3 QAS300

    RETURN-MESSAGE_V4

    RETURN-PARAMETER

    RETURN-ROW 0

    RETURN-FIELD

    RETURN-SYSTEM QAS300

    For the second one, the import parameter data is:

    WAIT X

    And the RETURN table it shows:

    RETURN-TYPE E

    RETURN-ID S&

    RETURN-NUMBER 150

    RETURN-MESSAGE Updating could not be completed

    RETURN-LOG_NO

    RETURN-LOG_MSG_NO 000000

    RETURN-MESSAGE_V1

    RETURN-MESSAGE_V2

    RETURN-MESSAGE_V3

    RETURN-MESSAGE_V4

    RETURN-PARAMETER

    RETURN-ROW 0

    RETURN-FIELD

    RETURN-SYSTEM QAS300

    Why? 😔

    Thanks a lot to all (even to the ironic)

    Best regards,

    Mayra.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.