Processing a cancelled invoice through RSNAST00

Hi Gurus,
I am working on enhancement for emailing the invoices. We created a output type ZRD3 for email invoices. The dispatch time is set as "Send with periodically scheduled job". We execute RSNAST00 via job to process those invoices.
The problem is, if the invoice got cancelled , RSNAST00 still process it because it just look into the NAST table entry.
Is there any way to control it through processing routine. I suggested to use a custom program which deletes the entries in NAST for cancelled invoices and then submit RSNAST00 program. This new custom program should be executed in the job instead of standard RSNAST00.
Please let me know any alternative suggestions. Thanks in advance for your kind help.
Poornima

Hi,
I created a requirement program for the output type, but as Jelena told the invoice is not cancelled at the time of execution of requirement program. So the validations in the requirement program is not getting triggered.
As of now, we are planning to execute a custom program which picks out the cancelled invoices and set the status in NAST table as processed.. Or i am trying to find a userexit at the time of cancellation of invoice(after save) where i could include my logic for updating the NAST table entries. If i get through the second method, i would be able to avoid the custom program...
Please let me know your opinions...
Poornima
Edited by: Poornima Pandiyaraj on Jan 5, 2009 4:00 PM

Similar Messages

  • Getting ABAP dump while cancelling invoice through MR8M

    Hi Experts,
    When i try to cancel the invoice through MR8M i am getting the ABAP dump saying "Conversion error Occured".
    Could u please help me to resolve this.
    Infact the error is coming when i press "display doc" after giving the invoice details.
    Thanks,
    Amar Y.
    Edited by: amaranath yerragunta on Apr 19, 2010 10:34 AM

    Hi ,
    Is the any enhanemnet done for MR8M Tcode?
    I think in the enhancement code converion is wrong.
    Regards,
    Pravin

  • Process vendor invoice through Cash Journal

    Hi all,
    Is it possible to process vendor payment invoice (FB60) through Cash Journal (FBCJ) rather than paying through F-53/58?
    BR
    Nayab

    Thanks to Dark duck for advising SAP Note 532888
    According to note, SAP doesn't provide standard functionality. Though it provides BAPI, which can be called when opting for customize solution.
    Our process goes like,
    1. Our users are on different location
    2. HR Department issues a slip (assume BONUS) to few people which should not be given them through Payroll, but through cash
    3. On receiving the slip, users visit petty cash counter, show the slip and gets there amount
    4. Usually, such big payments are not available ATcash counter, therefore the person at cash counter ask user to visit tomorrow.
    5. The next day, accountant go bank and collect cash, which is then paid to user
    We can do customization which will automatically create an invoice and pay employee(which is already created as vendor) through FBCJ, then manually clear vendor through F-44. But then
    1. accountant will have to do double work
    2. amount can be paid which does not match invoice amount, lets say through typo
    Our final solution is to create interface, in which all such invoices are shown. When accountant clicks particular invoice, it will call BAPI and entry would be save in Cash Journal through provided BAPI. Do you think its a feasible solution or there should be some other workaround?
    BR
    Edited by: Nayab Siddiqui on Dec 4, 2009 7:59 PM

  • How to Restrict Return Sales Order with reference to a cancelled invoice

    SAP Standard is allowing to create Return Sales Order with reference to a cancelled invoice which practically should not be allowed.
    Has any body worked on this problem and what could be the possible solutions so that return sales orders can not be created against a cancelled invoice.
    Kindly share your possible solutions.

    Hi Standard Process will not allow to create a Sales Order With Cancelled invoice,
    Kindly go through at Copy Controls
    T.CODE:VTAF
    in that some body might have maintained between S1 invoice to RE Sales Document.
    Remove the settings then u will be not able to create Sales Order w.r.t to Cancelled Document.
    Rewards if Usefull
    B.Shyam Sunder
    SAP SD Consultant

  • Error While Cancelling Invoice

    Dear Experts,
    While trying to cancel a commercial invoice through transaction VF11 we are getting the short dump with mesage "ASSERTION_FAILED" (The ASSERT condition was  violated).
    Can someone give suggestions/reasons as to why we are getting this dump and how we can avoid it?
    Thanks..
    Bhavin

    Hello Bhavin,
    The reason for the short dump your facing while processing the
    transaction VF11 is that the General Ledger View for your document is
    missing. As you have New GL active in your system at the moment the
    return billing transaction expects the general ledger view in form of
    entries in the table FAGLFLEXA, which are missing.
    That's why the assertion dump is occurring.
    I assume that the New GL functionality has been activated subsequently
    in your system. Therefore the general ledger view has not been generated
    for the documents which were posted before the date it was activated.
    Among other also the above mentioned document. You can see that there
    are entries in the FAGLFLEXA only before this date.
    Please consider that it is not possible to activate the NEW GL
    functionality subsequently in the middle of the fiscal year after
    posting have been made (see note 891144 for further detail). In order to
    make sure that the New GL can used and to generate the general ledger
    view for the already posted documents a migration process is needed. The
    migration normally a very complex and extensive process which has to
    licensed by SAP and it is not yet released for customers.
    To correct this please run RGURECGLFLEX report in test mode
    for only this document firstly and to see whether this could create the
    document in the NewGL tables. If yes, run it in update mode and it should
    solve the issue while reversing.
    Please note that this will also update the balance of the accounts
    which are involved in the document accordingly for the respective
    periods in the documents accounts.
    Also please check if note 1023573  is applicable to your system.
    Regards,
    Alex

  • Cancel invoice document(Credit Memo) - Reg.

    Dear Experts,
    I am trying to cancel Invoice document(Credit Memo) through MR8M transaction. While processing, system is issuing error message (M8 534) as Balance not Zero: & debits : & Credits. But being its saying in initial screen of MR8M, i dont know where to change the amount.
    Please help me out to cancel credit memo. Thanks in advance..
    Regards,
    Kumar

    Other way around to cancel an invoice is to issue credit memo, In MIRO click credit memo, then date, then reference to PO, put in the amount then hit post, your invoice will be cancelled by issuing credit memo
    MR8M also issues credit memo, by cancelling the invoice, and so does MIRO when you create credit memo against PO, the invoice is reversed
    Edited by: Afshad Irani on Apr 8, 2010 8:09 AM

  • Unable to cancel invoice via MR8M

    I would like to cancel vendor invoice through MR8M, but there was a message "cannot be processed further". Can anyone help me how to solve this problem ?

    Hi,
    While cancelling invoice in mr8m, FI documents to be cancelled manually.
    If the cancellation / reversal of MIRO invoice is done through MR8M, only the MM invoice / documents gets reversed but the FI document will not be reversed or cancelled.
    We have to follow the following procedure.
    1. Goto T.Code MIRO
    2. Select Credit Memo in the transaction field.
    3. Fill up all the details in the fields for the invoice to be reversed.
    4. Give the P.O. no
    5. Select the line item to be reversed.
    6. Simulate and save.
    The impact will be as CR - GR/IR clearing a/c
    DR - Vendor a/c
    By this procedure, the purchase order history in P.O. will also get updated and there is no requirement of any manual clearing. Only in the Vendor a/c, the DR. and CR should be knock off.
    Regards,
    Satish Muvva.

  • Cancel invoice problem

    Hi experts,
    I have the following case:
    - create sales order (contains 3 line item) --> status completed
    - create delivery (3 line item) --> status being process
    - goods issue for delivery (3 line item) --> status complete
    - create billing document (3 line item) --> status completed
    - accounting doc --> status cleared
    Then I need to cancel the billing, by creating Invoice Cancel.
    - cancel invoice (S1) --> status completed
    - accounting doc --> status cleared
    Somehow, the cancel invoice contains only 1 line item (I think it should be 3 line item).
    But the accounting document contains all the item as in the original billing doc.
    It means, the accounting doc for cancel meets the accounting doc for billing.
    I want to continue to cancel the delivery through VL09, but it is not possible:
    "No data available for these selection criteria
    Message no. VB 610"
    Kindly advise.
    thanks & regards,
    rob

    Dear Praveen ...
    I make sure, no deletion flag for the material.
    Dear Vivek,
    From accounting view there is no probl, fine.
    But the current status, the delivery order status is being process.
    I need to continue or delete the document in order to complete the sales cycle, since the billing has been canceled.
    Dear Kapil,
    Kindly elaborate on the Split Analysis.
    I just checked in VF02 --> Environment --> Split Analysis.
    Which document do I need to compare with?
    Kindly advise,
    Appreciate all of your response.
    Thanks and regards,
    rob

  • How to cancell Invoice by VF11

    Salute Masters !!
    I have created one new Sales Order Type PW00 Warranty Order for Plant P&YE (Port & Yard Equipment), Copied from Existing Sales Order Type EW00 Warranty Order Type for Plant BMHE (Bulk Material Handling Equipment) in which I have given separate No. Range From 3330000000 To 3339999999.
    In PW00, I have given Delivery Document Type PY00 by No. Range from 3270000000 To 3279999999; Delivery Related Billing Type PY01 by No. Range 3290000000 To 3299999999 and have assigned to respected document.
    Now, Sales Order has been created by 3330000000, subsequent Delivery has been done by 3270000001 and Invoice has been done by 3290000003, Released to Accounting and Excise Invoice done by 3290000003.
    Now user wanted to get the same No. by which Accounting document generated internally which was created by FI side through FBN1, No. Range 3601000001 To 3791099999, for their Financial Accounting Document Type (OBA7), as it was given in my Billing Document type PY01, that is PB (Standard was EB),  instead of 3290000003,
    as his other plants Nos. are same as well as Invoice No. & Accounting Document No.
    I have changed No. Range from 3290000000-32999999999 To 3601000001-3601999999 in VN01.
    After wards user cancelled the excise invoice and tried to cancel Commercial Invoice by VF11, now system is giving error,
    No Billing Document were generated
    When check error log, its saying, Data inconsistency during processing of Document 3290000000
                                                          The Billing Document 3290000000 is already cleared
    I have changed again the No. Range from 3601000001-3601999999 To 3290000000-32999999999
    Still system is giving error,
    No Billing Document were generated
    When check error log, its saying, Data inconsistency during processing of Document 3290000000
                                                          The Billing Document 3290000000 is already cleared
    Please suggest how to cancel invoice & give the same No. Range as per user requirement and we can do Excise Invoice.
    Thanks & Regards
    Srivastav
    +91-9973504950

    As I already mentioned, you need to remove Copying requirements in Cancellation section of Billing Doc type-PY01 (tcode VOFA).
    As the routine is for cancelling an invoice that has been cleared in accounting. So, this copying requirements are FORM routines that check certain requirements as a precondition for the copying process.  This requirement checks if a billing document has been paid in AR prior to permitting cancellation. For example, If an error has been made in invoicing, it is possible to create a cancellation invoice and then re-bill the customer for the correct amount.  This process, however, should not be allowed if the invoice has already been forwarded to the customer and payment has been received and applied.  This requirement can be assigned to the billing document to insure that no paid invoices are allowed to be canceled.
    So, remove that and try.
    And check you doc number 3290000003 with tcode FB03
    Also, Doc type PB in tcode OBA7, check
    - number range for doc type.
    - Reversal Doc type and number range for reversal doc type.
    Hope this can assist you.
    Thanks & Regards
    JP

  • Process of cancelling

    hi all...
    What is the correct process of cancelling  billing and also creating returns order reference to that Billing ?.
    TQ
    Henery

    Hi Henery
    You can cncel the Invoice with t.code VF11.
    For F2 type of Billing document, Invoice cancellation S1 will take place.
    Invoice cancellation is a Billing document type, so for this billing type S1, an accounting document will be created, through which there will be a reverse posting of accounting will take place .
    When you had created F2 Billing type, an accounting document was generated and the status of the Accounting document was "NOT CLEARED" in the document flow.
    Now after cancelling the Invoice by billing type S1, the earlier status of the Accounting document will become "Cleared"(AS IT IS REVERSED).
    So when customer has not paid you, there is no question for issuing a Credit memo to him.
    We issue a Credit memo for return, when suppose customer has purchased 10 units of goods, paid for it and now suppose he has returned 2 units due to some complain.
    For this 2 units,as he has already paid, therefore we will issue a credit memo for this return to him.
    As far as Return order is concerned, you can create it with reference to the Sales order also aswell as without any reference document.
    But, why you want to create a Return order here ? Customer has not returned any thing to you.
    You had done a mistake in the bIling for which you have cancelled it.
    So Delivery will go to its earlier status "Being process", as if no billing document has been created.
    Now, you create a fresh Billing document for this Delivery again.

  • Acctg document not created for cancellation invoice

    Hi all,
    We have a vehicle sales order created with payment card. The SO contains one item for vehicle and one item for parts. The items were delivered and invoiced separately. Hence, SO has one vehicle sales invoice (VSI) and one parts sales invoice (PSI).
    The standard procedure was to post VSI first before the PSI. Accounting documents have been created when both invoices were posted. However, there was a need to cancel the PSI. When this was done, cancellation invoice was created but there was no accounting document posted for the cancellation.
    I tried simulating the scenario in our test server and cancelled VSI 90000081 first before cancelling PSI 90000082 to test if this can be an alternative solution. Cancellation for VSI was posted successfully but error persists for PSI cancellation.
    Order 67 06/19/06 Completed
    . Delivery 80000081 06/19/06 Being processed
    .. Picking request 20060619 06/19/06 Completed
    .. GD goods issue:delvy 4900000293 06/19/06 complete
    .. Invoice 90000081 06/19/06 Completed
    ... Accounting document 2000077 06/19/06 partly cleared
    .. Invoice cancellation 90000084 06/19/06 Completed
    ... Accounting document 2000079 06/19/06 partly cleared
    . Delivery 80000082 06/19/06 Completed
    .. Picking request 20060619 06/19/06 Completed
    .. GD goods issue:delvy 4900000294 06/19/06 complete
    .. Invoice 90000082 06/19/06 Completed
    ... Accounting document 2000078 06/19/06 Not cleared
    .. Invoice cancellation 90000083 06/19/06
    .. Invoice 90000085 06/20/06 Blocked
    Accounting status of 90000083 (where error occurs) in VF03->Header->Details is set to K or <b>Accounting document not created (authorization lacking)</b>.
    Any inputs? Thanks in advance.

    Hello Sheila,
    sorry - my first answer was in mistake - Status K means:
    "The transaction is processed using payment cards. The order, however, does not contain valid authorization.
    This problem occurs in billing documents for follow-up deliveries."
    Could you check this ? Last way would be to set a breakpoint into the FM 'RV_ACCOUNTING_DOCUMENT_CREATE'
    and trigger this via VF02 -> Release to accounting.
    Regards Wolfgang

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

  • Return Cycle  with reference to cancelled invoice

    Dear All,
    There is a issue with the client  where in  the return sales order is happening with reference to cancelled invoice.  How to block the returns sales order from taking the cancelled invoice.
    1. Is this a normal standard behaviour of the system ( whether it will accept the cancelled invoice when trying to input in the returns order ?
    2.  Or Can we block the cancelled invoice from entering in the returns sales order process.
    Regards,
    Kumaresh

    Hi Kumaresh,
    1. Is this a normal standard behaviour of the system?
    Yes.
    2. Can we block the cancelled invoice from entering in the returns sales order process?
    Yes. By assigning Routine in Copy controls.
    Please find the Below link
    Returns referred to an invoice that is already cancelled
    Thanks
    Dasaradha
    Edited by: dasaradha ramireddy on Jan 20, 2012 1:04 PM

  • T-code for cancelled Invoice and cancelled Excise Invoice

    Dear Guru,
    kindly let me know the T-code for cancelled Invoice and cancelled Excise Invoice.
    Wishes,
    Abhishek

    Hi Abhishek,
    I am not aware of any T-code through which you can see the cancelled invoice. I think either you have to go for development (SQVI)
    or
    Extract the list of your all billing document like billing document created from 01.01.2010 to 22.04.2010
    Now go to SE16 --> Table VBFA --> Give your billing document number in field "Preceding Doc." --> and in the field "Subs.doc.categ." --> choose entry "N     Invoice cancellation" --> system will show you all the entries for which cancellation billing document has been created.
    or
    Go to SE16 --> Table VBRK --> enter your billing document list --> In the field "Posting status" --> Choose  option "E      Billing Document Canceled"
    Hope it helps,
    Regards,
    MT

  • How to delete the document of cancel .invoice.

    dear expert:
      the document of cancel.invoice is open ,i  use vf02 to process it in manually ,system prompt as followed .
    yellow info ::
    Automatic clearing of billing document 90193616
    and canc. doc. 90210214 not poss.
    Automatic clearing of billing document 90193616 and canc. doc. 90210214 not poss.
    Message no. VF 208
    Diagnosis
    The system cannot clear billing documents and cancellation documents because, for example individual item updating
    is deactivated.
    System Response
    The billing document can be created.
    Procedure
    The FI documents are cleared manually.
    red error info )************************************************
    Account 51010100 requires an assignment to a CO object
    Message no. KI 235
    Diagnosis
    You have not defined a CO account assignment for an account that is relevant to cost accounting.
    System Response
    Account 51010100 is defined as a cost element.
    This means that you must always specify a CO account assignment.
    Procedure
    Enter one of the following CO account assignments
    Order
    Cost center / cost center/ activity type
    Sales order item (for a project or cost relevant)
    Project / WBS element
    Cost object (Process manufacturing)
    Network/ Network activities
    Business process
    Profitability segment
    Real estate object
    The posting row affected is 0000001006, account 51010100.
    please help me analyse it .

    dear expert :
      in the posting how can i  assign a CO account assignment (Cost centre, etc.) since it is created as a cost element..i donn't know use whick transaction code to process it ,please tell me detailed info.
    best regards.

Maybe you are looking for