Using AP_CANCEL_PKG.Ap_Cancel_Single_Invoice not cancelled tax amount

Hello
I'm using API AP_CANCEL_PKG.Ap_Cancel_Single_Invoice.
It's "nearly" work; because invoice is canceled, but when looking for my invoice in AP EBS screen, the tax control amount on header is not set to 0 and i've an error message on tac control;
Here is my code :
  v_boolean := ap_cancel_pkg.ap_cancel_single_invoice
              ( p_invoice_id                 => p_invoice_id
              , p_last_updated_by            => p_last_updated_by
              , p_last_update_login          => p_last_update_login
              , p_accounting_date            => p_accounting_date
              , p_message_name               => v_message_name
              , p_invoice_amount             => v_invoice_amount
              , p_base_amount                => v_base_amount
              , p_temp_cancelled_amount      => v_temp_cancelled_amount
              , p_cancelled_by               => v_cancelled_by
              , p_cancelled_amount           => v_cancelled_amount
              , p_cancelled_date             => v_cancelled_date
              , p_last_update_date           => v_last_update_date
              , p_original_prepayment_amount => v_orig_prepay_amt
              , p_pay_curr_invoice_amount    => v_pay_cur_inv_amt
              , p_token                      => v_token
              , p_calling_sequence           => NULL
  IF v_boolean
  THEN
    COMMIT;
    p_inv_canc_status := 'SUCCESS';
    p_error_msg := NULL;
    xxncv_datafix_c2370978_pkg.upd_ap_inv_num_desc_p (
         p_invoice_id  => p_invoice_id
       , p_invoice_num => p_invoice_num
       , p_updated_by  => p_last_updated_by
       , p_date        => p_accounting_date  
  ELSE
    ROLLBACK;
    p_inv_canc_status := 'FAIL';
    p_error_msg := 'Error at - '||v_stage||' . The Invoice Id is - '
             ||p_invoice_id||' and Invoice Number is - '||p_invoice_num|| ' . The error message is - ' ||v_message_name;
Which setup is wrong ?
Thx for your help
Regards

Read
SAP Note: 959638 Add-On TDS for Indian localization & Support Queries
[https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&note_numm=959638]
You can contact Harish or Sushanth of Citixsys at the following email Id:
harish.kumar(at)citixsys.com
sushant.mohanthy(at)citixsys.com

Similar Messages

  • Using AP_CANCEL_PKG.IS_INVOICE_CANCELLABLE not return v_error_code

    Hello,
    I'm using function AP_CANCEL_PKG.IS_INVOICE_CANCELLABLE to check if we can canceled some invoice.
    Here is our code :
    SET SERVEROUTPUT ON SIZE 100000;
    DECLARE
    v_boolean BOOLEAN;
    v_error_code VARCHAR2(100);
    v_debug_info VARCHAR2(1000);
    P_inv_id NUMBER;
    begin
    P_inv_id := 7966021;
    v_boolean :=AP_CANCEL_PKG.IS_INVOICE_CANCELLABLE(
    P_invoice_id => p_inv_id,
    P_error_code => v_error_code,
    P_debug_info => v_debug_info,
    P_calling_sequence => NULL);
    IF v_boolean=TRUE
    THEN
    DBMS_OUTPUT.put_line ('Invoice '||p_inv_id|| ' is cancellable' );
    ELSE
    DBMS_OUTPUT.put_line ('Invoice '||p_inv_id|| ' is not cancellable :'|| v_error_code );
    END IF;
    End;
    RESULT :
    Invoice 7966021 is not cancellable :
    There is no v_error_code return by function. in fact there is certainly an error_code but it seems that i can't display/use it.
    Can you help to use v_error_code please ?
    Thx
    Regards

    Please post the details of the application release, database version and OS.
    Please also see these docs.
    Invoice Validation (APPRVL) Errors Out With ORA-20001: APP-SQLAP-10000: ORA-00060 [ID 1460249.1]
    R12: Invoice Validation Is Failing When Running With Parameter 'ALL' [ID 1115016.1
    R12 Payables Invoice Validation Error: Unexpected error occurred during Tax Calculation. [ID 961182.1
    Ap Invoice Validation Errors: P-1419: Msg-00101: Error Occured In Batch_approval [ID 1140828.1]
    Invoice Validation Error : REP-1419:ERROR OCCURED IN BATCH_APPROVAL() [ID 1120213.1]
    R12: Validate Invoice Errors APP-SQLAP-10000, ORA-01403 and ORA-20001 [ID 1308869.1]
    Thanks,
    Hussein

  • TDS cerfitcte  not splitting tax amount  and base amount  showing wrong

    Dear Friends,
    1.I am using 3 different tax code for basic ecess and secess . System caculating correct amount and posting the entries.
    but  in the certificate its not showing the amount with split . Its showing  total amount of  TDS.
    2. In tds certificate  in the column total amount credited its showing 3 times of base amount.
    Please suggest  me , how to over come with these issues.
    Jain

    Hi Raj,
    SAP recommends a series of tables to be maintained, if you are configuring Witholding Tax.
    Please find below the reply from SAP on tables to be maintained.
    If you have separate tax codes for Surcharges, J_1IEWT_SURC table
    should be maintained, by setting the checkbox checked, for the company
    code. Those tax codes should be available the J_1IEWTSURC table
    (use SM30 to maintain these values)
    2. If you have a combined tax code for surcharges, then the tax rates
    should be maintained in J_1IEWT_SURC1 table.
    Make sure that tax codes available in J_1IEWT_SURC1 table are not
    available in J_1IEWTSURC table and vice-versa.
    3. If you are using separate tax codes for Education cess, those tax
    codes should be maintained in the J_1IEWTECESS table and 'X' should be
    maintained for the company code in J_1IEWT_ECFLAG table.
    4. If you are using combined tax codes for Education cess, tax rates
    should be maintained in J_1IEWT_ECESS1 table.
    Make sure that the tax codes available in J_1IEWT_ECESS1 table are not
    maintained in J_1IEWTECESS table and vice-versa.
    Maintain these tables and check whether you get the correct figures in your TDS certificate.
    Regards,
    SAPFICO

  • Withholding tax amount is not updated in with_item table

    Dear all,
    In our system, one vendor invoice posted through FB60. In which, system generates withholding tax lin item. The same line item shows in BSIS and WITH_ITEM tables. It also shows in GL account line item display as open item. But, in WITH_ITEM table system not calcuate tax amount and shows as nil withholding tax amount against withholding tax base amount because of this I will get error at the time of creating challan through J1INCHLN.
    Please help us though there is statutatory payment due date.
    Regards,
    Kalpik

    Hi Raghvendra,
    Thanks for reply. Why system is not update withholding tax amount only for that particular document ?
    So, we can take precaution in future also.
    Regards,
    Kalpik

  • Link Button Not Display for Tax Amount

    Hi Experts,
    I have one Problem
    I am creating A/R Invoice Document and I have assing Tax Code for Item
    It will show Tax Amount but link button or drill button not display for tax amount
    pls give me solution
    Warm Regards,
    Sandip Kokate

    HI
    How to Clear Chumb
    And I am Selecting Tax Code but still it will not show Tax Amount Link button but Tax Amount is perfectly Match
    Regards,
    Sandip kokate

  • Tax Amount in GR(PO)

    Hi Experts,
                       In SAP B1 2005, Why System will not take tax amount into consideration when GR(PO) Document was posted. I mean in J.E posted automatically when GR(PO) was added.
    SAY :   I have posted Purchase order for the following..........Unit Price 1000, Qty--1, Tax amount -
    vat4%, &
    Doc Total will be Rs.1040/-
    When I added Purchase Order there wont be any J.E Posted. But when I add the GR(PO) Document J.E will be Posted automatically, And which looks like this:   Inventory account----Rs.1000/-    Dr
                                                                       Goods received but not invoiced (Contoll Account)......................Rs.1000/-   Cr 
    I am wondering why system wont consider tax amount in GR(PO) stage.
    J.E when A/P Invoice doc is posted :           Goods received but not invoiced (Contoll Account)----1000/-  Dr
                                                                          Vat A/C -Rs. 40/-  Dr
                                                                          Vendor----1040/- Cr
    How do I make system to consider tax amount in GR(PO) Level.
    Thanks & Regards,
    Sree.

    Thanks for your speedy reply Sampath,
    My Issue is..........
    What about the cases where Vat Input is not available????
    Presently in one of my client they are changing the vat from VAT4% to Vat 0% in A/P Invoice Document and adding the vat amount in the unit price of the Item.
                       Our Manager dosent want this manual calculation to be happened at A/P Invoice level. He says that system should add the vat amount in the Inventory Account at GR(PO) Level.
    How do I achive this????????/
    Thanks and Regards,
    Sree.

  • Withholding tax Amount not being displayed in the Invoice while posting a Parked Document

    Hi,
    I have created a parked document for the Vendor who has the Witholding tax code w9 - 15% . I created Parked Document using FBV1 and then tried posting the same using FBV0.Somehow I am not getting the Withholding tax Amount in the FI Document created. However the W/Tax Base Amount and the W/ Base LC are being displayed correctly.
    Say if the Line item Amount is 1,000$ then both the amounts mentioned above in the Additional tab "Withholding tax Data" are being displayed as 1,000 usd but the W/Tax Amount is 0,00 USD.
    2. Also We have the PI and the Interface is written to post the Parked document while the xml file. There is a Method Execute_Asynchronous which has two BDCs one  for FBV2 ( Change Parked Document ) followed by the Post Parked Document FBV0. Hence When I try to post the Parked Document using the SPROXY Interface which has two BDCs Viz FBV2 & FBV0 I still get the Invoice with the Same Amounts and at times with additional 2 zeros added to it in the Additionsal Tax Data Screen.
    I am not sure what is the reason for this. Can anybody help  me sort out this Issue.
    Can there be any Config issues. Please let me know what all config Settings we need to do to sort out this Issue.
    Also let me know why the 2 Zeros are getting added to the Base Amount e.g if the Vendor Line item is 12,000 USD it shows as 12,00000.00 in the Withholding tax Data  Tab in the Invoice.
    Regards,
    Deepak.

    Dear Praveen,
    please check into IMG if You defined the WT type You are using for Your Comapny code:
    IMG --> Assign Withholding Tax Types to Company Codes
    I hope this helps.
    Mauri

  • Service Contracts Line and Header Tax amounts are not matching

    Hi,
    I am creating service contracts using API. Using below code i am applying price adjustments on the line. while using the below API Tax is calculated at line level and added for each line But the Tax filed on the header is not getting updated. I fwe go to front end and click on reprice then the Tax amount is added to the header(If the contract created with status 'Entered').
    Please help me to fix this.
    l_multi_line_tbl (0).ID := l_x_clev_rec.ID;
    l_multi_line_tbl (0).price_list_id :=l_curr_price_list_id;
    l_multi_line_tbl (0).lse_id := 46;
    l_multi_line_tbl (0).line_pl_flag := 'Y';
    l_x_return_status := NULL;
    apps.oks_auth_util_pub.compute_price_multiple_line (
    p_api_version
    => 1.0,
    p_detail_tbl 
    => l_multi_line_tbl,
    x_return_status   => l_x_return_status,
    x_status_tbl 
    => l_status_tbl);
    Thanks,
    Hari

    not answered yet.

  • In vendor line item not showing withholding tax amount and withholding base

    Hi Gurus,
              When i am using T,code FBL1n for details clear item,in line item doesn't showing withholding tax amount and withholding base amount for some vendors when i am using FB03 there showing tax amount and base amount,in option is there.plz help me,its very urgent.
    Thanks & regards,
    Dharma.

    Im not sure but may be its because in the config. of 1099 Withholding tax we usually say that the with holding is to be posted only after payment of the open items.
    So, lets try this. Look at if the documents which are showing withhld tax in FBL1N if they are paid or not.
    this would give us some help or hopefully the answer..
    regards

  • In fbl1n report for document type RE  withholding tax amount is not showing

    in fbl1n report for document type RE  withholding tax amount is not showing
    in sap note 363309 determines
    Solution
    Remove the field which contains the withholding tax information (field BSEG-QSSHB) from your display
    variant.
    If you want to display the withholding tax information, double-click on the document number and
    subsequently choose 'Withholding tax'.
    my doubt is we remove the field BSEG-QSSHB in layout how can show the withholding tax amount in FBLIN report
    how to remove from the layout
    please clarefy
    bhayyapu   

    Hi,
    If you want to check amounts of withholding tax for the vendors, you have some options to view it. You can access the WITH_ITEM, LFC1 tables by SE16. You have too the S_P00_07000134 report. This report is developed for the Colombia but I already used for the another country with the ABAP development for this country.
    Also you can use table join BSIK and WITH_ITEM by SQVI for the open items and BSAK and WITH_ITEM for cleared items. It is more simple and fast.
    JPA

  • Tax Amounts not Pulling into Order

    We are using Vertex Series Q tax software. When we have taxable line items for the state of Washington, we are get the tax rates back from Vertex but the tax amounts are not calculating. I have tested this for the state of Pennsylvania and I get both the rates and the amounts returned. I can't find anywhere in our SAP instance that would prevent the amounts from populating.
    Am I overlooking something or is this an issue in Vertex not SAP?

    First I recommend to do a testing in the test system. If the same issue happens in test system then I would suggest to check with Vertex support team.
    They can guide you on how to check and what values passed from SAP to Vertex and vice-versa for this particular transmission. This might involve your basis personal also.
    Regards

  • Witholding tax amount is not coming correct in FBL1N report.

    The WHT amount in vendor line item report in column withholding tax is being displayed without a minus(-) sign indicating a debit amount, but this amount is in fact not a debit amount, when this column is sum up it gives incorrect total.
    Regards
    Abhisekh Mandal

    Dear Abhisekh,
    SAP note 363309 says,
    "Remove the field which contains the withholding tax information
    from your display variant.
    If you want to display the withholding tax information, double-click on
    the document number and subsequently choose 'Withholding tax' button."
    (BSEG-QSSKZ, BSEG-QSSHB, BSEG-QBSHB) field is not relavent for
    Extended withholding tax and not suppose to use in report FBL1N.
    It basically does not make any sense to use the withholding tax fields
    of the document line items (BSEG-QSSKZ, BSEG-QSSHB, BSEG-QBSHB) with the
    activated extended withholding tax.
    I'm sorry not to help You further.
    Mauri

  • FBL1( VENDOR LEDGER REPORT)-  Withholding tax amount is not coming .

    in FBL1 ( vENDOR lEDGER rEPORT) - WITHHOLDING TAX AMOUNT IS NOT CMING IN COLUMN  QBSHB OF FBL1.
    Purchasing document number is not coming also.
    How these fields may appear in the above said report. Is any config missing ?
    Thanks in advance
    M K Agarwal
    9967029930

    TDS posted from MIRO will not reflect in line item report, i have taken opinion from SAP for the same issue few days back, SAP has given the following opinion.
    *With reference to the difference in behaviour as compared to the document posted for example from MIRO which is an MM transaction and FB60 which is a FI transaction please note the following:
    The withholding tax amount that you are using i.e. Field BSEG-QBSHB is designed to fill for the classic withholding tax. And extended withholding tax information is stored exclusive in table WITH_ITEM.
    Also note that MIRO does not give the user the control in case of Classical withholding tax. It only supports Extended withholding tax. Hence it does not populate BSEG fields in case of Extended WT.
    So in MIRO, the data for extended withholding tax are saved within the table WITH_ITEM and not within the table entry BSEG-QBSHB. The latter isnot updated during the procedure. Furthermore it is not possible to select data from table WITH_ITEM
    within the transaction FBL1N in a transparent and unique way, as FBL1N only reads BSEG / BSIK / BSAK tables.
    In your line layout,you define a field BSEG-QBSHB. But actually the field of vendor/customer line item is filled with zero from FI. Thus,it shows zero in line item display*
    Please review note 363309 for detailed explanation and explains the functionality which is valid even for your release.
    So it is not possible to display withholding tax information in the line item display transactions, since this information is not
    held in the BSEG / BSIK / BSAK tables, but is instead stored in the WITH_ITEM table.
    Please convey to your client, standard SAP will not show the TDS information in line item reports, documents posted from MIRO and refer  the note 363309.

  • Item's withholding tax amount is not zero

    Dear All,
    When ever we clear the vendor account through f.13 system was showing the below mentioned message.
    S No customer documents selected
    S No G/L account documents selected
    I Only accounts with debit and credit postings are included
    X Item's withholding tax amount is not zero 0101 K 319936 13000031 105352237 1
    X Item's withholding tax amount is not zero 0101 K 319936 13000031 105352237 2
    I Stop date " 02.01.2010 Stop time " 17:00:00
    Client is asking no need to show Items withholding tax amount is not zero message.
    Where as the clearing criteria is business place .
    Regards,
    Teja

    Hi,
    please refer to the note 499902 and 442588 for the explanation why the transaction F.13 has given out
    this error and which transactions (FBZ2 or F-53) should be used to clear the items with the withholding tax info maintained.
    Reg
    Madhu M

  • Tax Amount is not updated into BSEG

    Dear All,
    I have recently added a tax amount field MWSTS from table BSEG into FBL1N - Vendor Line Item Display. To my surprise the input tax amount is not updated into BSEG table. The input tax is normally posted using either MIRO or FB60.
    Any one has the same problem? Can please kindly share how to fix the problem?
    Thanks in advance for your kind assisstance.
    rgds,
    Dahlia

    Thanks Andreas,
    However I do believe that it should be updated into BSEG - MWSTS as we have mutliple companies in different countries in the system. All the other companies have the input rate updated into BSEG - MWSTS for the vendor line item, only the company for India is not updated.
    Yes, BSET do have the tax amount updated but I can't use BSET table in FBL1N. I need to provide the tax amount information for each vendor line item in FBL1N.
    thks
    Dahlia

Maybe you are looking for

  • Recover deleted data from a drive

    OK so I understand there is FileSalvage for $99 but isn't there a way of doing it for free??!! On the PC there was a tonne of free programs for undeleting things.. And it was easy. Does anyone know of a FREE tool that works with Mac. Can Disk Utility

  • Cisco 2901-CME-SRST and ISM-SRE-300-K9 No Package already installed?

    Good Morning Everybody, I'm installing a new CME router with CUE. But, the ISM-SRE-300-K9 is empty, I don't if it's normal. I try to install two different packages : Version 8.5.1 cue-installer.sme.8.5.1 cue-vm-full-k9.sme.8.5.1.prt1 cue-vm-installer

  • Low resolution+iphoto book 2008

    Good evening! I am creating a photo book for my girlfriend. Some of the pictures were showing a warning sign: "This photo may print at too low of a quality". I tried to download her pictures by maximizing the quality, but the warning sign is still th

  • Javascript to download a custom pdf

    Hi all,  I am a pretty adept captivate user, but really have no javascript skill.  I have a button in my project, that when pressed I want to download a custom pdf that pulls from a jpg image and two project variables.  (Essentially I'm creating a ce

  • Can user choise the ordering of collums?

    Hi All, When the final user 'display' the report in InfoView, can the user 'hide' a collum or change the that order...? How to do it available? Thanks, Ralph