How to update Tax code in R12 using API

Hi,
I am looking for API's to update supplier tax classification code in AP_Suppliers
I can see the who columns get updated by POS_VENDOR_PUB_PKG.UPDATE_VENDOR in AP_Suppliers
but the VAT_CODE is not updated I also checked in ZX_PARTY_TAX_PROFILE table but no changes.
Any idea please suggest , I been asked to realce the 11.5.10 Tax code with the codes define for R12 using maping table,
Lokking for API to update
ap_suppliers.VAT_CODE (supplier)
zx_party_tax_profile tax_classification_code (party level)
ap_supplier_sites_all.VAT_CODE (supplier site level)
zx_party_tax_profile zpt2 (PARTY site level)
Tried the below :script but no use
DECLARE
l_vendor_rec ap_vendor_pub_pkg.r_vendor_rec_type;
l_return_status VARCHAR2(10);
l_msg_count NUMBER;
l_msg_data VARCHAR2(1000);
l_vendor_id NUMBER;
l_party_id NUMBER;
BEGIN
FOR L_CUR IN
(SELECT VENDOR_ID,
VENDOR_NAME,
VAT_CODE AS R11code,
R12CODE
from AP_SUPPLIERS,
BES.XX_TAX_MAPPING_CODES MAPP
WHERE AP_SUPPLIERS.VAT_CODE =MAPP.R11CODE
AND VENDOR_ID like '8994'
AND rownum < 10
LOOP
BEGIN
L_VENDOR_REC.VENDOR_ID:=L_CUR.VENDOR_ID;
L_VENDOR_REC.VAT_CODE :=L_CUR.R12CODE;
L_MSG_COUNT:=null;
L_MSG_DATA:=null;
L_RETURN_STATUS:=NULL;
DBMS_OUTPUT.PUT_LINE('updating status for '||L_CUR.VENDOR_ID ||' FROM '|| L_CUR.R11CODE ||' TO '|| L_CUR.R12CODE);
POS_VENDOR_PUB_PKG.UPDATE_VENDOR( P_VENDOR_REC => L_VENDOR_REC, X_RETURN_STATUS => L_RETURN_STATUS, X_MSG_COUNT => L_MSG_COUNT, X_MSG_DATA => L_MSG_DATA);
dbms_output.put_line('return_status: '||l_return_status);
DBMS_OUTPUT.PUT_LINE('msg_data: '||L_MSG_DATA);
DBMS_OUTPUT.PUT_LINE('l_msg_count: '||L_MSG_COUNT);
IF L_RETURN_STATUS ='S' THEN
COMMIT;
END IF;
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('Error while updating '||L_CUR.vendor_id);
END ;
END LOOP;
end;

Hi
Tax code is created in FI only. FTXP is the T-code. Please go thro the documentation on the Tax on Sales/purchases in Financial Accounting Global settings. This is based on Tax calculation procedure and this will be used in MM as well.
S Jayaram

Similar Messages

  • Update TAX Code in Sales Order

    Hi,
    1. How to update TAX code in the sales order through API. When I tried Process order API, it is not working. If any one did that, please let me know.
    2. Is there any API to Just run calculate Tax for an order from PLSQL

    Through my efforts,  i got a solution for this queries.
    Answer: There is a User_exit, will take care of New Pricing Control.
    Thanks every body.

  • User Exit or BADI for Updating Tax code (MWSKZ) using ME21N

    Hi all,
    I am trying to fin out an exit or badi for Updating Tax code (MWSKZ) and Unit of Measure in transaction ME21n.
    The scenario is like this...
    For Purchase Orders Tax code will be defaulted from Purchasing info record or contract or parameter id for that item-vendor-plant.
    If the Tax Code is not defaulted and account assignment is blank then tax code on the PO is updated according to the below mentioned table
    Table
    Supplying Plant/              Receiving Plant                      Tax code
    Vendor/Country
    Any plant/vendor/
    country                           5050(NA)                               20
    2300                              6700                                     E0
    If the tax code on PO cannot be updated by the above table, then buyer needs to put tax code on the purchase order manually.
    Thanks,
    Shiva, Bangalore

    Hi Siva.,.,.,
    These r the exits.,..,which will be called while calling ME21N/ME22N/ME23N
    EXIT_SAPMM06E_006
    EXIT_SAPMM06E_007
    EXIT_SAPMM06E_008
    EXIT_SAPMM06E_009
    EXIT_SAPMM06E_012
    EXIT_SAPMM06E_013
    EXIT_SAPMM06E_014
    EXIT_SAPMM06E_016
    EXIT_SAPMM06E_017
    EXIT_SAPMM06E_018
    U want to default some values while the Initial screen will come right,
    while u Enter ME21N in command Prompt.,.,two exits will get triggerd,
    EXIT_SAPMM06E_014
    EXIT_SAPMM06E_016
    If u want to Default some values u can use these two exits.,.
    Try using EXIT_SAPMM06E_016.,.this will solve ur purpose.
    and if the user changes some values on screen.,,and you want them to get reflected .,.,.that means if user changes and saves data .,.
    While saving.,.,EXIT_SAPMM06E_012 and EXIT_SAPMM06E_013 will get triggerd
    Try using EXIT_SAPMM06E_013.,,.it was somehow the same requirement as mine.,.,IN my case it worked fine.,.,
    Regards
    Debasish
    Message was edited by:
            Debasish Das

  • How to update Tr code FB02   and update the field reference key1 (bseg-xref

    Can any body
    help me how to update   Tr code   fb02
    and  update the field  reference  key1 (bseg-xref1)  with the interest amount
    calculated.
    Below i have  written My  program  flow logic
    The program should read the open items i.e debit items in the customer account,
    Based on the  invoice date and customer payment terms  calculate the due date and then the  interest should be  calculated on that item based on the due date.
    Use the  transaction  fb02  and update the field  reference  key 1 (BSEG-xref1)
    with the interest amount calculated
    Only  consider  customers whose  interest indicator  knb1-vzskz = 'vk'.
    Interest is to be  calculated for every  30  days
    at the rate of  1% .please see example below.
    Document date is 01.01.2007
    for amount  1000SGD   payment  term  7  days
    It becomes  due  on  08.01.2007
    until  06.02.2007 you should not  consider  for calculation of interest
    SGD  on   7.02.2007 run you can consider this  item for interest calculation

    Hi Robert,
    Thanks for answering.
    I am looking at Ref 2 should flow automatically to clearing document from the accounitng document for billing.
    Ex: Billing document is created and accounted. Ref 2 is AB
    Now when receipt is accounted for this biling document this AB should flow automatically to Ref 2 field.
    Thanks
    NNS.

  • How to make tax codes in mm purchasing

    Dear Guru,
    1. How to make tax code for purchase of Raw materials with basic excise duty=14%, SECess=2%, HSEcess=1% and Additional Excise duty=4% as follows . If we consider basic prise=100 then
    BASIC                  =100
    BED    (14%)        =14
    SED     (2%)        =0.28----
    Sed=secondary Educational Cess
    HSECESS (1%)     =0.14
    SUB TOTAL        = 114.42
    AED (4%)           =4.56
    TOTAL             = 119
    For above all taxces(BED,SED,HSEcess,AED) , client gets 100% set off.
    Please tell me detail procedure.
    2.Do we need to assign (tax code)  them to any business area, as my system is giving an error at the time of saving in MIRO.
    3. What is the meaning of ticking ( check box tick) for calculate taxes under  basic tab in MIRO.

    Hi Nitin,
    Tax Set Off depends on the Account Key which you are using. Account Key in Tax Procedure will be defined by finance at SPRO - Financial Accounting - Financial Accounting Global Settings - Tax on Sales / Purchases -   Basic Settings - Check and Change settings for Tax Processing.
    Check the relevant condition type in the Tax Procedure (TAXINJ / TAXINN), and then check the account key of the procedure whether the Non Deductable indicator is set or not. you may take finance help for the same. Once it is done correctly then define the excise defaults for the relevant tax procedure at SPRO - Logistics General - Tax on Goods Movement - India - Basic Settings - Determination of Excise duty - Maintain Excise defaults
    Then create the tax code with the relevant condition types.
    You need to assign the Tax code to Company code if you use TAXINN procedure. No need for assignment of Tax code to Business Area
    Once you select the Check Box Calculate taxes in MIRO, then system calculates the Taxes based on the tax codes defined and also validates whether Part II Postings have been done or not also for the Excise relevant transactions
    Regards,
    Ramakrishna

  • How to create TAX CODE in Spro...urgent please...

    Hi sap guru's
           While doing MIRO/MIR7/MIRA(logistics invoice verification). my cleint is using different tax code. i want to creat new TAX code for my cleint..
         can anybody tell me how to create TAX code in SPRO.
    Thanks

    Hi Sakti,
    Transaction code to create Tax code is FTXP.
    Path is
    IMG--> Logistic General --> Tax on good movements --> India --> Basic Settings --> Determination of Excise Duty --> Condition Based Excise Determination --> Define Tax code for Purchasing Department
    After creating tax code dont forget to assign with your counrty code for that path is
    IMG--> Logistic General --> Tax on good movements --> India --> Basic Settings --> Determination of Excise Duty --> Condition Based Excise Determination --> Assign tax code to company code
    Hope your query is solved
    Regards
    Vivek
    -- Reward for the Effort !!

  • CIN: How to maintain tax codes

    I am using TAXINJ pricing procedure for creating excise invoice.
    My question is how to maintain TAX Codes for calculating breakups of excise duties. How many tax codes do we maintain.
    I can make the excise invoices but i am facing problem because tax codes are not properly maintained.
    I can give more details if required.
    Experts please help me on that.
    Ravs

    Dear Deepu,
    Thnx..
    In tax code i hv maintained following rates:
    Condition type                                Taxrate
    JMO1 BED                                     14%
    JAO1  AED                                     1%
    JIN1 CST                                         4%
    & in the other Tax code i hv
    JIN2 LST                                          3%
    I hv also maintained record in J1ID for Chapter ID
    BEX rate 14%        &             AED 1%
    I also changed tax rates to 100% as you said.
    Now when i am trying to create record in UTXJ, at the time of entering tax code i am getting that msg.
    I think i hv missed some step or any mistake in tax code.
    Regards
    Ravi

  • How to tansport tax codes

    Dear All
    Can anyone guide me how to transport Tax codes from one system to another system and simailary how to transport condition records for these tax codes.

    Go to FTXP and Select Country and go to Menu Tax Code and Click on Transport - > Export
    Procedure
    When tax codes are transported, the tax rates of the tax codes are transported using auxiliary table T007V. Logical transport object FTXP is used to transport the definition data of the tax code from table T007A and the language-dependent name to table T007S.
    The tax accounts for the tax codes (table T030K) are not transported.
    The internal jurisdiction codes are also not transported.
    The transport of tax codes between systems or clients consists of two steps:
    1. Step:
    Export tax codes from source system or source client
    2. Step:
    Import tax codes into target system or target client
    Export
    1. In the source system or client, in Customizing for the Financial Accounting Basic Settings, choose Tax on Sales/Purchases -> Calculation -> Define Tax on Sales and Purchases Code.
    2. Choose Tax Code -> Transport -> Export.
    3. Assign the export to the relevant transport request and make a note of the request number.
    4. Select and save the tax codes to be transported.
    5. Make sure that the selected tax codes have the transport number in table T007V.
    To check the table, in the SAP menu choose Tools -> ABAP Workbench -> Overview -> Data Browser.
    Enter the table name. The tax codes are in the MWSKZ fields, the tax jurisdiction codes in the TXJCD fields.
    6. Arrange the transport of the request to the target system.
    To transport the request, in the SAP menu choose Tools -> ABAP Workbench -> Overview -> Workbench Organizer -> Environment -> Customizing Organizer.
    Import
    1. Make sure that the transported tax codes are recorded in table T007V of the target system or target client.
    2. In the source system or client, in Customizing for the Financial Accounting Basic Settings, choose Tax on Sales/Purchases -> Calculation -> Define Tax on Sales and Purchases Code.
    3. The tax codes should have been created in the target system without a tax percentage rate by the import.
    Otherwise you can do this manually:
    In the target system, create the tax codes that do not exist there.
    Create the tax codes completely, but without tax percentage rates.
    If you use internal systems in company codes in the USA or Canada, the relevant tax jurisdiction codes should also exist. You make the settings for the tax jurisdiction code in Customizing for Financial Accounting Basic Settings under Tax on Sales and Purchases -> Basic Settings -> Define Tax Jurisdiction Codes.
    4. Choose Tax Code -> Transport -> Import.
    5. Check the proposed values for the transport request and country.
    6. Run the import.
    Notes for the transport of tax accounts
    When you transport tax codes between different systems or clients, no tax accounts are transported.
    Adjust the tax accounts in the source and target system (or source and target client) manually.

  • How to update software on multiple iPhones using same iTunes account?

    How to update software on multiple iPhones using same iTunes account?

    SeanB15 wrote:
    Here are more details on my situation which should help clarify things...
    I purchased three iPhone 4 models back when they first came out (for my family) that all share the same iTunes account for access to apps and music, but each phone/user still has his/her custom contact list, email accts, and select lists of apps and music from the one iTunes acct library.  The problem is (as I understand it) that I can only update the software on one of the three iPhones – the primary phone I used to setup the iTunes acct without wiping out the separate contact lists, etc. As it stands today... the first (primary) iPhone associated with the iTune acct has been updated with the latest software version 5.1.1 and sync'd up with all the apps, music, etc from the one iTune acct, while the other two iPhones are still running on the original software version 4.0.2 and are experiencing problems now. I was advised by AT&T back in January that it would be necessary to setup separate iTunes accts for the second and third iPhones in order to receive system updates and still be able to manage separate contact lists, etc. If I go this route, I assume we will lose all the apps on phones #2 and #3 that we have been "sharing"... correct? Since this AT&T advice was prior to iCloud coming out, would iCloud be a better solution or at least part of the solution? I really don't yet understand how iCloud works. Hopefully, one of you can help me??
    we have 2 iphone 4's synced to the same itunes account for apps and music since the day we bought them, but each has a different icloud acct. they have both been updated on the same itunes account with every update that has come out since we bought them in december of 2010. nothing on either phone has ever been lost or duplicated. having said all that, maybe i'm missing something here, but we have had no problems. we do have itunes setup to sync manually. i do believe i'm a piker compared to lawrence finch, but i'm just telling you what happens in my house. maybe check with apple? is there a store near you?

  • Cenvat related tax code cannot be used with freight

    Hi
    Error Cenvat related tax code cannot be used with freight . When i am try to save A/R Invoice i am getting this error.
    Scenario is
              Amount = 389000
              Packing Charges = 12000
              Sub Total = 401000
              BED = 64080
              CESS/Others = 1923
              Vat 2 % = 17340
             Total = 884343.
    Thanks

    Hi,
    Create packing charges in Freight
    Administration --> Setup --> General --> Freight
    and when u will create Tax code, there is one check box in right upper side (Freight),
    unable the check box so you can use the tax code in freight.
    I hope this will solve your issue.
    Regards
    Kamlesh Vagal

  • How t ocreate tax code ...?

    hi all
    Can anybody explain me how to create tax code for my company code in IDES.
    I tried to create new tax code in FTXP..
    System is asking for tax jusdricaton..
    Please guide me how to proceed further
    Thanks
    sap-mm

    Hi
    Try deleteing the Jurisdiction code from Trax OBCP & then from OBCO.
    maintain tax procedure and assign it to your country in OBBG.
    Then try maintaining TAX codes already created in FTXP.You will
    now be able to exclusively enter Tax rate and it will not be
    greyed out.
    The Key however is that your TAX Procedure for the countrry for
    which ur working should be properly maintained inside OBQ3,
    and BSX & WRX enteries should be correctly assigned to the type
    of GL account inside OBCL.
    Regards
    Sujoy
    Edited by: Sujoy on Oct 14, 2008 10:54 AM

  • How is the tax code determined while creating a new PO?

    Hello,
    how is the tax code determined while creating a new PO?

    HI,
    Tax code refers to a TAXINN /TAX INJ and it always at country level -where the business dealing happens and not dependent on any other factors like vendor or material, company code or plant. etc.
    So after you have maintained a Tax code in FTXP in the category as input Tax( V)  it would be appears in the Tab Invoice.
    where you could manually select the same
    For automatic determination as said in the top messages we can maintain an inforecord.
    hope so it helps
    Regards
    Anjanna.
    Edited by: Shiva Rajanala on Apr 28, 2009 5:03 PM

  • HOW TO INPUT TAX CODE AT MULTIPLE PO ITEM LEVEL AT A TIME

    If a PO  is having 100 line of items, how to input the tax code for all line items at a time, if tax code for all line of times is same.

    Hi
    Another option is to use the t-code MASS. I havenu2019t used in PO but I think it must run.
    Select BUS2012 in u201CObject Typeu201D field. Press F8.
    Select u201CPurchase Order Itemu201D in u201CTablesu201D tab, and click on the u201CFieldsu201D tab.
    Select the field name MASSEKPO-MWSKZ. Press F8.
    Assign the value to the PO field.
    In the menu, select u201CMass maintenanceu201D->u201DEnter new field valuesu201D.
    Assign the new value and press u201CTranferu201D button.
    Press F8. Click on the u201CCarry out a Mass Changeu201D button and click on the u201CSaveu201D button (Ctrl+S)
    Review the u201CMessages from the Update Tasku201D.
    Best regards.
    Paco M

  • Questioning the process to update tax code "rates"

    I am not clear on what the process should be for updating the tax code rates. I would like to know how other entities perform this re-occurring process. My questions are... must the rate updates be transported/imported or entered directly using FTXP? Who in the organization is/should be responsible for updates? Aren't the rates considered master data? How often are the rates updated? If a transport is required, shouldn't the person entering the updates differ from the person doing the import into a client?

    must the rate updates be transported/imported or entered directly using FTXP?
    Yes you can enter manually also.
    Who in the organization is/should be responsible for updates?
    Anybody in Finance who is taking care of taxes
    Aren't the rates considered master data?
    Yes
    How often are the rates updated?
    There is no fixed thumb rule for this.  As and when a new requirement (different tax structure) comes, and if the same is not available in the existing tax codes, it has to be created.
    thanks
    G. Lakshmipathi

  • How to update old records of LIPS used user exit MV50AFZ1

    To All Experts,
    I have used User Exit MV50AFZ1 and in this user exit i updated the fields
    USEREXIT_MOVE_FIELD_TO_LIPS.
    LIPS-ETENR = VBEP-ETENR.
    Its working fine for new VL0N1 t-code, but what about old recods of LIPS table ?
    How to update old records ? Pl. guide me.
    Yusuf

    Hi Yusuf,
    See SAP Note 415716 - User exits in delivery processing, it explain how these userexits work and cautions that you must have.
    Regards
    Eduardo

Maybe you are looking for

  • Can't access Aperture Library

    All of my images/projects have disappeared when I go into aperture. However My Aperture Library appears to be there (I can see that it's 250gb). how can I get aperture to delink to the library?

  • Creative Labs Customer Supp

    Or moreover, the lack thereof. First you come out with the Zen Vision player with documentation so sparse that sellers like Amazon.com are asking for additional user manuals to post [at least they were when I bought mine]. Then for customer support y

  • Surpress GET PERNR?

    How do I suppress the GET PERNR event? I have a report where I do a table dump of T710 or output PA0008 based upon TAB selection. However, I want to prevent performance problem when I just want to dump T710 table. The GET PERNR event seems to output

  • How do I end a task before opening?

    I'm trying to create a pdf and a window comes up telling me there is an error. I need to end the task before opening this file? How do I do this?!?!?!

  • Utl_smtp - time difference on e-mails

    I'm using utl_smtp to send automated e-mails. However, the sent time shown on the actual e-mail is one hour ahead of the time it was actually sent. The mail server seems to have the correct time. Any ideas where the problem could be?