Issue in Reversing a FI Document using BAPI_ACC_DOCUMENT_REV_CHECK

Hi Experts!
When I try to reverse a FI document with document no (9100000451) in company code 005 in my code by calling the BAPI BAPI_ACC_DOCUMENT_REV_CHECK and BAPI_ACC_DOCUMENT_REV_POST, its gives an error saying  'Reversal in component General Ledger not possible' in BAPI_ACC_DOCUMENT_REV_CHECK and reversal is not possible.
But in the standard transaction FB08 when I pass the same doc no with the company code 005 it doesn't give an error and reversal is successful.
Please help.
Thanks.
Siddharth.
Moderator Message : Duplicate Post locked.
Edited by: Vinod Kumar on May 7, 2011 10:23 AM

Hi,
put a  break in subroutine FORM fill_acchd
and execute the bapi.
Here you have:
  CLEAR gs_acchd.
  MOVE-CORRESPONDING gs_aw TO gs_acchd.
  gs_acchd-usnam = gs_bapi_acchd-username.
  gs_acchd-awsys = gs_bapi_acchd-obj_sys.
  gs_acchd-bktxt = gs_bapi_acchd-header_txt."---->¡¡¡CHECK THIS!!!
  gs_acchd-glvor = gs_bapi_acchd-bus_act.
  gs_acchd-tcode = sy-tcode.
  gs_acchd-acc_principle = gs_bapi_acchd-acc_principle.
Check if there is something wrong there.
Best regards

Similar Messages

  • Issue in posting a accounting document using BAPI BAPI_ACC_DOCUMENT_POST

    Hi All,
    I 'm able to post a document using BAPI ' BAPI_ACC_DOCUMENT_POST ' but the problem i face is the header text is not getting updated for the document that is getting posted. Even though i'm populating the header text in the parameters i'm passing to the BAPI.
    Any pointers to this would be highly appreciated.
    Regards,
    Chaitanya

    Hi,
    put a  break in subroutine FORM fill_acchd
    and execute the bapi.
    Here you have:
      CLEAR gs_acchd.
      MOVE-CORRESPONDING gs_aw TO gs_acchd.
      gs_acchd-usnam = gs_bapi_acchd-username.
      gs_acchd-awsys = gs_bapi_acchd-obj_sys.
      gs_acchd-bktxt = gs_bapi_acchd-header_txt."---->¡¡¡CHECK THIS!!!
      gs_acchd-glvor = gs_bapi_acchd-bus_act.
      gs_acchd-tcode = sy-tcode.
      gs_acchd-acc_principle = gs_bapi_acchd-acc_principle.
    Check if there is something wrong there.
    Best regards

  • System Lock Error while reset & reversing the cleared document - FBRA

    Hi Experts,
    Currently using t-code FBRA, when user trying to reset & reverse the cleared document , they are facing "System Lock Error". We have analyzed on this issue and found SAP note no. u201C487347 u2013FBRA: Overflow of the lock table in production systemu201D . After implementation of this note, SAP has created one new transaction code, FBRA_LOAC.
    However, when we tried to reset & reverse the cleared document using t-code FBRA_LOAC, we face the same error.
    Can you help me to resolve this issue ?
    Thanks in advance.
    Regards,
    Manish

    Hi:
          We once faced these issue and got it resolved by extending parameter after extending the profile-parameter "enque/table_size", as per note note 13907. Do not forget the restart the server after extension.
    Regards

  • Issue with reversal of MIRO for Planned Delivery Cost

    Hi Xperts
    We have found out an issue while reversing the MIRO document for Planned Del costs. When we have done the MIRO, the accounting entry got correctly posted with correct account keys.Conditions are not inventoried.
    However, when we had reversed it - the stock account got hit.Do not understand, why that happened.Do you have any clue?
    1. Suppose we have done the MIRO for Del Cost & then performed GR.Now Stock has already consumed & afterwards we have found that the MIRO for Del Cost is wrong & reverse - in this scenario shall the Stock account will get a hit????
    2. I have maintained Price Control "V" in Material Master.However, I have maintained a Standard Price by mistake.In that case shall SAP ignores the MAP & takes Standard Price into account & post PRD??
    Regards
    Soumick 

    Hi,
    Before checking Planned Delivery costs accounting documents in MIRO posting and MIRO cancellation document, 1st check how Planned Delivery costs designed for your procurement process.
    Use t.code:ME23N, check your Purchase order
    Option-1:
    Is Planned Delivery costs added to inventory account and at the same time Planned Delivery costs posted to Separate Planned Delivery costs G/L account.
    OR
    Option-2:
    Is Planned Delivery costs posted to Planned Delivery costs G/L account ONLY
    OR
    Option-3:
    Is Planned Delivery costs added to inventory account ONLY.
    Based the above one setting, system  will post goods receipt and invoice posting document with corresponding accounting entries. Also cancellation of invoice posting document refer to these setting.But account posting depends on price control available in material master.
    NOTE:
    Standard price procedure (price control “S”):The system carries out all stock postings at a price defined in the material master. Variances in price are posted to price difference accounts.
    Moving average price (price control “V”): The system valuates goods receipts with the purchase order price and goods issues with the current moving average price.Differences in price between the purchase order price and the invoice are posted directly to the relevant stock account if there is sufficient stock coverage.
    Regards,
    Biju K

  • J1iex cancellation -Reverse the material document before cancelling the exc

    Hi ,
    I am facing problem in reversing J1iex excise invoice .
    OUR CASE is like
    We have a purchase order of 100 pcs , against which a delivery of 10 pcs was made by the vendor.
    1) At the time of J1iex Capture , user has entered 100 pcs (by mistake) as excise invoice Qty.
    2) MIGO with Mtype 103 and 105 were prepared for 10 pcs only
    3) J1iex was also posted for 100 pcs
    Since there was a mistake while entering excise invoice qty in J1iex ,therefore we decided to reverse the entire process.The step followed were ...
    1) Reversed the Material document (using 106 movement type)
    2) Re-Posted the same excise invoice thru J1iex to reverse the Part-11 enteries
    and now when I am trying to cancel the J1iex - excise invoice , system is prompting me an error message
    "Reverse the material document before cancelling the excise invoice"
    I hope,  I am following the correct process.
    Since the material document is already reversed therefore wondering why system is prompting this ERROR message.
    Need your help
    Regards
    Shrey

    thx

  • Reversing a document using the bapi 'BAPI_ACC_DOCUMENT_REV_POST'

    Hi All,
    I have posted a document using the FM 'BAPI_ACC_DOCUMENT_POST' and it is working fine .
    How can I reverse the same posted document using the FM
    'BAPI_ACC_DOCUMENT_REV_POST'?
    What are the mandatory parameters to be filled?
    Can anyone explain me with a example
    Thanks in Advance.

    Hi Siva,
    The bapi you have mentioned is the correct one.
    Look at the BAPI documentation which is pretty informative.
    In case you don't have it, i'm just copy pasting it.
    Functionality
    Reversing an external document in Accounting. (negative posting)
    The method "Reverse" can be used to reverse the relevant document in the accounting components.
    Parameters
    REVERSAL
    Reference information for reversal in Accounting
    Description
    Parameter for transferring a reversal document. The reversal document for the source document is not transferred - the reversal documents are generated in the individual components from the documents to be reversed. This is only possible however, if the corresponding documents are available, meaning that line item update is active in all components and no documents have been archived. If this is not the case, an appropriate error message is issued in the return parameter. If this happens, the document can only be reset by means of a corresponding inverse posting by the sender.
    You must make entries in the following fields
    Reversal document number:
    OBJ_TYPE     Sender ID
    OBJ_KEY     Reference number of the reversal document (source document)
    OBJ_SYS     Logical system
    OBJ_KEY_R     Reference number of the document to be reversed.
    Default
    All other fields are transferred from the FI document to be reversed.
    BUS_ACT
    Business Transaction
    Description
    To reverse the document, the same business transaction must be entered that was used for the posting.
    OBJ_TYPE
    Reference procedure
    Source document
    Description
    When a business transaction is updated in Accounting, it may be that several documents are updated at the same time (FI document, CO document, etc). If the business transaction is not initiated in Accounting, a source document must exist outside Accounting. The information from this document must be transferred when the FI/CO interface is called up. The source information is updated in all accounting documents, and is made up of the following 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
    When the document is being processed, the system checks whether a reference document number (first part of the reference key) has been transferred.
    Notes
    Use a separate value in the OBJ_TYPE field (reference transaction). You must maintain an entry for this value in table TTYP, which could be a function module that is called when the user wants to branch back to the source/sender document from an accounting document. This makes it possible for documents updated using BAPIs to be included in the document navigation (revision). If you use SAP defined characters in the field OBJ_TYPE, errors can occur in the navigation.
    The FI and CO line item suppression is defined separately for each reference transaction.
    It is not necessary to separate the reference key into reference document number and reference organizational unit. This means that reference document numbers that are longer than 10 digits can be transferred into the reference key.
    OBJ_KEY
    Reference Key
    Source document
    Description
    When a business transaction is updated in Accounting, it may be that several documents are updated at the same time (FI document, CO document, etc). If the business transaction is not initiated in Accounting, a source document must exist outside Accounting. The information from this document must be transferred when the FI/CO interface is called up. The source information is updated in all accounting documents, and is made up of the following fields:
    OBJ_SYS
    Logical system of source document
    Source document
    Description
    When a business transaction is updated in Accounting, it may be that several documents are updated at the same time (FI document, CO document, etc). If the business transaction is not initiated in Accounting, a source document must exist outside Accounting. The information from this document must be transferred when the FI/CO interface is called up. The source information is updated in all accounting documents, and is made up of the following fields:
    AWTYP (OBJ_TYPE) Reference transaction
    RETURN
    Return Parameter
    Description
    This table contains the return messages from the method call.
    Value range
    The first message contains the general status of processing:
    Type ID Number Message 
    S RW 605 Document posted successfully  
    S RW 614 Document check without errors 
    A RW 609 Error in document 
    The fields MESSAGE_V1, MESSAGE_V2 and MESSAGE_V3 contain the following information:
    Reference transaction ( OBJ_TYPE)
    Reference key ( OBJ_KEY)
    Logical system of source document ( OBJ_SYS)
    Additional messages are transferred with the following information:
    Parameter ( PARAMETER)
    Row ( ROW)
    Field ( FIELD)
    in which the error occurred.
    REgards.
    Ravi

  • Reversing & Resetting The Reversed Document using FBRA

    Hello All,
    Our client by mistake reversed a payment document while doing MR8M. Now they want to reverse the reversed document.
    I have tried FBRA again for the reversed document and it worked out and a new document got posted.
    Now let the orginal document be A which is reversed and reset using the document B.
    Due to wrong reversal of A again we used FBRA and posted document C which in turn reversed and reset B.
    Now if you check the orginal document A is available as an open item , earlier which was a cleared item. I want to know how can we make in back to a cleared item
    Regards
    Arun

    Hi All ,
    Thanks for the responses.
    My issue is resolved.
    Steps followed are.
    1. First rest and reversed the reversal document in FBRA. --> At this time the orginal document has again appeared in the line items as an open item.
    2. It was also identified that along with the orginal document which appeared as open item all the items which was cleared using the orginal document also became the open item.
    3. Now we have made the manual clearing of the line items uaing the transfer posting with clearing
    Regards
    Arun

  • COPA document not generated when Post Goods Issue is reversed.

    Hello Friends,
    WE uses Stock Transport Order in two steps for transfering Stock from one plant to another.  We have defined a Condition type FRB1 to capture the Freight cost involved in the stock transfer.
    When the Post goods issue is done for the Stock Transport Order. following Accounting documents are generated.
    Accounting
    Profit Center
    COPA
    Spec. Purpose Ledger
    Controlling Document
    Material Ledger document.
    But When the Post goods issue is reversed through transaction code VL09 all the above documents are generated except for COPA document. Though in controlling document it shows the object type hit is REO i.e profitability Analysis
    For further information we have mapped cost element (600150) with Value field in PA transfer structure (Direct assignment from FI and MM. Movement type used for PGI are 641 & 642.
    Thank you

    Dear Colleagues
    I thank all those who put in thier time and efforts for possible solution for my problem. But I could resolve this issue with help from SAP.
    Basically in costing based COPA the system does not post the cost of goods sold to COPA during goods issue but it is done at the time of posting the invoice since the system wants to see the revenues and the COGS values together.
    Since the system posts the COGS into COPA at the time of invoice posting, you will appreciate that if this is also done during goods
    issue then you will have duplicate entries in your COPA (i.e. the COGS will be doubled).
    If in transaction VL01N/VL02N a costing-based line item would be posted, the costs would be double in CO-PA (the billing and goods issue). For this reason, no costing based line items will be created in the standard R/3 system for transaction VL01N/VL02N.
    If for some reason you still wish to post the COGS to COPA during goods issue you have to do the same thro a modification of the system.In your case you have applied note 214381 for the same. Please note here that movement type '641' is used as an example. For other movement types you will need to code accordingly.
    as per note 337488 point 2. the changes of note 214381 were not required in our case. Therefore we reverted these changes in LKEIIF01 and added the relevant coding for movement type 642 in function COPA_DOCUMENT_CHECK as per note 337488 point 2.
    Looking forward for your continued support
    Regards
    Umesh Gothankar

  • 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.

  • Document Reversal not possible created using MFHU - REM

    Hi Gurus,
    We have follwoing PP scenario implemented for our client as a part fo REM-HU Process
    1. Handing unit creation using HUP1-Packing of finished product
    2. GR of finished Goods  (131 Mvt) and GI  of compoenent (261 Mvt) using MFHU Transaction
    3. Creation of outbound delivery using VLMOVE-303 Movement type- Outbound delivery contained HU - 303 Movement type
    4. PGI of outbound delivery
    5. Creation of inbound delivery using output type ZSPD
    Now if i want to reverse the process i am doing below steps.
    1. Deletion of inbound delivery after deleting assignement with inbound delivery as PGR is not yet happened
    2. Reversal of Outbound delivery using VL09- 304 movement
    3. Deletion of HU assignement and deletion of Outbound delivery
    4. Now when i am reversing GR and GI document using HUCANC ----Getting Error
       "  Goods issue for repetitive mfg. cannot be reversed via handling units "
                                            and
    if we cancel using MF41 it is giving error message that
    " Document is a handling unit document and cannot be reversed "
    Please let me know how to cancel or reverse MFHU doucment i,e GR and GI document
    Thanks/BR
    Rupesh

    hi rupesh ,
    please go through below sap note it will help you resolve the issue :
    425357 - Transaction MF41: Error VHURM041 for handling unit
    regards,
    satish

  • Issue with Opening Sharepoint document using editDocumentWithProgID2

    HI,
    We have a scenario where we dynamically generate a excel(xls) document, save it to document library and open it in edit mode.
    To open the document in edit mode, we are using 'editDocumentWithProgID2' javascript function. But we are facing an issue here.
    For some documents it is opening up in edit mode but for some 'open-save' dialogue box is poping up.
    PLease, let us know how can we solve this issue.

    Anusha
    You have mentioned in your post that your are opening document in Edit mode, but i doubt the above code open the doc in Read mode.Can you try the below code once.
    Dim strDocScript As String = "return editDocumentWithProgID2('" + documentPath + "', '', 'SharePoint.OpenDocuments', '1','<Replace here with your siteUrl>', '0');"
    lnkDocumentGen.Attributes.Add("onClick", strDocScript)
    '1' means that the document is being opened in Edit mode and '0' means read mode.

  • Hello, I have installed a new Laserjet Pro M1217nfl using Wi-Fi. My laptop prints everything e-mails, Word documents etc. My iPad 3 (latest issue) only prints documents using Wi-Fi so has clearly recognised the printer. How can I prin e-mails using iPad 3

    Hello, I have installed a new Laserjet Pro M1217nfl using Wi-Fi. My laptop prints everything e-mails, Word documents etc. My iPad 3 (latest issue) only prints documents using Wi-Fi so has clearly recognised the printer. How can I print e-mails? Thanks.

    In the email you want to print, on the top right there is an arrow. Click that and an option should appear that says print. That should work. Have you already tried that?

  • Issue in select of billing documents from VBRK using FKART and FKDAT

    Hi All,
    I have to select the billing documents VBELN using the billing date and billing type.
    As both are not key fields , im unable to perform such select .
    How can get billing documents using these fields. Is there any other table where i can use these fields as key fields ?
    Can i use indexes ?
    Kindly help .... plz reply ..
    Edited by: ujjwal_d15 on Apr 15, 2011 12:55 PM

    HI,
    if u  will use date in the select query it will decrease the performance of your program as there isno secodnary index on the date field
    so it wud be better if you can select the data using just billing type and then once all the records in the internal table
    using delte statement to delte all the records that are out of the date range,
    this wont affect the performance of your system and the query will take less time to fetch the data,deletion takes onlyfew miliseconds to clear unwanted data

  • Wrong Unit Price in a Good Issue Document using DI

    Hi,
    in my addon I want to create a new Goods Receipt document, using DI.
    In the Lines, I set the ItemCode, I set the Quantity, and I set the Price, then I add the document, but when I go to Sap, in the Goods Receipt created, the Unit Price is wrong. I've try to set Quantity and LineTotal, Quantity and Price, Quantity Price and LineTotal but all the combinations is not correct, and the Unit Price is not equals to the price that I have set.
    I have try to change the Price List, but nothing is happened.
    This is my simple code:
    Dim entrataMerce As SAPbobsCOM.Documents = myDB.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry)
    entrataMerce.CardCode = cardCode
    entrataMerce.Series = series
    entrataMerce.Lines.ItemCode = itemCode
    entrataMerce.Lines.Quantity = 1
    entrataMerce.Lines.Price = 100
    entrataMerce.Lines.WarehouseCode = whsCode
    entrataMerce.Add()
    Where is the error?
    Thanks
    Marco

    Instead of Price, try using UnitPrice? This is a confusing area of the DI :/

  • How to assign a voided issued check to another payment document

    Hi All,
    My client issued a check to a vendor from wrong check lot. Now my client wants to reverse the payment document as well as the invoice. They want to use the same check information for another payment document for the same vendor.
    We tried voiding the check and resetting the voiding data and then tried to assign it to a different payment document in fch5 but system throws the following error "Next free number in check lot 001 is 500030".
    How can I rectify this error?
    Regards,
    Khudavand

    Hi,
    Think in the practical scenario once.
    Once you have given a cheque to someone and understand thats the wrong name, you void the cheque.
    Its cancelled. You can do whatever before giving it to him. Once given, you need to void and thats it.
    The same will happen in SAP too.
    Cheque once voided, its voided thats it.
    There is no scope of adding this to another vendor/another payment document for the same vendor.
    Caio
    Raghu

Maybe you are looking for