Displaying Taxes As per taxes in PO item

Hi,
  I have a requirement, when user se the PO in ME23N  when at item level, when we click on taxes  we can see the tax window  which shows the basic amount  and al the tax details ,  I want to print that on the SAPSCRIPT from in the same sequence,
so is there any FM fo for this with taht I can see the taxes as in PO.
regards,
  zafar

Hi,
I faced the Same Problem for 'BASB' value - ME23N --> Invoice --> Taxes Button
Giving you the Source code of a Z- Func. Module .
Hope It'll help to get Req.
*       GLOBAL DECLARATION
  TABLES: ekko, ekpo, taxcom, t001.
  DATA: v_kalsm TYPE t005-kalsm,
        wa_komv LIKE komv,
        t_netwr TYPE bwert,
        bukrs LIKE ekko-bukrs.
  SELECT SINGLE * FROM ekko
                  WHERE ebeln EQ v_ebeln.
  SELECT SINGLE * FROM ekpo
                 WHERE ebeln EQ v_ebeln
                   AND ebelp EQ v_ebelp.
  CHECK ekko-bukrs NE space.
  IF ekpo-bukrs EQ space.
    ekpo-bukrs = ekko-bukrs.
  ENDIF.
  MOVE ekko-bukrs TO bukrs.
  SELECT SINGLE * FROM t001 WHERE bukrs EQ ekpo-bukrs.
  CHECK sy-subrc EQ 0.
  CHECK ekpo-mwskz NE space.
  CLEAR taxcom.
  taxcom-bukrs = ekpo-bukrs.
  taxcom-budat = v_date.
  taxcom-waers = ekko-waers.
  taxcom-kposn = ekpo-ebelp.
  IF v_mwskz IS INITIAL.
    taxcom-mwskz = ekpo-mwskz.
  ELSE.
    taxcom-mwskz = v_mwskz.
  ENDIF.
  taxcom-txjcd = ekpo-txjcd.
  taxcom-shkzg = 'H'.
  taxcom-xmwst = 'X'.
  IF NOT v_netpr IS INITIAL.
    IF v_menge IS INITIAL.
      taxcom-wrbtr = v_netpr * ekpo-menge.
    ELSE.
      taxcom-wrbtr = v_netpr * v_menge.
    ENDIF.
  ELSE.
    IF v_menge IS INITIAL.
      taxcom-wrbtr = ekpo-netwr.
    ELSE.
      taxcom-wrbtr = ekpo-netwr *
                     ( v_menge / ekpo-menge ).
    ENDIF.
  ENDIF.
  taxcom-lifnr = ekko-lifnr.
  taxcom-land1 = t001-land1.
  taxcom-ekorg = ekko-ekorg.
  taxcom-hwaer = t001-waers.
  taxcom-llief = ekko-llief.
  taxcom-bldat = ekko-bedat.
  taxcom-matnr = ekpo-ematn.
  taxcom-werks = ekpo-werks.
  taxcom-bwtar = ekpo-bwtar.
  taxcom-matkl = ekpo-matkl.
  taxcom-meins = ekpo-meins.
  taxcom-mglme = v_menge.
  taxcom-mtart = ekpo-mtart.
  CALL FUNCTION 'REFRESH_TAX_TABLES'
*   EXPORTING
*     LIVERY        =
    EXCEPTIONS
      OTHERS        = 1
  CHECK sy-subrc EQ 0.
  CALL FUNCTION 'FIND_TAX_SPREADSHEET'
    EXPORTING
      buchungskreis       = t001-bukrs
   IMPORTING
*   NETTO_NETTO         =
      schema              = v_kalsm
*   STEUER_NETTO        =
   EXCEPTIONS
     not_found           = 1
     OTHERS              = 2
*IF sy-subrc <> 0.
** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
**         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*ENDIF.
  CHECK sy-subrc EQ 0.
  CLEAR it_komv.
  REFRESH it_komv.
  CALL FUNCTION 'CALCULATE_TAX_ITEM'
       EXPORTING
*         ANZAHLUNG           = ' '
*         DIALOG              = ' '
*         DISPLAY_ONLY        = ' '
*         INKLUSIVE           = ' '
*         I_ANWTYP            = ' '
*         I_DMBTR             = '0'
*         I_MWSTS             = '0'
            i_taxcom            = taxcom
*         PRUEFEN             = ' '
*         RESET               = ' '
*     importing
*          e_navfw             =
*          e_taxcom            =
*          e_xstvr             =
*          nav_anteil          =
       TABLES
            t_xkomv             = it_komv
       EXCEPTIONS
            mwskz_not_defined   = 1
            mwskz_not_found     = 2
            mwskz_not_valid     = 3
            steuerbetrag_falsch = 4
            OTHERS              = 5.
  CHECK sy-subrc EQ 0.
  REFRESH it_tax.
  CLEAR: v_netwr, v_netpr, it_tax.
  LOOP AT it_komv INTO wa_komv WHERE kstat = ' '.
    CLEAR t_netwr.
    IF wa_komv-kwert NE 0.
      t_netwr      = wa_komv-kwert.
      it_tax-kschl = wa_komv-kschl.
      it_tax-kbetr = wa_komv-kbetr.
      it_tax-kwert = t_netwr.
      APPEND it_tax.
    ENDIF.
    v_netwr = v_netwr + t_netwr.
    IF wa_komv-kschl EQ 'BASB'.
      v_netpr = t_netwr.
    ENDIF.
  ENDLOOP.
ENDFUNCTION.
CALL FUNCTION 'Z_<FM>'
    EXPORTING
      v_ebeln       = it_final-ebeln
      v_ebelp       = it_final-ebelp
*     V_MWSKZ       =
*     V_MENGE       =
      v_date        = sy-datum
    TABLES
      it_komv       = it_komv
      it_tax        = it_tax
    CHANGING
*     V_NETPR       =
      v_netwr       = w_netwr.
Edited by: Ashlesha R. Bhagat on Dec 16, 2010 12:17 PM

Similar Messages

  • Calculation of sales tax for free item

    Dear SAP B1 Experts
    I have query regarding sales tax calculation for free item .
    For EG.  I have two item for sales (A = 1000,  B = 100)   Sales tax is VAT4%
    But when i am doing sales, i am selling B for free of cost with A for Rs 1000/- 
    here my tax calculation is (1000 *4%)  = 1040/-
    but as per the govt sales tax rule, we are liable to pay the tax for free item as well
    So I this case, In SAP B1 how we will calculate the tax 4% for free item  .
    Please help me.
    Thanks

    i have checked, its working okay, but
    in Invoice print out unit price and line total is showing for free item.  How i make the unite price 0 .
    Tax only calculation is based on the Line total and the line total is based on the unit price.
    in that case when i give the invoice to the customer.
    It should show like this
    Item A       100   * 10         1000
      "    B           0   * 1              00
                                             1000
    4% tax                               44
    Doc Total             =           1044
    thanks
    Regards

  • Tax amount line item with Business area in Billing Doc generating to A/cing

    Hi,
    While generating the Billing Doc, for the Tax amount line item , the Business area shd be populated. How this can be done? while  for the othter line items it is displaying but not for the tax amount line item.

    In ECC 6.0 with document splitting and new GL business area would be available in the general ledger view for tax postings. For earlier versions than ECC 6.0 use balance sheet adjustment program SAPF180 to populate business area for tax items.
    Thanks and regards
    Kedar

  • To display tax

    Hi Experts,
    I am working on purcase order MEDRUCK form, i want to display tax amount for every line item, also has to display total net ammount (gross ammount+tax) , now it is displaying gross ammount, how can i disply,
    see the ME23N, in that line items wich felds having , have to display all. please help me how to prceed for this requirement.
    please  do the  need full help ASAP.
    Thanks in advance,
    Radhakrishna

    Hi,
    use komv-kbetr(rate)
    komv-kwart(condition base value)
    komv-kwert (condition value) = komv-kbetr * komv-
    kwart.
    Send these Print program to script.
    Regards,
    rama.

  • Table for tax code line item after miro

    Can anybody tell table for tax code line item (other than BSET) after MIRO.
    Raj

    Hi,
    First let me explain you the logic in this repot. 
    If a document have more than one GL accounts relevant for tax and having the same tax code. So there is only one tax line for that tax code in BSET.
    Now in the standard reports like S_ALR_87012357, output has the tax base amount etc, based on tax line from BSET which is a single line the above document. However this single line contains multiple tax relevant account and thus SAP can not show all the G/L account for this single line in the report S_ALR_87012357. So SAP picks up the first account in the output.
    The declaration in this report is not wrong, as the total gets calculated based on the tax code and which is correct and meets the tax reporting requirement.
    If you want to see the G/L account wise output, you can use the program RFUMSV10. Refer OSS note 1175418 "RFUMSV00: G/L account display" for details.
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1175418
    In your report, you can use this program logic for reference.
    Regards,
    Gaurav

  • Withholding Tax by Line Item (not by vendor)

    Hi,
    Thereu2019s been more than 1 occasion where clients request for withholding tax at line items (purchase equipment and service in 1 invoice. Equipment no withholding tax but service has withholding tax).  However, as far as I know, the withholding tax is applicable by vendor and not by line item of the vendor. Is there any workaround on this?
    Regards,
    Cheah

    If i understand correctly, you have prepared PO for material plus service, service attracts WHT
    you could prepare two different vendors - one for material, one for service - even though the vendor is same, and maintain WHT only in service vendor.
    under PO there is condition types for service, there you can enter this second vendor who is providing service.
    i think this way you issue should get resolved.
    Pl share how to finally got thru it.
    Thanks
    Sanjay

  • EDI invoice idoc error "Enter a tax code in item 000001"

    Hello,
    I am trying ot post the EDI  invoice but the idoc getting failed by giving error "Enter a tax code in item 000001".
    Even i entered the tax code in my idoc, system not taking and also as i have maintained the table OBCD & OBCE but system not consider it.
    If i maintained the tax code in my PO then it is posting the invoice with PO tax code sucessfully.
    Please let me know, Is their any other setting needs tobe done for idoc to post the invoice without maintained TAX CODE  in PO ?
    Thanks in advance
    Regards,
    Satish

    No option available .you have to maintain tax code in PO.
    Try your luck with following option Still not sure as it works only if you call transaction MIRO
    OLMR -- incoming invoice -- maintain default value for tax codes

  • Display Taxes screen not opening in Purchase Order

    Respected forum gurus!!!
    Please help me.  I am having a peculiar issue in the case of calculating excise only.
    However before I go on, here are some of the details you might find relevant:
    1. Tax Procedure: INJ
    2.  R/3 system: 4.7
    The issue is that I am not able to launch my 'display taxes' screen while making a PO without entering data in  the following condition types.  Also the system is not fetching the excise taxes.  The particular conditions are:
    1.  IN A/P BED deductib             Condition Type: JM01
    2.  IN A/P AED deductib             Condition Type: JA01
    3.  IN A/P SED deductib              Condition Type: JS01.
    I have maintained the taxes as:
    1. 10% @ Condition Type JMOP (IN: BED set off) & 100% @ Condition type JMOQ (IN: BED set off quantity)
    2. 2% @ Condition Type   JAOP (IN: AED set off) & 100% @ Condition type JAOQ (IN: AED set off quantity)
    3. 1% @ Condition Type  JSOP (IN: SED set off) & 100% @ Condition type JSOQ (IN: SED set off quantity)
    I am not able to understand why is this happening?  Seeking help, gurus!!!!
    Jaideep

    >
    Piyush Mishra wrote:
    > JMOP,JAOP.... conditions are normally used in TAXINN procedure. Conditions JM01,JA01 etc are for TAXINJ.
    > Check the tax code which you are using in PO.
    > Check whether excise rates are maintained in FTXP or not?
    >
    >
    > Regards,
    > Piyush
    Respected Sir,
    Excise rates have been maintained through FTXP itself, properly for the conditions cited before hand.  Taxes are not calculating as they supposed to be!!!  Even the display taxes box only appears when I enter data in JM01, JA01, JS01!!!
    Please help sir......
    Jaideep

  • Invoice receipt does not include tax for each item in PO history

    Hi gurus,
                we received 2 items against a PO
      netprice-- tax-----total
    item 1--> 9010--
    100
    item 2-->205--
    25
                          total GR amount           :      125
    invoice received for $125
    but if i see in the PO history the tax for both items is added up and shown for only one item.for 2nd item it shows only netprice,it doesn't show tax .
    is it a config setting thats affecting this or any other setting that need to be looked at
    The PO history looks like this:
    for item 1----
    for item 2)    .
    GR--100--
    25
    Inv. Rec.-----105--
    20
    invoice verification is a new concept to me,I would appreciate any suggestions about the settings tobe looked at for rectifying this?
    Thanks,
    Chris T

    hi Chris T
    i think this not a config issue. i think the MM people when they do GR/IR they adding all tax to the net pice .
    to solve this we can cancel that GR/IR and post with right net price
    thanks,
    subbu

  • Two types of taxs of one item

    Hi Experts:
       I face one problem of posting tax.
       In some cases of our business,there r two types of taxes in one item. First one is paid by customer and another is paid by our company.
       We want to generate the accounting document like that:
       DR: customer AR
       CR: SALES REVENUE
           OUT PUT TAX PAID BY CUSTOMER
       DR: EXPENSE Account
       CR: Tax paid by us
       Can I do it like this? If possible, how can I configure it?
    Thanks and Best Regards
    David Wang

    Hello,
    Discuss with your finance team
    Thanks
    RK

  • Displaying 10 records per page

    hi,
    somebody please help me.....
    i have a list of more than 20 records which i get
    from database and then i put it in session.
    i have to display 10 records per page only and
    on the same page i'd like to have links to page
    numbers to view next set of records.
    example is how googel displays its search results.
    ex. [ 1 2 3 4 5 ]
    THANKS A LOT!

    this can be done using the pagination technique.
    [email protected]

  • Display in "Oracle Forms 10g" a BLOB item

    Hey, anybody know if there was any java component or a way to display in "Oracle Forms 10g" a BLOB item, which contains no images, but files of type PDF, DOC, TXT ....
    Thank you

    <p>The Enhanced HTML browser bean allows showing amost everything in its window. See this screen shot</p>
    So you could download your stored document onto the AS or the client with the Webutil FILE_TRANSFERT package, or you could envisage top develop
    a nice PL/SQL procedure that would send the content via the UTL_HTTP package.
    Francois

  • Display document in the Single Document web item -authorization problem.

    Hi Gurus,
    I have a problem.
    I have two types of users, users for display document in the Single
    Document web item and users who can maintain and create new comment in
    the Single Document web item.
    My problem is I can't create users that can only display documents (all
    users who can display the query can add new comment).
    We use the new 7.0 Authorization.
    The authorization object S_RS_ADMWB doesnu2019t influence about the
    activity in the Single Document web item.
    In the new authorization method, in PFCG or in RSECADMIN there is no
    functionality that we can separate between the two types of users I
    mention before.we used S_RS_COMP & S_RS_COMP1.
    Please advice
    Sharon.

    Hi Sankar,
    this may be helpful
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/e3/ae133bdca84047e10000000a11402f/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/e3/ae133bdca84047e10000000a11402f/content.htm</a>
    Pavel

  • How to display the current name when renaming Finder item

    Is there any way to get Automator to display the current name of a Finder item when renaming an item?
    I want my users to be able to copy and rename a folder template but I want to display the folder template's current name as a default in the renaming dialogue window, so the user follows the correct naming format.

    Since you've already hacked into it, if you've got developer tools installed, it is most likely in the nib file that is in the English project folder in the Resources.
    I don't know what further implications that will have on the app in general, though.
    If you are a little adept at applescript, you may want to create your own Applescript Studio app to do this instead of Automator. Also, take a look at Platypus to make a wrapper around you applescript instead of AS Studio.
    Message was edited by: Barney-15E

  • How to display the sales order in the line item in FB03

    Hi Experts,
    I have a requirement to display the sales order in the line item of t-code FBO3, could anybody suggest an userexit or BADI for the same.
    Thanks in advance.
    RP.

    >
    S. Rajesh Paul wrote:
    > Hi Experts,
    >
    > I have a requirement to display the sales order in the line item of t-code FBO3, could anybody suggest an userexit or BADI for the same.
    >
    > Thanks in advance.
    >
    > RP.
    I assume, you want to display sales order number in accounting document..... .
    This is not something you can do it through the BADI..
    You will have to change the G/L account field group (if it is already not there). you can then assign sales order number when posting to FI.  In the field group, better choose sales order number and item number as optional fields.
    If you can see the sales order field (may be empty) - you have to enter the sales order number when you post it.
    Good luck

  • Why does firefox display one word per sentence

    firefox displays one word per sentence reading comments on www.zerohedge.com firefox is the only browser that does this Firefox has always done this reformat of the coments since day one why??

    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    *Use a compressed image type like PNG or JPG to save the screenshot
    *Make sure that you do not exceed the maximum size of 1 MB
    You can try these steps in case of issues with web pages:
    You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

Maybe you are looking for