I’ll provide a comprehensive solution addressing all three aspects of your tax migration challenge.
Legacy Tax Code Mapping Issue:
The core problem is that your 47 ECC tax codes were designed for a procedure-based calculation system, while S/4HANA uses a condition-based tax determination framework. The 31 codes that LTMC recognizes are those with direct structural equivalents in the new system. The remaining 16 codes (including your V7_DE_RED) require transformation, not just mapping.
S/4HANA’s new tax structure eliminated redundant country-specific code variations by introducing a hierarchical tax determination model:
- Tax Type (VAT, Sales Tax, Withholding)
- Tax Rate Category (Standard, Reduced, Zero)
- Tax Jurisdiction (Country/Region)
- Tax Calculation Rule (Condition Type)
Your legacy code “V7_DE_RED” embedded all four elements in a single identifier. In S/4HANA, this must be decomposed:
- Tax Type: MWST (VAT)
- Rate Category: REDUCED
- Jurisdiction: DE (Germany)
- Rate: 7%
- Calculation Rule: Condition type MWVS
VAT Calculation Logic Changes:
The VAT calculation logic changed fundamentally in three ways:
-
Condition-Based Processing: Instead of tax procedures (TAXDE), S/4HANA uses condition types with access sequences. Your reduced VAT rate must be configured as a condition record in table A003 (tax condition records) rather than as a procedural step.
-
Real-Time Tax Determination: S/4HANA performs tax calculation at document entry time using the new Tax Calculation Engine. This engine requires explicit tax jurisdiction codes, which your legacy codes didn’t maintain separately.
-
Digital Compliance Support: The new logic supports real-time VAT reporting formats (SAF-T, SII, MTD). Your reduced rate codes need additional attributes like tax exemption reason codes and digital reporting category identifiers.
LTMC Template Field Gaps:
The missing TAX_RATE_TYPE field and other gaps exist because:
-
Template Version: The initial LTMC template for tax codes in 1909 was released before SAP finalized the VAT reporting enhancements. You need Support Package 05 or higher, which includes template version 2.3.
-
Missing Fields in Standard Template:
- TAX_RATE_TYPE (Standard/Reduced/Zero classification)
- TAX_JURISDICTION_CODE (Required for multi-jurisdictional entities)
- DIGITAL_REPORT_CATEGORY (For electronic VAT filing)
- TAX_EXEMPTION_REASON (Mandatory for reduced rates in some countries)
- REVERSE_CHARGE_INDICATOR (For B2B transactions)
Complete Solution:
Step 1: Update LTMC Template
Download the latest template from SAP Note 2873022 (Tax Code Migration Template Updates). This template version includes:
LTMC Template Fields (v2.3):
LEGACY_TAX_CODE -> SOURCE_TAX_CODE
TARGET_TAX_TYPE -> KALSM_NEW
TAX_RATE_TYPE -> KTOSL_NEW
TAX_JURISDICTION -> TXJCD
Step 2: Create Tax Code Mapping Table
Build a custom mapping table to handle the 16 unmapped codes:
- Table: ZTAX_LEGACY_MAP
- Fields: LEGACY_CODE, NEW_TAX_TYPE, RATE_CATEGORY, JURISDICTION, CONDITION_TYPE, RATE_PERCENT
- Populate with your specific mappings
For V7_DE_RED:
- LEGACY_CODE: V7_DE_RED
- NEW_TAX_TYPE: MWST
- RATE_CATEGORY: REDUCED
- JURISDICTION: DE
- CONDITION_TYPE: MWVS
- RATE_PERCENT: 7.00
Step 3: Implement LTMC Transformation Rules
Use LTMC user exit LTMC_CUST_MAP_VALUES to apply custom mapping logic:
- Read from ZTAX_LEGACY_MAP for unmapped codes
- Construct S/4HANA tax code using the hierarchical format
- Validate against tax determination configuration (FTXP)
- Create condition records automatically if missing
Step 4: Reconfigure Tax Determination
Before migration, set up the new condition-based tax logic:
- Transaction FTXP: Define tax determination rules
- Create condition types for each rate category (standard, reduced, zero)
- Set up access sequences for country/region/customer combinations
- Define tax calculation procedures using condition types instead of steps
Step 5: Validate VAT Compliance
Ensure migrated tax codes support digital reporting:
- Assign digital reporting categories to each code
- Configure tax exemption reason codes for reduced rates
- Set up reverse charge indicators for B2B transactions
- Test with real-time VAT reporting transactions (MIRO, FB60)
Step 6: Execute Migration with Validation
Run LTMC migration in phases:
- Phase 1: Migrate the 31 directly mapped codes
- Phase 2: Migrate the 16 custom-mapped codes using transformation rules
- Phase 3: Validate all tax codes with test transactions
- Phase 4: Run tax calculation test cases comparing ECC vs S/4HANA results
Financial Reporting Impact Mitigation:
To avoid blocking your month-end close:
- Create temporary bridge tax codes for immediate use
- Run parallel tax calculations in ECC and S/4HANA for validation
- Use FI document splitting to separate tax reporting from operational postings
- Schedule full migration for a non-critical period
The key insight is that this isn’t just a data migration - it’s a process transformation. Your tax determination logic must be redesigned for the condition-based framework before the data migration can succeed.
Critical SAP Notes: 2873022 (template updates), 2706245 (VAT calculation changes), 2815472 (digital tax reporting setup).