SAP ABAP Class CL_XTAX_RULES_CALCULATION (Rules for calculation (using tax_input structures))
Hierarchy
☛
SAP_FIN (Software Component) SAP_FIN
⤷
FI-GL-GL (Application Component) Basic Functions
⤷
FYTX/ETXDC (Package) External Tax document

⤷

⤷

Properties
Class | CL_XTAX_RULES_CALCULATION | |
Short Description | Rules for calculation (using tax_input structures) | |
Super Class | ||
Instantiability of a Class | 2 | Public |
Final |
General Data
Message Class | ||
Program status | ||
Category | 0 | |
Package | FYTX/ETXDC | External Tax document |
Created | 19990316 | SAP |
Last change | 20100310 | SAP |
Shared Memory-enabled | ||
Fixed point arithmetic | ||
Unicode checks active |
Forward declarations
Class CL_XTAX_RULES_CALCULATION has no forward declaration.
Interfaces
Class CL_XTAX_RULES_CALCULATION has no interface implemented.
Friends
Class CL_XTAX_RULES_CALCULATION has no friend class.
Attributes
Class CL_XTAX_RULES_CALCULATION has no attribute.
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | ![]() |
Instance method | Public | Method | map SAP fields to external system fields for header | 19990316 |
2 | ![]() |
Instance method | Public | Method | map SAP fields to external system fields for item | 19990316 |
3 | ![]() |
Instance method | Private | Method | default account number (accnt_no) in user_info input struct. | 19990316 |
4 | ![]() |
Instance method | Private | Method | default txjcd_poo and txjcd_poa if initial | 19990316 |
5 | ![]() |
Instance method | Private | Method | default values for user info fields in input_data structure | 19990316 |
6 | ![]() |
Instance method | Private | Method | get number of decimals for a currency | 19990316 |
7 | ![]() |
Instance method | Private | Method | get item jurisdiction codes (ship-to, ship-from, POO, POA) | 19990316 |
8 | ![]() |
Instance method | Private | Method | get tax code product code in external system 'format' | 19990316 |
9 | ![]() |
Instance method | Private | Method | get tax calculation date | 19990316 |
10 | ![]() |
Instance method | Private | Method | User can change some data | 19990316 |
11 | ![]() |
Instance method | Private | Method | Get the document currency used in the transaction | 19990510 |
12 | ![]() |
Instance method | Private | Method | map document info fields | 19990316 |
13 | ![]() |
Instance method | Private | Method | map document key | 19990316 |
14 | ![]() |
Instance method | Private | Method | map jurisdiction code structure (depends on ext. system) | 19990316 |
15 | ![]() |
Instance method | Private | Method | Get the local currency to be used in the actual posting | 19990510 |
16 | ![]() |
Instance method | Private | Method | map material information | 19990316 |
17 | ![]() |
Instance method | Private | Method | map tax code properties | 19990316 |
18 | ![]() |
Instance method | Private | Method | map tax default amounts and rates to item_out | 19990316 |
19 | ![]() |
Instance method | Private | Method | map item transaction information | 19990316 |
20 | ![]() |
Static method | Private | Method | " 2 " is converted to "002" | 20050926 |
Events
Class CL_XTAX_RULES_CALCULATION has no event.
Types
Class CL_XTAX_RULES_CALCULATION has no local type.
Method Signatures
Method ADD_INPUT_DATA_HEADER Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
I_INPUT_HEADER | Call by reference | Type reference (TYPE) | TAX_INPUT_HEADER | Steuereingabe-Kopffelder | 19990316 | ||
2 | ![]() |
I_TAX_TTXD | Call by reference | Type reference (TYPE) | TTXD | Steuersysteminformationen | 19990316 | ||
3 | ![]() |
O_HEADER_INFO | Call by reference | Type reference (TYPE) | EXTAX_DOC | Kopfinformationen | 19990316 |
Method ADD_INPUT_DATA_HEADER on class CL_XTAX_RULES_CALCULATION has no exception.
Method ADD_INPUT_DATA_ITEM Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
I_HEADER_INFO | Call by reference | Type reference (TYPE) | EXTAX_DOC | Kopfinformationen | 19990316 | ||
2 | ![]() |
I_INPUT_ITEM | Call by reference | Type reference (TYPE) | TAX_INPUT_ITEM | Steuereingabeposition für Preisfindung | 19990316 | ||
3 | ![]() |
I_TAX_CODE_INFO | Call by reference | Type reference (TYPE) | T007A | Eigenschaften Steuerkennzeichen | 19990316 | ||
4 | ![]() |
I_TAX_TTXD | Call by reference | Type reference (TYPE) | TTXD | Steuersysteminformationen | 19990316 | ||
5 | ![]() |
O_INPUT_DATA | Call by reference | Type reference (TYPE) | EXTAX_ITEM_IN | Positionseingabedaten | 19990316 | ||
6 | ![]() |
O_MAPPING_OK | Call by reference | Type reference (TYPE) | C | Mapping OK | 19990316 | ||
7 | ![]() |
O_MESSAGE | Call by reference | Type reference (TYPE) | TAX_MESSAGE | Meldung | 19990316 | ||
8 | ![]() |
O_OUTPUT_DATA | Call by reference | Type reference (TYPE) | EXTAX_ITEM_OUT | Positionsausgabedaten | 19990316 | ||
9 | ![]() |
O_TAX_DATA | Call by reference | Type reference (TYPE) | EXTAX_JUR_LEVEL_TABLE | Positionssteuerdaten | 19990316 |
Method ADD_INPUT_DATA_ITEM on class CL_XTAX_RULES_CALCULATION has no exception.
Method DEFAULT_ACCNT_NO Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
I_INPUT_ITEM | Call by reference | Type reference (TYPE) | TAX_INPUT_KOMK_KOMP | Steuereingabeposition für Preisfindung | 19990316 | ||
2 | ![]() |
I_TAX_TYPE | Call by reference | Type reference (TYPE) | T007A-MWART | Steuerart: Ausgangssteuer/Vorsteuer | 19990316 | ||
3 | ![]() |
O_ACCNT_NO | Call by reference | Type reference (TYPE) | TAX_ACCNT_NO | Kreditoren- oder Warenempfängerkonto | 19990316 |
Method DEFAULT_ACCNT_NO on class CL_XTAX_RULES_CALCULATION has no exception.
Method DEFAULT_TXJCD_POO_AND_POA Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
CH_INPUT_DATA | Call by reference | Type reference (TYPE) | EXTAX_ITEM_IN | Eingabedaten mit txjcd-Feldern | 19990316 |
Method DEFAULT_TXJCD_POO_AND_POA on class CL_XTAX_RULES_CALCULATION has no exception.
Method DEFAULT_USER_INFO Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
I_INPUT_ITEM | Call by reference | Type reference (TYPE) | TAX_INPUT_KOMK_KOMP | Steuereingabeposition für Preisfindung | 19990316 | ||
2 | ![]() |
I_TAX_CODE_INFO | Call by reference | Type reference (TYPE) | T007A | Eigenschaften Steuerkennzeichen | 19990316 | ||
3 | ![]() |
O_USER_INFO | Call by reference | Type reference (TYPE) | TAX_USER_INF | Steuer-Substruktur: Benutzerinformationen | 19990316 |
Method DEFAULT_USER_INFO on class CL_XTAX_RULES_CALCULATION has no exception.
Method GET_DECIMALS_FOR_CURRENCY Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
I_CURRENCY | Call by reference | Type reference (TYPE) | PSWSL | Währung | 19990316 | ||
2 | ![]() |
O_DECIMALS | Call by reference | Type reference (TYPE) | CURDECCHAR | Anzahl Dezimalstellen in char | 19990316 |
Method GET_DECIMALS_FOR_CURRENCY on class CL_XTAX_RULES_CALCULATION has no exception.
Method GET_JURISDICTION_CODES Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
I_HEADER_INFO | Call by reference | Type reference (TYPE) | EXTAX_DOC | Externer Steuerbeleg - Kopfeingabedaten | 20070724 | ||
2 | ![]() |
I_INPUT_ITEM | Call by reference | Type reference (TYPE) | TAX_INPUT_KOMK_KOMP | Steuereingabeposition für Preisfindung | 19990316 | ||
3 | ![]() |
I_TAX_CODE_INFO | Call by reference | Type reference (TYPE) | T007A | Eigenschaften Steuerkennzeichen | 19990316 | ||
4 | ![]() |
O_POA | Call by reference | Type reference (TYPE) | TXJCD_POA | Ort der Auftragsbestätigung | 19990316 | ||
5 | ![]() |
O_POO | Call by reference | Type reference (TYPE) | TXJCD_POO | Ort des Auftragsursprungs | 19990316 | ||
6 | ![]() |
O_SHIP_FROM | Call by reference | Type reference (TYPE) | TXJCD_SF | Steuerstandort-Code Ursprung der Warenlieferung | 19990316 | ||
7 | ![]() |
O_SHIP_TO | Call by reference | Type reference (TYPE) | TXJCD_ST | Steuerstandort-Code Ziel der Warenlieferung | 19990316 |
Method GET_JURISDICTION_CODES on class CL_XTAX_RULES_CALCULATION has no exception.
Method GET_PROD_CODE_FOR_EXTSYS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
I_TAX_CODE_INFO | Call by reference | Type reference (TYPE) | T007A | Eigenschaften Steuerkennzeichen | 19990316 | ||
2 | ![]() |
O_PROD_CODE | Call by reference | Type reference (TYPE) | TTXP-XPRCD | Produktschlüssel im Format des externen Systems | 19990316 |
Method GET_PROD_CODE_FOR_EXTSYS on class CL_XTAX_RULES_CALCULATION has no exception.
Method GET_TAX_DATE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
I_INPUT_ITEM | Call by reference | Type reference (TYPE) | TAX_INPUT_KOMK_KOMP | Steuereingabeposition für Preisfindung | 19990316 | ||
2 | ![]() |
O_TAX_DATE | Call by reference | Type reference (TYPE) | ETDTXDAT | Steuerberechnungsdatum | 19990316 |
Method GET_TAX_DATE on class CL_XTAX_RULES_CALCULATION has no exception.
Method HANDLE_USER_EXIT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
CH_INPUT_DATA | Call by reference | Type reference (TYPE) | EXTAX_ITEM_IN | Eingabedaten auf Positionsebene | 19990316 | ||
2 | ![]() |
I_HEADER_INFO | Call by reference | Type reference (TYPE) | EXTAX_DOC | Steuerkopfinformationen | 19990316 | ||
3 | ![]() |
I_INPUT_PRICING | Call by reference | Type reference (TYPE) | TAX_INPUT_KOMK_KOMP | Steuereingabeposition aus KOMK, KOMP und XKOMV | 19990317 | ||
4 | ![]() |
I_INPUT_USER | Call by reference | Type reference (TYPE) | TAX_USER_PRICING | Steuereingabebenutzer aus Preisfindung | 19990316 | ||
5 | ![]() |
I_T007A | Call by reference | Type reference (TYPE) | T007A | Steuerkennzeicheninformation | 19990316 | ||
6 | ![]() |
I_TTXD | Call by reference | Type reference (TYPE) | TTXD | Externe Systeminformation | 19990316 |
Method HANDLE_USER_EXIT on class CL_XTAX_RULES_CALCULATION has no exception.
Method MAP_DOCUMENT_CURRENCY Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
I_INPUT_HEADER | Call by reference | Type reference (TYPE) | TAX_INPUT_HEADER | tax_input-Struktur für xtax_document | 19990510 | ||
2 | ![]() |
O_TAX_DOC_INF | Call by reference | Type reference (TYPE) | TAX_DOC_INF | Steuerbeleginformation | 19990510 |
Method MAP_DOCUMENT_CURRENCY on class CL_XTAX_RULES_CALCULATION has no exception.
Method MAP_DOC_INFO Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
I_INPUT_HEADER | Call by reference | Type reference (TYPE) | TAX_INPUT_HEADER | tax_input-Struktur für xtax_document | 19990316 | ||
2 | ![]() |
I_TAX_TTXD | Call by reference | Type reference (TYPE) | TTXD | Steuersysteminformationen | 19990316 | ||
3 | ![]() |
O_TAX_DOC_INF | Call by reference | Type reference (TYPE) | TAX_DOC_INF | Steuerbeleginformation | 19990316 |
Method MAP_DOC_INFO on class CL_XTAX_RULES_CALCULATION has no exception.
Method MAP_DOC_KEY Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
I_INPUT_HEADER | Call by reference | Type reference (TYPE) | TAX_INPUT_HEADER | tax_input-Struktur für xtax_document | 19990316 | ||
2 | ![]() |
O_TAX_DOC_KEY | Call by reference | Type reference (TYPE) | TAX_DOC_KEY | Belegschlüssel | 19990316 |
Method MAP_DOC_KEY on class CL_XTAX_RULES_CALCULATION has no exception.
Method MAP_JURISDCODE_STRUC Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
I_TAX_TTXD | Call by reference | Type reference (TYPE) | TTXD | Steuersysteminformationen | 19990316 | ||
2 | ![]() |
O_TXJCD_STRUC | Call by reference | Type reference (TYPE) | TAX_TXJCD_STRUC | Steuerstandortstruktur (abhängig vom externen System) | 19990316 |
Method MAP_JURISDCODE_STRUC on class CL_XTAX_RULES_CALCULATION has no exception.
Method MAP_LOCAL_CURRENCY Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
I_INPUT_HEADER | Call by reference | Type reference (TYPE) | TAX_INPUT_HEADER | tax_input-Struktur für xtax_document | 19990510 | ||
2 | ![]() |
O_GL_CURRENCY | Call by reference | Type reference (TYPE) | TAX_GLCURRENCY | Hauswährung | 19990510 | ||
3 | ![]() |
O_GL_CURR_DEC | Call by reference | Type reference (TYPE) | GL_CURDECCHAR | Dezimalstellen der Hauswährung | 19990510 |
Method MAP_LOCAL_CURRENCY on class CL_XTAX_RULES_CALCULATION has no exception.
Method MAP_MATERIAL_INFO Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
I_INPUT_ITEM | Call by reference | Type reference (TYPE) | TAX_INPUT_KOMK_KOMP | Steuereingabeposition für Preisfindung | 19990316 | ||
2 | ![]() |
I_TAX_CODE_INFO | Call by reference | Type reference (TYPE) | T007A | Eigenschaften Steuerkennzeichen | 19990316 | ||
3 | ![]() |
O_MATERIAL_INFO | Call by reference | Type reference (TYPE) | ETDTAX_MAT_INF | Materialinformation | 19990316 |
Method MAP_MATERIAL_INFO on class CL_XTAX_RULES_CALCULATION has no exception.
Method MAP_TAXCODE_INFO Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
I_TAX_CODE_INFO | Call by reference | Type reference (TYPE) | T007A | Eigenschaften Steuerkennzeichen | 19990316 | ||
2 | ![]() |
O_TAXCODE_INF | Call by reference | Type reference (TYPE) | TAX_TAXCODE_INF | Steuerkennzeicheninformation | 19990316 |
Method MAP_TAXCODE_INFO on class CL_XTAX_RULES_CALCULATION has no exception.
Method MAP_TAX_DEFAULT_DATA Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
CH_OUTPUT_DATA | Call by reference | Type reference (TYPE) | EXTAX_ITEM_OUT | Positionsausgabe mit taxamov und taxpctov | 19990410 | ||
2 | ![]() |
I_DEFAULT_TAXES | Call by reference | Type reference (TYPE) | TAX_AMOUNTS_AND_RATES_TAB | Vorgeschlagene Steuerbetragssätze | 19990316 | ||
3 | ![]() |
O_TAX_DATA | Call by reference | Type reference (TYPE) | EXTAX_JUR_LEVEL_TABLE | Positionssteuerdaten | 19990316 |
Method MAP_TAX_DEFAULT_DATA on class CL_XTAX_RULES_CALCULATION has no exception.
Method MAP_TRANSACTION_INFO Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
I_BASE_AMOUNT | Value transfer | Type reference (TYPE) | ETDTAXBASE | Basisbetrag | 19990316 | ||
2 | ![]() |
I_HEADER_INFO | Call by reference | Type reference (TYPE) | EXTAX_DOC | Externer Steuerbeleg - Kopfeingabedaten | 20070724 | ||
3 | ![]() |
I_INPUT_ITEM | Call by reference | Type reference (TYPE) | TAX_INPUT_KOMK_KOMP | Steuereingabeposition für Preisfindung | 19990316 | ||
4 | ![]() |
I_TAX_CODE_INFO | Call by reference | Type reference (TYPE) | T007A | Eigenschaften Steuerkennzeichen | 19990316 | ||
5 | ![]() |
O_TRANSACTION_INFO | Call by reference | Type reference (TYPE) | ETDTAX_TRANS_INF | Transaktionsinformation für Position | 19990316 |
Method MAP_TRANSACTION_INFO on class CL_XTAX_RULES_CALCULATION has no exception.
Method PAD_NUMBER_WITH_ZEROS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
I_NUMBER | Call by reference | Type reference (TYPE) | TCURX-CURRDEC | Number of decimal places | 20050926 | ||
2 | ![]() |
O_PADDED_ZEROS_NUMBER | Call by reference | Type reference (TYPE) | TAX_CAL_HEAD_IN00-CURR_DEC | Number of decimal places for currency (characters) | 20050926 |
Method PAD_NUMBER_WITH_ZEROS on class CL_XTAX_RULES_CALCULATION has no exception.
History
Last changed by/on | SAP | 20100310 |
SAP Release Created in |