Calculate taxes by treating the payments separately

Hello folks,
I'm opening this thread in behalf of another people.
He have a situation where he wants to prepay vacation for an employee
and run it together with his regular hours during regular payroll run
but the taxes being deducted are way too high.
For instance the Fed withholding for regular hrs of 40 is about $60,
He would expect that if he prepays his vacation for the same 40 hrs at
the same rate, the total fed withholding on his paycheck should be
about twice i.e $120 but instead he is getting about $220 being taken
out for Fed withholding.
Is there a way the system can calculate the taxes by treating the 2
payments separately without taxing them in a lump some? He does not
want to run them on separate checks.
Thank you all for the contributions!
Felipe

Hi there,
First thing is to check whether the vacation pay is a supplemental wages or regular wages.
Supplemental wages are taxed at 25% flat. Where as for regular wages, system first annualizes the earnings and then adjusts the yearly earnings based on the the number of exemptions.
Once the wages are adjusted, it looks at the tax table to arrive at the yearly tax. yearly tax divided by number of pay periods = pay period tax.
It is possible to achieve the separate aggregate method, but per best practices you will need to use that only for correction payroll runs and not for regular payroll runs.
Please refer to the payroll function UPAR1 documentation in t-code PE04.
Hope this helps
thanks
Baburaj S Avanathan

Similar Messages

  • 'Deferred tax: Post invoice and payment separately $1

    Hi
    A customer invoice is posted with service tax.If we go to f-04 to make
    an entry of payment received and Debit bank, debit TDS certificate
    receivable for the TDS amount deducted and click on process open items
    thereby selecting the customer and then the invoice the system throws
    the error as 'Deferred tax: Post invoice and payment separately $1
    Message no. DEFTAX020'
    And if we try to post it by selecting posting key of credit customer
    which will not do the clearing of invoice, the error does not come.
    We are using deferred tax transfer New : RFUMSV25.All the other
    processes relating to service tax are going fine.
    Please suggest.

    Hi
    A customer invoice is posted with service tax.If we go to f-04 to make
    an entry of payment received and Debit bank, debit TDS certificate
    receivable for the TDS amount deducted and click on process open items
    thereby selecting the customer and then the invoice the system throws
    the error as 'Deferred tax: Post invoice and payment separately $1
    Message no. DEFTAX020'
    And if we try to post it by selecting posting key of credit customer
    which will not do the clearing of invoice, the error does not come.
    We are using deferred tax transfer New : RFUMSV25.All the other
    processes relating to service tax are going fine.
    Please suggest.

  • Deferred tax: Post invoice and payment separately $1" Message no. DEFTAX020

    while reversing a document thru FB08, it is giving the error message,
    " Deferred tax: Post invoice and payment separately $1" Message no. DEFTAX020.
    This is a stand alone invoice document , without any clearing document.  What is to be done ?
    Below is the snapshot of FB03:-
    Document Number 2256162          Company Code    MLTD         Fiscal Year     2009
    Document Date   24.05.2010       Posting Date    25.05.2010   Period          11
    Reference       PYX/10-11/032    Cross-CC no.
    Currency        INR              Texts exist
    Itm PK  BusA Acct no.   Description                    Tx     Amount in   INR
    001 31  U106 503551     PYXIS SYSTEMS PVT.LTD.         DD             55,150.00-
    002 40  COMM 5656       Membership & Subscri           DD             50,000.00
    003 40       1371       Service Tax Availed            DD              5,000.00
    004 40       1372       Ecess on ST Availed            DD                100.00
    005 40       1373       S&H Ecess on ST Avai           DD                 50.00
    Document Type   I2 VEMDOR INV-CORPORATE
    Doc.Header Text PYXIS SYS.P.LTD.
    Branch number         Number of Pages 0
    Reference       PYX/10-11/032    Document Date   24.05.2010
                                     Posting Date    25.05.2010
    Currency        INR              Posting Period  11 / 2009
    Ref. Transactn  BKPF  Accounting document
    Reference key   0002256162MLTD2009    Log.System MALCLNT999
    Entered by      NITINRB          Parked by
    Entry Date      25.05.2010       Time of Entry   13:05:08
    TCode           FBR2
    Changed on                       Last update
    Ledger Grp                       Ledger
    Ref.key(head) 1                       Ref.key 2

    Hi,
    Check whether OSS note 913805 (see below) offers a solution to your particular issue.
    Kind regards, Robert
    Note 913805 - Error FF891 or DEFTAX025 when posting FI-Documents  Version: 5
    Summary
    Symptom
    The posting of FI-documents cannot be executed due to one of the following error messages:
    FF 890 "Vendor and customer items in document with deferred taxes"
    FF 891 "G/L account item without tax code in document with deferred taxes"
    FF 892 "Error writing to table DEFTAX_ITEM"
    DEFTAX 025 (no specific text)
    Also update terminations and other errors which are related to function group TAX4 may be the topic of this note.
    Other terms
    RFUMSV25; RFUMSV50; VAT; deferred tax; BTE; DEFTAX_ITEM; TAX4; SAPSQL_ARRAY_INSERT_DUPREC; FI_POST_DEFTAX_ITEM; FF891; FF890; FF892; FF804; 00 671; FF099; DEFTAX020; DEFTAX021; DEFTAX022; DEFTAX023; DEFTAX025; DEFTAX012; DEFTAX_MX027; DEFTAX_MX047; DEFTAX_MX039; DEFTAX; DEFTAX_MX;
    Reason and Prerequisites
    Accidentally some business transaction events (BTE) for the new solution for deferred tax were delivered in an active state in support packages of SAP releases 4.70 and ERP 2004. The solution is available in the SAP-Standard only from release ERP 2005. Also in ERP 2005 the new deferred tax can cause problems in countries for which the solution is not released.
    These BTEs perform strict tests for documents containing tax codes for deferred tax.
    Solution
    If you are using the old deferred tax, i.e. you use report RFUMSV25 to create transfer postings, you can safely deactivate these BTEs.
    Remove the following BTEs:
    00001025  DI-TAX CREATE_DEFTAX_ITEM
    00001030  DI-TAX SET_DEFTAX_ITEM
    00001040  DI-TAX CREATE_DEFTAX_ITEM_REVERS
    00001050  DI-TAX CREATE_DEFTAX_ITEM_MR1M
    In ERP 2005 (ECC 600) the application key is 'FI-TAX' instead of the above mentioned 'DI-TAX'.
    To do this start transaction FIBF
    -> Settings
      -> P/S Modules
        ...of an SAP Application
    Mark the entries from the list above and delete them.
    This deactivates the functionality of 'new deferred tax' for all company codes in all clients on the system. This means that no data is written to table deftax_item at posting time. Report RFUMSV50 can still be started, but it will not process new documents any more.
    If in ERP 2005 problems arise in one country but the new deferred tax is used in another country you must not deactivate the BTEs completely. In this case it is possible to restrict the BTEs to be active only in certain countries using the column 'country' in transaction FIBF.
    Header Data
    Release Status: Released for Customer
    Released on: 16.01.2008  20:12:15
    Master Language: English
    Priority: Correction with medium priority
    Category: Program error
    Primary Component: FI-GL-GL-F Value Added Tax (VAT)
    Affected Releases
    Software Component     Release     From Release   ToRelease     And subsequent
    SAP_APPL                     46C            46C                   46C  
    SAP_APPL                     470            470                    470  
    SAP_APPL                     500            500                    500  
    SAP_APPL                     600            600                    600  
    SAP_APPL                     602            602                    602  
    SAP_APPL                     603            603                    603  
    SAP_APPL                     604            604                    604  
    Related Notes
    771319 - RFUMSV50: Documentation
    Edited by: Robert North on May 26, 2010 11:49 AM
    Edited by: Robert North on May 26, 2010 11:50 AM

  • Deferred tax: Post invoice and payment separately 600000025

    Hi Friends,
    While releasing billing document to accounting in VF02, i am facing with the following error.
    Deferred tax: Post invoice and payment separately 600000025
    Message no. DEFTAX020
    600000025 is the billing document number.
    please help me..
    with regards

    Dear Azeez
    Check this thread
    [Incorrect posting with internal reconciliation   |Incorrect posting with internal reconciliation;
    thanks
    G. Lakshmipathi

  • Calculate tax in Vendor Down Payment

    Hi,
    While posting down payment to my service vendor including service tax amount in F-48 after tick the calculate tax also, it is not asking for tax code and it is not showing service tax seperately. Only vendor a/c and bank a/c's are simulating. Please tell me how to calculate tax while doing vendor down payment.
    Regards,
    Prasad

    > Hi,
    >
    > Thanx for ur reply, every month we are paying through
    > advance payment for internet connection including
    > service tax and this is fixed amount.
    1. Enter vendor down payment - gross amount (do not calculate tax)
    2. Post a recurring document to your vendor account which will include the lines:
    C Vendor
    D Internet charge expense account
    D tax
    3. Allocate invoice with down payment

  • How to pass the check  'calculate Tax Automatically' in IDOC

    Hi,
    I need mark the check box in the 'calculate Tax Automatically' in the IDOC. The IDOC will then go to BDC session 'FB01' to post. Which program I should to make the modification and what IDOC structure has this XMWST field?
    Any help is appreciated!
    Thanks,
    Helen

    I am trying to do the same using INVOIC01 MM and MIRO
    I found an OSS note that I thought may help but found a few anomolies.
    Solution
    The user exit CUSTOMER-FUNCTION '015' is available in the subroutine MRM_DOCUMENT_COMPLETE (include LMRMH1F). In this user exit, the "Calculate Tax" indicator (XMWST) can be set automatically for the IDoc.
    Here the field e_rbkpv-xmwst must be set to 'x' in the structure e_rbkpv. In addition, f_change must be set to 'x'.
    The Include is not LMRM1F but LMRMHFOT, in this include if I change the two fields rbkpv-xmwst and f_change in debugging, it works. There must be a way to do this!
    We already do this using FI posting with INVOIC02 and the calculate taxes is flagged when you set calculate taxes on net amount in FB00.
    Any suggestions would be gratefully recieved.
    Thanks Ian

  • Changing Withholding tax base amount- 1099 payment

    The scenario is:
    Classic withholding tax functionality to be used for first time, the configuration was done last year.
    1099 needs to be printed with all payments made out to the vendor.
    There were payments made out to the Vendor in year 2011. There are some payments that show as WT exempt amount  in RC and other payments are displayed as WT base amount in RC while running RFIDYYWT or 1099 print out report.
    I used RFWT0020 program to regenerate the WT and Change to source tax code. It just updates the tax code on the payment document but is not changing the payment document amount from WT exempt to WTax base.
    So the 1099 printout is not showing the total payments made, it is excluding WT exempt amount in total.
    Any suggestions?
    Thanks
    Edited by: Gary_S321 on Jan 11, 2012 10:30 PM

    Rebecca,
    You need to update the WTax base amount field on all the payment documents that are blank.
    For that just go to Vendor line item report FBL1n and run it for all the 1099 vendors. Change the layput to add WT base amount and WT Code in the report output. Filter the documennt type with payment doc types ZP and KZ and WTax base amount zero.
    Extract these transactions into excel and then write LSMW to mass update these tax base amount field.
    To update only Tax code on these transaction you can use RFWT0020 program.
    Hope this helps.
    Thanks

  • When the user press the button Calculate Tax (see attached doc) and click on Tax details then this should be updated automatically. But it does not work it is empty and the user has to update manually.

    When the user press the button Calculate Tax  and click on Tax details then this should be updated automatically. But it does not work it is empty and the user has to update manually.
    All setup looks fine.
    Please let me know what can be done on this?
    Regards,
    Peu

    HarryAustralia wrote:
    I recently updated my ipad wifi only to the new ios 6.1.2 and initially I had the auto cover lock option which can be seen in the Generals tab, but then it stoped working!! Before the update, the auto cover lock worked fine. So after trying all the options, I then did a complete reset on the ipad and now its gone all together from the General tab!! I can no longer see the "auto cover lock" option.
    The iPad cover lock is for when you use a cover with magnets in it to lock and unlock the iPad when you close the cover or open it. Try running a refrigerator magnet along the sides of the iPad and see if that trips the iPad Cover Lock back into the settings.
    That is not the same thing as the iPad Auto Lock setting which allows you to set an allotted time before the iPad goes to sleep.
    You can try resetting all settings to see if the Auto Lock feature retinrs to the iPad.
    Settings>General>Reset>Reset All Settings. You will have to enter all of your device settings again.... All of the settings in the settings app will have to be re-entered. This can be a little time consuming re-entering all of the device settings again.

  • In AP invoice i need to make "Terms date " field to calculate the date automatically when i select the payment terms

    In AP invoice i need to make "Terms date " field to calculate the date automatically when i select the payment terms.
    How can i do this?

    Hi,
    You can select the Payment Term at PO Header Level.
    When you book an invoice, that Payment Term will automatically defaulted to Invoice.
    You can define Payment Term in AP.
    Payment terms have one or more payment terms lines, each of which creates one scheduled payment. Each payment terms line and each corresponding scheduled  payment has a due date or a discount date based on either a specific day of a month, such as the 15th of the month, or a number of days added to your terms date, such as 14 days after the terms date.
    Payment Terms (Oracle Payables Help)

  • The payment method for me is it vat/tax included or without vat/tax .

    Hy you bypass to answer my question ! I ask you a simple question that " I am a non-Malaysian person & within a few day I will go to Malaysia for official purpose & I want to by a MacBook air Malaysia so what's the payment method for me is it vat/tax included or without vat/tax . I have no need to know how I use my credit card from you . Please answer my simple question .
    Best regards

    This has happened to me, did you fix it ?? If so how ???

  • Calculate teh tax maintained for the PO line items

    I need to calculate teh tax maintained for the PO line items...how do i do it????
    can somebody help??
    kanishak

    Hi,
    Use this FM to get data from KOMP
    tax amount = komp-mwsbp
    CALL FUNCTION 'RV_PRICE_PRINT_ITEM'
        EXPORTING
          comm_head_i = komk
          comm_item_i = komp
          language    = nast-spras
        IMPORTING
          comm_head_e = komk
          comm_item_e = komp
        TABLES
          tkomv       = tkomv
          tkomvd      = tkomvd.
    Regards
    Krishna

  • How does the system calculate taxes?

    Dear All,
    How does the system calculate taxes?
    Can anybody explain in detail how the values will flow from PB00 / PBXX to BASB ?
    Is this flow will remains same in both deductible & non deductible taxes ..??
    Pls explain
    With Regds

    Hi
    Just remove the base type 362 in the taxing procedure & check if your tax is calculating or not.
    The Tax determination still works.
    FORM FRM_KOND_BASIS_362.
    *Application country specific
    *This alternate base value is to be attached to BASB. This routine
    *fetches KZWI6 captured in the pricing procedure.
    Thanks & Regards
    Kishore

  • Tax calculation on down payment

    Hi all,
    At the time of progress billing- there is no tax calculation for down payment for Service Invoice.
    so tax calculation on down payment will be FI step through(F-29).
    For e.g total contract value is 1000 and 10% is down payment..for this tax will be calculated on 900 and for 100 downpaymen the tax calculation will be through FI side.
    Is it possible or correct way t do this otherwise please suggest some other solution.

    Service Tax is NOT Income Tax.  So, you would not calculate Service Tax downpayments.  Service tax is applicable only on Service rendered and does not concern whether it is paid.  (Though, if you want to avail Service tax credit, you'll have to pay for the service, which is mandatory as per the Indian Tax laws).
    So, Service Tax is only calculated from the Invoice.  As long as no invoice is raised, no Service tax is payable / deductable.
    The above is true for India and most countries.  You have not mentioned which country are you working with.  If such a scenario is appropriate in your country, you'll have to consult your country version documentation.
    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.

  • Link required for the payment made and PO

    Hi
    I made payment to one vendor. He sent three invoices. I did MIGO and then MIRO for the same. Then i did my payment to all the invoices.
    Now i want a report which says amount paid, MIRO documnet number, PO number. Is there any standard report / table from where i can get this data.
    I tried for BSIK and BSAK. But there was no relevant link i was able to find between the items i mentioned above.
    Edited by: Meenu_ND on Aug 18, 2010 7:55 PM
    Edited by: Meenu_ND on Aug 18, 2010 7:56 PM

    Dear Meenu,
    There is no standard report available which fulfills your requirement. Hence please take EKKO,EKBE,BSEG,BSET,BSIK,BSAK,etc. to have a complete report.
    Please take Material document as your base, then find out the PO, then find out the Vendor details(EKKO), GR and Invoice details(EKBE), Paid / unpaid items (BSAK/BSIK), Tax items (BSET) and payment details (BSEG).
    I hope this will be helpful in finding a solution to your problem.
    Regards

Maybe you are looking for