Posting of cancelled Invoice after posting date is over

Hello Experts,
I am stuck up with a situation and as such seek your help.
A invoice was generated and the subsequent accounting document was also cleared. Now after the posting date was over, someone cancelled the invoice by T.code VF11 and as expected it didnt get posted .The document flow showing is as per below :
Order - open
Invoice - completed
Accounting Document - Cleared
Cancel Invoice - Open
Now, the business and their audit policies do not allow the client to cancel the invoice in back date ( within the posting period).
What are the options do we have to tackle the situation.
Joy

The issue has been temporarily addressed by changing the posting date.
However, now the client wants us to make an ABAP development so that no user is able to cancel the invoice after posting date is over. Now for that I have the following issues. Can someone please help me out in this.
The basic process details I am following is as per below:
For Transaction Code VF11 (i.e for Cancellation of Invoice) , when the invoice number which is subject to cancellation is provided, the System should search in VBRK table for the following :-
1)The System will at first search whether the entry exists or not. If the Entry is not valid then it should give an message u201C Document xxxxx does not Existu201D.This is in line to the existing practice.
2) If the Document number is valid then it will go to the billing date field and  will fetch the value from the VBRK table . Then it will match  whether the value fetched (i.e. this Invoice date)  is in present posting period or not. The system can find the posting period from the table V_T001B.
a.If  the  Invoice date lies in the present posting period then the system will allow the cancellation document to be saved. This is in line to the existing process.
b.If the Invoice date lies beyond the present posting period then the system will not allow to save the cancellation of the Invoice with a pop up message of u201C The Document number subject to cancellation do not lie within the present posting periodu201D .
Now We have looked both the tables, from VBRK we will get Doc# and Billing date(FKDAT) but when we select Posting Date from table T001B( Permitted Posting Periods) there is some issue.
1.  What will be the condition for selecting records from T001B table.Since there is multiple key fields
    RRCTY (Record Type) ,
    BUKRS (Posting Period Variant) ,
    MKOAR (Account Type or Masking)
    BKONT (To Account). 
So, to get unique record what will be the value of this key fields. Is there any relationship with VBRK table ? 
2.  Which field I have to consider as Posting Date or Period. Because there are many fields related to Posting period.

Similar Messages

  • Unable to post the cancellation invoice into accounting doc

    Hi Gurus,
    I have posted it in SD forums due to no response there, I am posting it again here.
    In STO scenario, the intercompany billing document has been created with the freight value as 500 USD, then with reference to this invoice the cancellation invoice has created,but in cancellation invoice the system has considered the  freight value wrongly as 1500 usd instead of 500 USD and it is not posting the accounting document due to excess of 1000 USD.but we want to clear this cancellation invoice by posting into accounting.Is there any way to rectify this error.
    Regards,
    Hari Challa.

    Dear Kumar,
    I would suggest to check in transaction QVM2. If inspection lot exists with quantities lying in quality inspection, it will display the same. Select that lot and go to UD, and post inspection tab. Carry out stock posting.
    As I read the system status of inspection lot given by you, I think this may not be lot which you are looking for. It must contain either SPST or SPRQ.
    If you donu2019t find anything in QVM2, try to do 321 movement through MB1B.
    Regards,
    Anand Rao

  • Cancelling invoice(s1) should be post to old invoiced(f2) posting date

    our user wants cancelltion document(S1) should be posted to the old date i.e when it is invoiced (f2)posting date that means both should be same date.
    it should happen with out any manual changing of dates.
    Can any one help me please ,ponts will be rewarded.
    Edited by: r prasad on Apr 7, 2008 10:51 AM

    Hi
    This can be done with a single line of code added at copy control level.  We have done earlier(long ago).  I could not remember exactly the code, what we have written.
    But you can try as follows:
    tcode: VTFF(Copy control)
    In existing routine, at the bottom, add a line for "fkdat = reference document fkdat".
    Ask your abaper to write correct structure & field.
    Also note that, corresponding FI period should open to post this document.
    Regards
    Uma

  • Accounting Document not posted for Cancelled Invoice -error in FI interface

    Hi,
    When I create a billing document then an accounting document gets created automatically in the background and then when I cancel the billing document no accounting document gets generated and the field Posting Status in header Detail of Billing document updated as "Errors in Financials Interface.
    I tried to release it for Posting via VFX3 but failed due to below error message in Log:
    "Incorrect doc.no.: 4900000005. Select document number between 3000000000 and 3099999999"
    I have checked the Number range assignments to the Invoice type and Accounting type.
    The number range is same for both Invoice type (Y0F2) and Cancelled Invoice type (Y0S1).
    The Accounting document type (RV) is also same for both the cases. But it is working fine for Y0F2 (Acounting document generated and cleared automatically). But not working fine for Cancelled Invoice (Y0S1).
    Can anybody please help me find out a solution to the issue.
    Thanks, Ram.

    Hi,
    The error message F5151 refers to the number range of the FI document.
    Please have a look at the note 1259505: FAQ: New cancellation procedure in SD, which covers this issue in detail.
    Question 5:
    Q5. What is the FI document type, generated by the cancellation ?
    In the old cancellation procedure, the FI document type is always
    determined in SD, and passed to FI (the same when a normal invoice  -
    not a cancellation -  is transferred to accounting).
    In transaction VOFA there is the field 'Document type' (TVFK-BLART).
    If this field is filled, then the FI document will have the document
    type maintained here.
    If TVFK-BLART is empty, then the FI document will get the default
    document type 'RV'.
    If the new cancellation procedure is performed, the FI document type is
    always determined in FI, based on the document type of the FI document
    to be reversed.
    In transaction OBA7 the FI document type has assigned the field 'Reverse
    document type' (T003-STBLA).
    If it is filled, then the FI cancellation document will get the document
    type maintained here.
    If T003-STBLA is empty, then the FI document cancellation will get the
    same document type as the cancelled FI document.
    Notice that an unexpected FI document type can cause the error message
    F5 151.
    Example:
    F2 invoice 90000001 was released, creating an accounting document with
    document type 'RV'.
    This F2 invoice is reversed by the S1 billing document 70000001.
    In customizing of SD there is:
    Billing Type    Document Type
    F2              RV
    S1
    In customizing of FI there is:
    Document Type    Number range   Reverse Document Type
    RV               00             AB
    AB               01             AB
    The FI number ranges (object RF_BELEG) are:
    No  From number    To number   Ext
    00  0090000000     0099999999  X
    01  0100000000     0199999999
    Different situations can occur, due to these customizing settings of the
    FI document type, caused by the type of cancellation.
    If the new cancellation is used:
    The FI document type 'RV' has 'Reverse Document Type' = 'AB'.
    Document type 'AB' has number range '01' set as internal.
    So the FI document will have its own number included in
    100000000-199999999.
    There is no issue.
    If the old cancellation is used:
    The cancellation billing type S1 has no 'Document type' maintained, so
    the FI document will get document type 'RV'. It has number range '00',
    set as external number range.
    So the FI document should get the same number of S1 billing document.
    But the S1 billing document has number 70000001, not included in the
    interval of number range '01'.
    This will cause error F5 151.
    I hope this information helps you.

  • Is it possible to post the Excise invoice previous month date.

    Dear All,
    We want to post a excise invoice with previous month date. Is that possible?
    We have created a billing document (VF01) last month (October) and not created Excise Invoice (J1IIN).
    Now our finance people requirement is to create the excise invoice with last month date.
    Kindly let me know whether it is possible.
    Regards,
    Mullairaja

    Yes quite possible provided your FI period is still open.  Once you execute J1IIN and clicked the tab "Billing", you can see a field Posting Date where you maintain the billing document date itself if FI period is open.
    But from excise point of view, this is wrong due to the fact that excise returns should be submitted on or before 3rd of every month in which case, the excise team would have submitted the returns for October.
    thanks
    G. Lakshmipathi

  • Problem while 're-posting' a cancelle Invoice with Exchange Rate Difference

    Hi Gurus,
    We are facing a problem while re-posting an Invoice with Exchange Rate Difference. I say re-posting because this invoice was previously posted and reversed on the same date. Here is the scenario along with the relevant postings:
    1)
    G/R is posted in September when the exchange rate for dollar was, say, Rs. 49 = 1 USD.
    Posting:
    Service A/C.....100 USD (Rs. 4900)
         To SR/IR Clearing A/C...100 USD (Rs. 4900)
    2)
    MIRO is done in October, when the exchange rate was, say, Rs. 48 = 1 USD. Thus, the exchange difference posting was done in the respective accounts.
    Posting:
    SR/IR Clearing A/C......100 USD (Rs. 4900)
         To Vendor A/C...........90 USD (Rs. 4320)
         To TDS A/C..............10 USD (Rs.  480)
         To Exch. Difference A/C. 0 USD (Rs.  100)
    This was the correct entry, however we missed out some TDS codes and thus needed to reverse this entry and repost it.
    3)
    Now this invoice was reversed (T.Code MIRO) in october itself on exactly the same date on which invoice was created, and it resulted in the following postings:
    Vendor A/C......90 USD (Rs. 4320)
    TDS A/C.........10 USD (Rs.  480)
         To SR/IR Clearing A/C...100 USD (4800, i.e. 48 * 100, Rs.48 being the exchange rate in october)
    4)
    Now when we try to post MIRO again, it is posting the following entry:
    SR/IR Clearing A/C......97.96 USD (Rs. 4800)
    Exch. Difference A/C.....2.04 USD (Rs.    0)
         To Vendor A/C........... 85 USD (Rs. 4080)
         To TDS1 A/C............. 10 USD (Rs.  480)
         To TDS2 A/C.............  5 USD (Rs.  240)
    This is a wrong entry. SR/IR clearing A/C should have been debited by 100 USD (Rs. 4900), and the Exch. Rate difference account should have been credited by 0 USD (Rs. 100)
    Can someone please help us with this. What the system seems to be doing is, that when the Invoice was reversed, the value that got reversed for SR/IR Clearing A/C was 100 USD but with Rs. 4800 instead of Rs. 4900. Now, when we try to repost the invoice, the system divided this value by the exchange rate prevalent in September, i.e. Rs. 49, thus the resultant value 97.96 USD (i.e.  4800 / 49).
    Please help.
    Thanks!
    Regards,
    Angad Nagpal

    Solved.
    The final entry is correct, as the net result in the G/L balances is the same. For further information please refer to notes 116250 and 46564.
    Thanks!
    Regards,
    Angad Nagpal

  • Amend GST Code in Sales Invoice after posting

    Hi
    Our client has a request to correct GST Code for specific Item Row in Sales Invoice after it has been posted when there are multiple Item rows with different GST Codes and rates.
    Kedalene Chong

    Hi,
    Correction of GST code (or VAT code) on posted invoice would not be compliant with regulations in many countries. We need to ensure that B1 legal compliance is maintained and any results generated from B1 are recognized by local authorities. By allowing this, we might face serious difficulties.
    Please investigate whether this is legally compliant in the country of the customer.
    Thank you for the suggestion.
    Regards,
    Peter Dominik
    B1 Product Definition

  • Creating backdated invoices after last date of fiscal period

    Hello experts
    In our business, it is a rule to keep the billing period open for two days even after the last day of the fiscal period. For example,
    P10 ends on 29/10/2011, but that period is not closed until 31/10/2011(P11 date) so that the users can create all the invoices for that month. Please note that period 11 is not opened till 1/11/2011 (after closing p10).
    Now,order related invoices are created thru an interface program. The user only sends in the "service date" which is mapped to the fixed value date field in SAP and we have defaulted the system date as the billing date to enable posting. The problem arises for the invoices created on the two days mentioned above as the invoices will not post into accounting if the billing date is 30/10 and 31/10 as P11 is not open yet.
    How do i make sure that invoices created on the two month end days post into accounting with a billing date of 29/10 (a P10 date)? I can use the FM- FI_PERIOD_CHECK to check if the billing date is in the open period, but how do i populate the billing date field as an open period date automatically without manually changing it for all the invoices that have not posted?
    The service date sent in has to be mapped to the fixed value date field because of aging purposes.
    Would appreciate your valuable help here.
    Thanks

    Hi,
    Function module FI_PERIOD_CHECK  can be included in the program to check if the fiscal period is open or not.
    Discuss with the ABAPER and include logic that in case the fiscal period is not open the default date should not be system date. Instead another date which is calculated using the FM - CALCULATE_DATE.
    In the FM-  CALCULATE_DATE give the logic how the date should be calculated.
    Discuss with ABAPER for this.
    Regards,
    Sharan

  • Cancel PO after Posted Invoice.

    Hi all
    I have PO already receipt and Post Invoice on system.
    Now I want cancel this PO, could you please tell me step by step Cancel this PO.
    If I already pay this PO, can I cancel PO ?
    Thank and Best regards,
    Thang

    HI,
    FB08 is cancelling of A/R dinvoice document which is from the FI side.
    MR8M is cancelling of the invoice verification we do from the MM side.
    Invoices can be done from FI side and MM side.
    Go to MIGO , select cancel/Reverse GR and then select material document number and then put the GR document number and cancel it. The MVt type for reverse/cancel is 102 Mvt Type
    Thanks & Regards,
    Kiran

  • BADI for Vendor Invoice after Posting to send a mail to vendor

    Hi,
    My requirement Is like this.
    I have to send a mail to vendor after the Invoice for vendor is Posted.
    For dat I am searching for a badi to implement after the invoice is successfully posted.
    Please give some solution about this.
    Regards,
    Jyoti..

    if it is F-43 . check out the following
    BAdI Definition      Description                                                                               
    AC_QUANTITY_GET      Transfer of Quantities to Accounting - Customer Exit       
    BADI_ENJ_ALT_ADR     Go to alternative vendor/customer data                     
    BADI_F040_SCREEN_600 Screen Enhancement on F040 0600 Document Header            
    BADI_FDCB_SUBBAS01   Screen Enhancement 1 on FDCB Basic Data Screen (010, 510)  
    BADI_FDCB_SUBBAS02   Screen Enhancement 2 on FDCB Basic Data Screen (010, 510)  
    BADI_FDCB_SUBBAS03   Screen Enhancement 3 on FDCB Basic Data Screen (010, 510)  
    BADI_FDCB_SUBBAS04   Screen Enhancement 4 on FDCB Basic Data Screen (010, 510)  
    BADI_FDCB_SUBBAS05   Screen Enhancement 5 on FDCB Basic Data Screen (010, 510)  
    BADI_PRKNG_NO_UPDATE BAdI for Deactivating Update of Parked Documents           
    F050S008             FIDCC1, FIDCC2 Inbound IDoc: Update Comparison Ledger      
    FBAS_CIN_LTAX1F02    Tax interface                                              
    FBAS_CIN_MF05AFA0    EWT - Downpayment Clearing - Tax transfer for CIN          
    FI_AUTHORITY_ITEM    Extended Authorization Check for Document Display (FB03)   
    FI_GET_INV_PYMT_AMT  BAdI for determining the payment amount for an invoice     
    FI_HEADER_SUB_1300   Screen Enhancement for Document Header SAPMF05A            
    FI_PAYREF_BADI_010   BAdI: Payment Reference Number                             
    FI_TRANS_DATE_DERIVE Derive BKPF-WWERT from Other Document Header Data          
    INVOIC_FI_INBOUND    BADIs for Inbound IDoc INVOIC FI (Vendor Invoice)          
    RFESR000_BADI_001    BAdI for Own Processing of POR Item                        
    otherwise - find out the package of the program of the transaction.
    go to se84 - enhancements- business add ins - definitions - enter package and execute - you will see all the definations.

  • MIRO(Invoice Verification) posting date is lesser than MIGO(Goods Receipt)

    MIRO(Invoice Verification) posting date is lesser than MIGO(Goods Receipt) posting date.
    Explanation:
    Miro sholud be posted after the GRN has posted. It means that the Posting date of Miro should be greater than or equal to the Posting date of Migo. But I am facing the issue that I can able to post the Miro before the Migo date..
    For example:  I have posted the Migo(Goods receipt) document with the posting date u2013 10.8.09 and at the same time I can also able to post the Miro(Invoice Verification) posting date as u2013 5.08.09. This is should not be allowed . Kindly give me the solution. Is there any options in SAP standards to restrict this type of Postings(without using user exit).
    regards
    Varadharaj

    Hi
    you  need to use BADi for this INVOICE_UPDATE
    you can give logic as whil;e MIRO system will compare posting date with MIGO doc , then create a Z error msg in se91 nad assign it in that badi
    take help of ABAPer, check following link
    [LINK |GR date lesser than the PO date, the system should show an error message.;

  • Unable to post cancellation invoice to accounting.

    Hello Experts,
    I have one scenario in which the user has done Order ->Delivery ->Invoice -> Accounting documnent is Cleared. he created Cancellation invoice and trying to post the cancellation document to accounting. but system is giving error message unable to post document because foreign trade data is missing. therefore unable to post the document to account. Document flow is as follows.
    Order - Completed
    Delivey -Completed
    Invoice -Completed
    Accounting Doc-Cleared
    Cancellation Invoice - Missing export data
    The invoice and cancellation was created a year before. and user didn't face any problem while posting normal (F2) invoice to accounting. system did not throw the same error message.
    Now, user want to post the cancellation document to accounting. Kindly let me know what can be done in this case.

    Hello
    You cannot cancel a cleared invoice and post it to accounts. if it is alredy cleared then what is the use of cancellation and what would happen to the payemnt received from customer ?
    you can reverse the clearing done for the invocie , then create cancellation document and post it
    you would also have to open the periods one year back !!
    Hope this helps
    Thanks
    akasha

  • Avoid cancellation of invoice after a month validity

    Hi
    We need to prevent the cancellation of Invoice after the month is over. eg In  Billing documnet 123 created on 30.07.2011, should not be allowed to be cancelled on 25.10.2011 once the month is over. It can be cancelled upto 31.07.2011
    How do we do this.
    Thanks

    Hi,
    You can do it by enhancement, use this Include RV60AFZZ.you have to activate at VF11 transaction.while calcelling the billing system has to check the current date and billing creation date.if the current date is after the next month of the billing date.system should through an error message.
    For this consult your abaper with above specified process.
    Thank you,

  • Cancel Invoice on past Billing date

    Hello All,
    Is it possible that sytem should not allow billing date of cancel invoice before the date of actual billing document generated.
    e.g I have created a billing document on 01.12.2009. If I try to cancel invoice for billing date  25.11.2009  system should not allow me.Currently it is happeing as system generate cancel invoice document for previous dates.
    Is There any standard way to block or any other solution possible?
    Your prompt response is highly appreciable
    Nomi

    HI,
    My knowledge, you have closed the FI period last month.
    Other may be any userexit is used. Check whether below link can help you.
    https://wiki.sdn.sap.com/wiki/display/ERPLO/SDUserexits
    Regards,
    Devendra

  • Cancellation of Cancellation invoice - S1

    Hi all,
    We have reversed a F2 type invoice with VF11 transaction with Cancellation of Invoice S1. The original invoice date was 19/12/07 (period 12 2007)and the cancellation invoice has posted the documents with the same date (period 13 2007).
    The user now wants to cancel out this 'Cancellation invoice' and post the cancellation again in the current period (03 2008). Is this possible? The Billing document type S1 does not have Cancellation type (Tx VOFA) in the configuration. Trying VF11 on this gives a message 'Cancellation of Cancelled invoice not possible'.
    Please help.
    Naren

    Hi,
    What you can do is to invoice again the delivery (VF01) because the status of the delivery is now being processed and post it to billing date 19/12/07 which you originally billed, then cancel it by indicating the billing date to current date which you mentioned 03/2008.
    Hope this helps.
    Allan

Maybe you are looking for