BAPI to reverse a Document posted using transaction FB50 in ECC5.0

Hi All,
We have a requirement to reverse the document that is posted using the transaction FB50.We found the below BAPIu2019s for this requirement:
BAPI_ACC_DOCUMENT_REV_CHECK
BAPI_ACC_DOCUMENT_REV_POST
While trying to execute them, we are getting the error message u201C It cannot be postedu201D.
Please let me know if anyone has worked on these BAPIu2019s or information on any other BAPIu2019s would be of great help.
Regards
Prathima

check this link[Reversing a document using the bapi 'BAPI_ACC_DOCUMENT_REV_POST';

Similar Messages

  • How do I reverse a document posted with transaction 1KE8?

    I posted a few documents using transaction 1KE8 from Financial Accounting to Profit Center Accounting.  Now I realize that these documents are not needed in PCA.  I tried to use transaction 1KE8 again and select the reverse box but it just creates a reversal and another entry every time I try.  Am I missing something here or is there another way to reverse these documents?
    Any help would be greatly appreciated.

    HI,
    If the reversal documet is creted with referance to the earlier document, then I feel, system works fine. That is the way it works with that reversal button.
    If you want to manually clear the balance in PCA, you can post with 9KE0.
    Vijay

  • Mass reversal of documents posted using F.13

    Hi Friends,
    We have some GR/IR open items as on 28.02.2010, and we ran the F.13 program to clear those line items with clearing date 03.03.2010. Since all those documents cleared on 03.03.2010. In total there were 1000+ documents posted by the program.
    But unfortunately user has not entered the posting date range in F.13 selection screen as 01.03.2010 to 03.03.2010. Because of this, documents related to FEB period also cleared in march and if we run the FBL3N with open item key date 28.02.2010, all items are showing open items. which is correct from the system perspective.
    But we need clear, those documents posted prior to 01.03.2010, with clearing date 28.02.2010 only.
    In FB08, mass reversal option, we can reverse multiple documents, only in case of open items, but not the cleared items.
    My requirement is that, is there any program / way to reverse the cleared items, posted by using F.13.
    We cannot use FBRA, since we have 1000+ docs.
    Please advise.
    Thanks,
    Srinu

    Hi Joshi,
    Thanks for your prompt reply.
    I have acheived my target, using LSMW batch input recording method with tcode FBRA to reset the cleared items.
    After that, i went to F.80 and given the doc number series and did the mass reversal.
    Again i did F.13, given end posting date as 28.02.2010, and clearing date 28.02.2010 and executed.
    This resolved my issue.
    Thanks,
    Srinu

  • Is it possible to reverse a planning document posted using KP98?

    Is it possible to reverse a planning document posted using KP98?
    The planning data in plan 0 has been overwritten with actuals for P1-12 in error does anyone know how to reverse this posting?
    Thanks for any help!

    hi,
    I have tried this and worked with my system.
    Try to execute KP98 transaction with reference actual period which has no posting(future period-01/2011) and in "reser/overwite" mode.
    Initially try with single cost center/cost element value.
    This will fix your issue.
    regards,
    ashok
    Edited by: AshokFICO on Feb 5, 2010 12:48 PM
    there is no direct t-code to reverse posted plan data exclusively for cost centers.SAP has this function to delete all plan data in integrated module so go with above response.

  • Problem with posting using transaction FB01.

    Hi ,
    Does anybody have an idea how to get the screen no. 302
    using transaction FB01?
    Deatils are :-
    SAP Transaction:     FB01
    SAP Program Name:     SAPMF05A
    SAP Screen Number:     302
    anticipating a quisk answer,
    vipul

    On the first screen enter a posting key of 31 and a vendor account number.
    rob

  • Reverse CO document post from CAT7

    Hi all,
    How to do a reversal for CO document which post from CAT7 (time sheet)?
    Thanks

    If I reverse the document through KB24N, it will prompt error message:-
    "You want to reverse a CO document which has an external reference. You cannot reverse the external document within the Controlling component. The reversal must run via the external document number."
    I can change it to warning message, but is there a better way to do this? Can we reverse via the external document dumber?
    Can this function BAPI_ACC_ACT_POSTINGS_REVERSE workable? How to execute it?
    Thanks.

  • Account document post using BAPI BAPI_ACC_DOCUMENT_POST

    Hi,
    I am using the BAPI BAPI_ACC_DOCUMENT_POST to post account doument. It is working fine.
    Here I need to pass contrac number to item.
    We have one parameter REALESTATE to pass cotract number.
    Because it is a realestate, it taking contract type as 9 by default.
    But I need to pass other contract number of diffrent type.
    How we can pass the other than realestate contract number using BAPI BAPI_ACC_DOCUMENT_POST ?
    Thanks in advance.
    Sadasiva.

    I am already did the same thing, it is creating document but it is not adding the contract number to item.
    I am also filling the parameter REALESTATE with contract number, it is adding properly and contract type is taking as 9(means realestate).
    But I need to add other contract types also, for that I tried with other parameter what you mentioned.
    Thank you for your reply.
    Sadasiva.
    Edited by: Sadasiva Rao Athota on Dec 9, 2008 2:38 PM

  • MIRO Reversal-Inconsistant Document post

    Hi Expert,
    Invoice has been reversed using reversal function in MIRO. However documnets are not posted the same way.
    In reversal document Debit in Vendor account credit in input tax account is correct ,whereas credit posting in GR/IR accounts and price difference account is not same as of original documnet. Though net balance is zero and documnet is posted in system.
    Thanks
    Biipin

    Hi,
    Transaction code MR8M used for reverse the Invoice documents.
    While simulate this MR8M, System post the corrosponding credit memo posting to the vendor,
    1. Vendor a/c debit
    2. GR/IR clearing a/c credit accordingly.
    Please try with MR8M and cancel the material docuemnt for the GR using MBST and Invoice MR8M.
    Thanks,
    Thiru

  • Unable to capture fi document number using transaction ABUMN

    hello guys,
    I am trying to create a bdc for transsaction ABUMN which generates a fi document at the end.
    but in BDC the bdcmsgcoll table is empty.
    is there any way so that i can capture document number as soon as it is posted.
    Please help, Thanks in advance.
    Thanks & Regards,
    Deepak.

    can you run your BDC after call transaction method  if you get success message based  on your input  values, then   goto the document tables and pick that values  and pass the success message.
    CALL TRANSACTION tcode USING gi_bdcdata                "#EC CI_CALLTA
                       MODE   gv_ctumode
                       UPDATE gc_cupdate
                       MESSAGES INTO gt_messtab.
      l_subrc = sy-subrc.
      IF sy-subrc <> 0.
        WRITE: / 'CALL_TRANSACTION',
                 tcode,
                 'returncode:',
                 l_subrc,
                 'RECORD:',
                 sy-index.
        LOOP AT gt_messtab INTO gwa_messtab WHERE msgtyp = 'S'.
          CLEAR lwa_t100.
          SELECT SINGLE * FROM t100 INTO lwa_t100  WHERE sprsl = gwa_messtab-msgspra
                                    AND            arbgb = gwa_messtab-msgid
                                    AND            msgnr = gwa_messtab-msgnr.
          IF sy-subrc = 0.
            l_mstring = lwa_t100-text.
            IF l_mstring CS '&1'.
              REPLACE '&1' WITH gwa_messtab-msgv1 INTO l_mstring.
              REPLACE '&2' WITH gwa_messtab-msgv2 INTO l_mstring.
              REPLACE '&3' WITH gwa_messtab-msgv3 INTO l_mstring.
              REPLACE '&4' WITH gwa_messtab-msgv4 INTO l_mstring.
            ELSE.
              REPLACE '&' WITH gwa_messtab-msgv1 INTO l_mstring.
              REPLACE '&' WITH gwa_messtab-msgv2 INTO l_mstring.
              REPLACE '&' WITH gwa_messtab-msgv3 INTO l_mstring.
              REPLACE '&' WITH gwa_messtab-msgv4 INTO l_mstring.
            ENDIF.
            CALL FUNCTION 'FORMAT_MESSAGE'
              EXPORTING
                id        = gwa_messtab-msgid
                lang      = sy-langu
                no        = gwa_messtab-msgnr
                v1        = gwa_messtab-msgv1
                v2        = gwa_messtab-msgv2
                v3        = gwa_messtab-msgv3
                v4        = gwa_messtab-msgv4
              IMPORTING
                msg       = l_mstring
              EXCEPTIONS
                not_found = 1
                OTHERS    = 2.
            IF sy-subrc <> 0.
              MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            ENDIF.
            CONDENSE l_mstring.
            IF NOT l_mstring IS INITIAL.
              WRITE: / gwa_messtab-msgtyp, l_mstring(250).
              MESSAGE l_mstring TYPE 'I'.
            ENDIF.
          ELSE.
            WRITE: / gwa_messtab.
          ENDIF.
    ENDIF.
        ENDLOOP.
        READ TABLE gt_messtab INTO gwa_messtab WITH KEY msgtyp = 'S'.
        IF sy-subrc NE 0.
          MESSAGE s069(msg class)
        ENDIF..

  • Reversing a document posted to multiple vendors

    Hello--I have a bit of a situation, and I was hoping someone could help.
    I have a payment that was posted incorrectly, and I need to reverse it.
    I tried using FBRA and reversing the clearning document, but I get the error message "Document 15xxxxxxxx is not purely a clearning document."
    Not sure if it matters, but it's one manual wire payment that was applied to two different accounts.
    I tried searching through the forum and didn't find any threads that offered a solutioni I could use. Any help would be appreciated.
    Thanks!

    I have tried using FB08 as well, and I get the following error message:
    "Document includes already cleared items - reversal not possible."
    That is why I tried FBRA, to reset and reverse the cleared items, but it is not "purely a clearing document."

  • Urgent : need to reverse a document posted thro MIRO

    hi experts,
    i have posted an invoice thro MIRO transaction.
    is it possible to reverse it... if so how?????
    regards
    priyaraj

    Hi
    u need to reverse the mr8m that cansel the invoice and also that particular document u fi side u need to reverse through fb08
    Regards

  • Error in Accounting document Posting using - BDC

    While creatind document in FB01 using BDC
      PERFORM fill_dynpro_fields1 USING:
               co_true    co_program        '0100' lit_bdcdata,
               space      'BKPF-BLDAT'       it_bkpf-bldat lit_bdcdata,
               space      'BKPF-BUDAT'       it_bkpf-budat lit_bdcdata,
               space      'BKPF-BLART'       tp_type1 lit_bdcdata,
               space      'BKPF-BUKRS'       it_bkpf-bukrs lit_bdcdata,
               space      'BKPF-WAERS'       it_bkpf-waers lit_bdcdata,
               space      'BKPF-XBLNR'       it_bkpf-xblnr lit_bdcdata,
               space      'RF05A-NEWBS'      lco_postkey lit_bdcdata,
               space      'RF05A-NEWKO'      it_bseg-kunnr lit_bdcdata,
               space      'BDC_OKCODE'       co_intro lit_bdcdata,
               co_true    co_program        '0301' lit_bdcdata,
               space      'BSEG-WRBTR'       it_bseg-wrbtr lit_bdcdata,
               space      'BSEG-ZTERM'       it_bseg-zterm lit_bdcdata,
               space      'BSEG-SGTXT'       it_bseg-sgtxt lit_bdcdata,
               space      'RF05A-NEWBS'      lco_postkey1 lit_bdcdata,
               space      'RF05A-NEWKO'      it_bseg-kunnr lit_bdcdata,
               space      'BDC_OKCODE'       co_intro lit_bdcdata,
               co_true    co_program        '0301' lit_bdcdata,
               space      'BSEG-WRBTR'       it_bseg-wrbtr lit_bdcdata,
               space      'BSEG-ZTERM'       it_bseg-zterm lit_bdcdata,
               space      'BSEG-SGTXT'       it_bseg-sgtxt lit_bdcdata,
               space      'BDC_OKCODE'       co_intro lit_bdcdata.
    I am getting message like bseg-wrbtr input value is longer than screen field. but i have declare it as same type as above space      'BSEG-WRBTR'       it_bseg-wrbtr lit_bdcdata,
    Can you help me.
    Always use proper subject line

    Hi Vijay ,
    I have one more problem regarding same please help me.
    In the program i am calling the transaction FB01 twice and two different document is created of SA and DA type.
    After the program is executed i can only see the DA document created log message. But the SA document(message) is getting suppressed but the document is getting created .
    How can i get the both document no at a time once i run the program.

  • Down Payment FAZ Document Posting using AZWR

    For configuration of Downpayment for Milestone Billing. We have made
    use of Condition Type 'AZWR'. This works fine as long as it is above
    the VAT (TAX) Condition Type in the Pricing Procedure. The invoicing
    Process in SAP involves Milestone billing with - 10% Advance Amount
    (Downpayment) and rest Pro-Rata (%age wise) billing.
    In case of Invoicing against a Material, VAT Condition Type is picked
    up and AZWR has been configured just above the VAT (TAX) condition type
    in the pricing procedure. This works fine when we create FAZ request
    through Milestone Billing and the subsequent request in then posted
    through F-29.
    But with Billing against a Service there are three tax condition types
    viz. for SERVICE TAX, for EDU.CESS and for HIGHER EDU.CESS. In this
    case too we have configured AZWR just above the three tax condition
    types. Now, while creating a FAZ downpayment request. The system picks
    up the Tax Amount only for the last tax condition type i.e. (HIGHER
    EDU.CESS) in this case. Thus, for example if for the contract value of
    Rs.1000. We have 10% as advance, thus, we have - 90.66 as net value and
    Rs.9.34 (9.07 as ST + 0.18 as Edu Cess + 0.09 Higher EDU.Cess)as Tax
    in the FAZ Request.
    The accounting document generated upon saving shows only 90.66 as Net
    Value + 0.09 as Tax with the relevant tax code for Higher Edu. Cess
    Condition. The rest of the tax conditions are not picked up. Because of
    this, during F-29 posting only 1 line item of Tax Amount Rs.0.09 is
    picked up with the relevant tax-code, and rest of the taxes are not. We
    need all the tax conditions to be posted during FAZ so that the due
    ADVANCE AMOUNT IS POSTED.

    hi Imran
    1. Did AZWR is remain statistical or required some GL.?
    now this condition type is just for a request for a down payment so there is no reqd for a GL...coz i am doing the same thing here...but as
    if now i still face issues on this also and in the billing FAZ type you could see tat the condition base value is shown as the down payment
    like as the item billing plan tab page for the down payments...like for eg 10% of the net value ...
    2. I take the down payment with FAZ type and post the incoming payment, than how can I post the actual billing (F2)??
          well in this is true i do also have the same issue ...f-39 take the downpayments in but does not reflect . but to that i waud also like to
    add this if you go to the sales order billing plan tab page of the item and there you got to choose the final invice, just like the downpayments is shown ...then the billing amount will come ...just try it and in the VF01 it will appear as billing FAZ with the downpayment
    amount and the F2 also ....but the F2 is delivery related so i think you got to do PGI after the downpayments process then do f2...
    if you get more info on that please explian
    3. There is no update after the down payment agains the condition type AZWR, did it will manually entered, or what is the bahavior of this.
           sorry i hav no info on this
    5. Should I create a different pricing procedure with AZWR or what ????
    not reqd. coz in the existing pricing procedure you need to have a subtotal after that AZWR
    IT WUD BE REALLY KIND OF YOU TO SHARE ANY NEW UPDATES PLEASE
    REGARDS

  • Cross companycode document posting using FB50

    Hi All:
      Need your kind help...
      I m trying to post cross company code document using FB50.
      After entering Basic data and Items(Only two entries for debit and credit each), I m trying to simulate the document.
      In process of simulation, two automatic item entries are created based on cross company code relation.
      Now, I m getting an error,
      F5A 047 - Error messages still exist -> See error log.
      In error list I have two errors:
        -->  Item 003 must be corrected
        -->  Item 004 must be corrected
    Later, when just navigating to Item 003 and 004 and returning back without any activities, the simulation accepts the document and enables the posting button.
    But how the error appered initially, and disappeared for only navigation to automatically generated items is unknown.
    Request you all to cast light on it...
    Thanks in advance for your help....
    Venkat.
    Edited by: venkat lakshmikanth tumu on May 25, 2010 5:57 PM
    Edited by: venkat lakshmikanth tumu on May 25, 2010 5:57 PM

    Thx Murali,
    Yes, but we didn't enter any value to text nor any other fields,in spro they are chosen as optional.
    we just visted and returned item details without entering anything, and the simulation was success.
    What happened only in navigation to items is more curious...

  • Park document posting using FBV0

    Dear SAP Friends,
    Scenario is like this :
    First i have parked the document using FBV1, while parking the same i have given some Narration in REFERENCE field.
    After that i have posted the same parked document using FBV0, after posting the same system is deleting the narration from REFERENCE..
    Please let me know why it is deleting the same from reference field.
    help will be appreciated.
    Regards,
    Anand

    Dear Alok,
    My requirement is Reference field needs to be there with some text, for that reason we are using reference field. But system is deleting the text from reference field.
    Let me know in this regard

Maybe you are looking for