API to cancel AP invoice in 11i is required.

API to cancel AP invoice in 11i is required.

Check if you can use AP_CANCEL_PKG.ap_cancel_single_invoice
Sandeep Gandhi

Similar Messages

  • API for canceling AP Invoice Issue

    Getting error while using AP_CANCEL_PKG.ap_cancel_single_invoice
    ============================================
    declare
    v_result_annulation boolean;
         P_last_updated_by NUMBER:=null;
         P_last_update_login NUMBER:=null;
         P_set_of_books_id NUMBER:=null;
         P_accounting_date DATE:=sysdate;
    --     P_period_name VARCHAR2;
         P_message_name     VARCHAR2:=null;
         P_invoice_amount     NUMBER:=null;
         P_base_amount     NUMBER:=null;
         P_tax_amount     NUMBER:=null;
         P_temp_cancelled_amount NUMBER:=null;
         P_cancelled_by     NUMBER:=null;
         P_cancelled_amount     NUMBER:=null;
         P_cancelled_date DATE:=sysdate;
         P_last_update_date     DATE:=sysdate;
         P_original_prepayment_amount NUMBER:=null;
         P_check_id NUMBER:=null;
         P_pay_curr_invoice_amount NUMBER:=null;
         P_calling_sequence VARCHAR2:=null;
    BEGIN
    v_result_annulation := AP_CANCEL_PKG.ap_cancel_single_invoice
    ( P_invoice_id => 203924,
    P_last_updated_by => 1,
    P_last_update_login => 1,
    P_set_of_books_id => 11,
    P_accounting_date => TRUNC(SYSDATE),
    P_period_name => 'P05.08-09',
    P_message_name => P_message_name,
    P_invoice_amount => P_invoice_amount,
    P_base_amount => P_base_amount,
    P_tax_amount => p_tax_amount,
    P_temp_cancelled_amount => p_temp_cancelled_amount
    P_cancelled_by => 1,
    P_cancelled_amount => p_cancelled_amount,
    P_cancelled_date => P_last_update_date ,
    P_last_update_date => P_last_update_date,
    P_original_prepayment_amount => p_original_prepayment_a
    P_check_id => null,
    P_pay_curr_invoice_amount => p_pay_curr_invoice_amou
    P_calling_sequence => null
    EXCEPTION
    WHEN OTHERS THEN
    p_message_name := SQLCODE||' '||SQLERRM;
    END;
    ORA-06550: line 8, column 23:
    PLS-00215: String length constraints must be in range (1 .. 32767)
    ORA-06550: line 20, column 27:
    PLS-00215: String length constraints must be in range (1 .. 32767)
    ORA-06550: line 36, column 26:
    PLS-00363: expression '<expression>' cannot be used as an assignment target
    ORA-06550: line 24, column 8:
    PL/SQL: Statement ignored
    ===================================================
    Thanks in Advance;
    Ajit

    Thanks a lot Vamsi,
    i will open the period .
    Message was
    ============
    Payables cannot create invoice distributions because the invoice header GL date is in a closed period, and no open or future periods are defined.
    Please ask the appropriate person in your organization to define an open or future period. Then Payables will use the next valid accounting date as the invoice distribution GL date.
    =======================================

  • Migration of  Approved Invoices from 11i to R12

    Hi All,
    I am migrating all approved invoices from 11i to R12 using Invoice Interface tables and "Payables Open Interface Import" Concurrent program.But in R12 the Approval status changes and to "Required" and the Accounted status of distribution line changes to Unprocessed. We do not have the set up for approval work flow process, So the invoice should be validated by "Force Validation" by checking the ‘Allow Force Approval’ in payable options. But when I am running the "Invoice Validation" program the theere is no change in the Approval status.
    Please help.
    Thanks in Advance,
    Subhrakant

    I am a newbie to Oracle Apps. I guess Oracle Apps use the "sequence" to generate the Key in the Oracle tables or is there some else mechanism.
    When migrating Oracle Apps from lower version to higher version, is there any concept of setting the sequence numbers in Oracle Apps or we don't need to take care of this ie the migration handles this automatically.The migration/upgrade script/driver should take of seeded objects,
    For your custom objects, you need to verify it yourself.
    Thanks,
    Hussein

  • Find Billing Document of Cancelled Excise Invoice

    Dear All,
    How we can find out billing document of cancelled excise invoice?
    Please help.
    Regards
    H.P.

    For ex. I have an excise no 100 which is cancelled and its status is CEIV and I want to find out its billing document no. how can I find out.
    Becase when excise invoice is cancelled then its referrence does not exist in the excise header table
    I hope you understand my problem.
    Regards
    HP

  • CAN PRINT OUT OF CANCELLED EXCISE INVOICE BE TAKEN ?

    Dear All ,
                        I  had  made four excise invoices  in J1IS , & posted through J1IV , when i had  given  print out of these four
    invoives only two print out have come these two print out were of those invoice in which two line items are displaying , while other invoice invoice in which there were only one line item each is not printing , so i had cancelled all these four excise invoices , then again  can u tell me how can i get the print out of these cancelled invoice in which single line item is displaying , pl help user want these cancelled invoice for his record .
    sap11

    Hi,
    Whenever you create an Invoice, an Outbound Delivery will be created with which you can take print-outs. When you cancell an Invoice, an Outbound del (Reversal) will be created. If you take print out of this document, you will get same print out of the document, but no Excise Invoice Number will be printed on it. i.e no excise invoice number will be generated for the cancellation.
    Regards,
    Nagaraja Achar.

  • Cancelling Excise Invoice

    Hello SAP gurus,
    We have developed a programme for creation of Excise Invoice, once the document created we post it manually through J1IS.
    The problem once Excise document generated (Posting not done) and if i want to cancle the invoice through J1IS, it is showing message "Document XXXXXXXX not posted". so can any one give me solution how to cancel Excise Invoice which is not posted.
    FYI: Our sales process is- Sales order,Delivery,PGI,Excise,Billing
    Thnx in advance for the replies.
    Srikky

    First check in the following IMG path
    LG --> Tax on Goods Movements --> India --> Account Determination --> Specify Excise Accounts per Excise Transaction.  Here ensure that following are maintained
    CEIV          CR Credit     MSUSP CENVAT suspense account
    CEIV          DR Debit     PLAAED PLA AED account
    CEIV          DR Debit     PLABED PLA BED account
    CEIV          DR Debit     PLASED PLA SED account
    CEIV          DR Debit     RG23AED RG 23 AED account
    CEIV          DR Debit     RG23AT1 RG 23 AT1 Account
    CEIV          DR Debit     RG23BED RG 23 BED account
    CEIV          DR Debit     RG23ECS RG 23 ECS Account
    CEIV          DR Debit     RG23SED RG 23 SED account
    Next select the next tab Specify G/L Accounts per Excise Transaction
    There ensure that for the combination of Excise Group, Excise Transaction Type CEIV, Company Code and Chart of Accounts, necessary G/L Accounts are assigned
    thanks
    G. Lakshmipathi

  • Reversing PGI without cancelling Excise Invoice

    Hi,
    Is there any process where we can Reverse PGI without cancelling the Commercial Invoice & Excise Invoice and again connecting the same corrected delivery to the old invoice number.
    To be more clear, in delivery if I have picked a wrong batch number (different from the physical dispatched batch) and generated the invoice.  The mistake was identified at a later stage.  So I can't cancell the invoice as it has already been sent to the customer.  But in the system I have to correct the batch number to maintain the correct records.
    Please suggest if any solution is there

    Hi,
    Your excise invoice is created with reference to the billing document and billing document has been created from delivery since PGI has been done.
    You will have to cancel excise invoice using J1IH and cancel your billing document using VF11.
    Reverse PGI using VL09, change batch in the delivery and PGI it again.
    However, you would have new commercial invoice and new excise invoice numbers for the same.
    Nothing can be done to retain the same invoice number using std SAP.
    Regards,
    Amit

  • How to cancel excise invoice when mov type is 122

    Hello,
    We are creating the PO for one material. and make the GR for that material (material is Quality inspection material)
    so i,e the reason the material is goes to Quality inspection.
    Till then we are Made the J1IEX create the Part1 and Part2 entry.
    So in mean while in Quality all the material's are rejected so, now how to reverse the Part1 and Part2 entries.?
    How to cancel excise invoice when material is qulaity inpspection.
    What i made:
    Made the Return delivery means 122 mov doc and Try to cancell the excise invoice......but no successful
    Regards
    sapman man

    Hi
    Cancelling of excise invoice will be done in the following ways depending on the situation.
    Case 1:
    Create PO
    Do MIGO (create and post excise invoice)
    Create return delivery in quality inspection.
    Now we have to create a rejection inmvoice in J1IS with reference to the return delivery wherein the excise values gets reversed.
    If u try to reverse part 2 entries in J1IEX it will not come.
    Case2:
    Create PO
    Do MIGO (create and post excise invoice)
    Do cancellation of MIGO (102 mvt)
    With ref to vendor or internal excise invoice number just post the transaction. excise part 2 entries will get reversed. This will happen only if 102 entry exist for the PO line item.
    In a nutshell excise entries cancellation comes only if we cancel the material document. If we do return delivery then we have to create rejection excise invoice.
    Hope u get cleared in this regards
    Reg
    Raja

  • Number range in cancelling excise invoice

    Hai Gurus
    wats the number range object for cancelling excise invoice???
    regrds
    Vibhu

    Dear Vibhu,
    There is no number range object for cancellation of excise invoice.
    for excise invoice number range object is for local:J_1IEXCLOC
    when cancelllation for excise invoice system geneate internal number range number.
    for internal number range object is :J_1IINTNUM
    for your better understanding find the folloing number range objects
    J1I9 Maintenance for Number Range Object
    J_1A_AAWBL Internal Way Bill Number for Asset Movements
    J_1ANUMBER Number range for additional Argentine document number
    J_1AOFFDOC Numbering Object for Official Documents
    J_1APRNTCH Number ranges for printing characters
    J_1BNFDOCN Nota Fiscal document number
    J_1BNFNUMB Nota fiscal number
    J_1I57FC 57FC Number Range Object
    J_1IARE1 ARE1 Doc No object based on Series Group
    J_1IARE3 ARE3 Doc No object based on Series Group
    J_1IBOND Excise Bonding: Bond number object
    J_1ICERT Withholding Tax Certificates (India)
    J_1ICHLNNO Internal number range for challans
    J_1ICONPLA Consolidated PLA serial no. generation
    J_1IDEPINV Excise Invoice Number for Depot Invoices
    J_1IEXCEXP Export excise invoice number range
    J_1IEXCINV Excise invoice number **
    J_1IEXCLOC Local excise invoice number range *******
    J_1IEXCTST Excise invoice with intervals
    J_1IEXINEX Excise invoice number for export
    J_1IINTNUM Internally document number to be generated
    J_1IINTPR2 Dispatch serial number
    J_1ILIC Excise Bonding: License number object
    J_1IPLA2 PLA part II number range object
    J_1IRG1 RG1 Number range object
    J_1IRG1_T No. Range for RG1 - Excise group / Material
    J_1IRG23A1 RG23A part 1 no. range object
    J_1IRG23A2 RG23A part II number range object
    J_1IRG23C1 RG23C part I number range object
    J_1IRG23C2 RG23C part II number range object
    Regards,
    NAr

  • 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

  • Error when trying to Cancel an invoice document via MR8M Transaction

    Greetings Everyone,
    l am having an issue when trying to cancel an invoice document via MR8M transaction. It gives me the following error message;
    SYSTEM ERROR: error in routine MRM_DRSEG_CR_CREATE
    Message no.M8008
    Procedure:
    Contact your system administrator.
    This invoice was related to a check payment. The check has been voided already and there is no clearing document for the accounting document. So, the item remains open. However when l try to reverse, it display the error message above.
    Thanks in advance

    read notes 449277 and 750455, your solution is probably there.

  • Error while cancelling the Invoice

    Dear Gurus
    The Billing document was raised on a wrong customer on may month. Now that was realized, and that invoice was canceled but wrongly the date was given as may month. The FI period was closed for may month and the current period is july. So they canceled the canceled invoice. Now while trying to cancel the original invoice in VF11, the system continues to say 'the invoice was already cancelled'.
    How to cancel the invoice?
    Kindly help
    Regards
    Gansub

    Hi,
    This is typically a process issue. There are a few things I think you can do...
    a. If the invoice has reached customer already (bcoz it was raised in the month of May), then, as you now cannot cancel as there has been a lot of wrong entries, you an create a credit memo either from SD side or from FI side so that the customer a/c is balanced and it will not show any AR balance.
    b. Raise a debit memo request against the right customer and invoice it.
    I think you have to work with your Finance people to be in concurrence before you take up he above process.
    Thanks
    Mukund S

  • Account Determination Error:  How to properly cancel the invoice/ cr memo

    Hello SAP Guru's,
    What is the correct procedure in cancelling an invoice with Account Determination errors and subsequent credit memo?  The error is a result of the user entering line items that are not permitted for the order type thus we suspect caused the Account Determination error.  We were however unable to verify or correct that.
    We now want to cancel the invoice and all the subsequent credit memos.  What is the correct procedure in doing so?
    I think we start off by VF03 then select the billing and select Display Document then Cancel?  Is this correct?
    Thank you.

    Hi,
    If you want to block specific line items in the sales order then you could enter a u201Creason for rejectionu201D in those line items and save the sales order. This can be done by going to the tab "Reason for Rejection".
    If you want to stop delivery creation for the entire sales order then you could enter a delivery block in the sales order. Delivery block field can be found on the main "Sales" tab.
    Cheers,
    Shailabh

  • Unable to cancel vendor invoice

    Hi Gurus
    Need your help here with any suugestions how to go forward on this problem I have
    Against a PO line, we have posted several invoices and credit notes and the net qty and value are zero
    One of the invoices has status "overdue" in FBL1N and we don't want to pay it
    When I try to cancel the invoice, the following message appears "Reversal Qty greater than qty invoiced to date".
    I understand the above message as the net of invoices and credit notes is zero, but why is the invoice then overdue?
    Thanks

    Here is the entire message
    Reversal quantity greater than quantity invoiced to date
    Message no. M8080
    Diagnosis
    The quantity being reversed cannot exceed the quantity invoiced to date, since the invoiced quantity will be reduced by the reversal quantity when the credit memo is posted.
    Procedure
    Correct the reversal quantity in the field Quantity.

  • How to avoid cancellation of invoice for payment recevied

    Short Description:
    Cancellation of Invoice raised on customer after receipt of Payment from him
    Description:
    There is an Invoice dated 22.10.2008. We have received the payment for this Invoice vide document number posting date 06.12.2008. So the Invoice has been cleared. Now the Invoice has been wrongly reversed / cancelled vide Invoice No. dated 11.08.2010.
    Is there any check that we can put so that the system does not reverse the Invoice for which payment has been received. Is there any standard check for the same.
    Please guide
    Thanks.

    Yes SAP has given a standard routine to meet this requirement.
    Go to VTFL, select your delivery type and billing type and execute. There you can see a field "Copying Requirements".  Maintain routine 29 here and save.  Also, go to VOFA, select your billing type and assign this routine to the same field.
    Now try to cancel a billing document which has its status as "Cleared".
    thanks
    G. Lakshmipathi

Maybe you are looking for

  • Strange keyboard behavior after OS 4.2.1 upgrade

    When typing (at least, so far, in Safari) the keyboard will randomly (or so it seems) retract after typing a letter, instead of that letter being registered in the text box. It's necessary to re-locate the insertion point back in the text box to brin

  • Movie doesnt start at the right place.

    Using idvd 7.0.3 I created a DVD project. Ive made many w/o a problem. Each has two movies. Each movie on the second screen shows 2 menus "play movie" and "scene selections" (the chapters). Problem: When I click "Play movie" the movie instead of star

  • CMTS Issue when is write command entered

    Hi All , I found strange issue with IOS SCG6 i get this errors . Standby crash when is done write on CMTS ubr10k. Apr 11 13:52:43: %UBR10000-3-PROXY_OR_SPOOF_ARPREPLY: Interface Cable5/1/2, ARP reply is a proxyed ARP reply or spoofed attempt. IP=x.x.

  • GL Wand conflict with the Smart View add-in

    Hello, Has anyone else come across a conflict with Smart View and a tool called GL Wand? When our users run the two Excel add-ins at the same time, on exiting Excel they get a prompt for a login to GL Wand several times. The user will then have to pr

  • Why can't I upload photos from iPhoto to Facebook any more?

    Since I updated to 10.9 I am not able to upload photos from iphoto (v.8.1.2) to facebook.  When I try to upload the "publish" button is not highlighted so I can not click on it.  I used to be able to upload from iphoto all the time.  Is there some se