Creating Sales Tax Code

Hi,
I have a requirement to create a sales tax code within the SAP B1 database using the DI API but, to be hinest, am confused about how to do this in code. I have searched the SDK help and noted the SalesTaxCodes and SalesTaxCodes_Lines which I think I know how it fits together but what are the SalesTaxAuthorities and SalesTaxAuthorities_Lines objectes and how do they fit into the whole structure? Bascially what i am trying to do is enter the following type of data:
Tax Code: "R"
Tax Rate: 10.0%
Tax Description: "Reduced Rate VAT"
Is there an easy way of doing this?
Thanks
Adrian

Hi Adrian,
Ok to start from scratch, the first step is to create a new sales tax jurisdiction type. I created one called Country and it has the type "1" (which I got from querying OSTT). The jusrisdiction type is like a category of tax.
Next I have to create a new sales tax jurisdiction - So I created one called USA Test with the code USA, with a base rate of 10% and it is of type 1 (country).
Dim oTax As SAPbobsCOM.SalesTaxAuthorities
            Set oTax = oCompany.GetBusinessObject(oSalesTaxAuthorities)
            oTax.Name = "USA Test"
            oTax.Rate = 10
            oTax.Code = "USA"
            oTax.Type = 1
            oReturn = oTax.Add           
            If oReturn <> 0 Then
                oCompany.GetLastError oError, errMsg
                MsgBox (errMsg)
            Else
                MsgBox ("Sales Tax Jurisdiction Added")
            End If
This adds a new sales jurisdiction - however, if I want to use it, I now have to add a Sales Tax Code and reference this jurisdiction:
Dim oCode As SAPbobsCOM.SalesTaxCodes
            Set oCode = oCompany.GetBusinessObject(oSalesTaxCodes)
            oCode.Code = "US1"
            oCode.Name = "USA Region 1"
            oCode.Lines.STACode = "USA"
            oCode.Lines.STAType = "1"
            oReturn = oCode.Add
            If oReturn <> 0 Then
                oCompany.GetLastError oError, errMsg
                MsgBox (errMsg)
            Else
                MsgBox ("Sales Tax Code Added")
            End If
Now if you go to Administration --> Setup --> Financials --> Tax --> Sales Tax Codes and search for the Tax Code "US1", you will find it there with one line added to it (the country jurisdiction of USA).
The rates of tax of each of the SalesTaxCode_Lines for a SalesTaxCode are added together to create the overall tax rate for that code. (for example, if you want to create a Tax Code for a city in the US and the United States has a tax of 10%, the state has an additional tax of 5% and the city of 2% you will get an overall rate of 17%).
Even from reading back over this I think its a bit complicated, but I think if you play around with that code and try creating and modifying a few jurisdictions and codes it should become clearer.
This is all relevant to the USA localisation. If you are working on a localisation that does not use SalesTaxCodes Jurisdictions it is as simple as this:
Dim oCode As SAPbobsCOM.VatGroups
            Set oCode = oCompany.GetBusinessObject(oVatGroups)
            oCode.Code = "R"
            oCode.Name = "Reduced Rate VAT"
            oCode.VatGroups_Lines.Rate = 10
            oCode.VatGroups_Lines.Effectivefrom = Now
            oReturn = oCode.Add
            If oReturn <> 0 Then
                oCompany.GetLastError oError, errMsg
                MsgBox (errMsg)
            Else
                MsgBox "Tax Code added"
            End If
Hope this is useful,
Regards,
Niall
SAP Business One Forums.

Similar Messages

  • Account Determination for Tax using Sale Tax Code

    Hi,
    We are using TAXINN and sales tax codes. We are using JTX1 condition in our sales pricing procedure for which we r maintaing condition record with correct tax code applied to it. We have assigned account keys in Tax Procedure, so no acct. key is assigned to JTX1 in sales pricing procedure. In record of JTX1 we are maintaining same tax rate (with tax code assigned to it) for eg. 4 % (not 100%) as maintained in tax code.
    Now, we are able to save billing document but while creating accounting document system is giving following error:
    No account is spesified in item 0000001002
    No acct. was specified for acct. type S in item 1002 of the FICO doc.
    The financial acctg. pgm. cannot process the doc.
    A sys. error has probably occured in ther sppln. you called up. Check the data transferred to item 1002 of the FICO doc.
    Pls. help.
    Regards,
    Dipti

    Hi Dipti,
    Hope you are working for Indian Client.
    Since you are using TAXINN procedure, you should not use JTX1(Tax Jurisdict.Code) condition at all. As you are aware after implementation of VAT, we should switch off Tax Jurisdiction at all lelvels.
    SD Pricing Procedure:
    1. Condition Type Settings
    a. Excise conditions (if req'd)
    b. LST / CST Conditions
    c. Freight and Insurance Conditions
    2. Access Sequence Settings
    3. Maintain Pricing Procedure
    4. Assign tax code to Company code
    Therefore, check your IMG settings once again.
    Bye,
    Muralidhara

  • I am creating  input   tax code in FTXP,BUT i am not getting tax code  whil

    Dear EXpert,
    I am creating  input   tax code in FTXP,BUT i am not getting tax code  while doing PO? what is the reason?
    thanks& Regards,
    saran.

    Hi Saravana
    Please make sure you have done all the following settings in SPRO.
    SPRO>Basic Settings->Taxes->
    1)Define Tax determination rule
    2)define regional codes
    3)Assign Delivering Plants For Tax Determination
    4)Define Tax Relevancy Of Master Records
    5)Maintain Sales Tax Identification Number Determination
    regards
    Yogesh

  • Authorization object for sales tax code (MWSKZ) in FB60

    HI, there is a FI tcode FB60 in FI module. The requirement is that user wants to restrict some users to enter only few sales tax codes from among the list. For example if there are 30 tax codes, then user should be authorised to enter only 5 tax codes from the list. In standard authorization, there doesn't exist an authorization object to restrict tax codes. Kindly tell me the process of making authorization object for this task.
    I have made one authorization object. I think i need to call this object somewhere in user exit of FB60. Is this the way of doing this?? Kindly if someone have done this, mention down the procedure of making authorization object and how to implement it. Thanks

    Hi,
    Instead of creating a authorization obejct and assigning it to the tax code, it will be easy to write the code in a user exit to check whether the tax code is applicable for the user. Suppose if the user enters a non-applicable tax code, you can throw an error.
    Do u want to restrict the number of entries in F4 help for tax code for a particular user?
    Cheers
    ~Niranjan

  • Functional module for determining the sales tax code

    Dear all,
    Kindly help me is there any Functional module to determine the sales tax code?
    My Requirement is Based on the Country, Sales Org and Tax code Pricing should pick up automatically.
    I tried adding the same fields in the table and inserted in the access sequence and created the condition record for the same.
    Created the order but system is not able to get  the Tax code while determining the price?
    Please help ...
    Regards,
    SK

    My Requirement is Based on the Country, Sales Org and
         Tax code Pricing should pick up automatically
    but system is not able to get the Tax code while determining the price?
    Your both the above comments are contradict to each other. In the first statement, you say pricing should pick up automatically whereas, in the next statement, you say tax code is not determining.   Please indicate the requirement clearly.
    thanks
    G. Lakshmipathi

  • How can I un-hide sales tax code in FB01?

    Hi,
    I am trying to create a vendor invoice posting through the intercompany sales EDI process, and am getting error 'field BSEG-MWSKZ does not exist in screen SAPMF05A 0302'.  When I manually try to create a VI posting via FB01, I can confirm that tax code is hidden from the vendor line item screen.  Does anyone know how I can get the tax code back on this screen? 
    I have looked through the field status variant and field status group config, but don't see tax code as one of the fields that can be controlled via this config (I do see withholding tax code, but I'm looking for sales tax code).  Does anyone know how I can un-hide this field?
    Thanks!
    Allison

    Thanks.  I did try that, but found that the tax code isn't controlled by any of the field status stuff.  BUT, I just found the solution to my problem via another forum.  Apparently the tax code, and whether or not it is included on the screen, is controlled by the tax category of the G/L account that you're posting too.  I changed the tax category of my G/L account to '*' (All tax types allowed), and that caused the tax code field to appear and be editable in FB01. Yay!

  • Default Sales Tax Code in transaction F-22

    Guys,
    this refers to accounts receivable.
    I have followed a few threads about defaulting tax codes, but do not find the answer I am looking for.
    When I post with F-22, how can I default the sales tax code?
    Kind regards,
    Rudolf

    hi,
    Try with create a screen variant for the particular transaction.
    in SHD0 transaction code:
    for F-22 create a screen variant and give the default value for sales tax code, now onwards every time you are using F-22 transaction the particular Tax code will be defaulted.
    hope this may help you,
    regards,
    srinivas

  • Tax amount and sales tax code fields not visible in tcode MIR4

    Hi,
    A workflow has been cretaed for cretaing the invoices. Here in SRM invoice, the tax code and Sales tax code fields are not visible in tcode MIR4 though data has been passed while creating it.
    When i am checking the "calculate tax" check box, am able to see these two fields on the MIR4 page.
    Am not able to find the reason for this behaviour. As its working fine for other invoices. This is the case with only SRM invoice.
    Kindly provide your inputs.
    Thanks!
    Regards,
    Razia Shaheen.

    Hello,
    What you are saying is that the Invoice coming from SRM (Via Idoc i supose) is not bringing the tax code? is that it?
    Cheers !

  • Sales Tax code mandatory in Material Master

    Hi,
    I am into developement and trying to create a material.In the Sales View1 tab it shows me 2 entries under Tax data.
    One entry for DE and other entry for the country I am working for.
    All the sttings seems to be similar vis a vis Sandbox where I could see only one entry.
    What could be the reason.I don't want to have DE entry for tax there.
    Also, I have to enter the tax code there.I am using zero tax(v0) and it asks me to put it there everytime.
    How to make it optional.I do not remember how it was done in Sandbox as it does not stop me there.
    It's urgent.Please suggest.
    Thx in advance
    Regards,
    manOO

    Hi Steve,
    thx for that.I have created one procedure for my country and have assigned it to country coe.I have done all the settings similar to Sandbox.I have created zero tax code since there is no tax involve for some reasons but i guess even there is no yax one has to create this calculation procedure and assign it to country code and then subsequently via FTXP create tax code for zero tax and then use it when required(for example at the time of invoice)
    what I did not understand as asked earlier is that why system is showing me 2 tax codes DE and AE in sales 1 view ?and why it is showing me mandatory entry.
    Showing up of 2 entries is okay but then I have to enter zero tax in both the lines.That is why i asked how can I make it optional.
    Is there any way ?
    I tries to search in the material master field status... but the group 190 where i could see this tax cose field is already optional.
    What could be issing here ??
    Thanks in advance
    regards,
    manOO

  • Creating a tax code in FTXP I can't fill in an account for NVV

    Creating a tax code in FTXP,
    for my tax code I've filled in a Tax Percent. Rate for Transaction Key NVV but SAP doesn't allow me to fill in an account for this
    Transaction Key in the tab tax accounts.
    What cuold it depend on?
    Thanks

    Hi,
    Well NVV account key in sap standard is a non deductible key and it would not be display in OB40 for account assignment.
    If you see NVV properties in OBCN it will display check box ticked for not deductible and posting indicat. 3.But if you want to use it for tax posting untick that check box and change posting indicator to 2.
    Then it will show that key NVV in OB40 and let you assign gl for this key.
    Regards
    Arun

  • How to or which table i can find Sales Tax Code in CRM

    Hi,
    I need to get Sales Tax Code(mwsk1) in BADI 'CRM_COND_COM_BADI'. if i use CRM_ORDER_READ( ET_PRIDOC) or CRM_PRIDOC_READ_OW it is going into endless loop. So i can't use these Function modules in CRM_COND_COM_BADI.
    Can you help me table or any other way to get sales tax code of Pricing conditions that appear on the sales order in CRM.
    Thanks,
    Praveen

    Hi,
    try by getting header and item guid in et_pridoc->pric_cond.
    Regards,
    Padma.

  • Create New Tax code and condition types

    hi experts,
    i want to create new tax code V10 and new condition types ZWKT and ZSTX under V10.
    i have a requirement that is create service general Purchase Order with following tax conditions
    1. Work Tax 4% on 70% of Bill Amount.
    2. Service Tax 12.36% on 33% of Bill Amount.
    while creating PO when user select ZWKT and ZSTX, system should calculate 4%( on 70%) and 12.36% (on 33%) and place the tax amount on relevant fields automatically.
    ( i tryed with tcode:FTXP and created tax code(country key: IN, procedure: TAXINN and taxtype: V input tax) but problem with assigning condition types and calculation procedure)
    please help me in this issue (step by step).
    Thanks.
    srinu.

    Hi,
    Here you have to create two dummy condition type for Base Value. One for Service Tax and other one for Work Tax.
    Then create two condition type for Work Tax & Service Tax.
    Ex : Work Order Base Value condition type is "A"
    Service Tax Base Value condition Type is "B"
    Work Order Tax condition Type is "C"
    Service Tax condition type is "D"
    In Pricing procedure just add all the above condition type as below
    Both Base Value condition type will be calculated from System Base Value  & in FV11 maintain the Base Value percentage against the Tax Code & Condition Type as per ur req (70% for Work Tax & 33% for Ser Tax)
    Work Order Tax & Ser Tax will be calculated from respective Base Value. In FV11 just maintain the tax %.
    Sangram

  • Create new tax code

    Hi,
    How to create new tax code for Import tax  + 2 % CST with the following details:
    Quantity                                        Basic rate                      Amount
    15595                                             0.50                               7798
    Custom duty  BYP                           4%                                 292                 NCR
                                                                                    8090
    Basic Excise duty                           10%                                809                   CR
    Edu. Cess on BED                            2%                                16                     CR
    Sec.Ed. Cess on BED                       1%                                 8                      CR
                                                                                    8923
    Edu. Cess on TOT 2% BYP                2%                                23                    NCR [29280916+8]*2%
    Sec.Edu. Cess on TOT 1% BYP         1%                                 11                    NCR  [29280916+8]*1%
                                                                                    8957
    CST                                                       2%                              179                      NCR
                                                                                    9136
    Thanks & Regards,
    Swati

    Hi,
    What is the tax procedure you are using? Is it TAXINN? If yes then you need to define condition Types in OBYZ and mainatin the same in TAXINN,
    in Create Tax Code E1 and in FV11 maintain Tax rate for this Tax Code against Condition record of Excise and CST.
    Hope this helps!!
    Br,Vivek

  • Steps to create new Tax Code

    Dear all,
    Please let me know the steps to create new tax code for WCT(Work Contract Tax) as per given conditions .
    Description:     WCT @4% + Service Tax @10.3% on 33% of Basic Value.
    Basic Amount                                                                  :  Rs. 10,00,000
    Add : WCT @4% on Basic Amount (Deductible)            :  Rs. 40,000
    Add: Service Tax @10.3% On 33% of Basic Amount    :  Rs. 33,990
    Total Order Value with taxes                                          :  Rs. 10,73,990
    TDS deducted @2% of Total Order Value(Deductible)   :  Rs. 21,479.8
    ( Please note:  WCT @4% to be deducted  : Rs.40,000.00
      TDS deducted @2% on Total Order Value : Rs.21,479.80 )
    Thanks & Regards,
    Ashutosh

    Dear sir
    Thanks For reply, i have done following activities..
    Created  WCT condition type  ZWOR
    Created TDS Condition type   ZTDS
    Already have Condition type for service  ZEC1
    Maintained TAX  Code u201CSEu201D   in FTXP
    Assigned  Below given condition type in FV11
    ZTDS @ 2%      ZWOR  @ 4%      ZEC1 ???? (not Done)
    Please let me know that how to create  below given things
    a) ZSER ( here ZEC1) 33 % on basic value to be created.
    b) JSVD for 10 % on ZSER
    c) JEC3 for 2 % on ZSER
    d) JSE1 for 1% on ZSER
    Whether  for step  (a)  I have to go to FV11 and  assign SE with 33 %     ?
    Please guide step by step
    Thanks & Regards,
    Ashutosh

  • How to create a tax code?

    Hi Experts,
    Please help me to create the Tax code step by step.
    CENVATECSHSECS+13.5 % CST (NON CREDITABLE)
    Regards,
    Sumeya

    Hello
    For your desired sequence or calculation of Tax in TAX code, then
    1. you need to have a proper Tax Procedure.
    2. after that you have to create a Tax code in Tcode FTXP (either Output or Input) with your relevant Tax % in respect tax.
    Refer the following link on Tax Procedure & Tax Code:
    - [Customizing For Tax Procedure- TAXINN|http://it.toolbox.com/wiki/index.php/SAP_CIN-MM_Customizing_For_Tax_Procedure-TAXINN#Customizing_for_Tax_Procedure_.E2.80.93_TAXINN|Take help of MM or SD consultant for this]
    Thanks & Regards
    JP

Maybe you are looking for

  • Display sub header from second group in each page without page break

    Hi All,. I need to show the sub header in each page in pdf output using rtf. I have two grouping region and category. I have used start:body and end:body concept to repeat the header in each page. The region is repeating in each page but I also want

  • How to get mailboxes to appear in Mail after migration?

    I have used setup assistant to transfer all of my "stuff" from my old MacBook running 10.7 to my brand new MacBook Air.  The only glitch I have found so far is in Apple Mail.  My account works, but shows only the inbox, sent box, and trash.  It does

  • IDvd freezes during 2nd -3rd burn

    When burning DVDs with IDVD the first dvd burns ok but on the 2nd -3rd try the process freezes up. The Dvd is ejected but not completely burned. I have to force quit and start the entire process over- takes hour+ The problem started after upgrading t

  • Help: Dowload photos from iPhone to PC

    I cannot seem to find how to download photos to my PC taken with my iPhone. Please help! Thanks, Gary

  • Fonts to small HPofficejet 6700

    When I print all my font are real small. How do I set the preference for my font size. I am using HPofficejet 6700 Premium. This question was solved. View Solution.