Function module to calculate withholding taxes
Hi all,
Can anyone please tell me if there is any function module to calculate withholding taxes?
Thanks,
Diogo LF Moreira
Hi,
You can use the function module FI_WITHHOLDING_TAX_CALCULATION
Regards,
SDNer
Similar Messages
-
Function Module to compute Withholding Tax
Hello Experts,
Is there a function module that I can use to compute for the total withholding tax of a parked document?
Thanks!
JeffreyHello,
I've found a way to do it, and considering that I could not find the answer in SCN I'll post it.
I've created a report to show the calculated WHT which would be posted only at the payment moment. Also, in Brazil we work with extended WHT (and not the classic one).
You will need an ABAP.
Create a Z function module as copy of ZFI_WT_FB05_CALCULATE_WT.
This FM has only input parameters, therefore it does not provide you with the calculated WHT as an output (as standard). Knowing this, it is necessary to change it (the FM) by summing all T_WITH_ITEM-WT_QBSHH per accounting document (this table is present in the standard FM).
You need to provide the logic in order to obtain the parameters, The field which need to be filled are:
I_AKTYP = "H”
I_DYNCL = "Z”
Table I_POSTAB
Pick the data below from BKPF/BSEG of the accounting document which needs WHT to be calculated:
BELNR
BUKRS
GJAHR
BUZEI
WAERS
BUDAT
BLDAT
BSCHL
KOART
SHKZG
DMBTR
WRBTR
KONKO
XAKTP = "X"
XAKTS = "X"
Table I_BKPF
BUKRS
GJAHR = year of the system date
BLART = KZ
BLDAT = system date
BUDAT = system date
MONAT = period of the system date
TCODE = FBZ2
WAERS
Then after changing the FM to have T_WITH_ITEM-WT_QBSHH as output, simulate it by inserting the values of the accounting document which has WHT, and check the result, if it is the same as calculated by F-53 or F110. -
Calculate Withholding taxes for VEndor Invoices using ABAP program.
Hi All,
I have to upload Vendor Invoices using FB60/Fb01 tcodes. I am able to post the Invoices using FB01/Fb60
but I have to calculate extended withholding taxes also using this program for the Invoices.
Is it possible to upload vendor Invoices and calculate withholding taxes using Program?
If yes,
Does anyone has any idea how do you calculate extended withholding taxes using any BAPI's?
I have used these two BAPI's
BAPI_ACC_DOCUMENT_POST
BAPI_acc_invoice_receipt_post
they are working fine but without withholding tax.
This is a requirement for country India.
Regards,
SushilHi,
Imho, you need to get (meaning, extract into separate fields) the different supplier types from Table1 first. Your key for Table1 is the vendor no, which is also the key in Table2 (or the key for Table2 is Vendor no & Type).
For better performance, better select multiple/all required entries from Table1 instead of doing a select endselect.
Depending on the format of the vendortypes in Table1, put them in a new itab (for our purpose named Table1New where vendor no & type are the only 2 fields. For example, if the type length is fixed to 2 chars, or divided by space,... use your coding accordingly.
Next step is to select all vendor no's in Table2 which you have selected in Table1. If in Table2, the vendor no is the only key (and the all vendor types are filled in a single record), then loop check the vendor types from Table1New against the types in Table2.
If the key of Table2 is vendor no & vendor type, then do a read table for the key.
The logic in pseudo-code:
Select from Table1 into table. If you'd like to limit the selection size, add package size statement.
extract the vendor types in to itab Table1New.
Select the vendor & types from Table2 by using the for all entries option (better performance).
loop at Table1New
check in Table2:
if the unique key is vendor no: check all fields for the vendor type from Table1New
if the unique key combo is vendor no & type: check by using a read table.
If not found => add entry to Table2
endloop.
endselect Table1 (when using package size)
I guess the most difficult step is to extract the types from Table1 into separate fields, all the rest seems straight forward. Please keep in mind the itab type definitions for a better performance.
Good luck!
Best regards,
Zhou -
Function Module to calculate Open Contract Quantity
Hi All,
Is there a function module to calculate Open Contract Quantity?
Thanks.Hi Ravi,
Thanks for the reply.
For this FM, i need to pass the Sales Doc Number. Is there an FM where i can pass the contract number?
Best regards,
Sindy -
Function module to calculate available budget
Hi everyone
Is anybody aware if there is any function module which calculates the available budget from the report alr_87013558?
thanks and kind regardsthanks Paolo
yea, i tried to debug that report but in vain
is there any other way?
I could get the value assigned, the budget value but not the actual
So was wondering if anybody can help me
thanks for your help -
Function module to calculate Estimate delivery lead time
Hi Experts,
It's ugrent.
In APO System,
I need a function module to calculate the estimated delivery lead time, The estimate delivery lead time is the time in weeks between the current date and the estimated delivery date. This is rounded up to the next integer value.
Thanks in advance,
Regards
AdilHi Vishal,
I've declared two variables
DATA: LDATE(20),
LTIME(20).
CALL FUNCTION 'GET_SYSTEM_TIME_REMOTE'
IMPORTING
K_DATE =
K_TIME =
L_DATE = LDATE
L_TIME = LTIME
AND IN THE FORM HEADER I'VE GIVEN IT AS,
WA_HEADER-TYP = 'S'.
WA_HEADER-INFO = ': Date'.
WA_HEADER-KEY = LDATE.
APPEND WA_HEADER TO IT_HEADER.
WA_HEADER-TYP = 'S'.
WA_HEADER-INFO = ': Time'.
WA_HEADER-KEY = LTIME.
APPEND WA_HEADER TO IT_HEADER.
STILL IM NOT GETTING WAT ELSE IS REQUIRED ? -
Function module to calculate Variable-Size Item
I am creating a report for manual reservation. User wants to calculate quantity of material if he enters size1, size2 and size3. Also he wants that a formula key option to be provided so that he can mention conversion formula. Is there any standard function module to calculate quantity?
Hi Vishal,
I've declared two variables
DATA: LDATE(20),
LTIME(20).
CALL FUNCTION 'GET_SYSTEM_TIME_REMOTE'
IMPORTING
K_DATE =
K_TIME =
L_DATE = LDATE
L_TIME = LTIME
AND IN THE FORM HEADER I'VE GIVEN IT AS,
WA_HEADER-TYP = 'S'.
WA_HEADER-INFO = ': Date'.
WA_HEADER-KEY = LDATE.
APPEND WA_HEADER TO IT_HEADER.
WA_HEADER-TYP = 'S'.
WA_HEADER-INFO = ': Time'.
WA_HEADER-KEY = LTIME.
APPEND WA_HEADER TO IT_HEADER.
STILL IM NOT GETTING WAT ELSE IS REQUIRED ? -
Function Module to calculate pallets
Hi,
I need a Function Module to calculate pallets for free of charge articles while creating a sales order.
can someone name any FM for this purpose.
Thanks in advanceHi Abhishek,
Check FM L_PALLET_SUGGESTION.
Hope this helps.
Thanks
Lakshman -
Function module to calculate due date of FI document
Hi All
I need a function module to calculate the due date of FI document considering BSId Zterm ( Payment terms ) Document date , Basline date .
Regards,
chitracall function 'FI_TERMS_OF_PAYMENT_PROPOSE'
exporting
i_bldat = gv_bldat
i_budat = gv_budat
i_cpudt = sy-datum
i_zfbdt = gv_zfbdt
i_zterm = gv_terms_paym
i_bukrs = gv_comp_code
importing
e_zbd1t = gv_zbd1t
e_zbd2t = gv_zbd2t
e_zbd3t = gv_zbd3t.
faede-shkzg = 'H'.
faede-koart = 'K'.
faede-zfbdt = gv_zfbdt.
faede-zbd1t = gv_zbd1t.
faede-zbd2t = gv_zbd2t.
faede-zbd3t = gv_zbd3t.
faede-bldat = gv_bldat.
call function 'DETERMINE_DUE_DATE'
exporting
i_faede = faede
importing
e_faede = faede.
* if sy-subrc eq 0.
duedate = faede-netdt. <<<<<< ------ -
Function module to calculate capacity requirements of production order
HI
Hav a requirement to calculate capacity requirement for production orders like we see in cm50... does anyone know a function module to calculate capacity requirement?Hi All,
Just to reopen this issue, even I am looking for a similar functionality.
To reinstate the requirement:
I want to find shifts and corresponding capacities for a work center. These details are obtained from CR03 and CR13 transaction.
If possible do let me know Function module or tables for the same.
Debs -
Function module to calculate WBS Remaining Plan
Hi all,
Is anyone know if there is Function Module to calculate WBS remaining plan?
thanks,
libl69Try function MD_CONVERT_MATERIAL_UNIT
the table of UOM's is MARM.
Doug -
What is the function module to calculate "years of services" in HR?
What is the function module to calculate "years of services" in HR?
hi ,
following function module will help you to find the years of service
CALL FUNCTION 'HR_HK_TOTAL_YOS' "HR-HK: Calculate an employee's total years of service
EXPORTING
years1 = " pea_scryy Years of service
months1 = " pea_scrmm Months of service
days1 = " pea_scrdd Days of service
years2 = " pea_scryy Credit years of service
months2 = " pea_scrmm Credit months of service
days2 = " pea_scrdd Credit days of service
output_format = '01' " char2 Format to display the output
IMPORTING
years = " pea_scryy Total years of service
months = " pea_scrmm Total months of service
days = " pea_scrdd Total days of service
. " HR_HK_TOTAL_YOS
thanks u.. -
Function module to calculate quantity of unrestricted stock
Is there any function module to calculate the quantity of unrestricted stock in alternate units of measure.
For example we have a material '123456', its unit of measure is 'EA'(eaches) and we have 172 'EA'.
but this material can be issued only in boxes. Each box has 50 'EA.
I believe that SAP has a standard function module to convert the quantity, because the quantity gets updated in transaction 'MMBE' depending on our UOM selection.
If not can you please let me know which table stores the relation between the UOMs.
Thank you,
Goldie.Try function MD_CONVERT_MATERIAL_UNIT
the table of UOM's is MARM.
Doug -
Calculate withholding tax with bapi
Hi Guys,
has anyone used BAPI_ACC_DOCUMENT_POST to post a vendor invoice and calculate withholding tax automatically.
Urgently needed.
Regards,
Tarun BahalTarun,
Just refer:
Urgent : Im not able to Post Withholding Tax in "BAPI_ACC_DOCUMENT_POST"
Amit. -
Function module which calculates GL balances
Hello to you all,
I am looking for a function module which calculates balances for GL account as Tcode FS10N do.
I would like to implement this FM in an ABAP program,
Thanks,
AmirHi
Check the Code, if it could be of use to you
http://www.sapfans.com/forums/viewtopic.php?f=10&t=317349
Regards
Sanil Bhandari
Edited by: Sanil K Bhandari on Jun 29, 2011 6:17 PM
Maybe you are looking for
-
Error code 1079 on windows 8.1
I have just upgraded to windows 8.1 on my Lenovo ideapad yoga 13 and my audio has stopped working. All the fixes available discuss the older versions and none are able to support 8.1. Having researched this for the last 24 hours I have done most thin
-
Insert options not working in Dreamweaver - PLEASE HELP!!
I have Dreamweaver CS6, purchased through Creative Cloud running on an iMac. Recently I have noticed the Insert options are not showing up through the Insert window: On top of this, none of the options in the Insert drop down menu work either. I have
-
Luxadm probe / Could not find the loop address for the device at physical path
Using EMC FibreChannel Disks on a Solaris 10 # luxadm probe No Network Array enclosures found in /dev/es Error: Could not find the loop address for the device at physical path. # echo $? 255 Any ideas how to fix? Thank, Marcel
-
Views, not updatable???
Have run the script demobld.sql in schema SCOTT/TIGER and created the following view SQL> @C:\scripts\demobld.sql Building demonstration tables. Please wait. Demonstration table build is complete. CREATE OR REPLACE VIEW empdept AS SELECT emp.empno, e
-
Image opens in CS3 not Camera Raw
Recently when i open a dng image it opens in CS3 not Camera Raw. How do I get the raw/dng images to open in Camera Raw? Thanks Gene