Skip to Content
author's profile photo Former Member
Former Member

BAPI_ACC_DOCUMENT_POST with reversal date


Can I use BAPI_ACC_DOCUMENT_POST for posting in FBS1 with reversal reason & reversal date? I can't find such option in the BAPI. If not, can you suggest other BAPI that I can use to perform posting with reversal reason & reversal date? Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 06, 2008 at 04:39 AM

    Hi Nivla,

    You do one thing what ever the document you want to post for

    FBS1. you try to post the same from standard process or you see the already posted document in the document list.

    Find out the parameters what system is passing through standard process. and try the same with your code by passing those parameters in your BAPI_ACC_DOCU_POST.

    You have to try.



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 22, 2016 at 11:57 AM

    Dear All,

    Very old threat but I dont like when there is no solution.

    It's possible using the extension2 parameter.

    there you can pass your date for reversal (stodt) and reason (stgrd).

    As documented you have then to implement the BADI ACC_DOCUMENT.

    It will look like something like this.

    Bapi Call:


    lt_extension2 TYPE STANDARD TABLE OF bapiparex,

    ls_extension2 TYPE bapiparex.

    ls_extension2-structure = 'ACCIT'.

    ls_extension2-valuepart1 = YOUR DATE

    ls_extension2-valuepart2 = YOUR REASON

    APPEND ls_extension2 TO lt_extension2.

    then you bapi call passing the lt_extension2 as parameter


    METHOD if_ex_acc_document~change.

    * Feldsymbole

    FIELD-SYMBOLS <ls_accit> TYPE accit.

    * Arbeitsbereiche

    DATA: ls_extension TYPE bapiparex.

    LOOP AT c_accit ASSIGNING <ls_accit>.

    READ TABLE c_extension2 INTO ls_extension

    WITH KEY structure = 'ACCIT'.

    IF sy-subrc = 0.

    <ls_accit>-stodt = ls_extension-valuepart1.

    <ls_accit>-stgrd = ls_extension-valuepart2.




    Hope this will help you.

    Best regards


    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.