How to calculate line amount?

I need help in calculating the amount column. Please advise and thank you in advanced!

Hi,
Try with the below function module.
CALCULATE_TAX_FROM_NET_AMOUNT
Jshree

Similar Messages

  • 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 calculate the amount of viewing the uploaded document in KM?

    hello
         everyone
          I  want to  calculate the amount of viewing the uploaded document in KM,like the iviews of topics in forum.
         thanks in advance
         lexian

    Hi,
       You can develop a hitcount repository services. Each time that you open a document this counter is incremented in one. Then you can show this metadata as a typical property.
    Take into account:
    Dynamic Knowledge Management Content Using Groovy Scripts
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5165
    Documents read statistics
    https://www.sdn.sap.com/irj/sdn/thread?threadID=174925
    Patricio.

  • How to calculate actual amount on PO

    Hi,
    I have to calculate tax and discount on Purchase order and have add that to ekpo-netwr to get the actual amount. Can you please tell me how to do that?
    So far I have been taking the EKKO-KNUMV and going to KONV table and serach for records with that KNUMV. But here I am stuck.
    I can not understand (I mean I can not find the field to distinguish) which of the records is actually being used in the PO and has an amount (non-zero) against it, which I see in ME23N in "Condition" at header label.
    Reward Points Guaranteed.
    Regards,
    Anid

    Hi,
    In the PO , I hope yoy might be using the tax code at item level.
    Take this tax code and go to the table A003 and get the KNUMH.
    Pass this KNUMH to the KONP table to get the condition value.
    Add the condition values to the net amount of the PO item. You will get the total amount.
    Alaways find the conditions and taxes at thwew item level of the PO.
    Regards,

  • How to Calculate Line items Total of Matrix Column

    hai experts,
                  Im facing a problem like
                   1. i have a matrix with a column Labour Costs in that im taking some cost.
                   2. in footer a have a Edit Text like Total Labour Cost
                   3 when i enter amount in matrix column it sholud disply that value in total labour cost and when we add new row ,labour cost it should add to 'total labour cost' in footer.Like Invoice Documents.

    Where do you want to implement this like sapscript / smartforms or adobe forms? please specify.

  • How to calculate the amount for cleared documents.

    Hi Experts,
    I am working on a program and here i need to display the amount for the cleared document.
    I have a scenario where there are two financial document related to a single cleared document.
    I can get the amount for financial document from BSAK by passing the BELNR value of the financial document and confirm if it is a clearing document by comparing AUGBL value of BSAK with document number of cleared document.
    Actually i am not very clear about the process flow of clearing document.
    If anyone can explain me the same.

    Hello,
    Go through this links it will help full
    http://help.sap.com/saphelp_sbo2004c/helpdata/en/fd/25f4c6d8888e40a521972d0be5d68b/content.htm
    http://help.sap.com/saphelp_45b/helpdata/en/e5/0783e84acd11d182b90000e829fbfe/frameset.htm

  • How system calculate miro amount

    Hi Consultant,
    PO 2 unit at $12
    During GR
    Dr inventory 24
    Cr vendor 24
    When in miro,
    1) quantity i change to 3 unit and amount remained as 24
    cr vendor 24
    dr gr/ir      32
    cr price diff 8
    may i know why gr/ir debited 32 and with price difference?
    When in miro
    2) quantity i change to 3 unit and amount i change to $36
    cr vendor 36
    dr gr/ir      36
    cr price diff 0
    why there is no price difference yet system credit this account with 0?
    Thanks

    Hi,
    U material price control is Standard Price.
    so, if you change per unit value from $12 then it will show the Price diff. a/c.
    but if you change the unit and value then it won't be any price difference amt.
    and since you are changing the Qty in MIRO the system allow bcs of Qty varience.
    So, there is no wrong in system.
    SAM

  • How to calculate YTD credit amount and YTD Debit amount

    How to calculate credit amount and Debit amount for Year-To-Date type in GL Trial Balance Report?

    You may try the following options.
    1. Run 'Expanded Trial Balance' report.
    2. Run 'Trial Balance' report.
    3. Create FSG report for trial balance based on your desired output format.
    Hope it is useful.
    Tarun

  • How to calculate HD space needed

    I need to videotape a ceremony on Friday and show it very quickly afterwards. I have a new Canon XL2 cam, and I played around with capturing direct into iMovie 5 using the FW cable. My plan was to capture it this way live; at the end of the 90 min save the project, and then show via SVideo connection to a TV. Not sure how to calculate the amount of HD space I will need for 90 minutes of video. I guessI could also capture just to tape, rewind and show via SVideo, but ideally need less turn around time than that.
    Thx,

    DV (Digital Video) uses up about 13 gigabytes per hour.
    So 90 mins worth would need about 20GB.
    But how long does it take to rewind a tape? Three or four minutes?
    It'd be far better to rewind the tape, and connect the camcorder to a TV, than to lug around a Mac while you're shooting! How're you going to hold onto the Mac if you need to move around?
    If you're going to be static all the time, and won't need to move, it might be OK ..but you'd need to do one or two 'dry runs' of 90 mins each FIRST to be ABSOLUTELY sure that everything goes to plan, and that the hard disc doesn't stutter, or "housekeeping" jobs within the Mac don't interfere, etc.
    Of course, what might suit you better is a dedicated video-capture FireWire drive strapped to the camera, like a "FireStore". That's dedicated to video capture, and does nothing else. It also saves time later, because there's no need to capture from your tape: just edit the footage already on the FireStore disc.
    But would what you get from taping the ceremony (..if you're getting paid..) pay for a FireStore? Hmm.
    I'd stick with tried and trusted tape..

  • How to calculate SELECT time

    I want to know how to calculate time taken by SELECT query.
    For example: I am running one select statement in TOAD(oracle version 9i) which takes 40 seconds to run but in output window it display few records. It says "showing 1 of 500 records, more records exist". That table has total 20 million records.
    Now my question is: Did my SELECT query took 40 seconds? or it took 40 seconds to SELECT 500 records.
    If it took 40 seconds to SELECT 500 records then how to calculate total amount?
    Any help would be very much appreciated.

    Where I will find trace file?
    Toon Koppelaars wrote:
    What you could do is this.
    Say your current query is Q1. Then instead of executing Q1 in toad execute this in Toad:
    select count(*)
    from (Q1)
    /This is not totally safe, since the CBO could decide to alter the execution plan given that you now are not interested in any of the columns you had in the SELECT list of Q1.
    Other alternative is to use sqlplus.
    Set pages 0
    alter session set sql_trace=true;
    Run your Q1.
    alter session set sql_trace=false;
    Find the trace file, tkprof it, and see exactly what happened and how much time it took.
    I'm assuming that timed_statistics is set to true in your instance.Edited by: user639946 on Dec 3, 2010 1:00 PM

  • CFM /TR - how system calculate amount based on rate FX 60A

    Hi all,
    i need to know how system calculates amount based on rate entered upon creating a contract (t-code TX01).
    steps input:-
    1. header - comp code, product type, trans type
    2. partner
    3. purchase curr & amount (eg. IDR 8,345,545,500)
    4. sale currency only (amount system will auto calculate) USD
    5. rate field = 11.553
    6. spot rate will auto pick up from rate
    7. value date
    8. contract date
    upon TBB1 no error. posting log as follows:-
    FX1000+ : 40 8,345,545,500 IDR bank GL acc
                    50 8,345,545,500 IDR clearing acc
    FX2000- : 40 722370.42 USD clearing acc
                   50 722370.42 USD bank GL acc
    but upon TPM18 error occurred as follows:
    DBT_C009 - GL not maintain in acc symbol 5.3.4
    DBT_E039 - no posting spec assigned to update type
    DBT_B018 : 40 0 USD, 431,977,511 IDR gain/loss
                       50 0 USD, 431,977,511 IDR clearing acc
    so, after maintained DBT_C009 as follows still error for DBT_E039:
    40  0 USD, 38 IDR clearing acc
    50  0 USD, 38 IDR P&L gl acc
    what i don't understand is how system calculate and get DBT_C009 & DBTE039.
    what is the function of TPM18?
    thanks.

    Hello Prarnod,
    I have done the first node only for actuals that come from the integration to the internal order.
    I have tried setting up 2 and 3 even though the 3rd one does not make any sense to me
    Thanks,
    Paul

  • How SAP calculate the outstanding PO quantity and amount.

    how SAP calculate the outstanding PO quantity and amount.

    Hi Arun Raj,
    APO does not calculate the open qty.
    Only the open qty of the PO is ciffed to APO from R/3.
    Regards,
    Ashok

  • How to calculate off of a result line...?

    I would like to know if anybody knows how to calculate a value off of a result line. Specifically, I have a result line which totals by vendor. There are 4 calculated keyfigures  Early , Late and Ontime delivery and Total Number ( basically a total of all lines Early , Late and Ontime ) . I either have a 1 or a 0 in that field and have the correct total on the result line for the POs which were delivered early late or on-time.
    How do I now calculate a value which is the percentage of early / total or late / total ? Here is a layout to make you better understand this .
    Vendor    Early Late Ontime Total %Early 
    A            1   0    0      1      100
    A            1   0    0      1      100
    A            0   1    0      1       0
    A            0   0    1      1       0
    A            0   1    0      1       0
    Result       2   2    1      5     (should be 100 * 2 /5 )
                                        How to make this show

    Hi,
    Play with the formula collsion property of the formula. I hope, you will get the required thing by changing the formula collision property.
    With rgds,
    Anil Kumar Sharma .P

  • How do I calculate the amount of selects out the Oracle database?

    First sorry for my bad English.
    Would like to know how to calculate the number of queries (SELECTS) held in an Oracle database.
    I owe you my thanks, because we solved some issues with the help of his posts, when I know how to calculate the number of completed transactions with commit or rollback, but the company I work all clients perform more procedures than they actually consult a Update finished with commit or any other process, so I need a hand to resolve this issue more.
    Thank you in advance.
    Anderson Campelo - [email protected] or [email protected]

    depending upon how good is good enough, you could just query V$SYSSTAT for appropriate value(s)
      1  select name from v$sysstat where name like '%read%'
      2* order by 1
    SQL> /
    NAME
    DBWR thread checkpoint buffers written
    cleanouts and rollbacks - consistent read gets
    cleanouts only - consistent read gets
    cold recycle reads
    data blocks consistent reads - undo records applied
    index fast full scans (direct read)
    lob reads
    no work - consistent read gets
    physical read IO requests
    physical read bytes
    physical read total IO requests
    physical read total bytes
    physical read total multi block requests
    physical reads
    physical reads cache
    physical reads cache prefetch
    physical reads direct
    physical reads direct (lob)
    physical reads direct temporary tablespace
    physical reads for flashback new
    physical reads prefetch warmup
    physical reads retry corrupt
    recovery array read time
    recovery array reads
    recovery blocks read
    redo blocks read for recovery
    rollbacks only - consistent read gets
    session logical reads
    table scans (direct read)
    transaction tables consistent read rollbacks
    transaction tables consistent reads - undo records applied
    31 rows selected.

  • 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.

Maybe you are looking for