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 ADD_INPUT_DATA_HEADER Instance method Public Method map SAP fields to external system fields for header 19990316
2 ADD_INPUT_DATA_ITEM Instance method Public Method map SAP fields to external system fields for item 19990316
3 DEFAULT_ACCNT_NO Instance method Private Method default account number (accnt_no) in user_info input struct. 19990316
4 DEFAULT_TXJCD_POO_AND_POA Instance method Private Method default txjcd_poo and txjcd_poa if initial 19990316
5 DEFAULT_USER_INFO Instance method Private Method default values for user info fields in input_data structure 19990316
6 GET_DECIMALS_FOR_CURRENCY Instance method Private Method get number of decimals for a currency 19990316
7 GET_JURISDICTION_CODES Instance method Private Method get item jurisdiction codes (ship-to, ship-from, POO, POA) 19990316
8 GET_PROD_CODE_FOR_EXTSYS Instance method Private Method get tax code product code in external system 'format' 19990316
9 GET_TAX_DATE Instance method Private Method get tax calculation date 19990316
10 HANDLE_USER_EXIT Instance method Private Method User can change some data 19990316
11 MAP_DOCUMENT_CURRENCY Instance method Private Method Get the document currency used in the transaction 19990510
12 MAP_DOC_INFO Instance method Private Method map document info fields 19990316
13 MAP_DOC_KEY Instance method Private Method map document key 19990316
14 MAP_JURISDCODE_STRUC Instance method Private Method map jurisdiction code structure (depends on ext. system) 19990316
15 MAP_LOCAL_CURRENCY Instance method Private Method Get the local currency to be used in the actual posting 19990510
16 MAP_MATERIAL_INFO Instance method Private Method map material information 19990316
17 MAP_TAXCODE_INFO Instance method Private Method map tax code properties 19990316
18 MAP_TAX_DEFAULT_DATA Instance method Private Method map tax default amounts and rates to item_out 19990316
19 MAP_TRANSACTION_INFO Instance method Private Method map item transaction information 19990316
20 PAD_NUMBER_WITH_ZEROS 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 Importing I_INPUT_HEADER Call by reference Type reference (TYPE) TAX_INPUT_HEADER Steuereingabe-Kopffelder 19990316
2 Importing I_TAX_TTXD Call by reference Type reference (TYPE) TTXD Steuersysteminformationen 19990316
3 Exporting 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 Importing I_HEADER_INFO Call by reference Type reference (TYPE) EXTAX_DOC Kopfinformationen 19990316
2 Importing I_INPUT_ITEM Call by reference Type reference (TYPE) TAX_INPUT_ITEM Steuereingabeposition für Preisfindung 19990316
3 Importing I_TAX_CODE_INFO Call by reference Type reference (TYPE) T007A Eigenschaften Steuerkennzeichen 19990316
4 Importing I_TAX_TTXD Call by reference Type reference (TYPE) TTXD Steuersysteminformationen 19990316
5 Exporting O_INPUT_DATA Call by reference Type reference (TYPE) EXTAX_ITEM_IN Positionseingabedaten 19990316
6 Exporting O_MAPPING_OK Call by reference Type reference (TYPE) C Mapping OK 19990316
7 Exporting O_MESSAGE Call by reference Type reference (TYPE) TAX_MESSAGE Meldung 19990316
8 Exporting O_OUTPUT_DATA Call by reference Type reference (TYPE) EXTAX_ITEM_OUT Positionsausgabedaten 19990316
9 Exporting 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 Importing I_INPUT_ITEM Call by reference Type reference (TYPE) TAX_INPUT_KOMK_KOMP Steuereingabeposition für Preisfindung 19990316
2 Importing I_TAX_TYPE Call by reference Type reference (TYPE) T007A-MWART Steuerart: Ausgangssteuer/Vorsteuer 19990316
3 Exporting 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 Changing 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 Importing I_INPUT_ITEM Call by reference Type reference (TYPE) TAX_INPUT_KOMK_KOMP Steuereingabeposition für Preisfindung 19990316
2 Importing I_TAX_CODE_INFO Call by reference Type reference (TYPE) T007A Eigenschaften Steuerkennzeichen 19990316
3 Exporting 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 Importing I_CURRENCY Call by reference Type reference (TYPE) PSWSL Währung 19990316
2 Exporting 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 Importing I_HEADER_INFO Call by reference Type reference (TYPE) EXTAX_DOC Externer Steuerbeleg - Kopfeingabedaten 20070724
2 Importing I_INPUT_ITEM Call by reference Type reference (TYPE) TAX_INPUT_KOMK_KOMP Steuereingabeposition für Preisfindung 19990316
3 Importing I_TAX_CODE_INFO Call by reference Type reference (TYPE) T007A Eigenschaften Steuerkennzeichen 19990316
4 Exporting O_POA Call by reference Type reference (TYPE) TXJCD_POA Ort der Auftragsbestätigung 19990316
5 Exporting O_POO Call by reference Type reference (TYPE) TXJCD_POO Ort des Auftragsursprungs 19990316
6 Exporting O_SHIP_FROM Call by reference Type reference (TYPE) TXJCD_SF Steuerstandort-Code Ursprung der Warenlieferung 19990316
7 Exporting 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 Importing I_TAX_CODE_INFO Call by reference Type reference (TYPE) T007A Eigenschaften Steuerkennzeichen 19990316
2 Exporting 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 Importing I_INPUT_ITEM Call by reference Type reference (TYPE) TAX_INPUT_KOMK_KOMP Steuereingabeposition für Preisfindung 19990316
2 Exporting 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 Changing CH_INPUT_DATA Call by reference Type reference (TYPE) EXTAX_ITEM_IN Eingabedaten auf Positionsebene 19990316
2 Importing I_HEADER_INFO Call by reference Type reference (TYPE) EXTAX_DOC Steuerkopfinformationen 19990316
3 Importing I_INPUT_PRICING Call by reference Type reference (TYPE) TAX_INPUT_KOMK_KOMP Steuereingabeposition aus KOMK, KOMP und XKOMV 19990317
4 Importing I_INPUT_USER Call by reference Type reference (TYPE) TAX_USER_PRICING Steuereingabebenutzer aus Preisfindung 19990316
5 Importing I_T007A Call by reference Type reference (TYPE) T007A Steuerkennzeicheninformation 19990316
6 Importing 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 Importing I_INPUT_HEADER Call by reference Type reference (TYPE) TAX_INPUT_HEADER tax_input-Struktur für xtax_document 19990510
2 Exporting 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 Importing I_INPUT_HEADER Call by reference Type reference (TYPE) TAX_INPUT_HEADER tax_input-Struktur für xtax_document 19990316
2 Importing I_TAX_TTXD Call by reference Type reference (TYPE) TTXD Steuersysteminformationen 19990316
3 Exporting 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 Importing I_INPUT_HEADER Call by reference Type reference (TYPE) TAX_INPUT_HEADER tax_input-Struktur für xtax_document 19990316
2 Exporting 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 Importing I_TAX_TTXD Call by reference Type reference (TYPE) TTXD Steuersysteminformationen 19990316
2 Exporting 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 Importing I_INPUT_HEADER Call by reference Type reference (TYPE) TAX_INPUT_HEADER tax_input-Struktur für xtax_document 19990510
2 Exporting O_GL_CURRENCY Call by reference Type reference (TYPE) TAX_GLCURRENCY Hauswährung 19990510
3 Exporting 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 Importing I_INPUT_ITEM Call by reference Type reference (TYPE) TAX_INPUT_KOMK_KOMP Steuereingabeposition für Preisfindung 19990316
2 Importing I_TAX_CODE_INFO Call by reference Type reference (TYPE) T007A Eigenschaften Steuerkennzeichen 19990316
3 Exporting 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 Importing I_TAX_CODE_INFO Call by reference Type reference (TYPE) T007A Eigenschaften Steuerkennzeichen 19990316
2 Exporting 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 Changing CH_OUTPUT_DATA Call by reference Type reference (TYPE) EXTAX_ITEM_OUT Positionsausgabe mit taxamov und taxpctov 19990410
2 Importing I_DEFAULT_TAXES Call by reference Type reference (TYPE) TAX_AMOUNTS_AND_RATES_TAB Vorgeschlagene Steuerbetragssätze 19990316
3 Exporting 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 Importing I_BASE_AMOUNT Value transfer Type reference (TYPE) ETDTAXBASE Basisbetrag 19990316
2 Importing I_HEADER_INFO Call by reference Type reference (TYPE) EXTAX_DOC Externer Steuerbeleg - Kopfeingabedaten 20070724
3 Importing I_INPUT_ITEM Call by reference Type reference (TYPE) TAX_INPUT_KOMK_KOMP Steuereingabeposition für Preisfindung 19990316
4 Importing I_TAX_CODE_INFO Call by reference Type reference (TYPE) T007A Eigenschaften Steuerkennzeichen 19990316
5 Exporting 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 Importing I_NUMBER Call by reference Type reference (TYPE) TCURX-CURRDEC Number of decimal places 20050926
2 Exporting 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