Migration From ECC To HANA
Migration From ECC To HANA
1. End of Support for ECC – SAP will no longer provide updates or fixes for ECC after 2027.
2. Performance Enhancement – SAP HANA offers in-memory computing, significantly improving
data processing speed.
3. Real-Time Analytics – Businesses can analyze data in real-time without delays.
4. Simplified Data Model – Traditional database tables are replaced by columnar data storage,
reducing redundancy.
5. Future-Readiness – SAP S/4HANA provides intelligent automation, machine learning, and AI-
powered insights.
6. Reduced IT Costs – Lower database footprint and maintenance costs due to optimized storage.
SAP-Specific Terms
SUM (Software Update Manager): A tool used for system upgrade and database migration.
DMO (Database Migration Option): A component of SUM that helps migrate both application and
database to HANA in a single step.
SLT (SAP Landscape Transformation): Tool used for real-time replication from ECC to HANA.
SAP Readiness Check: Tool to check system readiness for migration.
SAP HANA Studio: A development environment for HANA databases.
Migration Execution
1. SUM (Software Update Manager) – Launched via command line, not a T-code.
2. RSBDCOS0 – Execute OS commands in the SAP system.
3. SE38 – Run custom ABAP programs to analyze system compatibility.
4. DBACOCKPIT – Database monitoring tool.
Post-Migration Validation
Simplified Data Model: Many ECC tables are removed and replaced with HANA Views.
Tables Merged: Redundant tables like BSIS (Accounting Index) and BSAS (Cleared Items) are
merged into ACDOCA in S/4HANA.
Columnar Data Storage: Instead of storing data in rows (as in ECC), HANA stores data in a
columnar format, making queries faster.
Traditional indexes are eliminated, as HANA optimizes searches without requiring additional
indexes.
In S/4HANA, Material Ledger is mandatory for inventory valuation, which wasn’t the case in ECC.
5. Compatibility Views
Some old tables still appear in the system but are only views redirecting to new HANA tables.
Cons
2. Migration Execution
3. Post-Migration Activities
Conclusion
Migrating from ECC to HANA is a strategic move that enhances system performance, simplifies data
management, and prepares enterprises for digital transformation. However, the migration process requires
careful planning, execution, and validation to ensure success. By following best practices and using the right
tools, organizations can make a smooth transition to SAP HANA while minimizing risks.
SAP HANA is an in-memory database that stores data in RAM (Random Access Memory) instead of
traditional disk storage. This architecture enables real-time data processing, ultra-fast transactions, and
analytics.
a) Real-Time Analytics
Stores data in both columnar and row-based formats for faster processing.
Columnar storage is optimized for analytics and aggregations.
Row storage is used for transactional operations.
b) Data Compression
c) Parallel Processing
d) Multi-Tier Storage
Though it runs in memory, HANA ensures data persistence by storing periodic savepoints and logs
on disk.
Ensures recovery in case of power failure or crashes.
SQL Optimization: Convert conventional Open SQL statements to HANA-optimized SQL (e.g., using FOR
ALL ENTRIES instead of SELECT * inside loops).
Eliminate Unnecessary Database Reads: Reduce SELECT...ENDSELECT and nested SELECT
statements that cause performance issues.
Use HANA Views Instead of Internal Tables: Replace ABAP internal tables with HANA CDS Views for
faster processing.
Migrate Custom Reports: Modify reports to utilize HANA-specific functions such as AMDP (ABAP
Managed Database Procedures).
Replace Outdated Functionality: Adjust custom code where old transactions and tables are obsolete (e.g.,
ACDOCA replaces multiple FI tables).
Develop and modify Core Data Services (CDS) Views for optimized data retrieval.
Implement Fiori-based consumption views to replace old SAP GUI reports.
Use annotations for improved performance and UI integration.
Enhancing Performance
Coordinate with MM, SD, FI, CO, and HR teams to ensure functional changes do not break custom
developments.
Align with SAP Basis for system performance tuning.
Test all modified ABAP programs, function modules, reports, BAPIs, and enhancements.
Check for syntax errors, performance issues, and database inconsistencies.
Validate the execution of background jobs and batch processes.
Regression Testing
Performance Tuning
Fine-tune custom developments using SQL Trace (ST05) and HANA Profiler.
Identify and resolve long-running queries or high-memory-consuming processes.
Database Optimization
Performance Issues in Custom Code Optimize SQL queries, use HANA views, and eliminate nested loops.
Obsolete Tables and Transactions Replace obsolete objects with S/4HANA-compatible alternatives.
Code Adjustments for HANA-Optimized Use CDS Views, AMDP, and HANA Procedures instead of
Execution traditional ABAP logic.
Large Volume Data Handling Use parallel processing and batch jobs.
Integrating with Fiori Develop OData services and enhance ABAP for Fiori applications.
End-User Training & Documentation Prepare clear documentation and conduct training sessions.
Conclusion
The role of an SAP ABAP consultant in ECC to HANA migration is pivotal in ensuring a seamless
transition. Their primary tasks include code optimization, SQL performance tuning, CDS View
development, and debugging issues arising from the migration. By leveraging SAP tools and best
practices, ABAP consultants help organizations achieve better performance, scalability, and future
readiness in their SAP environment.
ATC replaces older tools like Code Inspector (SCI) and provides a more advanced, automated, and
structured way to analyze ABAP code.
Detects obsolete ABAP statements, transactions, and function modules that are no longer supported in
HANA.
Helps migrate non-HANA optimized SQL queries to HANA-compatible syntax.
🔹 Performance Optimization
Allows mass code scanning instead of manually reviewing thousands of custom ABAP objects.
Standardizes custom code review across all development teams.
Pre-Migration (Assessment Scan all custom programs, reports, function modules, and enhancements for HANA
Phase) compatibility.
Identify and fix obsolete SQL statements, nested loops, and redundant database
Preparation Phase
accesses.
Migration Execution Validate whether custom code changes are correctly implemented.
Post-Migration Testing Ensure that no new errors or performance issues arise in the HANA environment.
Errors and warnings are categorized based on severity (High, Medium, Low).
Each issue comes with a recommended solution.
SELECT * FROM TABLE inside a LOOP Causes performance issues by Use FOR ALL ENTRIES or JOINs.
Error Found by ATC Why is it a Problem? Solution
Obsolete Transactions (e.g., XK01, These transactions are deprecated in Use the new BP (Business Partner)
XK02) S/4HANA. Transaction.
Using Native SQL Instead of Open Native SQL is not optimized for HANA Replace with HANA-optimized Open
SQL and can cause failures. SQL.
Fetches too much unnecessary data, Use WHERE conditions to limit data
SELECT without WHERE clause
impacting performance. retrieval.
Direct Updates to Database Tables Direct modifications can lead to data Use ABAP Managed Database
(MODIFY, INSERT, DELETE) inconsistency in HANA. Procedures (AMDP) or BAPIs.
Advantage Description
Identifies HANA Incompatibilities Ensures that all custom code is optimized for SAP HANA.
Improves Code Performance Helps eliminate slow database queries and inefficient loops.
Automated Code Scanning Eliminates the need for manual code reviews.
Ensures Security Compliance Identifies vulnerabilities and security gaps in ABAP programs.
❌ Cons (Disadvantages)
Disadvantage Description
False Positives ATC may flag issues that are not actual problems, requiring manual verification.
Limited to ABAP Code It does not analyze business processes or functional configurations.
Requires Developer Training Developers must understand how to interpret ATC reports and apply fixes.
May Not Cover All Custom Some complex Z-programs, enhancements, and workflows may need additional
Objects analysis.
SQL Trace (ST05) SQL performance ATC focuses on code structure, while ST05 analyzes query
Tool Purpose Difference from ATC
HANA Studio (Performance HANA-specific ATC integrates with SAP GUI, while HANA Studio is for
Trace) optimizations database-specific analysis.
9. Conclusion
ATC (ABAP Test Cockpit) is a powerful tool for SAP ECC to HANA migration, ensuring that all custom
ABAP code is optimized, secure, and HANA-compatible. By using ATC, developers can identify issues
early, fix performance bottlenecks, and reduce migration risks. A well-executed ATC analysis helps
organizations achieve a smooth and efficient migration to SAP HANA or S/4HANA. 🚀
You said:
explain elabrately about SUM with DMO in sap migration usage and how and why
ChatGPT said:
ChatGPT
DMO eliminates the need for a separate database migration step, reducing downtime and simplifying the
migration process.
Converts SAP ECC 6.0 with AnyDB to SAP S/4HANA with HANA database.
Upgrades SAP NetWeaver and application components in one step.
Moves SAP systems running on traditional databases (Oracle, DB2, MS SQL, etc.) to HANA.
Updates SAP software to a newer version and migrates the database at the same time.
📌 Phase 1: Preparation
3. System Switch
o The system is switched to use the new HANA database.
2. Data Validation
o Verify if all data is successfully migrated to the HANA database.
3. Go-Live Preparation
o Configure background jobs, authorization roles, and system monitoring.
2. Optimization
o Fine-tune SAP HANA performance using SQL optimizations and CDS Views.
One-Step Migration & Upgrade Reduces downtime by combining SAP upgrade and database migration.
Automated Database Conversion Converts AnyDB to HANA with minimal manual effort.
Moves system to a new hardware while When changing data centers or cloud
DMO with System Move
migrating to HANA. migration.
DMO with Reset Option Allows rollback if migration fails. Useful for risk mitigation during migration.
Advantage Description
Reduces Downtime Migration and upgrade happen in a single step, minimizing business disruption.
No Need for Separate Migration Eliminates the need for SWPM (Software Provisioning Manager) or TDMS for
Tools migration.
Ensures Data Consistency Performs automatic data validation before migration is completed.
Supports Large Data Volumes Uses table splitting and parallel processing for optimized performance.
Standard SAP Tool No need for third-party migration tools; fully supported by SAP.
❌ Cons (Disadvantages)
Disadvantage Description
ABAP, Basis, and Functional teams must work together to handle custom code
Requires Expertise
adaptation.
9. Conclusion
SUM with DMO is the most efficient method for migrating SAP ECC to SAP S/4HANA on HANA
database, reducing downtime, complexity, and migration risks. By combining upgrade and database
migration, it simplifies the process and ensures seamless business continuity. Organizations planning to
move to HANA should leverage SUM with DMO to accelerate their digital transformation with minimal
disruptions. 🚀
You said:
what is the tcodes and tools are used in sap ecc to s4hana migration projects
ChatGPT said:
ChatGPT
This guide provides detailed insights into the key T-Codes and tools used in each phase of the migration.
1. Assessment & Analyze system readiness SAP Readiness Check, TCode: SYCM, TCode: ATC, TCode: SE38
Readiness Check for S/4HANA (RS_ABAP_CHECK_FOR_HANA)
2. Pre-Migration Prepare for database and TCode: SPAM, TCode: SAINT, TCode: SNOTE, TCode: SPDD,
Preparation code migration TCode: SPAU, TCode: CVI_COCKPIT
3. Database & Migrate database & SUM (Software Update Manager) with DMO, SWPM (Software
Application Migration application data Provisioning Manager), TCode: RSTCO_ADMIN
4. Post-Migration Validate migrated data and TCode: S4HANA_COCKPIT, TCode: SFW5, TCode: ST22, TCode:
Activities optimize performance SM37, TCode: SE11, TCode: SE14, TCode: SE16N
The first step in migration is to assess system readiness using SAP’s analysis and compatibility tools.
Checks for obsolete transactions and custom objects that are not
T-Code: SYCM (Simplification Item Check)
compatible with S/4HANA.
T-Code: ATC (ABAP Test Cockpit) Scans ABAP custom code for compatibility issues with HANA.
T-Code: SE38 (Run Report Checks for non-HANA optimized SQL queries in custom ABAP
RS_ABAP_CHECK_FOR_HANA) code.
T-Code: ST03N (Workload Monitor) Analyzes system performance and database usage.
T-Code: SE16N (Table Browser) Reviews custom Z-tables and standard tables for compatibility.
Before executing the migration, custom code, add-ons, and master data must be adjusted to ensure
compatibility with SAP S/4HANA.
T-Code: SPAM (Support Package Manager) Applies necessary SAP support packages before migration.
T-Code: SAINT (Add-On Installation Tool) Updates SAP Add-ons and extensions for S/4HANA compatibility.
T-Code: SNOTE (SAP Notes Assistant) Implements SAP Notes related to S/4HANA migration.
T-Code: SPDD (Data Dictionary Adjustments) Adjusts ABAP Dictionary objects before an upgrade.
T-Code: SPAU (Repository Object Adjustments) Adjusts modified SAP repository objects during migration.
T-Code: CVI_COCKPIT (Customer-Vendor Converts Customers & Vendors to Business Partners (BP) for
Integration Cockpit) S/4HANA compatibility.
T-Code: SWPM (Software Provisioning Manager) Used for system copy, migration, and installation.
This phase involves executing SUM with DMO (Database Migration Option) to move from AnyDB to
HANA and upgrade to S/4HANA.
SUM (Software Update Manager) with DMO Performs database migration and application upgrade in one step.
T-Code: RSTCO_ADMIN (Technical Conversion) Runs technical steps required for the S/4HANA conversion.
T-Code: HDBSQL (HANA SQL Console) Executes HANA SQL queries for database validation.
🔹 Phase 4: Post-Migration Activities
After migration, the system must be optimized, validated, and tested to ensure smooth operation in
S/4HANA.
T-Code: S4HANA_COCKPIT (Simplification Cockpit) Helps resolve simplification issues after migration.
T-Code: ST22 (ABAP Dump Analysis) Checks for runtime errors in the new system.
T-Code: SM37 (Background Job Monitoring) Ensures scheduled jobs are running correctly post-migration.
T-Code: SE16N (Table Data Browser) Checks data consistency in key business tables.
Tool Purpose
SAP Solution Manager (SolMan) Manages change requests, test planning, and monitoring.
SAP Data Migration Cockpit (LTMC, LTMOM) Helps in data migration from ECC to S/4HANA.
SAP Fiori Apps Reference Library Helps identify Fiori apps replacing old transactions in S/4HANA.
SAP BW Migration Cockpit Assists in migrating reporting & analytics from ECC to HANA.
SAP Data Services (BODS) Used for complex data migration and cleansing.
📌 4. Conclusion
SAP ECC to S/4HANA migration involves multiple tools and T-Codes at different stages of the process.
Before Migration: Use SAP Readiness Check, SYCM, ATC, and CVI_COCKPIT to ensure system compatibility.
During Migration: Use SUM with DMO, SWPM, DBACOCKPIT, and HDBSQL for database migration.
After Migration: Use S4HANA_COCKPIT, ST22, SM37, SE11, SE14, and SE16N to validate and optimize the
system.
By leveraging these SAP-provided tools and T-Codes, organizations can ensure a smooth, efficient, and
risk-free migration to SAP S/4HANA. 🚀
You said:
how to run the SAP Readiness Check for migartion project
ChatGPT said:
ChatGPT
You must have an SAP S/4HANA system or access to the SAP Cloud Platform for the check to run
successfully.
🔹 System Access
You need appropriate authorization in your SAP system (e.g., SAP_ALL or SAP_BASIS authorization profile).
🔹 Compatibility
Your SAP ECC system must be running on a version that supports S/4HANA migration (e.g., ECC 6.0 EHP8 or
higher).
1. Log in to the SAP Solution Manager (SolMan) system if you are using it for monitoring.
o Alternatively, you can use the SAP Fiori Launchpad or SAP Cloud Platform directly, depending on
your setup.
1. Select the migration scenario you are planning to run (e.g., S/4HANA conversion, new
installation, or landscape transformation).
2. Run the Readiness Check:
o The tool will automatically scan your system for compatibility issues, performance bottlenecks, and
custom code conflicts.
o The scan focuses on:
Custom code (via ATC - ABAP Test Cockpit) for SAP HANA compatibility.
Database compatibility (e.g., AnyDB to HANA).
Transaction and module compatibility (e.g., obsolete transactions, deprecated
functionality).
Data model simplification (checking for obsolete or redundant data structures).
3. The process may take some time depending on the size of your system.
Once the check is complete, you will receive a detailed report. The results of the check will be divided into
multiple categories:
Category Description
Identifies custom code or business processes that are incompatible with SAP S/4HANA. Also
Simplification Items
checks for deprecated functionality and obsolete transactions.
System Landscape Analyzes system setup and landscape for compatibility with the S/4HANA migration process.
Custom Code
Reviews ABAP custom code using ATC to find any incompatible objects with HANA.
Compatibility
Database
Checks if your database system (AnyDB) can be migrated to SAP HANA smoothly.
Compatibility
Business Functions Identifies active business functions and features in the source ECC system and advises on
Category Description
Reviews performance bottlenecks in the ECC system that could be optimized during
Performance Insights
migration.
Master Data & Data Analyzes the data model and recommends changes based on SAP's simplification guidelines
Model for S/4HANA.
Fiori Apps Readiness Identifies which SAP Fiori apps are applicable or require modification post-migration.
The results will contain specific recommendations on what should be modified, removed, or optimized
before you proceed with migration.
The results report from the SAP Readiness Check will provide a detailed list of items to review and address,
categorized by severity. It is important to address high-priority issues before proceeding with the migration.
Item Action
Remove or replace deprecated transactions that no longer exist in S/4HANA (e.g., old SAP
Obsolete Transactions
GUI-based transactions).
Use ATC (ABAP Test Cockpit) to adapt ABAP code to be HANA-compliant and optimize
Custom Code Issues
performance.
Data Structure Issues Simplify data models to remove obsolete data elements and tables.
Business Function
Activate or deactivate business functions based on business requirements for S/4HANA.
Activation
Modify custom business applications to make them compatible with Fiori in the new
Fiori App Compatibility
S/4HANA system.
Comprehensive
Provides a complete picture of the system’s readiness for S/4HANA migration.
Assessment
Helps identify areas where simplification can be achieved in the data model and
Simplification Insights
business processes.
Highlights incompatible custom code and recommends solutions (e.g., use of AMDP,
Custom Code Analysis
CDS views).
S/4HANA-Specific Features Recommends new features and functionality available in S/4HANA for more efficient
Feature Benefit
business processes.
Identifies Fiori apps and their compatibility, enabling a seamless user experience in
Fiori Apps Compatibility
S/4HANA.
Database & Hardware Ensures that the database and hardware environment are prepared for the S/4HANA
Readiness migration, reducing migration risks.
5. Conclusion
The SAP Readiness Check is an essential tool for ensuring a smooth migration from SAP ECC to
S/4HANA. By running this check, you can assess the compatibility, identify potential risks, and gain
valuable insights into areas that need improvement before you proceed with the migration. The detailed
report generated by the Readiness Check serves as a foundation for your migration plan, helping you
mitigate risks and accelerate the transition to S/4HANA.
You said:
how to use Custom Code Analyzer (CCAPPS) in sap migration project
ChatGPT said:
ChatGPT
Scan custom ABAP code to detect compatibility issues with SAP HANA.
Identify areas for performance optimization.
Suggest refactoring recommendations, such as moving logic to Core Data Services (CDS) views or using
AMDP (ABAP Managed Database Procedures) for better performance.
Key Features:
Code Compatibility Check: Detects obsolete or incompatible ABAP statements or constructs that do not run
efficiently on HANA.
Performance Optimization: Highlights code sections that could slow down in S/4HANA due to the database
shift (e.g., non-HANA optimized SQL queries).
Refactoring Suggestions: Proposes modern techniques, such as using CDS Views and AMDP to optimize the
code.
Your system should be compatible with SAP S/4HANA migration (preferably on ECC 6.0 EHP8 or higher).
🔹 System Access
Authorization: You need appropriate access to run CCAPPS (preferably SAP_ALL or SAP_BASIS
authorizations).
Ensure that all custom code is stored in the ABAP workbench (or Transport Requests) and can be accessed
via SE80, SE38, or SE11.
1. Log into the SAP system and navigate to Transaction Code (TCode): SAINT.
2. Apply the necessary add-ons or Support Packages to enable CCAPPS functionality if not already available.
Alternatively, in newer systems, CCAPPS might be available directly within SAP Fiori or SAP Solution
Manager, depending on your system setup.
Once the scan is complete, you will receive a detailed report highlighting:
Obsolete Functions/Statements: Lists any ABAP functions or statements that are incompatible with HANA
(e.g., SELECT INTO, LOOP AT, or outdated database calls).
Unsupported Patterns: Identifies coding patterns that are not supported or inefficient in the HANA
database (e.g., certain nested SELECTs, joins, etc.).
1. Modify or remove outdated code: Ensure that deprecated or obsolete functions are either removed or
replaced with HANA-compliant alternatives.
2. Update syntax: If needed, rewrite parts of the code to match modern ABAP standards that are optimized
for HANA.
🔹 Optimize Performance
1. Rewrite SQL queries: Refactor complex queries to improve performance, moving away from nested SELECTs
and toward HANA-optimized SQL.
2. Use AMDP: Migrate appropriate logic to ABAP Managed Database Procedures (AMDP) for optimized
execution on HANA.
3. Leverage CDS Views: Shift data-intensive operations to Core Data Services (CDS) views, allowing HANA to
process data on the database level, instead of in ABAP.
1. Implement Modern Techniques: Apply the recommendations for performance tuning by using AMDPs and
CDS views.
2. Test Changes: After refactoring, ensure that the custom code runs efficiently in the HANA environment.
Run unit tests and performance benchmarks.
Run the Custom Code Analyzer early in the migration project to identify issues
Run the Analysis Early
proactively and avoid delays during migration.
Prioritize High-Impact Focus on fixing high-priority issues first, such as performance bottlenecks and critical
Issues compatibility errors.
Collaborate with ABAP Work closely with ABAP developers to address code issues, implement refactoring, and
Developers ensure custom code runs optimally on HANA.
Use AMDP and CDS Wherever possible, refactor data-intensive code to use AMDP and CDS views for better
Views performance and reduced database load.
Leverage SAP Best Implement SAP’s best practices for ABAP programming that are HANA-optimized (e.g.,
Practices using Core Data Services (CDS), AMDP, Open SQL).
Best Practice Description
Test Extensively Post- After optimizing and refactoring the code, conduct extensive testing to ensure both
Refactoring functionality and performance meet the required standards.
Improved Code Identifies custom code issues early, ensuring that your ABAP programs are fully
Compatibility compatible with S/4HANA.
Helps streamline the migration process by addressing custom code issues before
Faster Migration Process
migration, reducing post-migration work.
By addressing issues in advance, the tool helps in reducing downtime during the
Reduced Downtime
migration to S/4HANA.
By providing insights into where code changes are needed, resources can be focused
Better Resource Allocation
on the most critical areas first.
Supports Ongoing Code Provides insights into code quality that helps in the long-term maintenance of the
Maintenance system after migration to S/4HANA.
6. Conclusion
The Custom Code Analyzer (CCAPPS) is an invaluable tool in
You said:
how to run ABAP Test Cockpit (ATC) and Code Inspector (SCI) in sap migration project
ChatGPT said:
ChatGPT
The ABAP Test Cockpit (ATC) is a tool designed to scan ABAP code for potential issues, performance
optimizations, and compatibility checks for SAP HANA. It is integrated into the ABAP development
environment and provides a comprehensive way to ensure that your ABAP code adheres to best practices,
security standards, and performance guidelines.
Code quality checks: Scans ABAP code for syntax errors, unused code, and other best practices.
SAP HANA compatibility: Specifically checks for HANA-specific optimizations.
Performance optimization: Detects potential performance bottlenecks related to database access or
inefficient loops.
Custom code analysis: Helps ensure that custom developments will run smoothly in SAP S/4HANA.
The Code Inspector (SCI) is an older tool that was used to analyze ABAP programs for issues like syntax
errors, code quality, and performance. It’s more focused on detecting syntax and runtime errors, and has
been largely replaced by ATC, but it is still used for some specific tasks in older SAP environments.
Static analysis of ABAP code for syntax, unused variables, and potential errors.
Check variants that can be customized to ensure that the code adheres to company-specific guidelines.
Custom checks that can be configured for specific use cases.
Before running ATC, you need to ensure that it is properly installed and configured in your SAP system.
Results Overview: ATC will generate a detailed report listing any errors, warnings, and suggestions
for improvements based on the checks you selected.
Action Items:
o High Priority Issues: Address HANA-specific issues and performance bottlenecks that could severely
affect migration.
o Code Refactoring Suggestions: Implement suggestions like moving logic to AMDPs (ABAP Managed
Database Procedures) or CDS Views for better HANA compatibility.
Further Actions:
o After fixing issues, re-run ATC to validate that all identified issues have been resolved.
While ATC is the more modern tool for analyzing custom ABAP code, Code Inspector (SCI) may still be
relevant for certain legacy checks. Below are the steps to run Code Inspector for analyzing ABAP code
during migration.
1. Check Variants: SCI uses check variants to run specific types of analyses. You can create custom
check variants based on your requirements.
o Use Transaction Code (TCode): SCIV to create a custom check variant.
Check Results:
o The report generated by SCI will contain a list of syntax errors, unused code, and potential
performance issues.
o Review the severity of each issue and prioritize fixes based on the impact on migration.
Fix Issues:
o Resolve any critical errors or performance bottlenecks that could affect the migration to S/4HANA.
Focuses on SAP HANA compatibility and Focuses on syntax errors, unused code, and
Focus
performance optimization. code quality.
Part of the SAP S/4HANA migration process. Primarily used in legacy systems or for specific
Integration
Integrates with SAP Solution Manager. custom checks.
Refactoring Suggests AMDP, CDS views, and other HANA Provides basic checks for code quality but lacks
Suggestions optimizations. advanced HANA-specific guidance.
Use ATC First for HANA ABAP Test Cockpit (ATC) should be your primary tool for running HANA compatibility
Optimization checks, as it provides deeper analysis and suggestions for HANA optimizations.
Use SCI for Legacy Use Code Inspector (SCI) if your system is older and you're focused on general syntax and
Systems quality checks, but be aware that it is less useful for HANA-specific optimization.
Run ATC and SCI checks regularly throughout the migration project to identify and
Run Tests Regularly
resolve issues early in the process.
Prioritize HANA-Specific Pay special attention to HANA performance bottlenecks and compatibility issues, as
Issues these can significantly impact the success of your migration.
Address Critical Issues Focus on resolving high-priority issues identified by ATC, such as performance and HANA
First compatibility problems, before moving to lower priority items.
Refactor Code for Use AMDP and CDS Views where applicable to modernize the code and ensure that it will
Modernization run efficiently on SAP HANA.
6. Conclusion
The ABAP Test Cockpit (ATC) and Code Inspector (SCI) are essential tools in any SAP ECC to
S/4HANA migration project. They help identify and fix issues in custom ABAP code, ensuring that it will
be compatible with **SAP
You said:
what is amdp in sap
ChatGPT said:
ChatGPT
AMDP was introduced as part of the SAP NetWeaver 7.40 release and is a key component for leveraging
SAP HANA's capabilities in SAP S/4HANA systems, especially when migrating from traditional database
systems to SAP HANA.
2. HANA Optimizations:
o It leverages the HANA database's in-memory processing power, providing faster execution of
complex logic, reducing the load on the ABAP application server.
5. Performance Gains:
o By pushing computation to the database layer, AMDP significantly reduces the need for transferring
large volumes of data between the application server and the database, thereby improving
performance.
How Does AMDP Work?
2. SQLScript in AMDP:
o SQLScript is used inside AMDP methods to define the logic that will be executed on the SAP HANA
database. It can involve queries, joins, aggregation, and other operations optimized for HANA.
3. Executing AMDP:
o Once the AMDP class and methods are created, the AMDP can be invoked in ABAP programs or
function modules. The ABAP runtime engine invokes the corresponding database procedure on the
HANA database.
abap
CopyEdit
CLASS zcl_amdp_example DEFINITION
PUBLIC
FINAL
CREATE PUBLIC.
PUBLIC SECTION.
CLASS-METHODS: execute_amdp
IMPORTING iv_id TYPE i
EXPORTING ev_result TYPE i.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
METHOD execute_amdp.
END METHOD.
ENDCLASS.
In this example:
The execute_amdp method calls an existing HANA SQLScript procedure using the EXECUTE SQL SCRIPT
statement within the ABAP class.
The procedure is executed directly on the HANA database, and the result is returned to the ABAP program.
6. Improved Scalability:
o With HANA’s in-memory architecture, AMDP allows handling large volumes of data efficiently,
making it a good choice for scalable and high-performance applications.
Execution Executes directly in the HANA database Executed in the ABAP application layer
Complex Business Logic: Use AMDP when your ABAP code needs to handle complex queries, large amounts
of data, or aggregations that can be better handled by HANA.
Performance-critical Applications: If your application requires high performance and needs to leverage
HANA’s in-memory capabilities, AMDP is a good choice.
Migration to S/4HANA: When migrating from SAP ECC to S/4HANA, it is often beneficial to refactor your
custom ABAP logic into AMDP methods, ensuring compatibility with HANA and optimizing performance.
Data-intensive Operations: If your ABAP code performs operations such as mass updates, joins across large
tables, or aggregations, moving that logic to AMDP can significantly improve performance.
Conclusion
AMDP (ABAP Managed Database Procedure) is a powerful tool that enables ABAP developers to
execute database logic directly on SAP HANA. It offers significant performance improvements by
offloading complex database operations to HANA’s in-memory processing. In SAP S/4HANA migration
projects, AMDP plays a crucial role in refactoring legacy ABAP code for HANA compatibility, ensuring
the code runs efficiently on HANA databases, and helping to leverage the advanced processing capabilities
of SAP HANA.
By using AMDP, businesses can take full advantage of SAP HANA's in-memory capabilities,
significantly improving the performance of data-intensive and complex ABAP operations.
Role of an ABAPer in ECC to S/4HANA Migration
When migrating from SAP ECC to S/4HANA, an ABAP consultant plays a crucial role in code
adaptation, data migration, performance optimization, and custom enhancements. The migration
involves simplification of tables, deprecation of obsolete objects, and adopting new SAP technologies.
Below is a detailed breakdown of an ABAPer’s responsibilities during migration.
Many ECC tables are replaced or simplified in S/4HANA (e.g., MKPF + MSEG → MATDOC).
Some transactions and functions are obsolete.
Classic ABAP techniques (like cluster tables and direct SELECTs) are not optimized for HANA.
ABAPer's Work:
✅ Use ATC (ABAP Test Cockpit) or S4HANA Readiness Check to identify impacted objects.
✅ Fix obsolete function modules (REUSE_ALV_GRID_DISPLAY → SALV_MODEL).
✅ Replace direct SELECTs on cluster tables with CDS views.
✅ Adapt custom reports using new HANA-compatible tables (e.g., MATDOC instead of MSEG).
Real-Time Example:
SAP has simplified data models, so existing custom tables and structures need to be aligned with
S/4HANA tables.
The migration involves moving master data (vendors, customers, materials, etc.) and
transactional data (sales orders, POs, financial documents, etc.).
ABAPer's Work:
✅ Use LTMC (Migration Cockpit) for standard objects like Materials, Customers, Vendors.
✅ Develop Custom Migration Programs for non-standard/custom objects using BAPIs, IDOCs, or Direct
Input (LSMW is not recommended in S/4HANA).
✅ Validate data before migration to avoid inconsistencies.
Real-Time Example:
A company moving customer master data from ECC (KNA1) to S/4HANA (BP - Business Partner
Model).
ABAPer's Work:
✅ Convert old ABAP reports to use CDS Views instead of standard SELECT queries.
✅ Replace Nested SELECTs with Joins and Aggregate functions.
✅ Use AMDP (ABAP Managed Database Procedures) for complex calculations.
Real-Time Example:
LOOP AT lt_sales_order.
SELECT * FROM vbak INTO TABLE lt_vbak WHERE vbeln = lt_sales_order-vbeln.
ENDLOOP.
✅ The new approach eliminates the loop and fetches all data in one query, improving performance.
ABAPer's Work:
A custom enhancement in MV45AFZZ (User Exit for VA01) in ECC is replaced with the new BADI
SD_SALES in S/4HANA.
Custom objects (Z* programs, function modules, enhancements) might conflict with SAP’s new
standard objects.
SPAU (Repository Adjustments) and SPDD (Dictionary Adjustments) are mandatory steps.
ABAPer's Work:
Real-Time Example:
A custom Z-table referencing LFA1 (Vendor Master) in ECC must be updated to BP Model in S/4HANA.
ABAPer's Work:
Real-Time Example:
A custom ALV Report for sales orders in ECC is replaced with a Fiori List Report using CDS View +
OData.
ABAPer's Work:
Real-Time Example:
If a business uses IDOC DEBMAS for customer master in ECC, it must switch to BP-based IDOCs
(BUS1006) in S/4HANA.