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 | 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 | Static Attribute | Private | Type reference (TYPE) | TY_IDWT_LFA1_SA | Vendor Master (General Section) | 20091105 | |||
| 2 | Static Attribute | Private | Type reference (TYPE) | TY_IDWT_T059Z_SA | Table type for T059Z table | 20091105 | |||
| 3 | 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 | Static method | Public | Method | Adds a month or more to a date | 20091016 | |
| 2 | Static method | Public | Method | Claculates the payment due date based on payment term | 20091015 | |
| 3 | Static method | Public | Method | Calculates the penalty for delay for an item, if needed | 20091015 | |
| 4 | Static method | Public | Method | Calculates the totals for a payment type | 20091014 | |
| 5 | Static method | Public | Method | Fills the FIDOC_SA table for Adobe and Smartform | 20091007 | |
| 6 | Static method | Public | Method | Fills the Adobe form/Smartform header data | 20091016 | |
| 7 | Static method | Public | Method | Initialiazes fidoc_sa table line | 20091012 | |
| 8 | Static method | Public | Method | Prepare the printout data | 20091020 | |
| 9 | 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 | EV_NEWDATE | Call by reference | Attribute reference (LIKE) | SY-DATUM | Current Date of Application Server | 20091016 | |||
| 2 | IV_MONTHS | Call by reference | Type reference (TYPE) | I | 20091016 | ||||
| 3 | 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 | EV_PYMNT_DUE_DATE | Call by reference | Type reference (TYPE) | DATE | Payment Due Date | 20091015 | |||
| 2 | IS_FIDOC_SA | Call by reference | Type reference (TYPE) | IDWTFIDOC_SA | Withholding Tax Data from FI Documents | 20091015 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20091015 |
Method CALC_PENALTY_FOR_ITEM Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_PENALTY | Call by reference | Type reference (TYPE) | WT_TAX_AMT | Withholding Tax Amount in Reporting Currency | 20091015 | |||
| 2 | EV_PENALTY_BASE | Call by reference | Type reference (TYPE) | WT_DMBTR | Gross amount in Reporting Currency | 20091015 | |||
| 3 | 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 | CT_FIDOC_SA | Call by reference | Type reference (TYPE) | TY_IDWTFIDOC_SA | Table type for Withholding Tax Saudi Arabia From FI Document | 20091014 | |||
| 2 | EV_PENALTY | Call by reference | Type reference (TYPE) | WT_TAX_AMT | Withholding Tax Base Amount in Reporting Currency | 20091015 | |||
| 3 | EV_PENALTY_BASE | Call by reference | Type reference (TYPE) | WT_DMBTR | Total Penalty base | 20091015 | |||
| 4 | EV_TOTAL_DMBTR | Call by reference | Type reference (TYPE) | WT_DMBTR | Gross amount in Reporting Currency | 20091015 | |||
| 5 | EV_TOTAL_QBSHH | Call by reference | Type reference (TYPE) | WT_TAX_AMT | Withholding Tax Base Amount in Reporting Currency | 20091015 | |||
| 6 | IT_FIDOC_SA | Call by reference | Type reference (TYPE) | TY_IDWTFIDOC_SA | Table type for Withholding Tax Saudi Arabia From FI Document | 20091014 | |||
| 7 | IV_WITHCD | Call by reference | Type reference (TYPE) | WT_WITHCD | Withholding tax code | 20091014 | |||
| 8 | IV_WITHT | Call by reference | Type reference (TYPE) | WT_WITHT | Withholding tax type for determining base amount | 20091015 | |||
| 9 | 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 | CT_ERROR | Call by reference | Type reference (TYPE) | TY_IDWTERROR | Error information collected during selection | 20091007 | |||
| 2 | ET_IDWTFIDOC_SA | Call by reference | Type reference (TYPE) | TY_IDWTFIDOC_SA | Table type for Withholding Tax Saudi Arabia From FI Document | 20091007 | |||
| 3 | IT_IDWTFIDOC | Call by reference | Type reference (TYPE) | TY_IDWTFIDOC | Table for WH Tax Reporting (FI Documents) | 20091007 | |||
| 4 | IV_BUKRS | Call by reference | Type reference (TYPE) | BUKRS | Company Code | 20091013 | |||
| 5 | IV_PARTNERNO | Call by reference | Type reference (TYPE) | PARTNERNO | Partner ID | 20091016 | |||
| 6 | 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 | ES_IDWTPARTNER_SA | Call by reference | Type reference (TYPE) | IDWTPARTNER_SA | Partner data for Withholding Tax Saudi Arabia | 20091016 | |||
| 2 | IS_IDWTPARTNER | Call by reference | Type reference (TYPE) | IDWTPARTNER | Withholding Tax Type, Code, and Vendor/Customer Master Data | 20091016 | |||
| 3 | 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 | ES_FIDOC_SA | Value transfer | Type reference (TYPE) | IDWTFIDOC_SA | Structure for withholding tax data from FI documents(SaudiA) | 20091012 | |||
| 2 | IS_FIDOC_SA | Call by reference | Type reference (TYPE) | IDWTFIDOC_SA | Structure for withholding tax data from FI documents(SaudiA) | 20091013 | |||
| 3 | IV_BUKRS | Call by reference | Type reference (TYPE) | BUKRS | Company Code | 20091013 | |||
| 4 | IV_WITHCD | Call by reference | Type reference (TYPE) | WT_WITHCD | Withholding tax code | 20091012 | |||
| 5 | 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 | CT_ERROR | Call by reference | Type reference (TYPE) | TY_IDWTERROR | error information collected during selection | 20091105 | |||
| 2 | ET_COMPCD | Call by reference | Type reference (TYPE) | TY_IDWTCOMPCD | Table for WH Tax Reporting Data (Company Code) | 20091105 | |||
| 3 | ET_CONTENT_SA | Call by reference | Type reference (TYPE) | TY_IDWTCONTENT_SA | Withholding taxt report content for Saudi Arabia | 20091105 | |||
| 4 | IT_COMPCD | Call by reference | Type reference (TYPE) | TY_IDWTCOMPCD | Table for WH Tax Reporting Data (Company Code) | 20091105 | |||
| 5 | IT_FIDOC | Call by reference | Type reference (TYPE) | TY_IDWTFIDOC | Table for WH Tax Reporting (FI Documents) | 20091105 | |||
| 6 | IT_PARTNER | Call by reference | Type reference (TYPE) | TY_IDWTPARTNER | table type for data of partner, w/tax type and code. | 20091105 | |||
| 7 | IV_REPORTING_FROM | Call by reference | Type reference (TYPE) | WT_REPORT_FROM | First Date of Reporting Period | 20091105 | |||
| 8 | 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 | CT_ERROR | Call by reference | Type reference (TYPE) | TY_IDWTERROR | error information collected during selection | 20091105 | |||
| 2 | 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 |