BAPI - Tax Classifications Details

Hi Experts,
When we create material using "MM01", say we are choosing Basic Data 1 and Sales : Sales Org Data 1 Views. After entering details like Plant, sales organization and Dist channel and enter to create material details.
When u go to Sales : Sales Org 1 section, down under u can see Tax Data.
Here most of details are populated like Country, Key, Tax category, tax info. Only taxkm needs to be selected. Which is either 1 or 0.
Now same case, i am doing using BAPI_MATERIAL_SAVEDATA.
I need to create materials and also tax class.
I am passing taxkm = 1. However when i execute that BAPI, it says Tax category is missing.
If u see using MM01, Those details are populated automatically.
So i am unable to draw any links between this. Checked if Those details are populated automatically from MARC or MARD or MARA or MVKE tables, but no links.
Can anyone suggest me on that please as how can i use BAPI_MATERIAL_SAVEDATA to update Tax classification with TAXKM value 1 for all materials created.
Thank You,

The FM STEUERTAB IDENTIFY will return the country and category for the required tax classifications. I used it in my BAPI_MATERIAL_SAVEDATA calling program.
CALL FUNCTION 'STEUERTAB_IDENTIFY'
     EXPORTING
*     KZRFB                       = ' '
       VKORG                       = im_material_create-SALES_ORG
       BUKRS_VKORG                 = im_material_create-SALES_ORG
       VTWEG                       = im_material_create-DISTR_CHAN
     TABLES
       STEUERTAB                   = lt_STEUERTAB
*   EXCEPTIONS
*     WRONG_CALL                  = 1
*     VKORG_BUKRS_NOT_FOUND       = 2
*     STEUERTAB_EMPTY             = 3
*     OTHERS                      = 4
   IF SY-SUBRC <> 0.
* Implement suitable error handling here
   ENDIF.
LOOP AT lt_STEUERTAB into ls_STEUERTAB.
   move ls_STEUERTAB-ALAND to ls_TAXCLASSIFICATIONS-DEPCOUNTRY.
   move ls_STEUERTAB-TATYP to ls_TAXCLASSIFICATIONS-TAX_TYPE_1.
   move '1' to ls_TAXCLASSIFICATIONS-TAXCLASS_1.
   append ls_TAXCLASSIFICATIONS to lt_TAXCLASSIFICATIONS.
ENDLOOP.

Similar Messages

  • Tax Classifications Details maintained in mateiral master

    Hello Experties ,
    How can I get the data maintained in material master (sales org 1) i.e material and taxcategary maintained in for perticular material master..??
    I have gone through diff forums and gone through below tables but not found the relation for material & tax categary in table.
    TSKM
    MLAN
    Thanks
    PR

    Tax category is configured in ovk1 based on country and table mlan have all the data regarding that
    i.e
    Tax category matained for IN
    MWST      seq 1
    XYZ1        seq 2
    ABCD       seq 3
    In table MLAN by putting entry of Material number and country
    You can get that details
    Tax classific.  (TAXM1)
    Tax classific.  (TAXM2)
    Tax classific.  (TAXM3)

  • Need name of a function module or BAPI to update the Tax Classification val

    Hi Guru's
    Need name of a function module or BAPI to update the Tax Classification value for Material master.
    Thanks in advance.

    Hi
    U can try to use BAPI_MATERIAL_SAVEREPLICA
    Max

  • Passing Multiple Tax classification in LSMW BAPI method

    Dear All,
    Iam using LSMW BAPI method to create and change material master. I need to pass multiple tax classification values for a single material. How can I do this. The structure used in the BAPI for passing the tax classification data is MLAN. How can I create multiple numbers of this structure. Can anybody help me please.
    Thanks in advance
    Prathib

    do you have this multiple records already in the source? Or not at all in the source?
    background for tax classification
    There is customizing to assign plants to sales organization.
    Each plant has an adress with a country.
    SAP collects all the plant countries and saves them in the tax classification table MLAN.
    Eg. if this material A has a sales org EAST that can sell from plants in JP, AU, and SG
    then you will see these 3 countries in the sales org view segment tax classification
    In case you dont have any tax classification data in the source, then it you can do it like this:
    goto the __END_OF_RECORD__  statement of  E1BP_MLAN segment in your LSMW and enter it directly as code:
    do the transfer_record as often as you need .
    DEPCOUNTRY = 'JP'
    TAX_TYPE_1 = 'MWST'
    TAXCLASS_1 = '1'
    transfer_record.
    DEPCOUNTRY = 'AU'
    TAX_TYPE_1 = 'MWST'
    TAXCLASS_1 = '1'
    transfer_record.
    DEPCOUNTRY = 'SG'
    TAX_TYPE_1 = 'MWST'
    TAXCLASS_1 = '1'
    transfer_record.

  • BAPI to create tax classification for business partners

    Hi all,
    I'm trying to create tax classification for a business partner (situated in the tab Control) from a BAPI.
    I tried to use BAPI BUTX_FRG0010_CREATE, but I always receive an error...
    Does someone know how to implemnt this ? Or do I need to use another fm ?
    Thanks in advance !
    kr,
    Björn

    Hello,
    I should have mentioned that I'm creating Business partners in ERP, and not in CRM
    The error I receive is this one :
    Tax classification     does not exist
    The data I specify in the table is the same dataI fill in when creating a business partner manually.

  • BAPIs for Equipment list, Equipment classification details

    Hi,
    Can somebody give me the details of BAPs for getting
    1.    Equipment list for a given function location.
    2.    Equipment classification details for the given equipment number.
    Thanks & Regards
    Lakshminarayanan J

    Hi,
    what do you mean with details? Do you need the fields? You can do a double click on the data type of the details filled for browsing deeper into the structure of the details. Or you can use TCODE SE11 and check the type in the data dictionary.
    Best Regards,
    Marcel

  • Uploading TAX Classification data in material master

    Hi,
    I have to upload tax classification data in material master for countries DE,IT,FR,ES,CH and GB.
    I have used BAPI_MATERIAL_SAVEDATA and passing values to table TAXCLASSIFICATIONS.
    But bapi is uploading tax classification only for country DE.
    When I am creating through MM02 its getting updated.
    Can anybody tell me what is the problem ?

    Hi Ganga,
    Yes I am passing different countries to table .
    LOOP AT IT_STAX into WA_STAX.
           wa_taxclassifications-depcountry = wa_stax-aland.
            wa_taxclassifications-tax_type_1 = wa_tstl-tatyp.
            wa_taxclassifications-taxclass_1 = wa_stax-taxm1.
            wa_taxclassifications-tax_ind    = wa_stax-taxim.
            APPEND wa_taxclassifications TO it_taxclassifications.
    ENDLOOP.
        CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
          EXPORTING
            headdata           = wa_headdata
          TABLES
            taxclassifications = it_taxclassifications
            returnmessages     = it_return[].

  • Tax classification for sales order before ECC

    Hi expert,
    We have recently upgraded from 4.6C to ECC6.0 and noticed the following
    issue, please kindly advise. Thanks.
    The tax classification for one of the regular customer has always been
    maintained as ‘0’ (Tax Exempt).
    In 4.6C, in the sales order condition tab, the system will auto
    calculate and reflect the output tax amount automatically for this
    regular customer.
    However, in ECC6.0, with the same customer and material, the sales
    order will no longer auto calculate and reflect the output tax amount
    anymore.
    Nevertheless, if we maintain the customer tax classification field
    as ‘1’ (Liable for Taxes) before raising the sales order, or if we
    amended the sales order tax classification field manually as ‘1’, then
    the output tax amount will auto calculte and reflect as expected.
    We would like to know why is there such differences between 4.6C and
    ECC6.0. What should be the proper standard behaviour and if there is
    any actions required be get the system to perform as per in 4.6C?
    Please kindly advise. Thanks.
    Best Regards,
    Vincent

    Hi,
    I am sure you must have done some of the analysis already on these points but it does not harm to do it again: 
    1) Check the Customer Master and check the Tax Category of the Customer to make sure that it is maintained as 0;
    2) Check the Tax Record [MWST Tax Condition Type normally] for whichever tax table you are maintaining it for exists 
    3) Check in the Condition Tab in Pricing Details if you are finding the assess to the Tax Records happening for the Customer and Material combination.
    If you find any of these three as the smoking gun you should be good.
    I do not think personally that if the issue is only with one customer that this is an upgrade issue. Even otherwise, Tax related stuff has not changed in anyway between those versions.
    Get back to me if you have any questions.
    Thanks.

  • Updating the Customer & Material Tax Classification via LSMW only

    We need to update the Customer and Material Tax Classification via LSMW only, in such a way that on the updation of the Tax classifications the Customer Master and the Material Master should be updated automatically.
    Please let me know if anyone has done the same also it would be really helpful if you can provide me the details.
    Regards,
    Arindam

    Hi,
    It's not clear your question to me.
    Do you want to update the Tax classification in the customer master & Material master?
    I did same, but with 2 different LSMW"s as there is not link between customer master & Material master.
    To update customer tax classification -
    In that you have to feed relevant customer numbers with sales areas & relevant tax classification for one LSMW.
    To update Material tax classification -
    In that you have to feed relevant material numbers with sales areas & relevant tax classification for different LSMW.
    Best regards,
    Anupa

  • Tax Classification picking 1 and not 0 in sales order

    i changed the tax classification for MWST from 1 to 0 in customer master and raised a sales order, but the sales order is picking 1 for tax classification instead of 0. i have maintained the conditions for MWST using vk11 and i have specified 0 amount for the destination country in vk11 yet in the sales order, the tax classification picks 1. please help

    Hi,
    Pls reer this link:
    http://www.freesaptutorial.com/pricing-concept-fundamental-in-sap-sd/
    In this you'll find how to check the pricing analysis towards the end of the page, please do that and share the details?
    Regards
    RS

  • Sales view / Tax classification upload in material master - LSMW

    Hi All,
    While Creating in  LSMW using RMDATIND Batch input method for material mater creation . I am getting an error of "you have not fully maintained tax classification" (M172 error message).
    LSMW details are as follows:
    Project, sub-proj, object : SCIMM,SCIMM,SCI_MM_CREATE
    Please suggest the field value mapping section of LSMW and suggest me how to fix the problem.
    When I create masters manually, in sales view/tax classification 4 tax categories (3 for CA CTX1,CTX2,CTX3 and one for US UTXJ) are getting populated automatically and I need to key-in only 0 or 1 for tax values (ex material :KCC9800MEKIT for sales org 2000, dc 70, dv 70).
    Please sugget me how to fix this issue.
    thanks
    PRadeep

    Hi Murugesh,
    Thanks for your response on this query. I read the link contents.
    LSMW TAX classification for materials
    In the above thread, you have specified
    1. If you have a separate file for tax codes to be applied for different materials then you need to map the records of this file to BMMH2 ( multiple records for a material possible for different countries). Then you need to map BGR00, BMM00 & BMMH1 with another header file with one record for material for the corresponding records on file which correcponds to BMMH2.
    I require your help to implement the above step. As mentioned by you, I have 3 tax codes for CA and one for US (2 diff countries) for each material to be maintained in Tax classification.
    I have created a main source structure  SS which has fields for all views (basic view, sales view, purchasing, plant/sloc and warehouse). I have created a substructure SSTAX for main source structure SS for Tax fields (Aland, taxty,taxm1) and assigned to BMMH2. Will this work or we need to create two  source structure (at same level) for this requirement.
    I am bit confused on how to link these two input files.  I created one record for material xyz in header file and 4 records in tax file (4 tax categories ctx1,ctx2,ctx3 and utxj). How to create one to one relationship working between header and tax file. How the tax file structure will be for 10 material records?
    LSMW Direct Input Method RMDATIND tax classification material
    In the above thread, I find difficulty to follow your steps for same tax data applicable for all materials.
    1.enable the
    Extras->DisplayVariant
    In LSMW transaction, I find diffculty to locate the above option.
    from the menu of the LSMW & check all the check boxes. Now you see the
    __END_OF_RECORD__
    for the structure
    BMMH2which has to be mapped with the input structure in the Maintain structure relations step.
    double click on the __END_OF_RECORD__
    Again I find difficulty to follow the above step. Please explain me step by step to reach below abap editor step.
    which will lead to ABAP editor & then put the following code:
    Canada
    bmmh2-stype = '3'.
    bmmh2-aland = 'CA'.
    bmmh2-taty1 = 'CTX1'.
    bmmh2-taxm1 = '1'.
    transfer_record.
    bmmh2-stype = '3'.
    bmmh2-aland = 'CA'.
    bmmh2-taty1 = 'CTX2'.
    bmmh2-taxm1 = '1'.
    transfer_record.
    Thank you very much for your help and time. I am sure this will be helpful for Pradeep as well.
    Thanks and regrads
    Varadharajan

  • Sales view / Tax classification upload in material master

    Hi All,
    While Creating in  LSMW using RMDATIND Batch input method for material mater creation . I am getting an error of "you have not fully maintained tax classification" (M172 error message).
    LSMW details are as follows:
    Project, sub-proj, object : SCIMM,SCIMM,SCI_MM_CREATE
    Please suggest the field value mapping section of LSMW and suggest me how to fix the problem.
    When I create masters manually, in sales view/tax classification 4 tax categories (3 for CA CTX1,CTX2,CTX3 and one for US UTXJ) are getting populated automatically and I need to key-in only 0 or 1 for tax values (ex material :KCC9800MEKIT for sales org 2000, dc 70, dv 70).
    Please sugget me how to fix this issue.
    thanks
    PRadeep

    HI,
    instead of LSMW..try with BDC by SHDB---batch input transaction recording.

  • Tax classification not fully maintained

    Hi Gurus,
    I am uploading the MM sales data by using LSMW using direct input method RMDATIND program. while uploading i ma getting a error message as 'You have not fully maintaine the tax classification'. But while i am crating manually in the table control DIfferent countries are automatically coming(CH, IT, NE) in ALAND filed(in the transaction (MM01). all the customizations are done properly. but still i am getting same problem. is there any other program for upload data for MM Sales. BAPI or Stadard program. Thanks in advance.

    the sales organisation are linked to plants. depending on the plants country a record is expected for tax classification.
    So if you have to load records from different sales orgs, then you may have different countries for the tax classification.
    Each country needs to have an individual record in structure BMMH2
    see as well this thread:
    Re: LSMW Direct Input Method RMDATIND tax classification material

  • Tax classification field to be fill automatically in material master

    Hi Friends,
    Is there any settings to fill automatically the tax classification fields In material master under sales : sales org 1 tab, tax  data.
    Could you please explain where we have to set the combination of country , taxcategory and tax classification. I have bit confusion about this relation ship.
    My client requirement is to fill tax classification(Default 1 full tax) automatically while creating the material master data. Kindly guide me how to proceed in this regard...
    thanks in advance,
    Durga , sap sd

    Dear Durga,
    You want to know "Is there any settings to fill automatically the tax classification fields In material master..." . NO, there is no settings to maintain those filled automatically. because you are maintaining master data. and from master data those information are proposed to sales order.
    your second query regarding combination of country, tax category, tax classification. If you want to maintain the combination of country, tax classification(1.tax classification of customer and 2. tax classification of material.), you need to maintain proper combination of fields in the pricing procedure.(...basic function>pricing>pricing control>Define condition table). here you have to put the fields in the field catelog and create the table.(that mean a table should be include those fields). And secondly the Tax Classification, you have to maintain in customer master and material master (where you maintain tax details. e.g, 0-tax exempt, 1-taxable etc.). And finally you have to maintain condition record of pricing (vk11) mainting value in those respective fields.
    I think above info will help you. any further query, plz inform me.
    Thanks

  • TAX CLASSIFICATION (CREATION OF SALE ORDER)

    Hello
                 When we are creating a sale order, we will select the tax classification code like VAT & CST. It Depends upon the consingee address.
    My question, while selecting the tax classification code, I am able to see both types of codes(VAT & CST). I need to display only single type of codes, like if consignee is local, then only vat codes must be displayed and if consignee address is out of the state, only CST tax codes must be displayed.
    how to do this one. should I take any ABAP help or directly we can set from functional side.
    Thanks & Regards
    Maheshwar Rao. G

    Hi,
    When we are creating a sale order, we will select the tax classification code like VAT & CST.
    Do you mean you are manually changing/Selecting the tax classification in the sales order??? If yes, then you can maintain the same in the customer master--Biling tab(VAT or CST what ever is applicable) and system will pick the same autoamatically.
    In sales order, SAP has given the flexibilty to change the tax classification, and based on the combination that is maintained in VK11, system will pick the condition record. As specified, table 368 gives the combination for maintaining the condition record.
    Regards
    Vamsi

Maybe you are looking for

  • In Finder , why i can't go back and forward using the trackpad in Mountain Lion?

    In Finder , why i can't go back and forward using the trackpad in Mountain Lion?

  • Standard footer in different reports

    Hi, Does anybody know whether it is possible to reuse the same footer in different reports? The same footer information will be used in a number of different reports. There is a code to retrieve this information. Is it possible to invoke this footer

  • Registering managed beans

    Hello all, In this blog http://www.jaypillai.com/2012/01/21/adf-using-a-managed-bean/ and in Oracle documentation, it says that managed beans should not be registered in face-config.xml in Fusion web applications. Can someone please help me understan

  • About file download

    hi, Can i show the link in the table?When i click it, i can down load the files. Thanks very much!

  • Email freeze

    I just migrated my data from an older iMac to a new 2009 iMac and my mail will not open a viewer window except when I do it manually. The mail will not connect even though my settings work fine. I can receive email at the address on my iPhone with no