Writing Custom Tax Logic

I wrote some custom tax logic (using .cs include file linked from verify.aspx) and I can calculate the new tax but how to I set the shopping cart tax to my new value so it shows on the screen (and into the database)?  I have looked at the nptax class and nporderexpensetax class help files but I am not sure how exactly which command to use?  Thanks,

Actually it's very dependant on the situation.
Example 1: Not creating a BP for B2C accounts created in B1
Customer A places an order and wants it shipped to Nebraska
Customer A creates an account in Web tools
The Item is warehoused in Alabama, so anyone shipping to Alabama has to pay Alabama sales tax
The tax is not applied to Customer A's order in Web tools
The tax is also not applied to Customer A's order in B1
Example 2: Not creating a BP for B2C accounts created in B1
Shopper places an order and wants it shipped to Alabama
Shopper creates an account in Web tools
The Item is warehoused in Alabama, so anyone shipping to Alabama has to pay Alabama sales tax
Shopper pays tax in Wt
The merchant adds Alabama to list of shipping addresses in B1 on the "B2C Website" BP and tax assigned to the address, during implementation
Tax is applied in B1 with the same amount charged in Wt
Example 3: Creating a BP for B2C accounts created in B1, Setting in Synchmanager for Default Website Tax Code set to Alabama
Shopper places an order and wants it shipped to Alabama
Shopper creates an account in Web tools
The Item is warehoused in Alabama, so anyone shipping to Alabama has to pay Alabama sales tax
Shopper pays tax in Wt
Sync creates BP for B2C account with the address, but the tax field on the address is blank
Order is correct in B1 as the correct tax code is set on the order(based on the Default Website Tax code selection)
Example 4: Creating a BP for B2C accounts created in B1, Setting in Synchmanager for Default Website Tax Code set to Alabama
Shopper places an order and wants it shipped to Nebraska
Shopper creates an account in Web tools
The Item is warehoused in Nebraska, so anyone shipping to Nebraska will pay state sales tax
Shopper pays tax in Wt
Sync creates BP for B2C account with the address, but the tax field on the address is blank
Negative percentage discount shows on order as the Default Website Tax Code is set to Alabama but Nebraska tax was calculated in Wt
So Wt is doing things correctly, and within B1 the adjustment needs to be made.
This is a limitation of the solution that has a simple workaround(manually add correct tax), and it is a best practice to monitor all orders coming from the web for fraud detection, errors made by shopper, etc anyways.

Similar Messages

  • Writing Custom Queries (Logical SQL to Physical SQL)

    What is the recommended method for writing cross-subject area custom queries against the HCM database? Is there a published data model available for reference?

    Hi Experts,
    Please help on this.

  • Customer master logic

    need logic for:-
    if customer master has the tax classification is
    available, if the tax classification is coming blank
    then if the customer sales org is 1000 and if
    the transaction code is XD01/VD01 then the
    value in the customer tax classification
    against US country  is SIX(6).

    IF ( sy-tcode = 'XD01'  OR  sy-tcode = 'VD01' ) AND
         i_knvv-vkorg EQ '1000'.
    LOOP AT i_knvi.
    IF i_knvi-taxkd IS INITIAL AND
               i_knvi-aland EQ 'US'.
              i_knvi-taxkd = '6'.
              MODIFY i_knvi TRANSPORTING taxkd.
    ENDLOOP.

  • Customer Tax Classification : Missing entry screen in customer master

    Hi All,
    Anyone know if any customizing is required to activate the Customer Tax Classiification entry screen in the Customer Master of Sales Area (BillingT Tab)? I could not enter the customer tax classification as the entry screen doesn't appear in the customer master.

    Hi,
    You have to maintain few settings for this
    In OVK1 Enter the TAX CATEGORY for the Country
    In the OVK3 transaaction code enter the TAX CLASSIFICATION for the Tax category defined in OVK1
    after this assignment try to create the customer master , in the Billing tab the tax classification will appear.
    regards,
    santosh

  • Assistance in writing Query / Query Logic.

    I have a peculiar requirement to fetch data.
    Table Structure ( Sample ... although real table has more fields)
    Order ( orderid varchar2(30), custid varchar2(30), status varchar2(1), createdon datetime )
    Sample Data:
    OrderID CustID AccID Status createdon
    123 111 Y 20-Jan-2012 01:29:22
    124 111 100 Y 22-Jan-2012 01:23:02
    125 111 100 N 23-Jan-2012 02:34:24
    126 111 100 N 28-Jan-2012 04:23:22
    127 111 100 N 29-Jan-2012 07:32:26
    123Cancel 111 100 N 31-Jan-2012 03:27:29
    I want to write 2 Queries.
    a. input is OrderId, Need to find out how many order's present with status = 'N' after that orderid provided.
    b. input is OrderId, Need to find out what is the previous order with status = 'Y'
    Note: There can be 100's of orders and Status would be Y on first come first serve basis... if one does not have status = 'Y' ie it is 'N' the following order's will never turn to final status = 'Y'.
    There are millions of records in the table.
    Your help for writing this query / logic would be highly appreciated. Am intending to do thru single query.
    Best Regards
    MH Doshi

    select count(*) from order
    where createdon >( select created from order where order_id = &order_id);
    and status = 'N';
    select * from (select a.*, rownum rn from (select order_id from order
    where status = 'Y'
    and createdon<(seelect createdon from order where order_id = &order_id)
    order by createdon)) where rn=1

  • Customer Tax problem

    Customer A/c# XXX was earlier marked as "Taxable" but now it is marked as "Exempt for tax". So SAP should not calculate any Sales tax for this customer.
    But, when I am trying to create Credit/Debit memo's in T.code: VA01 by using
    "Create with reference", for Invoice#YYY.
    Then SAP is pulling up the exact Sales tax in Credit/Debit memo

    Perhaps it is pulling the customer tax info from the originating document (VBAK-TAXK1)
    If you create one without reference and it works OK, that is definitely what is happening
    Drop me some points if that's it !
    Bill

  • Implementing Custom Validation Logic for Payment Disbursements

    Hi All,
    Is there anyone here, who has implemented Custom Validation Logic for disbursements in Oracle payments.
    Theory: Under Payments Setup Administrator -> Formats -> Formats, we can setup a payment format and even attach a XML template. Apart from this we can setup Pre-defined validations or user Defined validations.
    For Pre-defined validations / seeded validations, Oracle has provided an API
    IBY_VALIDATIONSETS_PUB.evaluateCondition. We can use this API, and call a custom package by using the keyword 'CUSTOM' in the call.
    Has anyone played around with this package and successfully implemented custom validations. Does anyone have a sample code on how to implement this. The Payment Manager Implementation guide is of little help.
    Thanks

    This document was very helpful to me in creating a custom validation.
    http://docs.oracle.com/cd/E18727_01/doc.121/e13416/T387353T419293.htm

  • Custom Tax Additions Report

    Hi All,
    A Custom Tax Additions Report is coming up with no data found for a specific book type and a period run.
    Does any one know, what could be the reason? Has anyone faced something like this before?
    Module is 'FA' and its base report I believe is FAS480.rdf
    Thanks,
    Chiru
    Message was edited by:
    Megastar_Chiru

    check the following blog and the how to document
    Fixes Available for Portal Activity Report
    http://wiki.sdn.sap.com/wiki/display/EP/HowtoConfigurePortalActivity+Report

  • Customer tax classification-

    Dear - All
    After defined the customer Tax classification in Customer Master Data- why it isnot coming to my sales order header billing view like 1 2 3 4 .
       Tell me what is the best Key combination for acess sequence to mantain the sales tax condition record..Also i have created in customer master data tax classification like zvat ,zcst ,zser and ztcs, can u help and tell me the best key combination(fields) for which will creat condition table and also acess sequence.
    thanks
    sunil

    Hi sunil
    If u want to get Customer Taxes into Sales Order ..Then u have to do
    1. Customer Tax Classification in Customer Master
    2.  U have keep this MWST Condition type in Pricing Procedure
    3.. U need to create Condition records for MWST Condition type in VK11
    Then u can get Customer tax in your sales order.
    Any quries revert me back
    Regards
    Srinivas.

  • China - Custom Tax, VAT Tax Handling

    Hi SAP friends
    I have the problem of Import custom tax and VAT tax for puchasing.
    It is Domestic Sales scenario. Need to purchase material from oversea vendor.
    Oversea vendor sell mateiral to China company RMB 100 per PC.
    Mainland company needs to pay custom for custom tax 20% and the custom tax is non-deductible. Custom tax is 100*(20%) = RMB 20.
    Then, Mainland company needs to pay China government VAT tax(17%),
    VAT tax is 100(1+custom tax)(VAT tax)-100 = 100(1.2)(1.17) - 100 = 40.4
    So, VAT tax amount = Material price * custom tax * VAT tax
    In PO, I use ZOA1 custom condition type to input Cutom tax amount for Custom tax and input Tax code for VAT tax.
    When good receipt, RMB 120 post to Material stock account. RMB 100 post to GR/IR. RMB20 post to custom account
    It still be fine.
    When do LIV, RMB 100 clear GR/IR. RMB 17 post to VAT tax account becasue it use RMB 100 as base amount to calculate VAT tax. RMB117 post to AP vendor account.
    Actually, mainland company only pays RMB100 to oversea vendor and the Tax amount should be include Custom amount. Corrrect VAT tax amount is 100(1.2)(1.17) - 100 = 40.4 (use RMB120 as base amount to calculate VAT tax), but not only RMB 17 . But, in LIV payment to vendor now is RMB120. It is not fulfill the requirement of mainland company.
    Do anyone have experience about China Import purchasing material. And, would share how to settle the payment of vendor and how to make use (Material price + Custom tax amount) as base amount to calculate VAT tax amount?
    Thanks a lot for your help!
    Mag

    It may helpful hint before going to configure.....abt the tax codes..
    Value Added Tax (VAT) was implemented in China in 1984. Initially, the tax was levied on 24 specified
    items. The need for constructing a socialist market economy system in China resulted in the proclamation
    of 'The Provisional Regulation of the People's Republic of China on Value Added Tax' on January 1, 1994.
    Value Added Tax in China is one of the important sources of fiscal revenues for the government,
    especially the central government. The implementation of VAT is done by the State Administration of
    Taxation while the customs collects the import VAT.
    ..******note this point it may helpful*********
    The revenue earned from VAT is divided between the central (75%) and local government (25%).
    The list of VAT taxable items and the rates in China can be understood from the following:
    Coverage of Collection
    Rate
    Exportation of goods
    Edible vegetable and grain duplicates
    Agriculture, forestry, aquatic products, products of animal husbandry
    Book, magazines, newspapers
    Tap water, cooling, heating, hot air supplying, gas, hot water, natural gas, liquefied petroleum gas,
    coal/charcoal products for household use
    Selected non-metal mineral products, Selected metal mineral products, coal
    Chemical fertilizers, feeds, agricultural machinery, agricultural chemicals, plastic converting film for
    farming 13%
    Crude oil, mine salt and other goods and services not listed above
    17%
    VAT in China is payable by individuals as well as enterprises who are associated with selling
    merchandise, providing services related to processing, repairing and assembling and import of goods.
    VAT Taxpayers in China are categorized into two sections, normal taxpayer and small taxpayer, depending
    on the turnover of the goods and services on sale and the accounting system condition.
    The amount of VAT payable by the normal taxpayer can be calculated by the following:
    Output tax payable for the current period u2013 Input tax payable for the current period = Tax payable
    The amount of VAT payable by the small taxpayer is as follows:
    Sales amount x Applicable rate = Tax payable
    (The applicable rate is 4% for commercial sectors and 6% for others)
    Certain items and services are exempted from VAT. These include the following:
    u2022  Instruments and equipment imported for direct use in scientific research, experiment and education
    u2022  the agricultural production materials as ruled, the self-produced primary agricultural products sold by
    Agricultural producing units and individuals
    u2022  Imported materials and equipment granted, gifted by foreign governments or international organizations
    u2022  Contraceptive medicines and devices
    u2022  Articles imported directly by organizations for the disabled for exclusive use by the disabled
    u2022  Materials imported directly to support the poverty relief and charity cause donated freely by overseas
    natural persons, legal persons and other organizations
    u2022  The taxable services provided by individual disabled laborers
    u2022  Antique books purchased from the public
    Certain reforms have been implemented in particular areas of China in 2004 with regard to the VAT.
    chk the website http://www.cabc.org.cn/news/2006-1-19/2006119145600.html

  • Derivation rule to determine customer tax classification in COPA

    Hi Experts,
    Please guide me to complete this assignment.
    The requirement is to fetch the material tax classification and customer tax classificaion into COPA through derivation rule.
    we can fetch material tax classification through table VBRP.
    Please help me to derive customer tax classification( KNVI-TAXKD) through derivation.
    Customer tax classification data is available in table KNVI.
    But when you consider KNVI table through table lookup it is asking customer, country key and tax category. To define this derivation rule we need tax category values in COPA.
    We can get customer and country key but not tax category.
    How to bring tax category (KNVI-TATYP)
    into COPA to define derivation rule to fetch customer tax classification( KNVI-TAXKD).
    Please suggest me if any alternative solution to bring customer tax classification data into COPA.
    Points will be assigned to usefull answer.
    Thanks in advance.
    Regards,
    Amar.

    HI,
    The Tax related thing are balance sheet items . which can not be considered at CO-PA.
    only revenue item will be considered at Co-pa.
    Hope this is clear
    With regards
    krishna

  • Routines for determine the customer tax classification in VF02

    Hi
    i have to find out how the customer tax classification values is coming in VF02.customer tax classification  value should be '0'.but in my case it is coming '1'.
    i have to find out ,how the calculations has to be done and where should i modify the value.it is an production support issue.
    Please guide me .what are the  possible ways to fix the issue.
    Regards,
    Kiran

    I'm assuming that, the country is India and based on its requirement:
    Sales tax is a state government revenue. There are two types of sales taxes, Local sales tax & central sales tax. Local sales tax is intra state whereas CST is inter state.
    Example of LST : Point of sale i.e. delivering plant & ship to party are within the same state. The rates are defined by the respective state governments.
    Example of CST : The Delivering plant & Ship to party geographic locations are 2 different states. At the point of sales from one state, the ST goes to that state govt. & consignment is despatched to the Ship to party. Once that consignment is received at the ship to party state, sales tax will be levied once the sales is registered there. For this case, the LST that is applicable by the Ship to party further will not be applicable in all probability to be captured in SAP.
    Stock transfer : This does not attract any sales tax. The consignment is transferred from one D plant to another D plant irrespective of inter/intra state sales. The invoice that is accompanied with the consignment thus shall not have any final value. It's a zero value invoice, but the basic prices needed to be mentioned.
    The selling organisations normally needs to register with the sales tax authority of the respective state to have a warehouse or D plant to avoid the double taxation for their dealers/distributors.
    Now, the pricing procedure that is there in 4.7 is Factory sale with formula-JFACT, in which the CST condition type is JIN1 & the LST is probably JIN2. There may be surcharge cond types as well which will calculate the amount on either JIN1 or JIN2.
    For config :
    1.SPRO > S&D > Basic fn. > Pricing > Pricing control > Define & assign Pric. procedure > Maintain Pric proc.
    2. The tax rates are normally driven from the Tax classification of Customer & Material access. To do this config, S&D >Basic fn. > Taxes. You need to include the condition type for country IN in 'Define tax determin rule'.
    3. Same path : But go to Tax relevancy of master records where you configure the condition type & options of rates that will flow to these masters. One needs to understand here properly as u need to have unique combinations for picking the sales tax rates. I will try to demonstrate the smallest example. Let's say, the LST rates are 2%,4% & 0%. I will have two options for material master here. 1 for taxable & 2 for not taxable.
    For customer master, I will have 1-LST 2%, 2-LST4% & 3-LST0%. When I create master records for LST thru VK11 for JIN2, I will chose the access where the combinations of customer & material tax classifications are available. If this access does not exist create it under an access sequence. But normally this is standard. The condition records will look like,
    Cust-Tax classi.          Material tax claasi.        Rate           Tax code
            1                                    1                         2%               A1
            2                                    1                         4%               A1
            3                                    1                         0%               A1
    Remember, rates are flown from the tax codes. Tax codes can be created thru T code FTXP. This is normally a FI job.
    Hope this info helps
    Regards
    Manthan.

  • Customer tax classification determination(VA02/VF02)

    Hi
    customer tax classification is detetmined in VA02 with value '0', but where as in VF02 the value is '1'.
    but we want customer tax classification value '0' in VF02.what would be the root-cause for this problem.
    condition type is MWST and tax code : A4.
    waiting for your response.
    Regards,
    Kiran

    Hi
    Your pricing procedure should have the CTXJ condition and maintain VK11 condition record for CTXJ with 0% value and maintain the relevant Tax Code in that condition record. Based on this tax code the FTXP record will be hit and the tax values maintained there will be determined in the SD document. You need not maintain the VK11 conditon records for your tax conditions JRC1, JRC2 etc.,
    Since you have maintained tax records for the JRC conditons in both VK11 and FTXP, the system might be determining the values twice. You can confirm this point by maintaining two different values for the same condition type (say JRC1) in VK11 and FTXP, create a sales order....and post your observations in the forum.
    Thanks,
    Ravi

  • How to retrive question name in msg in procedure by writing custom coding

    how to retrive question name in message in procedure by writing custom coding.........

    My apologies if I've completely missed the boat on where you are going with this...but it seems to me that embedded values in action messages are meant for variable text. In other words, you reference the question variable you want, but it will pull the actual response each time the detail runs, e.g. \AETERM\ will return whatever that is each time the edit fires.
    If you are meaning to place non-variable text into an action message, generally, the fastest way to do this is to simply type it in. I'm sure there is custom code out there to do this, however, simply typing AETERM doesn't take very long--definitely not as long as developing custom code.
    Again, sorry if I've missed the point entirely.

  • VAT Number link to Customer tax clasification

    Dear All,
    Give your some inputs on VAT number and Customer tax classifications for MWST determination in sales order,
    Please check sales orders in scenrio's
    1. VAT number not given in customer master  in general data - Sold to party.
    SON - 1 where MWST is 0 %, customer tax classification is "0" condition record found  - Sale org/plant/destination country/cust tax clas/mat tax clas
    2500/1000/FR/0/1 - 0 %
    2. VAT number is given in customer master in general data - Sold to party
    SON - 2, Where MWST is 19.6 %, customer tax classification is "1" condition record found - Sale org/plant/destination country/cust tax clas/mat tax clas
    2500/1000/FR/1/1 - 19.6 %
    Where can i check that link between VAT number and customer tax clasification?
    Regards
    Ramakrishna.P

    Hi
    In fact there is no link between VAT number and customer tax classification. See my explanation below
    1. Customer tax classfication is used to determine whether the customer should be taxable or not together with tax codes maintained in FTXP. For e-g Cust tax classification 0 means no tax which is why in your first case there was no tax in the sales order. In your second sales order, cust tax classification was "1" which means full tax and that is the reason your second sales order had outout tax 19.6%. Condition records for taxes are maintained like this (please mind that this is only an example, there could be several access sequences maintained as per the business requirement)....Tax classification 1 then tax code say U1 which means 19.6%, Tax classification 0 then tax code A0 which means 0% tax.
    2. Now coming to the VAT number. This is generally filled in the customer master control data to print it on the invoices. VAT number is more of a legal procedure that this is checked when there is a movement of goods. So if you have a look at European invoices, you will find both seller's and buyer's VAT numbers on the invoice. Secondly, VAT number also exempts VAT for the buyer if the both the transaction occurs within the EU and only if the buyer produces VAT number while placing the order or may be before invoicing is done.
    Hope this helps
    Thanks
    Chandra Kiran

Maybe you are looking for

  • Jobname

    Hi, I have jobs running under a particular user. I want to change these jobs to run under my id. what is the step? like, we need to do something like repeat scheduling etc, what is the exact sequence? By the way , I see a job "BI_WRITE_PROT_TO_APP_LO

  • My 4th gen shuffle does not play more then one type of podcast It will only play this american life even if I have the moth on it.  It play what ever is first on the list

    My 4th gen shuffle only plays the first category of podcast and will not go to the next category, it will only repeat. Example:it will play all pod casts of this american life(first on the list) and not got to the moth (second category on the list). 

  • Network Assistant Credential Management

    Hi I use CNA 6.0 to give me an overview of our network, but I have a few small problems. I am in the process of changing access credentials on the switches, but something has gone wrong with my Catalyst 4510E I wasn't able to change the stored creden

  • Compatability with game consoles?

    I want the best of the best i.e. the simultaneous dual band WRT610(i think) but I need to know if it will work with my Wii/360/PS3/PSP. How do I know if it will work though before I buy it?

  • Graphical view in BPE

    HI , I am Using Sun IDM Version 5.5 . When before I using 5.0 The graphical view of the form appears in the lower right pane of the BPE display. Itdisplays the form HTML as displayed by Identity Manager. Bu tin 5.5 i am not finding out. can any one h