How to calculate taxes in purchase register
Hi all,
i want to calculate taxes in purchase register for that
i use function module 'calculate_tax_item' but it calculates
tax on po . i want taxes should calculate as per miro
means it should be calculated on basic amount.
Thanks
Dinesh
Hi,
i dont know whether there is any function module available of no.. but u can get it from FI tables... link is from MIRO u can get the invoice no.. go to BKPF table in that there is a AWKEY filed is there put the MIRO No + Miro Year in that..u can use a select single .. from that u get the FI document .... field is BELNR.. then go to BSET table.. it contain the duty amount put that FI document number , FI year and Compny code and also put Debit/credit indicator as S.. u will list of records with duty.. from that HWBAS is he duty amount field and there is one percentage field.. if it is 12 % in that field its look like 120 as a multiple of 10. Note this BSET will only be populated if there is any tax involved.. other wise it will be empty(ofcourse it cointian the whole accessable value amount).. i think it will help u..
Regards
Maneesh Chandran
Similar Messages
-
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 tax / discount 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,
AnidHi,
Ya. Actually I need to know the Discount, Indiviual taxes (Like Freight tax etc) which we see the the "condition" tab of Header Data in ME23N. I have to make a total of them and subtract from (Sum of EKPO-NETWR ) to calculate the ACTUAL PRICE. -
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
MathiasHi,
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. -
How to calculate tax in me49 price
hi guys,
I want to change the standard me49 transaction. the reason is this the rate value it is giving is without excise and tax means flat rate. but i hav to showhere the rate including tax excise etc etc. Can you please give me brief description in this,thx in advanceYou don't need to calculate tax by yourself. The proper tax code will take care it.
Thanks,
Gordon -
How Verizon calculates taxes?
What a rodeo. I called and they opened a "Diamond Ticket" because I wanted to know on what amount are taxes being calculated. They closed ticket, did not get back to me and stated "The taxes are correct". Really? How can I compare plans if I can't calculate the total bill?
I want to know step-by-step what amount tax is being applied to.
I know in CT the total tax is 13.23%.
911 charge of 1.06% of .70 per line
USF charge of 5.82% of .98 per line
State Tax of 6.35% of what????? no one at verizon can answer this question.
Is it a secret that is only shared by a very few?Reginald, We absolutely want to make this a better experience. Would it be possible for us to work together in direct message. Please follow us and we can get started.
Sheritah_vzw
Follow us on Twitter
@VZWSupport -
How to calculate taxes in invoice tab of me23n t.code
Hi,
I need to print the taxes shown in invoice tab for a particular PO. I have used related fn modules for calculating but i'm not get the exact values as shown in the sap.
I have even searched the forums but didn't get any relevant answer.
Please help...Hi,
taxes are calculated on header level and values are distributed to PO lines. So starting with line values, you can't get the same tax values, just because you won't get rounding differences from the header calculation included.
So you have to print the 'original' values of the PO. Mark the relevant lines in pricing with a printing flag, this might be the easiest way. You might also find relevant values in EKPO subtotal fields, or you select all details from table KONV (key EKKO-KNUMV).
But if there are under- / partial- / overdeliveries, the actual bookings during goods receipt / invoice will be different anyway... (related to the rounding).
BR,
Christian -
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 -
Purchase Register, sale register, & Cenvat Tax Register
How to Create Purchase register, Sales Register, Cenvat Tax Register with total Balance
Regds
Edited by: Philip Eller on Jun 4, 2008 8:36 AMHi Sashi,
Create a user query from Query Wizard for
Sales Register from Tables -OINV,INV4.
Purchase Register from Tables - OPCH,PCH4.
Hope above answer will helpful to you.
Jeyakanthan. -
How to make tax codes in mm purchasing
Dear Guru,
1. How to make tax code for purchase of Raw materials with basic excise duty=14%, SECess=2%, HSEcess=1% and Additional Excise duty=4% as follows . If we consider basic prise=100 then
BASIC =100
BED (14%) =14
SED (2%) =0.28----
Sed=secondary Educational Cess
HSECESS (1%) =0.14
SUB TOTAL = 114.42
AED (4%) =4.56
TOTAL = 119
For above all taxces(BED,SED,HSEcess,AED) , client gets 100% set off.
Please tell me detail procedure.
2.Do we need to assign (tax code) them to any business area, as my system is giving an error at the time of saving in MIRO.
3. What is the meaning of ticking ( check box tick) for calculate taxes under basic tab in MIRO.Hi Nitin,
Tax Set Off depends on the Account Key which you are using. Account Key in Tax Procedure will be defined by finance at SPRO - Financial Accounting - Financial Accounting Global Settings - Tax on Sales / Purchases - Basic Settings - Check and Change settings for Tax Processing.
Check the relevant condition type in the Tax Procedure (TAXINJ / TAXINN), and then check the account key of the procedure whether the Non Deductable indicator is set or not. you may take finance help for the same. Once it is done correctly then define the excise defaults for the relevant tax procedure at SPRO - Logistics General - Tax on Goods Movement - India - Basic Settings - Determination of Excise duty - Maintain Excise defaults
Then create the tax code with the relevant condition types.
You need to assign the Tax code to Company code if you use TAXINN procedure. No need for assignment of Tax code to Business Area
Once you select the Check Box Calculate taxes in MIRO, then system calculates the Taxes based on the tax codes defined and also validates whether Part II Postings have been done or not also for the Excise relevant transactions
Regards,
Ramakrishna -
How do I calculate taxes?
How do I calculate local taxes?
Brown:
You can configure taxes on Purchases and Sales in:
IMG > Financial Accounting > Financial Accounting Global Settings > Taxes on Sales/Purchases
Vj
Assign points if info helps -
How to creat purchase register in SAP r/3 system?
Dear All,
Please tell me how to creat purchase register in sap R/3 system.HI
I think there is no standard functionality in sap u need to develop with abaper help with proper logic
if it is for venijula s_alr_87009936 try this t.code
Thanks & Regards
Phaneendra
Edited by: phaneendra Reddy on Jun 12, 2009 9:24 AM -
Tax conditions in purchase register report
Hi all,
I am developing a Purchase Register Report, I have a small doubt regarding Tax conditions.
From which tables we will get the Tax Conditions like CST, SERVICE TAX, VAT etc.
Previously I have developed Purchase Requisition Report,in that I have used the FM 'CALCULATE_TAX_ITEM' to get the Tax Condition Values. But in this purchase register report I am getting wrong values for the same FM.
Please suggest me.
Regards,
Pradeep.Hi Pradeep,
First of all let me clarify that you are generating report for Purchase orders generated or for MIRO posted documents
If you are generating for purchase orders
First use FM 'REFRESH_TAX_TABLES' for updating tax tables with latest changes
Next use FM 'FIND_TAX_SPREADSHEET' to find out tax procedure or schema
Then use FM 'CALCULATE_TAX_ITEM' to get taxes
If you are generating report for MIRO documents
Use BSET table for accounting document generated against MIRO
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 RegdsHi
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 -
My school wants to purchase three copies of one of my photo books. The school is tax exempt. How can we make a tax exempt purchase using a school credit card?
I don't believe Apple is setup for tax exempt purchases. It's strictly comsumer oriented.
Are you making a profit on your book sale? If so just up the price to cover the tax and you purchase it and deliver to the school. If not then reimburse the school for the tax and write it off as a deduction.
OT
Maybe you are looking for
-
BP role not seen in Web Ui of CRM 7.0
HI Guys , Im working on CRM 7.0 , I have noticed that BP roles in GUI while creating a BP - i could see 30 different roles , where as - If i try to create from the UI - i observed - Consumer & Employeer role is not appearing and only 28 roles are app
-
How To: Setup WebDAV and Apache2 for Private iCal Publishing
Notes: This tutorial will not cover the installation of Apache2 or the required modules. These paths apply to Ubuntu Server, but should work with many Linux distros. There are other ways to configure your DAV directory. I have chosen to use a sub dom
-
Standard SAP report for purchase price variance
Hi All, I need to know if there is a standard SAP report that shows the purchase price variance. Thanks, Regards
-
Your experience in handling bonded warehouse in SAP
Our Client (Wholesale distributor of alcoholic beverages) is using Bonded Warehouse to receive imported alcoholic beverages. As with most distributors, the recommendation for Product pricing at this client is to use a moving average approach. The pla
-
Hi, Since 10.1.2, we are able to paste files in compatible apps like filer and office plus. The problem is that we cannot paste directory structure including files and folder. Is this a bug? futur fonctionnality or just the receiving application that