SAP ABAP Class CL_SA_WITHTAX_SERVICE (Service class for withholding tax calc. for Saudi Arabia)
Hierarchy
SAP_FIN (Software Component) SAP_FIN
   FI-LOC (Application Component) Localization
     ID-FI-SAU (Package) FI Localization: Saudi Arabia & United Arab Emirates
Properties
Class CL_SA_WITHTAX_SERVICE  
Short Description Service class for withholding tax calc. for Saudi Arabia    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package ID-FI-SAU   FI Localization: Saudi Arabia & United Arab Emirates 
Created 20091007   SAP 
Last change 20100310   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 WTSA1 Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class CL_SA_WITHTAX_SERVICE has no interface implemented.
Friends
Class CL_SA_WITHTAX_SERVICE has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 MT_LFA1 Static Attribute Private Type reference (TYPE) TY_IDWT_LFA1_SA Vendor Master (General Section) 20091105
2 MT_T059Z Static Attribute Private Type reference (TYPE) TY_IDWT_T059Z_SA Table type for T059Z table 20091105
3 MT_T059ZT Static Attribute Private Type reference (TYPE) TY_IDWT_T059ZT_SA Table type for T059zt 20091105
Methods
# Method Level Visibility Method type Description Created on
1 ADD_MONTH_TO_DATE Static method Public Method Adds a month or more to a date 20091016
2 CALC_PAYMENT_DUE_DATE Static method Public Method Claculates the payment due date based on payment term 20091015
3 CALC_PENALTY_FOR_ITEM Static method Public Method Calculates the penalty for delay for an item, if needed 20091015
4 CALC_TOTAL_OF_PAYMENTTYPE Static method Public Method Calculates the totals for a payment type 20091014
5 FILL_FIDOC_SA_TABLE Static method Public Method Fills the FIDOC_SA table for Adobe and Smartform 20091007
6 FILL_HEADER_DATA Static method Public Method Fills the Adobe form/Smartform header data 20091016
7 INIT_TABLE_LINE Static method Public Method Initialiazes fidoc_sa table line 20091012
8 PREPARE_PRINTOUT_DATA Static method Public Method Prepare the printout data 20091020
9 READ_CUST_TABLES Static method Public Method Reads the relevant cust. contents of t059zt, t059z, lfa1 20091105
Events
Class CL_SA_WITHTAX_SERVICE has no event.
Types
Class CL_SA_WITHTAX_SERVICE has no local type.
Method Signatures

Method ADD_MONTH_TO_DATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_NEWDATE Call by reference Attribute reference (LIKE) SY-DATUM Current Date of Application Server 20091016
2 Importing IV_MONTHS Call by reference Type reference (TYPE) I 20091016
3 Importing IV_OLDDATE Call by reference Attribute reference (LIKE) SY-DATUM Current Date of Application Server 20091016

Method ADD_MONTH_TO_DATE on class CL_SA_WITHTAX_SERVICE has no exception.

Method CALC_PAYMENT_DUE_DATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_PYMNT_DUE_DATE Call by reference Type reference (TYPE) DATE Payment Due Date 20091015
2 Importing IS_FIDOC_SA Call by reference Type reference (TYPE) IDWTFIDOC_SA Withholding Tax Data from FI Documents 20091015
# Exception Resumable Description Created on
1 ERROR 20091015

Method CALC_PENALTY_FOR_ITEM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_PENALTY Call by reference Type reference (TYPE) WT_TAX_AMT Withholding Tax Amount in Reporting Currency 20091015
2 Exporting EV_PENALTY_BASE Call by reference Type reference (TYPE) WT_DMBTR Gross amount in Reporting Currency 20091015
3 Importing IS_FIDOC_SA Call by reference Type reference (TYPE) IDWTFIDOC_SA Structure for withholding tax data from FI documents(SaudiA) 20091015

Method CALC_PENALTY_FOR_ITEM on class CL_SA_WITHTAX_SERVICE has no exception.

Method CALC_TOTAL_OF_PAYMENTTYPE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_FIDOC_SA Call by reference Type reference (TYPE) TY_IDWTFIDOC_SA Table type for Withholding Tax Saudi Arabia From FI Document 20091014
2 Exporting EV_PENALTY Call by reference Type reference (TYPE) WT_TAX_AMT Withholding Tax Base Amount in Reporting Currency 20091015
3 Exporting EV_PENALTY_BASE Call by reference Type reference (TYPE) WT_DMBTR Total Penalty base 20091015
4 Exporting EV_TOTAL_DMBTR Call by reference Type reference (TYPE) WT_DMBTR Gross amount in Reporting Currency 20091015
5 Exporting EV_TOTAL_QBSHH Call by reference Type reference (TYPE) WT_TAX_AMT Withholding Tax Base Amount in Reporting Currency 20091015
6 Importing IT_FIDOC_SA Call by reference Type reference (TYPE) TY_IDWTFIDOC_SA Table type for Withholding Tax Saudi Arabia From FI Document 20091014
7 Importing IV_WITHCD Call by reference Type reference (TYPE) WT_WITHCD Withholding tax code 20091014
8 Importing IV_WITHT Call by reference Type reference (TYPE) WT_WITHT Withholding tax type for determining base amount 20091015
9 Importing IV_WT_PERIOD Call by reference Type reference (TYPE) WT_REPPERIOD Reporting Period 20091016

Method CALC_TOTAL_OF_PAYMENTTYPE on class CL_SA_WITHTAX_SERVICE has no exception.

Method FILL_FIDOC_SA_TABLE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_ERROR Call by reference Type reference (TYPE) TY_IDWTERROR Error information collected during selection 20091007
2 Exporting ET_IDWTFIDOC_SA Call by reference Type reference (TYPE) TY_IDWTFIDOC_SA Table type for Withholding Tax Saudi Arabia From FI Document 20091007
3 Importing IT_IDWTFIDOC Call by reference Type reference (TYPE) TY_IDWTFIDOC Table for WH Tax Reporting (FI Documents) 20091007
4 Importing IV_BUKRS Call by reference Type reference (TYPE) BUKRS Company Code 20091013
5 Importing IV_PARTNERNO Call by reference Type reference (TYPE) PARTNERNO Partner ID 20091016
6 Importing IV_WT_PERIOD Call by reference Type reference (TYPE) WT_REPPERIOD Reporting Period 20091016

Method FILL_FIDOC_SA_TABLE on class CL_SA_WITHTAX_SERVICE has no exception.

Method FILL_HEADER_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_IDWTPARTNER_SA Call by reference Type reference (TYPE) IDWTPARTNER_SA Partner data for Withholding Tax Saudi Arabia 20091016
2 Importing IS_IDWTPARTNER Call by reference Type reference (TYPE) IDWTPARTNER Withholding Tax Type, Code, and Vendor/Customer Master Data 20091016
3 Importing IV_DATE_FROM Call by reference Attribute reference (LIKE) SY-DATUM From Date for the period 20091019

Method FILL_HEADER_DATA on class CL_SA_WITHTAX_SERVICE has no exception.

Method INIT_TABLE_LINE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning ES_FIDOC_SA Value transfer Type reference (TYPE) IDWTFIDOC_SA Structure for withholding tax data from FI documents(SaudiA) 20091012
2 Importing IS_FIDOC_SA Call by reference Type reference (TYPE) IDWTFIDOC_SA Structure for withholding tax data from FI documents(SaudiA) 20091013
3 Importing IV_BUKRS Call by reference Type reference (TYPE) BUKRS Company Code 20091013
4 Importing IV_WITHCD Call by reference Type reference (TYPE) WT_WITHCD Withholding tax code 20091012
5 Importing IV_WITHT Call by reference Type reference (TYPE) WITHT Indicator for Withholding Tax Type 20091012

Method INIT_TABLE_LINE on class CL_SA_WITHTAX_SERVICE has no exception.

Method PREPARE_PRINTOUT_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_ERROR Call by reference Type reference (TYPE) TY_IDWTERROR error information collected during selection 20091105
2 Exporting ET_COMPCD Call by reference Type reference (TYPE) TY_IDWTCOMPCD Table for WH Tax Reporting Data (Company Code) 20091105
3 Exporting ET_CONTENT_SA Call by reference Type reference (TYPE) TY_IDWTCONTENT_SA Withholding taxt report content for Saudi Arabia 20091105
4 Importing IT_COMPCD Call by reference Type reference (TYPE) TY_IDWTCOMPCD Table for WH Tax Reporting Data (Company Code) 20091105
5 Importing IT_FIDOC Call by reference Type reference (TYPE) TY_IDWTFIDOC Table for WH Tax Reporting (FI Documents) 20091105
6 Importing IT_PARTNER Call by reference Type reference (TYPE) TY_IDWTPARTNER table type for data of partner, w/tax type and code. 20091105
7 Importing IV_REPORTING_FROM Call by reference Type reference (TYPE) WT_REPORT_FROM First Date of Reporting Period 20091105
8 Importing IV_REPORTING_TO Call by reference Type reference (TYPE) WT_REPORT_TO Last Date of Reporting Period 20091105

Method PREPARE_PRINTOUT_DATA on class CL_SA_WITHTAX_SERVICE has no exception.

Method READ_CUST_TABLES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_ERROR Call by reference Type reference (TYPE) TY_IDWTERROR error information collected during selection 20091105
2 Importing IT_FIDOC Call by reference Type reference (TYPE) TY_IDWTFIDOC Table for WH Tax Reporting (FI Documents) type and code. 20091105

Method READ_CUST_TABLES on class CL_SA_WITHTAX_SERVICE has no exception.
History
Last changed by/on SAP  20100310 
SAP Release Created in 605