How to get tax amounts related to PO

Dear All,
I have to write a report based on PO and taxes related to it.
I have got the PO details, but how to get the tax details like service tax, Excise , SHcess.
I get some details in KONV table but when I check the PO taxes there are more no. of taxes.
miro  has not been done for that PO.
Please help,
Thanks in advance,
Salman Zahir

Hi,
Please Use the FM : CALCULATE_TAX_ITEM to fetch all taxes pertaining to PO and line Item.
Before this we have to use FM:'REFRESH_TAX_TABLES'.
Check the sample code for your reference.:
LOOP AT it_ekko_ekpo INTO is_ekko_ekpo.
    CALL FUNCTION 'REFRESH_TAX_TABLES'
    EXPORTING
      LIVERY        = 1
    CONCATENATE '0' is_ekko_ekpo-ebelp INTO w_ebelp.
*"--- Assigning values to Taxcom
    is_taxcom-bukrs = is_ekko_ekpo-bukrs.
    is_taxcom-budat = is_ekko_ekpo-bedat.
    is_taxcom-ebeln = is_ekko_ekpo-ebeln.
    is_taxcom-kposn = w_ebelp.
    is_taxcom-mwskz = is_ekko_ekpo-mwskz.
    is_taxcom-lifnr = is_ekko_ekpo-lifnr.
    is_taxcom-matnr = is_ekko_ekpo-matnr.
    is_taxcom-werks = is_ekko_ekpo-werks.
    is_taxcom-land1 = is_ekko_ekpo-lands.
    is_taxcom-wrbtr = is_ekko_ekpo-netwr.
    IF is_taxcom-mwskz IS NOT INITIAL.
*"--- Function Module to get Condition types
      CALL FUNCTION 'CALCULATE_TAX_ITEM'
        EXPORTING
          i_taxcom            = is_taxcom
        TABLES
          t_xkomv             = it_komv
        EXCEPTIONS
          mwskz_not_defined   = 1
          mwskz_not_found     = 2
          mwskz_not_valid     = 3
          steuerbetrag_falsch = 4
          country_not_found   = 5
          OTHERS              = 6.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      DELETE it_komv WHERE kbetr = 0.
      LOOP AT it_komv INTO is_komv.
        is_out-kschl = is_komv-kschl.
        APPEND is_out TO it_out.
      ENDLOOP.
      CLEAR: is_taxcom,
            w_ebelp.
    ENDIF.
  ENDLOOP.
thanks
Eswar Rao

Similar Messages

  • PO: how to get Tax Amount of Invoice Receipt of each Goods Receipt?

    Hi all,
    For a PO, I have got a list GRs with their IRs via table EKBE as below:
    Item 1 -> GR 1 -> IR 1
    Item 2 -> GR 2 -> IR 1
    And I see in table RBKP which have field VAT (WMWST1), this field VAT is VAT amount of IR 1 for both GR 1 & GR 2.
    But I would like to get VAT of IR 1 separately for GR 1 & GR 2 as below:
    Item 1 -> GR 1 -> IR 1 -> I would like to get VAT (tax amount = A USD).
    Item 2 -> GR 2 -> IR 1 -> I would like to get VAT (tax amount = B USD).
    (In table RBKP: field VAT (WMWST1) = C USD = A USD + B USD).
    If anyone know which table I can get A and B separately, please help me?
    Thanks a lot in advance,
    Vinh

    You can pass the Invoice no. + GJAHR (concatenate) to BKPF- AWKEY and output the BELNR.
    Pass BKPF-BELNR to BSEG-BELNR which has fields MWART to identify the tax vlaues (DMBTR or WRBTR).

  • How to get the amount of free physical memory?

    How to get the amount of free physical memory?
    (without sudo or root)

    vmstat will give it to you.
    Although the question depends a bit on what you mean by free memory.
    The figure vmstat labels free (in any reasonably recent version of solaris) actually represents memory mostly filled with cached file contents. So it represents memory that can be easily released if needed by something more important.
    Like most unix versions, solaris will use any free memory to cache files thats have been read/written previously just in case they are needed again

  • How to calculate tax amount

    Hi,
    I am working in driver program of service sheet entry SF. i want calculate Tax Amount of every line item of service entry sheet number.
      tax code, net value, total value  mention in line item but tax amount not.
    then How to calculate tax amount according tax code...............?

    Hi,
    Try with the below function module.
    CALCULATE_TAX_FROM_NET_AMOUNT
    Jshree

  • How to get  Unapplied Amount with SQL or API in AR/ORACLE RECEIVABLES

    Hi ,
    how to get Unapplied Amount with SQL or API in AR/ORACLE RECEIVABLES.
    who can help me ? Thank you very much !

    i get it from private API.
    SELECT SUM(decode(ra.status, 'UNAPP', nvl(ra.amount_applied, 0), 0)) unapplied_amount
    FROM ar_receivable_applications ra
    WHERE ra.cash_receipt_id = 1820
    AND ra.status IN ('UNAPP', 'ACTIVITY')

  • How to get customer no relating to a Business partner No

    How to get customer no relating to a Business partner No . Is that Customer unique ?

    hi arshad,
    based on business partner u can get customer number. both tables having some uniqe field...based on that uniqe field u can identify business partner no.......
    if it is usefull review the points

  • How to extract tax amount in item level from a Purchase order

    Hi experts,
    How to extract the tax amount data for each item in a Purchase order.
    I am using the data sources 2lis_02_itm, 2lis_02_scl, 2lis_02_S012.
    Please provide me which data source brings this tax amount data in item level and also the technical
    field name of tax amount.
    <Removed by moderator - soliciting points for answers is frowned upon>
    Regards,
    Bhadri M.
    Edited by: Arun Varadarajan on Nov 14, 2008 3:55 PM

    Dear Bhadri
    Did you look 2LIS_13_VDKON data source whther it can throw or not for billing related. Here you should look some billing conditions relates to particular document like taxable or not.
    (KAWRT, KAWRT_K, BIWGEO)
    Those informations will be maintained each with billing conditions.
    May not sure. Please look.
    Raju Saravanan

  • How to get tax break up of TDS using SQL query ?

    Hi all,
    We are developing a TDS report using SQL query
    Report will contain VendorCode,Date(ap inv date),Vendor name,
    Bill value,TDS Amount,
    Bill Value – 100.000,
    TDS (2%) - 2.000,
    TDS Surcharge(10% on TDS) - 0.2,
    TDS Cess(2%(TDS+TDS Surcharge)) - 0.044,
    TDS HeCess(1%(TDS+TDS Surcharge)) - 0.022.
    We have developed this report which displays upto
    VendorCode,Date(ap inv date),Vendor name,
    Bill value,TDS Amount.
    How to show tax break up of TDS in SQL query ?
    Thanks,
    With regards,
    Jeyakanthan.

    Hi gauraw,
    Thank for your reply.
    I modified the query , pasted the query
    as below in query generator,
    Select T0.DocNum,T0.DocDate,T0.CardCode as 'Ledger',T1.TaxbleAmnt As 'Bill value',T1.WTAmnt as 'TDSAmt',(TDSAmt * 0.1) as 'TDS_Surch',
    (((TDSAmt0.1) + TDSAmt)0.02)  as 'TDSCess',
    (((TDSAmt0.1) + TDSAmt)0.01)  as 'TDSHCess'
    FROM OPCH T0  INNER JOIN PCH5 T1 ON T0.DocEntry = T1.AbsEntry
    WHERE (T0.DocDate >= '[%0]' and T0.DocDate <= '[%1]')
    on clicking execute its showing error message invalid column
    name 'TDSAmt'.
    With regards,
    Jeyakanthan

  • How to get total amount between two fiscal years

    i Have a report requirement. I have created a crosstab report where I need to get amount of current year current month(10/2010), current year last month(09/2010),last year last month(10/2009). Here I'm comparing  10/2010 amount with 09/2010 and 10/2009. But now my manager asking to me create report that  compare amount between 2008 and 2009 periods.
    How to get that?
    I have a prompts and I entered  1)fiscal year=2009
                                    2)fiscal period= 9;10
                                    3) account numbers=x;y;z;p;q;r;s
    I entered fiscal year:2009 in the prompt but I need to compare  fiscal year 2009(i.e 10/2009) amount with fiscal year 2008(10/2008).              
                                                                2009/09    2009/10   2008/10
    Account number  account name         amount     amount     amount
    In advance,Thanks for your response

    Is your universe based on a BEx query? If so, create the offset variables in the BEx query.
    If the universe is not based on a BEx query, you will need to create these variables in your universe. I do not believe you can do this directly in Webi.

  • How to get - Net amount for accounting doc in the SD doc flow?

    Hi,
    In my report I have to show the net amounts from the Sales doc, invoice and accounting doc, etc.
    I got the FI doc amount from BSEG, however there the gross amount is stored.
    I noticed that in the SD document flow for the accounting document the net amount is shown.
    I tried with the following calculation, however in some cases this doesn't work (eg there is separate tax item in the FI doc):
    "<lwa_bseg>-wrbtr - <lwa_bseg>-wmwst"
    Is there a function module/sap standard code to provide this data?
    Thanks in advance,
    Peter

    when u see the Item Header in SO or Billing , at the Head of Condition table u will get NET amount ?
    are u not maintaining any seperate conditions for this NET amount ?
    have a word with ur functional guys , so he can help u out.
    Regards
    Peram

  • How to get Tax condition's of Purchase Order

    Dear Gurus
    How to get all the condition types  for purchase order listed in the screen where we navigate from
    Purchase Order->purchase order item->invoice->Taxes Push button
    And I' am not saying about header conditions which we get from KONP.
    I' am saying about tax conditions which will get only by entering taxcode in item Invoice tab of Purchase order item.
    Regards,
    Rajeswar

    Hi,
    Tax condtions shd be given by functional consultants.ABAPers cant decide the tax condtions.
    you can have these condtions in KONV table.
    In item level vbrp-posnr = konv-kposn.
                      ekpo-ebelp = konv-kposn
    at header level as said in the below thread
    Just see this and get back if any concerns
    Regards
    Edited by: Rasheed salman on Dec 2, 2008 6:20 AM
    Edited by: Rasheed salman on Dec 2, 2008 6:22 AM

  • How to get sum amount (wrbtr) from table BSIS group by gjahr hkont monat

    Hello! I am new to this forum, and to ABAP. Hope my question is not obvious.
    I want to get sum amount from table BSIS, group by year, period an account. Normally I will try a SQL select like this:
    SELECT gjahr monat hkont sum( wrbtr ) as wrbtr INTO CORRESPONDING FIELDS OF TABLE itab FROM BSIS WHERE (itabcond) GROUP BY gjahr monat hkont .
    The problem is that the amount in field wrbtr is all positive. The result gets wrong. The debet/credit indicator shkzg determines what is positive/negative. How to solve this in the most efficient way? Should I read all accounting documents into an internal table, and loop through them, changing the sign, and then make some new select, or is there a better way?
    Regards Dag-Egil
    Message was edited by:
            Dag-Egil Bull Sletholt

    Here are the objects in the trace list:
    SKB1
    USR05
    TRDIR
    SKA1
    SKAT
    SKB1
    BSIS
    PRPS
    BSAS
    V_LTDX
    USR02
    RFBLG
    V_LTDX
    LTDX
    RTXTH
    RTXTF
    RTXTT
    TRDIR
    The most of this call to this tables returns 1-2 records, apart from BSIS, where it returns 10 records. This is the same as accounting documents in the transaction FBL3N. When i try this again with more records returned I still have no call to table GLT0.

  • India Localization - How to Distribute Tax Amount between 2 Accounts

    Hi Please help me.
    I have a scenario:
    My Client want to take 50% Tax amount to Tax Account and 50% Tax Amount to Expense Account in case of VAT/Excise Duty.
    Example: Transaction Amount is 10000 INR TAX @10% (then tax amount would be 1000) when we calculate the tax 500 should hit Tax Account & 500 should hit Expense Account.
    How to Implement this solutions please help me on this.
    Thanks
    Bharath

    To distinguish between no submission and zero, have 2 keyfigures in your layout. One for Amount, the other for valid value.
    If the user enters zero in amount, they have to put 1 in the keyfigure "valid value" to indicate zero is avalid value. Put this as a check while saving the data. Also, when the data is saved, automatically put a value of 1 in "valid value" keyfigure, for nonzero Amount. In otherwords , all valid amounts 0 and non zero have value 1 in the "valid value" keyfigure.
    this way you can differenciate between 0 and null.
    Hope this helps
    -NS

  • How to show Tax Amount bifurcation separately in A/R Invoice PLD

    Hi
        If total tax amount is 2412. BED is 1599 , Cess is 31 , HSCess is 15 , Vat 765.
        I want to show separately Bed , Sum of Cess+HSCess, Vat.
       Pls Help
    Thanks in Advance

    Hi,
    You may check this thread first:
    Sub: Tax Combinatiom. Tax rate, tax Amount in the print lay out design of t
    Thanks,
    Gordon

  • How to get PO Amount Release in the PO/BAP form

    There is a field in the PO/Blanket Purchase Order from, PO_HEADERS.AMT_RELEASED_DSP , which is calculated when the form open. Does anyone knows if there are any API or program logic to get the amount?
    Thanks in Advance
    Regards
    Lawrence

    Hi,
    Pls refer this link, you will get query
    Blanket Releases Amount
    thanks

Maybe you are looking for

  • Outer Join Performance Issue

    Dear All, Please help me in tuning the below query as it is including the outer join and is going for full table scans. Query : SELECT T27.CONFLICT_ID, T27.LAST_UPD, T27.CREATED, T27.LAST_UPD_BY, T27.CREATED_BY, T27.MODIFICATION_NUM, T27.ROW_ID, T24.

  • Colors print out incorrectly

    When I print out an Illustrator file the color on the paper appears different then on Illustrator. Sometimes it might even be the same exact color, but it would print in two different shades of that color. How can I resolve? Any help would be greatly

  • IPhoto 11: Will not allow me to select photos for upload

    Hello my knowledgeable compadres. I have installed iLife 11 and am running Snow Leopard 10.6.6 on a MacBookPro. I have had no problems with iPhoto 09 but since I've upgraded to the latest version, I am unable to select photos to upload to email, face

  • Some of music didn't make the transfer...

    I was transferring my music from old computer to new.  I put it all onto my external hard drive and when transferring it onto my new computer, some of the music didn't make it due to lack of space.  Now that I have deleted various files, how do I fin

  • Help with and animation

    hi i m trying to make an animation similar to http://sstl.cee.uiuc.edu/java/twostory/index.html i have made a block moving can anybody help me or advice me how to do make some thing similar.. thanks.... package DEMO2; import java.awt.Container; impor