Tax Structure

My client uses the following Tax structure
Non Exempted Projects
(Custom Duty@10% on (Assessable value) + BED@14% on (Assessable Value + Custom Duty) + BED EDU . Cess@2% on (BED) + BED EDU.CESS (S/H)@1% on (BED) + Custom Duty Edu. Cess@2% on (Custom duty + BED + BED EDU.CESS + BED EDU.CESS (S/H)) + Custom Duty Edu. Cess (S/H)@1% on (Custom duty + BED + BED EDU.CESS + BED EDU.CESS (S/H) + Additional Duty of Customs @4% on (Assessable Value+Custom duty + BED + BED EDU.CESS + BED EDU.CESS (S/H) + Custom Duty Edu. Cess + Custom Duty Edu. Cess (S/H)).
Note:  For Capital Goods & Resin the custom duty would be 7.5 % instead of 10 %.
Is it possible to maintain this in SAP B1?
Do I have need to create parameters? and formulas for this?
Regards
Shashi

Hi Shashi,
I suggest you to create a new Tax Type for CVD and let it be of the CENVAT Type as it is a duty and main purpose of making any Tax Type of CENVAT Type is to know how much Duty you have paid while purchasing so that you can Subtract that with your Sales Duty Amount.
Eg
Consider 3 Raw Materials where you have paid BED as follows while Purchasing.
Raw1 Rs 10
Raw2 Rs 5
Raw3 Rs 8
Total Rs 23
from these raw materials you while manufacture Finished Good Fin1 where BED is Calculated to Rs 45
here as you need to pay Rs 45 Duty amount to Govt, as it has come from selling your Finished Product you will only pay
45-23 =  22
and rest Rs 23 you will inform that you had paid that much of Duty amount while Purchasing the Raw Materials to produce that  finished product. these type as i know are usually termed as CENVAT type Tax.
As I'm not that well versed with Finance only know the basic, i would suggest for any further clarifications pls contact your financial consultant, as he would be able to explain better these matters.
I hope this info helps you out
regards,
Shreyas

Similar Messages

  • Creation of New Tax Structure

    Hi
    I want to create a new Tax Structure of  Tax Code  for  -   Vat 14% on 75% Inventorised + S.T.  10.3% on 100% Inventorised.
    Can you help me out the configuration steps.
    Thanks in advance.
    Regards
    Kshipra G

    Hi,
    Create Calculation Procedure  :
    Path :Financial Accounting (New)>Financial Accounting Global Settings (New)>Tax on Sales/Purchases>Basic Settings>Check Calculation Procedure T.code:OBYZ
    Assign Country to Calculation Procedure :
    Path :Financial Accounting (New)>Financial Accounting Global Settings (New)>Tax on Sales/Purchases>Basic Settings>Assign Country to Calculation Procedure T.code: OBBG
    Define Tax Codes for Sales and Purchases :
    Path :Financial Accounting (New)>Financial Accounting Global Settings (New)>Tax onSales/Purchases-->Calculation->Define Tax Codes for Sales and Purchases T.code : FTXP
    Define Tax Accounts  :
    Path:Financial Accounting (New)>Financial Accounting Global Settings (New)>TaxonSales/Purchases>Posting>Define Tax Accounts  T.code : OB40
    Create Tax Conditions and Tax percentage : T.code FV11
    Thanks,
    Raviteja

  • Creating a new tax structure.

    Good morning all,
    Please advise, how to create a new tax structure (the complete steps)?
    Thanks,
    Balaji

    hi balaji,
    Visit service market place(www.service.sap.com)
    documentation.If you are using B version,
    Go to How to guides in modules and features
    and refer document 'Localization in 2005B.pdf'.
    Jeyakanthan

  • Tax structure and setup for Country: SG (Singapore)

    Hi,
    Singapore has a new tax structure staring this year (2008). The tax is broken into slabs on the basis of chargeable income of a company, over the fiscal year.
    In SD, I am able to set tax, with scales - but this is specific to every order. The condition I need to maintain has to trigger only after the company's revenue has reached, say, $100,000.
    Please guide me on how to represent this in SAP R/3.
    Thank you.
    Sowmya

    Hi Sowmaya,
    I will suggest please Go through the Link below to see how this can be configure in SAP. As this is newly Tax structure started by the govt of SG this year,
    http://help.sap.com/saphelp_47x200/helpdata/en/bd/c2753824a34f47e10000009b38f8cf/frameset.htm
    Hope this will help.
    Thanks,
    Raja

  • Tax Structure in US for Automobile industry

    Hi All,
    In India, CIN will be used to maintain Sales tax, local and central tax for automotive Industry like for Maruti or Tata Motors for vehicle sales.
    Similarly what tax structure is used in USA for automobile Industry.
    Regards
    Nidhi

    Check this thread
    [Re: Tax pricing procedure for USA / Canada|Tax pricing procedure for USA / Canada;
    thanks
    G.  Lakshmipathi

  • Tax structure - France

    Hi
    does anybody have any documents / idea about how tax structure is for country France. Please forward it to me
    [email protected]
    or pl share
    pushkaraj

    Hi Sowmaya,
    I will suggest please Go through the Link below to see how this can be configure in SAP. As this is newly Tax structure started by the govt of SG this year,
    http://help.sap.com/saphelp_47x200/helpdata/en/bd/c2753824a34f47e10000009b38f8cf/frameset.htm
    Hope this will help.
    Thanks,
    Raja

  • Tax structure in europe

    Hi,
    How the tax procedure in europe for moving the goods within europe and for the movement fo goods from europe to outside europe countries.
    Can any ne kindly eloborate in detail.
    Thank you.

    Hi,
        For moving the goods from out of europe there is no tax procedure will be applied, But for importer tax wil be applied.
    Thank you
    Sap MM

  • Withholding Tax Calculation Error for Vendor Down Payment Clearing:Oct '09

    Hi,
    We are trying to incorporate the new Withholding Tax Structure w.e.f. 01-Oct-09.
    There were 3 scenarios possible:
    a. Invoice = Down Payment
    b. Invoice < Down Payment
    c. Invoice > Down Payment
    While 1 & 2 were taken care of effectively, the third scenario did not work as expected. The scenario is as follows:
    1. Down Payment (Date : 30/09/09)
    Amt : Rs. 40000/-;
    Withholding Tax @ 15% : Rs. 6000/- (40000 * 15%)
    Surcharge @ 10% : Rs. 600/- (6000 * 10%)
    Edu Cess @ 2% : Rs. 132 (Rs. 6600*2%)
    Higher Edu Cess @ 1% : Rs. 66 (Rs. 6600*2%)
    2. Invoice (Date : 02/09/09) - As per new TDS Rates
    Amt : Rs. 50000/-
    Withholding Tax @ 10% : Rs. 5000/- (50000 * 10%)
    Surcharge : NIL
    Edu Cess : NIL
    Higher Edu Cess : NIL
    3. DPC (Date : 02/09/09) - Reversal of TDS calculated in Down Payment (Step 1) above.
    Issue:
    While making J1INCHLN, amount is adjusted as Rs. -1000/- (hence zero) not payable.
    Also, the Surcharge, Edu Cess & Higher Edu Cess are also getting reversed in DPC.
    As suggested by SAP Note No. 1372734 - Handling of downpayment clearing scenarios after budget '09, the scenario does not seem to work.
    Actual payable should be worked out as under:
    Invoice : Rs. 50,000/-
    DP : Rs. 40,000/-
    Bal : Rs. 10,000/-
    TDS @ 10% : Rs. 1,000/-
    All TDS Challans, Certificates & Returns must reflect Rs. 1000/- in the Challan.
    Require assistance.
    Regards,
    Kapil Tilwani

    Hi Kapil,
    The following needs to be taken care of  -
    The message controls settings as the note suggests must be set as W.
    When entering the details the logic is Vendor Debit amount is Tax amount + 1
    The Vendor credit line, the tax code has to be assigned with the advance amount (amount for which the challan has been created) as the tax base amount and the tax amount will be the extra liability that needs to be created.
    In your example -
    The tax amount will be - 2000 ( the debit at the time of downpayment clearing should have been 4000 instead of 6000)
    Tax base amount -  40000 (Challan for this amount has already been made at the time of downpayment made)
    The vendor Debit - 2001 (2000 + 1)
    The vendor credit - 1
    Note - Tax amount and base amount has to be made manually in the withholding Tax tab for the credit entry.
    Please revert for any clarification.
    Thanks and Regards,
    Anit

  • Tax Analysis Tool | Report | SAP B1 | Localisation India

    I don't know why this thread is not displayed same as I have typed in
    Hi Solution Development Team,
    I guess you are aware of the poor status of legal reports offered by SBO in country india version (I am aware of merging of A,B,C in new version 8.8).
    I fore see if a Tax Analysis tool / Report provided same on the line of Sales Analysis already available at present, then it can be of great help to customer in following ways.
    1. In India the frequency of changes in Legal tax structure is veri high, so even if all the as of date reports are developed then it can change any time.
    2. The proposed solution can be suggested as work around to customers/users.
    The desired tool/report should work as below
    1st Input parameter screen should collect following information from user (you may add more)
    1.a. From Tax Category
    1.b. To Tax Category
    1.c. From Tax Type
    1.d. To Tax Type
    1.e. From Tax code
    1.f. To Tax code
    1.2. Tax combination
    1.3. Select From Date (Posting / Document)
    1.4. Select To Date (Posting / Document)
    1.5. Transaction category (Optional reference A/R Invoice Tax Tab)
    1.6. Check Box ( Multiple choice A/R Invoice , A/P Invoice , A/P and A/R Credit Memo etc Marketing documents same as available in General Ledger report)
    1.7. Radio Button (Summary OR Detailed)
    Once user provides above details then in 2nd screen system should provide following data filterd based on criteria given in 1st screen
    01. BP code and Name (Customer/Supplier)
    02. Document Type
    03 .Document No.
    04. Document Date and Posting Date in separate columns
    05. Item (multiple line for same document only in case of Detailed is selected in 1.7 above)
    06. Tax Category (multiple line for same document only in case of Detailed is selected in 1.7 above)
    07. Tax Type (multiple line for same document only in case of Detailed is selected in 1.7 above)
    08. Tax Combination (multiple line for same document only in case of Detailed is selected in 1.7 above)
    09. Tax Code (multiple line for same document only in case of Detailed is selected in 1.7 above)
    10. Base Amount
    11. Tax Percentage (depend upon the Tax code / Formulla)
    12. Total Tax Amount (as per the choice made in 1.7 above - total document tax in case summary is selected)
    13. Document Total as applicable
    14. Transaction Category
    15. BP Tax Info. Columns (VAT No. / Service Tax No. PAN No. etc all)
    Also bring other columns which you find relavant, user should have option to make visible using form setting
    The chalange I guess in this reporting/analysis is to display tax parameter code wise amount in column format which is stored in row format in system per item line (for reference see details displayed in link of A/R invoice Tax amount column).
    Best Regards,
    Samir Gandhi

    No Body responded very strange !!!!!

  • BAPI_ACC_DOCUMENT_POST tax line items issue

    Hi All,
    i am posting a document using BAPI_ACC_DOCUMENT_POST...
    Please find the below code:
    Populate BAPI item structures
    FORM fill_bapi_item .
    *Local data declarations
      DATA : lv_taxded TYPE bset-fwste,
             lv_taxtot TYPE bset-fwste,
             lv_amt    TYPE wrbtr,
             lv_ref2   TYPE xref2,
             ls_mwdat  TYPE rtax1u15,
             lt_mwdat  TYPE TABLE OF rtax1u15.
    Tax juris code for vendor
      IF gs_item1-koart = gc_v.  " vendor
        gv_tjxcd = gs_item1-txjcd.
      ENDIF.
      gv_item = gv_item + 1.
    Concatenate the legacy number, store and division and pass it
    to field XREF2 of the BAPI
      CLEAR lv_ref2.
      CONCATENATE gs_item1-legacy gs_item1-divsn gs_item1-store
      INTO lv_ref2.
    Fill the GL account structure if the account type is G
    otherwise fill the Vendor structure.
      IF gs_item-koart = gc_g
      OR gs_item-koart = space.  " For offset clearing account
        gs_accountgl-itemno_acc  = gv_item.
        gs_accountgl-gl_account  = gs_item1-newko.
        gs_accountgl-de_cre_ind  = gs_item1-shkzg.
        gs_accountgl-item_text   = gs_item1-sgtxt.
        gs_accountgl-comp_code   = gs_item1-newbk  .
        gs_accountgl-tax_code    = gs_item1-mwskz.
        gs_accountgl-taxjurcode  = gv_tjxcd.
        gs_accountgl-alloc_nmbr  = gs_item1-zuonr.
        gs_accountgl-ref_key_1   = gs_item1-xref1.
        gs_accountgl-ref_key_2   = lv_ref2. " legacy accountstoredivision
        gs_accountgl-profit_ctr  = gs_item1-prctr.
        gs_accountgl-costcenter  = gs_item1-kostl.
        APPEND gs_accountgl TO gt_accountgl.
        CLEAR gs_accountgl.
        CLEAR : lv_taxded, lv_taxtot , lv_amt , ls_mwdat.
        REFRESH : lt_mwdat.
    Fetch the tax amount based on the gross amount, tax code and juris code
        CALL FUNCTION 'CALCULATE_TAX_FROM_GROSSAMOUNT'
          EXPORTING
            i_bukrs                 = gs_header1-bukrs
            i_mwskz                 = gs_item1-mwskz
            i_txjcd                 = gv_tjxcd
            i_waers                 = gs_header1-waers
            i_wrbtr                 = gs_item1-wrbtr
          IMPORTING
            e_fwste                 = lv_taxtot
            e_fwast                 = lv_taxded
          TABLES
            t_mwdat                 = lt_mwdat
          EXCEPTIONS
            bukrs_not_found         = 1
            country_not_found       = 2
            mwskz_not_defined       = 3
            mwskz_not_valid         = 4
            account_not_found       = 5
            different_discount_base = 6
            different_tax_base      = 7
            txjcd_not_valid         = 8
            not_found               = 9
            ktosl_not_found         = 10
            kalsm_not_found         = 11
            parameter_error         = 12
            knumh_not_found         = 13
            kschl_not_found         = 14
            unknown_error           = 15
            OTHERS                  = 16.
        IF sy-subrc NE 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ELSE.
    Calculate the amounts.
          lv_amt = gs_item-wrbtr - lv_taxded.  " Tax deductable.
    Get the GL Account, Condition,etc. for TAX amount
          READ TABLE lt_mwdat INTO ls_mwdat INDEX 1.
          IF sy-subrc EQ 0.
        Do Nothing
          ENDIF.
    Fill the currency structures for GL Account
          gs_curr-itemno_acc = gv_item.
          gs_curr-amt_doccur = lv_amt.           " Net amount after tax
          gs_curr-currency   = gs_header1-waers. " Currency is at header
          APPEND gs_curr TO gt_curr.
          CLEAR : gs_curr.
    Fill the tax structure for GL Account.
          gv_item = gv_item + 1.
          gs_tax-itemno_acc = gv_item.
          gs_tax-gl_account = ls_mwdat-hkont.
          gs_tax-cond_key   = ls_mwdat-kschl.
          gs_tax-acct_key   = ls_mwdat-ktosl.
          gs_tax-tax_code   = gs_item1-mwskz.
          gs_tax-taxjurcode = ls_mwdat-txjcd.
          gs_tax-taxjurcode_deep   = ls_mwdat-txjcd_deep.
          gs_tax-taxjurcode_level  = ls_mwdat-txjlv.
          APPEND gs_tax TO gt_tax.
          CLEAR gt_tax.
    Fill the TAX amount in the currency structure.
          gs_curr-itemno_acc = gv_item.
          gs_curr-amt_base   = lv_taxded.        " Tax
          gs_curr-currency   = gs_header1-waers. " Currency is at header
          APPEND gs_curr TO gt_curr.
          CLEAR : gs_curr.
        ENDIF.
    Vendor
      ELSEIF gs_item-koart = gc_v.
        gs_vendor-itemno_acc  = gv_item.
        gs_vendor-gl_account  = gs_item1-newko.
        gs_vendor-item_text   = gs_item1-sgtxt.
        gs_vendor-comp_code   = gs_item1-newbk.
        gs_vendor-tax_code    = gs_item1-mwskz.
        gs_vendor-taxjurcode  = gv_tjxcd.
        gs_vendor-alloc_nmbr  = gs_item1-zuonr.
        gs_vendor-ref_key_1   = gs_item1-xref1.
        gs_vendor-ref_key_2   = lv_ref2.  " legacy accountstoredivision
        gs_vendor-profit_ctr  = gs_item1-prctr.
        APPEND gs_vendor TO gt_vendor.
        CLEAR gs_vendor.
    Fill the currency structures for vendor(No Tax calculation here)
        gs_curr-itemno_acc = gv_item.
        gs_curr-amt_doccur = gs_item1-wrbtr.
        gs_curr-currency   = gs_header1-waers. " Currency is at header
        APPEND gs_curr TO gt_curr.
        CLEAR : gs_curr.
      ENDIF.
    ENDFORM.                    " FILL_BAPI_ITEM
    But if i post using FB01 and give the tax amount and gross amount, there are 6 items for tax getting created....(sum of 6 items = tax amoutn passed)...
    But when i create using BAPI, one taxx item is created but with total tax amount...
    How to achieve the same way as in FB01(6 items or so)..
    Thanks
    Shiva

    Can you try and use 'CALCULATE_TAX_FROM_NET_AMOUNT' instead of the one you are using and see if you are getting 6 entries?
    In this the tax lines come as an internal table. This is the same FM that SAP uses to derive the tax lines within the standard transaction. Please let me know if this was helpful.
    Thanks and Regards,
    Hari

  • Taxes not picked in the Sales Order

    Dear Friends,
    After creating all the tax structure per jurisdiction and assigned to respective sales orders, when I create a sales order and check for the conditions , i have conditions records for taxes missing.
    it throws the error like..
    "Taxes code AJ in procedure in Taxcode TAXUSJ is invalid".
    I checked tax code assignments and they are all fine..please tell me where do i look for these
    Thank you
    Ravi

    Mr,Laxmipathi,
    Thank you very much for your reply..all the tax codes are maintained correctly for CA..when I am trying to create condition record  for CTXJ..now a new message appears.
    " Condition CTXJ does not allow supplimentary conditions"
    Diagnosis
    Branching to the additional condition screen is only allowed for conditions with a permitted condition type.
    Procedure
    Check the Customizing setting for the condition type. The additional pricing procedure for this condition type is not entered.
    I did check ..but could not trace out..please help.
    Another Question to you:
    Can we bring Shipping Tab which is hidden in Header of Sales Order into one of the Item level Screen Tabs ..(this is my client requirement)..they wan Item Overview, Item Detail to be hidden in that place can this tab appear.?
    Thank you very much well in advance..
    Ravi

  • BAPI_ACC_INVOICE_RECEIPT_POST how to calculate tax

    Hallo folks,
    i can't figuere out how to calculate the tax with the bapi BAPI_ACC_INVOICE_RECEIPT_POST. I already searched the Forums and google but no Solution helped me.
    I don't really get it, which fields i have to fill. For example i do i have to fill the amt_base for every item or just for the tax structure?
        ls_accgl-comp_code  = ls_outtab-zzfaleiemp.
        ls_accgl-tax_code   = 'V3'.
        ls_accgl-profit_ctr = ls_outtab-prctr.
        ls_accgl-sales_ord  = ls_outtab-kdauf.
        ls_accgl-s_ord_item = ls_outtab-kdpos.
        APPEND ls_accgl TO lt_accgl.
        CLEAR ls_curamt.
        ls_curamt-itemno_acc     = l_itemno.
        ls_curamt-currency_iso   = 'EUR'.
        ls_curamt-amt_doccur     = ls_outtab-zzsum.
      ls_acctax-itemno_acc = l_itemno.
      ls_acctax-tax_rate   = '19.000'.
      ls_acctax-gl_account = ls_accgl-gl_account.
      ls_acctax-tax_code   = 'V3'.
      ls_acctax-acct_key   = 'VST'.
      ls_acctax-cond_key   = 'MWVS'.
      APPEND ls_acctax TO lt_acctax.
      CLEAR ls_curamt.
      ls_curamt-itemno_acc = l_itemno.
      ls_curamt-currency   = 'EUR'.
    *  ls_curamt-amt_doccur = l_sum.
      ls_curamt-amt_base   = l_sum.
      APPEND ls_curamt TO lt_curamt.
    Because it doesn't matter what field i fill in TA FB03 there never come any taxes up.
    has anybody some Ideas?
    Best regards
    Mathias

    Hi,
      check the below code
    Read Invoice Work item data
      CLEAR: lwa_inv_header.
      SELECT SINGLE * INTO lwa_inv_header
        FROM zbw_inv_header
      WHERE zinv_id = i_documentheader-zinv_id.
      IF sy-subrc = 0.
    Get history line count
        SELECT COUNT(*) INTO lv_hist_lineid
          FROM zbw_wi_history
         WHERE zinv_id = i_documentheader-zinv_id.
    Get exception line count
        SELECT COUNT(*) INTO lv_lineid
          FROM zbw_wi_exception
         WHERE zinv_id = i_documentheader-zinv_id.
    Get document type
        SELECT SINGLE zdoctype INTO lv_doc_type
          FROM zbw_doc_types
        WHERE zinvtype = i_documentheader-zinvoicetype AND
              zinvind  = i_documentheader-invoice_ind.
        IF sy-subrc <> 0.
          CLEAR t_return.
          t_return-ztype    = 'E'.
          t_return-zmessage = 'Document type configuration is not done'.
          APPEND t_return.
          lv_lineid = lv_lineid + 1.
          CLEAR lwa_exceptions.
          lwa_exceptions-zinv_id  = i_documentheader-zinv_id.
          lwa_exceptions-zlineid  = lv_lineid.
          lwa_exceptions-zstep_id = i_stepid.
          lwa_exceptions-zuser    = sy-uname.
          lwa_exceptions-zdate    = sy-datum.
          lwa_exceptions-ztime    = sy-uzeit.
          lwa_exceptions-zexception = t_return-zmessage.
          MODIFY zbw_wi_exception FROM lwa_exceptions.
          EXIT.
        ENDIF.
    Read posting date config
        SELECT SINGLE * INTO lwa_posting
          FROM zbw_posting_date
        WHERE zarea = i_documentheader-zinvoicetype.
        IF sy-subrc <> 0.
          CLEAR t_return.
          t_return-ztype    = 'E'.
          t_return-zmessage = 'Posting date configuration is not done'.
          APPEND t_return.
          lv_lineid = lv_lineid + 1.
          CLEAR lwa_exceptions.
          lwa_exceptions-zinv_id  = i_documentheader-zinv_id.
          lwa_exceptions-zlineid  = lv_lineid.
          lwa_exceptions-zstep_id = i_stepid.
          lwa_exceptions-zuser    = sy-uname.
          lwa_exceptions-zdate    = sy-datum.
          lwa_exceptions-ztime    = sy-uzeit.
          lwa_exceptions-zexception = t_return-zmessage.
          MODIFY zbw_wi_exception FROM lwa_exceptions.
          EXIT.
        ENDIF.
        IF lwa_posting-zcurrentdate = 'X'.
    Todays date as posting date
          lwa_documentheader-pstng_date = sy-datum.
        ELSE.
          lv_today = sy-datum.
          CLEAR: lv_days,
                 lv_months,
                 lv_years,
                 lv_calcdt.
    Calculate last day of previous month as posting date
          CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
            EXPORTING
              date      = lv_today
              days      = lv_days
              months    = lv_months
              signum    = '-'
              years     = lv_years
            IMPORTING
              calc_date = lv_calcdt.
          IF sy-subrc <> 0.
            CLEAR t_return.
            t_return-ztype    = 'E'.
            CONCATENATE 'Error while calculating the'
                        'Last day of previous month'
              INTO t_return-zmessage SEPARATED BY space.
            APPEND t_return.
            lv_lineid = lv_lineid + 1.
            CLEAR lwa_exceptions.
            lwa_exceptions-zinv_id  = i_documentheader-zinv_id.
            lwa_exceptions-zlineid  = lv_lineid.
            lwa_exceptions-zstep_id = i_stepid.
            lwa_exceptions-zuser    = sy-uname.
            lwa_exceptions-zdate    = sy-datum.
            lwa_exceptions-ztime    = sy-uzeit.
            lwa_exceptions-zexception = t_return-zmessage.
            MODIFY zbw_wi_exception FROM lwa_exceptions.
            EXIT.
          ENDIF.
          CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
            EXPORTING
              day_in            = lv_calcdt
            IMPORTING
              last_day_of_month = lwa_documentheader-pstng_date
            EXCEPTIONS
              day_in_no_date    = 1
              OTHERS            = 2.
        ENDIF.
    Populate the header data
        lwa_documentheader-obj_type       = 'IBKPF'.
        CONCATENATE sy-datum sy-uzeit lwa_documentheader-comp_code
          INTO lwa_documentheader-obj_key.
        lwa_documentheader-obj_sys        =  sy-sysid.
        lwa_documentheader-username       =  sy-uname.
        lwa_documentheader-header_txt     =  'HD BAPI Test'.
        lwa_documentheader-comp_code      = i_documentheader-comp_code.
        lwa_documentheader-fisc_year      = i_documentheader-zfisc_year.
        lwa_documentheader-doc_date       =  i_documentheader-doc_date.
        lwa_documentheader-trans_date     = sy-datum.
        lwa_documentheader-fis_period     =  i_documentheader-zfisc_period.
        lwa_documentheader-doc_type       =  lv_doc_type.
            ALL ITEM DATA                                               *
    Populate Account payble data
        CLEAR lt_accountpayable.
        lt_accountpayable-itemno_acc      = 1.
        lt_accountpayable-vendor_no       = i_documentheader-zvendor.
        lt_accountpayable-item_text       = 'Webdesk invoice posting'.
        APPEND lt_accountpayable.
        clear lt_accountpayable.
    Populate the currency for Account payble
      CLEAR lt_currencyamount.
      lt_currencyamount-itemno_acc      = 1.
      lt_currencyamount-currency        = i_documentheader-currency.
      lt_currencyamount-amt_doccur      = i_documentheader-gross_amount * -1.
      APPEND lt_currencyamount.
      clear lt_currencyamount.
    Loop the GL table
        CLEAR lv_errfl.
        LOOP AT t_glacc.
          CONCATENATE i_documentheader-supcountry t_glacc-tax_code
            INTO lv_vakey SEPARATED BY space.
          SELECT knumh INTO lv_knumh
           UP TO 1 ROWS
            FROM konh
           WHERE vakey = lv_vakey.
          ENDSELECT.
          IF sy-subrc = 0.
            SELECT SINGLE kbetr INTO lv_kbetr
              FROM konp
             WHERE knumh = lv_knumh.
            IF sy-subrc <> 0.
              lv_errfl = 'X'.
            ENDIF.
          ELSE.
            lv_errfl = 'X'.
          ENDIF.
          lv_kbetr = lv_kbetr / 10.
          IF t_glacc-tax_base_amount IS INITIAL.
            lv_taxamt  =  ( i_documentheader-gross_amount * lv_kbetr ) / 100.
          ELSE.
            lv_taxamt  =  ( t_glacc-tax_base_amount * lv_kbetr ) / 100.
          ENDIF.
    Populate the GL data
          lt_accountgl-itemno_acc           = 2.
          lt_accountgl-gl_account           = t_glacc-gl_account.
          lt_accountgl-tax_code             = t_glacc-tax_code.
          lt_accountgl-acct_key             = t_glacc-zacct_key.
          lt_accountgl-item_text            = 'Webdesk invoice posting'.
          APPEND lt_accountgl.
          clear lt_accountgl.
          CLEAR lt_currencyamount.
          lt_currencyamount-itemno_acc        =  2.
          lt_currencyamount-currency          =  i_documentheader-currency.
          lt_currencyamount-amt_doccur        =  t_glacc-item_amount - lv_taxamt.
          APPEND lt_currencyamount.
          clear lt_currencyamount.
          IF NOT t_glacc-tax_code IS INITIAL.
    Populate the Tax data
            lt_accounttax-itemno_acc = 3.
            lt_accounttax-gl_account = t_glacc-ztaxgl_account.
            lt_accounttax-tax_code   = t_glacc-tax_code.
            lt_accounttax-acct_key   = t_glacc-zacct_key.
            APPEND lt_accounttax.
            clear lt_accounttax.
            CLEAR lt_currencyamount.
            lt_currencyamount-itemno_acc        =  3.
            lt_currencyamount-currency          =  i_documentheader-currency.
            lt_currencyamount-amt_doccur        =  lv_taxamt.
            IF t_glacc-tax_base_amount IS INITIAL.
              lt_currencyamount-amt_base          =  i_documentheader-gross_amount.
            ELSE.
              lt_currencyamount-amt_base          =  t_glacc-tax_base_amount.
            ENDIF.
            APPEND lt_currencyamount.
            clear lt_currencyamount.
          ENDIF.
        ENDLOOP.
        IF lv_errfl = 'X'.
          CLEAR t_return.
          t_return-ztype    = 'E'.
          CONCATENATE 'Error while calculating the'
                      'Tax amount'
            INTO t_return-zmessage SEPARATED BY space.
          APPEND t_return.
          lv_lineid = lv_lineid + 1.
          CLEAR lwa_exceptions.
          lwa_exceptions-zinv_id  = i_documentheader-zinv_id.
          lwa_exceptions-zlineid  = lv_lineid.
          lwa_exceptions-zstep_id = i_stepid.
          lwa_exceptions-zuser    = sy-uname.
          lwa_exceptions-zdate    = sy-datum.
          lwa_exceptions-ztime    = sy-uzeit.
          lwa_exceptions-zexception = t_return-zmessage.
          MODIFY zbw_wi_exception FROM lwa_exceptions.
          EXIT.
        ENDIF.
               CALLING BAPI                                             *
        CLEAR lwa_wi_history.
        lwa_wi_history-zinv_id  = i_documentheader-zinv_id.
        lwa_wi_history-zlineid  = lv_hist_lineid.
        lwa_wi_history-zstep_id = i_stepid.
        lwa_wi_history-zuser    = sy-uname.
        lwa_wi_history-zdate    = sy-datum.
        lwa_wi_history-ztime    = sy-uzeit.
        CLEAR: lt_return[].
        CALL FUNCTION 'BAPI_ACC_INVOICE_RECEIPT_POST'
          EXPORTING
            documentheader = lwa_documentheader
          IMPORTING
            obj_type       = obj_type
            obj_key        = obj_key
            obj_sys        = obj_sys
          TABLES
            accountpayable = lt_accountpayable
            accountgl      = lt_accountgl
            accounttax     = lt_accounttax
            currencyamount = lt_currencyamount
            return         = lt_return.
    Thanks & Regards,
    Sateesh.

  • Setting up tax in R12

    Hi,
    I have to setup new tax structure. My requirement is as follows:
    we have vendors outside Switzerland, we have to pay VAT on the payment of every purchase. In order to post these VAT amount paid to vendor of different countries we need to define new GL accounts and those should be attached to new tax classification code which we select at line level in AP workbench form.
    I know that we have to setup new tax rates for this under some regime. My question is, do I have to create a new regime if suppose vendor is from Italy? and have to setup the whole structure for this regime? Also what is configuration Owner? and Global configuration Owner?
    Please suggest any documentation or case study. Your help is appreciated.
    Thanks,

    That is correct. The reason for having the same under the Payables Manager responsibility is backward compatibility reasons. Also there may be customers who might not license the CE module but will need this setup for having Payables work.
    Thanks

  • Excise tax calculation

    Dear Cons
    we know the excise duty(BED) calculation is based on  the basis price.But THE EDUCATION CESS AND SEC. EDN. CESS calculation is on the BED.As per the client requirement  we want to add some other condition type (ZJCV).As per the requirement the calculation of  edn. cess as well as sec. edn cess should  be based on BED+ other codition type (ZJCV) Value.
    Is it possible in standard system. PL. help me.

    Hi,
    Yes it is possible in CIN. One way is to create a Tax Code (FTXP) for the new and assign all the values ( Excise  Duty Conditions and Taxes applicable) in the Tax Structure.
    When ever you will apply select Tax code all the Value will come automatically in the Pricing.
    Hope this helps,
    Best regards
    Amit Bakshi

  • Calculating tax liabilities and report to GREs

    Hi all,
    Sorry I'v recently learnt "Oracle HRMS", however,
    How can I calculate tax liabilities and report to GREs, in oracle payroll?
    Thank You,

    Don't feel sorry for learning Oracle HRMS :)
    Depending on your legislation you are implementing the tax structure and other Statutory deduction will Vary,so you can refer the Oracle Payroll User Guide to your legislation
    Regards
    Ramesh Kumar S

Maybe you are looking for

  • Ipod not being recognised, but with a twist

    Hi, My ipod nano 5th Gen is not being recognised on my computer. It is now being recognised by the computer itself sometimes, but not itunes. However, when I plug my ipod into my partners laptop, its fine. More to the point, when they plug their's in

  • BI 7.0 Reporting Clarifications

    Dear all, We have specific requirements in our WEB reporting as listed below, could anyone let us know the possibilities of doing these ? 1. Word Wrap - Column Headings for Characteristics (We are aware that it is possible for Key Figure Column Headi

  • Why can't I verify an 'eu' email address ?

    I have an 'eu' email adress ([email protected]) from which I would like to send emails, but BT Yahoo will not let me verify it, despite me following the '553' procedure correctly. My other '.co.uk' addresses are no problem, but it doesn't seem to lik

  • IE is not Working

    Hello, I have Windows 8 computer and I am using Internet Explorer since I purchased Windows 8 Computer. Since yesterday I am facing an issue with IE. The IE app in the Start screen is working but whenever I start IE from my desktop, Its not Opening e

  • If i have a cd with scratches, will iTunes Match give new version?

    I have an old CD I imported into iTunes.  Chicago 18.  It has a lot of scratches (it was my first CD from 1988).  As I read the sheet for iTunes match, it sounds like a DRM high quality version will be matched and available for download.  How do I ge