0% found this document useful (0 votes)
22 views62 pages

EGI S4HANA Custom Code Impact Analysis Day 1

The document outlines an Expert Guided Implementation (EGI) focused on SAP S/4HANA's Custom Code Impact Analysis, aimed at helping customers identify and adapt their custom developments affected by the transition from SAP ECC to SAP S/4HANA. It covers the necessity of custom code adaptations, deployment options for analysis tools, and methodologies for managing custom code throughout its lifecycle. The EGI includes a structured schedule for training and execution, emphasizing the importance of transparency and optimization of custom code in alignment with SAP's evolving standards.

Uploaded by

Jose Valencia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views62 pages

EGI S4HANA Custom Code Impact Analysis Day 1

The document outlines an Expert Guided Implementation (EGI) focused on SAP S/4HANA's Custom Code Impact Analysis, aimed at helping customers identify and adapt their custom developments affected by the transition from SAP ECC to SAP S/4HANA. It covers the necessity of custom code adaptations, deployment options for analysis tools, and methodologies for managing custom code throughout its lifecycle. The EGI includes a structured schedule for training and execution, emphasizing the importance of transparency and optimization of custom code in alignment with SAP's evolving standards.

Uploaded by

Jose Valencia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 62

Expert Guided Implementation

SAP S/4HANA: Custom Code Impact Analysis


Day 1
Francisco Martinez, SAP
Expert Guided Implementation powered by SAP Enterprise Support Academy*
PUBLIC

* Content is exclusive to SAP Enterprise Support customers


Disclaimer

▪ The information in this presentation is confidential and proprietary to SAP and may not be disclosed without the permission o f SAP. Except
for your obligation to protect confidential information, this presentation is not subject to your license agreement or any ot her service or
subscription agreement with SAP. SAP has no obligation to pursue any course of business outlined in this presentation or any related
document, or to develop or release any functionality mentioned therein.
▪ This presentation, or any related document and SAP's strategy and possible future developments, products and or platforms dir ections and
functionality are all subject to change and may be changed by SAP at any time for any reason without notice. The information in this
presentation is not a commitment, promise or legal obligation to deliver any material, code or functionality. This presentati on is provided
without a warranty of any kind, either express or implied, including but not limited to, the implied warranties of merchantability, fitness for a
particular purpose, or non-infringement. This presentation is for informational purposes and may not be incorporated into a contract. SAP
assumes no responsibility for errors or omissions in this presentation, except if such damages were caused by SAP’s intentional or gross
negligence.
▪ All forward-looking statements are subject to various risks and uncertainties that could cause actual results to differ material ly from
expectations. Readers are cautioned not to place undue reliance on these forward-looking statements, which speak only as of their dates,
and they should not be relied upon in making purchasing decisions.

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 2


Expert Guided Implementation
SAP S/4HANA: Custom Code Impact Analysis

Todays Expert Guided Implementation focuses on SAP


S/4HANA: Custom Code Impact Analysis
The purpose of this EGI is to empower customers with the
knowledge to identify custom developments in an SAP ECC
System which are impacted by the transition to SAP S/4HANA.
During this EGI we will discuss:
• why custom code adaptations are needed
• several deployment options of tools to analyze the custom
code
• the configuration of tools to help identifying impacted
objects and prioritizing the efforts
• the tools to create transparency on the impacted custom
code objects.

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 3


SAP S/4HANA: Custom Code Impact Analysis
Introduction

• Introductions

• Please ensure to download the slides at the end of each session

• Questions to answer in the chat:


✓ What is your name and your role in your company? (e.g. business, IT, project management, end-users,
others)
✓ At which stage of your project are you? (e.g. Discovery, Preparation, Go-Live)
✓ What is your Custom Code & SAP S/4HANA knowledge? (e.g. none, beginner, novice, intermediate or
advanced)

• A survey to fill out at the end of the EGI

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 4


Expert Guided Implementation Methodology Automation
“Training on the Job” at Its Best Level 3

Automation Automation
Level 0 Level 1

Empowering Execution
Execution Expertise on Demand
Expertise on Demand
Day 1
Web session, 1-2 hours 2-3 hours on the same day Demand
During Execution
Day 2 each morning
Participants execute Participants have direct access
Day 3 SAP expert explains step-by- demonstrated steps within their to an SAP expert who directly
step configuration using own project, on their own SAP supports them remotely, if
Day 4 training materials environment necessary, during the execution

Day 5 ✓ ✓ ✓
Delivery Training, practical experience, remote consulting

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 5


Expert Guided Implementation
How to Get Help?

During the execution part you have direct


access to the Expert via e-mail to solve How to get help
questions quickly.
If you want assistance on ATC
configuration during this EGI Please
ensure that the remote connections are
open, and that we can logon to your
system(s) below:
• ATC System
[email protected]
• ECC System
• SAP S/4HANA System

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 6


Ready, Set and Go!

Are you Ready? Are you set? Let’s Go!

• Do you have the correct • …to participate in the Options if not prepared for today
authorizations? empowering sessions each
morning? • Reschedule to the next EGI on
• Do you have time allocated for the schedule
this week? • …to configure your own system
each afternoon? • Execute preparation steps
• Do you the prerequisites before attendance
complete? • …to provide feedback on your
progress to the SAP Expert

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 7


Expert Guided Implementation Schedule
SAP S/4HANA Custom Code Impact Analysis
Day 1 Day 2 Day 3 Day 4
Empowering lesson Empowering lesson Empowering lesson Empowering lesson
• Reminder: Custom Code Management • Recap of day 1 • Recap of Day 2 • Recap of Day 3
• Motivations for Impact Analysis • Setup of SAP ABAP Test Cockpit • Setup of SAP Fiori App for Custom Code • Visualizing the ATC results in
• SAP HANA Changes • Schedule an SAP ABAP Test Cockpit Run Migration 1. SAP ABAP Test Cockpit results
• SAP S/4HANA Simplification Changes series • Usage Analysis 2. SAP Fiori App Custom Code Migration
• Setting the right focus • Recommended Hands-on Exercises • Running ATC (SAP ABAP Test Cockpit) 3. SAP Readiness Check 2.0
• Approach and tools • Key Takeaways checks in SAP Fiori App for Custom Code • Analyzing the Impact Analysis results in
• Overview of ABAP Test Cockpit • Additional Resources Migration Detail
• ABAP Test Cockpit Deployment Options • Recommendation for Technical Adaptations
• Project Guidelines
(Web session, 1-2 h. in the morning) (Web session, 1-2 h. in the morning) (Web session, 1-2 h. in the morning)
(Web session, 1-2 h. in the morning)

Execution by customer Execution by customer Execution by customer Execution by customer


• Thinking/Decision on the most relevant • Configure Remote ATC scenario • Execute ATC checks in SAP S/4HANA • Configure Custom Code Migration Fiori App
deployment option • Deploy ATC Checks on remote system Conversion Sandbox • View impacted custom code via Fiori App or
• Download/upload of the Simplification • Review the ATC result list SAPGUI
Database • Configure Usage Logging in PRD
(Remote support in the afternoon) (Remote support in the afternoon)
(Remote support in the afternoon)
Final goal
• Impacted custom code is visible
(Remote support in the afternoon)
• Adaptations required for custom code are
now known

Goal of the day Goal of the day Goal of the day Goal of the day

◼ Reasons and approach of the custom code ◼ Configuration of SAP Fiori for Custom Code ◼ Understand how to view the ATC results in
adaptation for SAP S/4HANA are understood ◼ Configure Remote ATC Migration SAP GUI and SAP Fiori App
◼ ATC deployment option chosen ◼ Deploy Remote ATC analysis ◼ Required UPL/SCMON Configuration ◼ Understand how to analyze the result
complete ◼ Understand how to track

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 8


Agenda Day 1

• Reminder about Custom Code Management


• Motivations for Impact Analysis in SAP S/4HANA projects
• SAP HANA Changes

• SAP S/4HANA Simplification Changes

• Setting the right focus

• Approach and tools


• Overview of ABAP Test Cockpit
• ABAP Test Cockpit Deployment Options
• Key Takeaways
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 9
Day 1 – Reminder about Custom Code Management

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 10


Reminder about Custom Code Management
Introduction

Custom Code Management

• is an approach to create and maintain value-added custom coded


extensions in SAP environment for customer specific business
processes needs, during the whole lifecycle of all Custom Code
Objects.

• is the central point of access for all functions that you use to monitor
and manage the lifecycle of custom developments from creation to
deletion.

• offers a comprehensive end-to-end view on the challenge how to


deal with home grown applications, modifications or enhancements
of the SAP platform.

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 11


Reminder about Custom Code Management
Get transparency on your custom code situation

>20000
objects in customer namespaces* of the custom code
of the custom code
objects have not been
60% objects contain code
inspection messages*
65% used within the last
months*
CCLM
of the cloned custom
of the custom code
code objects are
objects were
12% identical or very similar
to the original SAP SAP Solution
23% supporting critical
processes*
object*
Manager
of the system
of the custom code
resources are
objects have to be
~50% adjusted on change
events*
>2000 20% attributed to the
execution of custom
modification and enhancements* code*
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 12
* Based on SAP (CQC) Solution Transition Assessment and Custom Code services
Reminder about Custom Code Management
Lifecycle - From requirement to retirement

From conception to retirement, get the transparency on Custom Code objects, automates the analysis of every change and clearly
identifies their usage, utilization and business impact of the customer objects. It also supports optimization cycles with a project based
approach to reduce the Custom Code footprint.
• get transparency on your
require custom code situation
• always be up-to-date with
your custom code situation
run • take action not only react
build
• never stop optimizing your
custom code situation
optimize

retire

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC


monitor 13
Reminder about Custom Code Management
City Model Methodology

Custom code including enhancements and modifications that exist in a company’s SAP system landscape can be
evaluated in four dimensions. These dimensions are Quantity, Quality, Technical severity and Business criticality.

The goal is to establish a constant evaluation process of custom solutions in these four dimensions, to optimize them
on the basis of the results that were obtained and in alignment with the goals that have to be achieved.

3 + 2 dimensions
• number of objects
• severity
• criticality
• quality
• usage

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 14


Reminder about Custom Code Management
Strategic roadmap

Enable
Get transparency and
define the scope Improve
✓ Gain transparency on Optimize and control
Custom Code and its Sustain
TCO effect

characteristics in your ✓ Set-up efficient custom Efficient & effective


solution code management custom code lifecycle
management
✓ Understand existing ✓ Retire unused custom
CCM processes and code
✓ Avoid unnecessary
strategy ✓ Improve custom code custom code, use SAP
✓ Evaluate impact of quality standard
changes and reduce
efforts for change
adoption on custom
code

Custom code management maturity and efficiency


© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 15
Day 1 – Motivations for Custom code Impact Analysis in SAP S/4HANA
projects

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 16


Motivations for Custom code Impact Analysis in SAP S/4HANA projects
Impact on the custom code during a system conversion

Traditional SAP Custom code uses With SAP S/4HANA, there are changes in
the SAP Standard code in an Open- the standard SAP code. Related Custom
source manner. code can become incompatible

SAP ECC System SAP S/4HANA System

Custom code Custom code

Custom
code has
to be X
X X
adapted X
*
*
SAP code Simplified SAP code
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 17
Motivations for Custom code Impact Analysis in SAP S/4HANA projects
Two main reasons for impacts

SAP S/4HANA related Adapt custom code to: i


(can be partly done before / ▪ comply to simplified SAP S/4HANA data model and scope, for Further information see:
example the new aggregate and indices-free material inventory SCN Blog on Custom Code
independently of a SAP S/4HANA Adaption
conversion) table MATDOC in SAP S/4HANA SAP Note: 2241080
SAP Note: 2190420
▪ cater for functionality which is not available or has been
fundamentally changed

SAP HANA database related ▪ Apply SQL “golden rules”. Example: it’s bad practice to assume i
(can be mostly done before / that a DB returns results sorted if not explicitly requested ABAP custom code migration
and recommendations for SAP
independently of a SAP S/4HANA (ORDER BY) HANA:
conversion) ▪ Performance optimizations (optional) SAP Note: 1912445
SAP SCN: Link

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 18


Day 1 – Motivation for Impact Analysis – SAP HANA Changes

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 19


SAP HANA Changes
What makes SAP HANA so Unique?

100% In-Memory computing


Allow OLTP & OLAP processing in Real-Time

5-20x Compression
Column based compression

Up to 10,000x Faster
Massive parallel scaling

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 20


SAP HANA Changes
Driving questions

Which of my ABAP code must be changed to


avoid potential functional issues?

Which of my ABAP code shall be optimized to


ensure good performance?

Which of my main business processes have


potential for HANA so that I can speed up those
massively?

And how can I find all this ABAP code easily


and do the adaption efficiently…?

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 21


SAP HANA Changes
Functional corrections for existing ABAP code

Which of my ABAP code must be changed to avoid potential functional issues

In general existing ABAP code runs on SAP HANA as before

Only if ABAP code relies on technical specifics of the old database, ABAP code changes
might be necessary

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 22


SAP HANA Changes
SAP HANA Considerations for Custom Code

Functional and Performance Considerations

✓ Column Store, Though SAP HANA is a hybrid database which uses both row as well as column
store techniques, most of the functional and technical issues are related with Row Store
substitution by Column Store.

✓ Although there are many advantages with Column Store, the most important issue is
reconstruct a complete record after the selection. (Join n fields from the Select List for each
record)

✓ Pool/Cluster tables are Depooling/Declustering, Though Database Table remains as Transparent


Table, there is a different behavior with the records.

✓ In traditional Databases, when reading Cluster/Pool tables, records are sorted by primary
key. When reading from a transparent table, records might not be sorted. (This depends on
the Database type)

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 23


SAP HANA Changes
Shift in priorities of classic golden SQL rules for SAP HANA

Shift in priorities for SAP HANA

 Avoid selecting large numbers of not


required columns

 Prefer array operations for INSERT,


UPDATE und DELETE when changing
many records
 Avoid nested SELECT loops

 In most cases SAP HANA does not


require secondary indices

 Keep unnecessary load away from the


database
 Code pushdown for data-intensive
calculations to benefit from SAP HANA
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 24
SAP HANA Changes
Functional corrections for existing ABAP code

Technical changes with SAP HANA that may affect existing DB specific ABAP code
Technical and Examples – Effect on DB specific ABAP code
DB migration Each DB has specific features and unique technical behavior.
DB specific code may rely on these features of the used database.

SAP HANA architecture Column based architecture - as a consequence e.g. secondary DB


indexes are less important.
DB specific code may rely on the existence/usage of certain DB indexes.

Depooling/Declustering During the migration to SAP HANA most pool and cluster DB tables are
transformed to transparent DB tables (depooling/declustering) so that
the tables can be used in analytic scenarios.
DB specific code may rely on the technical specifics of pool/cluster tables.

Details: See OSS note 1785057


© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 25
SAP HANA Changes
Functional corrections for existing ABAP code – Details & Examples

Technical Change ABAP code which must be checked / corrected Recommended solution

DB migration Native SQL, Hints, ADBC which uses DB specific features Use Open SQL if possible, adapt native SQL and DB hints if necessary

Example for native SQL Example for a DB hint

Attention: This SAP HANA Changes should not be anticipated on the


SAP ERP landscape, since you do not want to bring back potential
performance issues which were solved with these hints. You will
remove the incompatible hints after the migration to the SAP HANA DB
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 26
SAP HANA Changes
Functional corrections for existing ABAP code – Details & Examples

Technical Change ABAP code which must be checked / corrected Recommended solution

SAP HANA Transparent DB tables: Recommendation:


architecture - Relying on not guaranteed / implicit sorting of DB query − Never rely on any implicit sorting - no robust code!
results Always use ORDER BY … or SORT … BY to sort query result sets
explicitly
- (Rare problem) Analysis of technical DB index information using
function modules 'DB_EXISTS_INDEX‘, 'DD_INDEX_NAME‘ − Try to get rid of DB index analysis
Depooling/ Pool/Cluster tables: Recommendation:
Declustering - Relying on not guaranteed / implicit sorting of DB query − Never rely on any implicit sorting - no robust code!
results Always use ORDER BY … or SORT … BY to sort query result sets
explicitly

- (Rare problem) Direct access to physical clusters / pools − Get rid of direct access to physical clusters / pools

Example for ABAP code which


relies on sorted DB query
results

Read Table … BINARY SEARCH works only for a


correctly sorted internal table.
Correction
But no explicit sorting of the query result is done
-> Error in code which may work by chance Add explicit sorting by adding ORDER BY to
because of DB Index usage the SELECT or by using an ABAP SORT
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 27
SAP HANA Changes
Functional corrections for existing ABAP code – Static Checks I

For all main functional error categories we provide Code Inspector checks to find the issues easily

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 28


SAP HANA Changes
Functional corrections for existing ABAP code – Static Checks II

“Search problematic statement…w/o ORDER BY” check


◼ Preferred check to find code which relies on sorted DB content
◼ searches for statements like READ BINARY SEARCH, DELETE
ADJACENT DUPLICATES, … accessing unsorted DB content
◼ works for transparent and pool/cluster DB tables
◼ low false positive ratio

“Depooling/Declustering: Search for…w/o ORDER BY” check


◼ Searches for SELECT <pool/cluster table> without ORDER BY but no
further analysis of the data flow is done
◼ works only for pool/cluster DB tables
(before and after depooling/declustering)
◼ high false positive ratio

Recommendation
◼ Run both checks for your custom code
◼ Concentrate on findings (priority 1 and 2) of the “Search problematic
statement…w/o ORDER BY” check
◼ Treat findings of “Depooling/Declustering: …” check with reduced priority

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 29


SAP HANA Changes
Key Takeaways

• In general, existing ABAP code runs on SAP HANA as before. Only DB specific ABAP code must
be analyzed

• ABAP Test Cockpit can be used to find and adapt DB specific ABAP custom code easily

• In general, the well known golden Open SQL rules are still valid on SAP HANA - only some
priorities have shifted

• For effective SQL tuning and to find HANA potential in existing ABAP code, new monitoring tools
like the SQL Monitor are available

• The preparation of your custom code can start now – before the migration to SAP HANA, but
make sure you do not remove necessary coding (eg hints) too early

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 30


Day 1 – Motivation For Impact Analysis - SAP S/4HANA Changes

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 31


SAP S/4HANA Changes
“Principle of One” in SAP S/4HANA
SAP’s Design Principle “Principle of ONE” in SAP S/4HANA (compared to SAP ERP):

1. Simplification and Renovation of Data Model


Examples: no aggregates and indices, no duplicate modules in Financials, field lengths extensions

2. Elimination of Redundant Functionality


Examples: only one solution for material valuation, foreign trade, credit management, revenue recognition

3. Elimination of Redundant Transactions


Example: MIGO instead of various older transactions for material movements

4. Elimination of Redundant Technical Frameworks


Example: SAP S/4HANA output mgmt.

5. Rethinking Industry Solutions and No Switch Framework


Examples: IS-DIMP back to core, no choice for activation of Business Functions (some are always on, others always off)

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 32


SAP S/4HANA Changes
Reminder – Simplification items (changes) and simplification item list

◼The Simplification List is a collection of Simplification Items.


Within a Simplification Item it is described what is the difference of a
functionality (changed, replaced, removed) between SAP ECC and
SAP S/4HANA.
▪ A Simplification Item provides information about the potential impact
of this change for the customer.
▪ The Simplification List provides this information per SAP S/4HANA
On-Premise release as part of the SAP S/4HANA documentation.
▪ The SAP Readiness Check for SAP S/4HANA, the ABAP custom
code analysis, as well as the Simplification Item Checks are based
on the information in the Simplification Items.

Access Simplification Items via the Simplification Item Catalog:


https://launchpad.support.sap.com/#/sic/
SAP S/4HANA on the SAP Help Portal: Most current Version of the
SAP S/4HANA Simplification List as PDF
SAP Blog: SAP S/4HANA Simplification Item Check – How to do it right‘
SCN Blog: The TOP Simplification List Items
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 33
SAP S/4HANA Changes
Simplification Database Content Overview

The Simplification Database is a database table in the SAP S/4HANA SAP S/4HANA System
system, which stores all incompatible changes of the SAP code in SAP
S/4HANA compared to the SAP ECC system as simplification items.
Custom code
Each simplification item describes changed or removed SAP objects and
refers to a dedicated SAP Note, which describes the impact of the change
and how the related custom code can be adapted.

An example of the simplification is the material field length extension


from 18 to 40 characters
X
SAP provides tools based on the Simplification Database to detect custom X X
code that needs to be adapted to SAP S/4HANA, SAP Note
X
based on a series of checks on your custom code SAP Note
SAP Note
to identify which code is impacted by the transition *
to SAP S/4HANA.
*
Simplification
Database Simplified SAP code

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 34


Day 1 – Approach and tools

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 35


Approach for Custom Code in SAP S/4HANA conversion project
Pre-project activities , project activities, and corresponding tools

SAP ERP SAP S/4HANA

Maintenance Simplification Custom code workload Software Update Application specific


Application specific
System requirements Custom code preparation
planner Item Check assessment Manager (SUM) follow-up activities
follow-up activities

Recommended: 13months of
collection
Mandatory Recommended
Optional Optional

Generate
Collect Evaluate
SAP Adapt Tune
Activity Custom Custom
S/4HANA custom code Performance
code Usage code usage
Worklist

Collect code usage Remove obsolete code Check SAP S/4HANA and Adapt custom code to SAP Tune performance of
using Usage Procedure based on Usage Procedure SAP HANA related changes HANA and SAP S/4HANA critical database queries
Log (UPL/SCMON) Log (UPL/SCMON) related changes
Adapt modifications in
SPDD/SPAU
ABAP Test Cockpit /
Tool UPL / SCMON CCLM Fiori App for Custom code migration

ABAP Development Toolkit (ADT)


© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 36
Approach for Custom Code in SAP S/4HANA conversion project
Code adjustment process in a dual track landscape
System copy to
create new DEV Convert DEV to SAP Configure local ATC Use the worklist to change
for project line S/4HANA and run checks code as per ATC finding

ERP DEV New DEV = Copy of SAP S/4HANA DEV SAP S/4HANA DEV SAP S/4HANA DEV
ERP PROD
ERP DEV
Local ATC configured Local ATC configured
Usage

Custom coding Custom coding Custom coding Checked Custom Compliant


coding to create Custom coding
worklist

• Code adjustment is executed during project phase of SAP S/4HANA conversion on a converted DEV system
(either the DEV system or a copy of DEV system in the case of a dual-track landscape)

• Local ATC configuration with check variant ‘S4HANA_READINESS’

• Analysis can be carried out using ATC worklist or SAP Fiori App Custom Code Migration

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 37


Day 1 – Overview of ABAP Test Cockpit (ATC)

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 38


ABAP Test Cockpit (ATC)
Overview
The ABAP Test Cockpit is SAP’s check toolset which allows
you to run static checks and unit tests for your ABAP
Central Check System
programs. It is based on Code Inspector (SCI) checks
ABAP Test Cockpit (ATC)
As of SAP NetWeaver 7.5x, SAP ABAP Test Cockpit is the
central infrastructure for functional, performance, security code
checks.
RFC RFC RFC
ATC is the toolset of choice to achieve the smooth migration
of ABAP code to SAP HANA and SAP S/4HANA via special
SAP HANA and SAP S/4HANA Checks for Custom code.
Checked Checked Checked
In a typical usage outside of SAP S/4HANA checks, ATC is System A System B System C
(>=7.00) (>=7.00) (>=7.00)
installed as a stand alone system and connected to multiple
Customer Customer Customer
systems Code Code Code

Remote Stubs
Both ATC and SCI use the same check variants.

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 39


ABAP Test Cockpit (ATC)
Standard Code Inspector checks incl. SLIN
Other checks available within ATC

In addition to the SAP HANA & SAP S/4HANA


Security Checks (CVA)
checks, other important checks that can be performed
using the ABAP Test Cockpit are:
SAP ABAP Unit Tests
✓ SLIN checks: The ‘extended program check’ ABAP
performs static checks on ABAP programs that are Test
too intensive for regular syntax checks Cockpit SAP HANA Checks
(ATC)
✓ SAP CVA checks: The ‘SAP code vulnerability
Analyser’ performs checks for critical statements,
SAP S/4HANA Checks
cross-client queries, missing authority and so on.
Some of the checks require paid licence

✓ Syntax checks: Checks performed to determine the Customer specific checks


static correctness of ABAP code. Can be triggered
from transaction SE80

More information in the EGI ‘Custom Code Lifecycle Management:


© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC
Make Your Custom Code Efficient’
40
Day 1 – ABAP Test Cockpit Deployment Options

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 41


ABAP Test Cockpit Deployment Options
Using ATC for Custom Code analysis prior to project start

Before project starts, you (or the system integrator) will likely be interested in assessing the
workload of adapting the custom-code to SAP S/4HANA. For this purpose, you will need to
use the ABAP Test Cockpit tool.
In a SAP S/4HANA context, ABAP Test Cockpit tool can be deployed in 4 different options:

1. On a SAP NetWeaver system 7.52 (New or existing, temporary or long term) to carry out
analysis remotely
2. On a fresh “empty” SAP S/4HANA system, to benefit from the latest functionality such as
the Custom Code migration SAP Fiori app , if you do not plan to convert a sandbox in the
pre-project phase
3. On a converted sandbox SAP S/4HANA system, to benefit from the latest additional
functionality such as the Custom Code migration SAP Fiori app
4. In the Cloud, using SAP Cloud Platform ABAP Environment, using the custom Code
migration SAP Fiori App, more details here

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 42


ATC Deployment Options
Technical UI Options for SAP S/4HANA custom code analysis

Remote ATC with Remote ATC with


SAP GUI SAP Fiori Custom Code
Migration App

Central ATC check system Central ATC check system


(SAP_BASIS 7.52) to analyze (SAP S/4HANA 1809) to
custom code in the whole analyze custom code in the
system landscape whole system landscape

Custom code evaluation Custom code scoping in the


separately based on Custom Code Migration App
SCMON/UPL usage data based on SCMON/UPL usage data
incl. deletion of unused code

Analysis of SAP S/4HANA findings with Detailed analysis of SAP S/4HANA findings
Statistics View, simplification information incl. analytical representation of ATC
in ATC result, navigation capabilities result, filtering by scope and usage data,
simplification information in ATC result,
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC navigation capabilities 43
ATC Deployment Options
Option 1: ATC Remote Analysis with a Central 7.52 SAP NetWeaver System
• Analysis carried out during Pre-project phase of SAP S/4HANA Conversion
• Pre-requisites :
• ATC to be enabled in the Central system (SAP_BASIS 7.52 or higher)
• SAP S/4HANA system doesn’t exist in the system landscape

Update Central ATC to Remote ATC execution with


NW 7.52 if not the case SAP S/4HANA check variant

Central ATC (NW >= 7.52)


Central ATC Central ATC (NW>= 7.52)
(NetWeaver)
Worklist

ERP DEV ERP DEV


ERP DEV
Custom coding Custom coding
Checked Custom coding
for workload estimate

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 44


ATC Deployment Options
Option 2: SAP S/4HANA based ATC on Converted Sandbox system

• Analysis carried out during Pre-project phase of SAP S/4HANA Conversion if a POC is planned
before the project
• Analysis can be carried out using ATC worklist or SAP Fiori Custom Code Migration App
• Pre-requisite : Sandbox system is converted to SAP S/4HANA 1809 release or higher

Convert sandbox to Configure local ATC and


System copy SAP S/4HANA run checks
Strongly recommended:
Connect to ERP
PRODUCTION
SAP S/4HANA 1809 for “usage collection”
ERP PROD ERP Sandbox System SAP S/4HANA 1809
(Copy of PROD) Sandbox Sandbox
Local ATC configured
ERP PROD
Worklist displayed in
Fiori UI based on
Custom coding Custom coding Custom coding prod usage Usage

Checked Custom
coding for workload
estimate

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 45


ATC Deployment Options
Option 3 : SAP S/4HANA based ATC on New installation

• Analysis carried out during Pre-project phase of SAP S/4HANA Conversion


• Pre-requisite: Fresh installation of SAP S/4HANA 1809 or higher
• Analysis can be carried out using ATC worklist or SAP Fiori App Custom Code Migration

Configure Remote ATC


connecting to the ERP Dev
Strongly recommended:
Install/deploy an “empty”
Connect to ERP PRODUCTION
SAP S/4HANA system
for “usage collection”
SAP S/4HANA 1809
SAP S/4HANA SAP S/4HANA 1809
(Used as ATC Central
1809 (Used as ATC Central
check system) ERP PROD
Stand alone check system)
system Worklist displayed Usage
in Fiori UI based
on prod usage

ERP DEV ERP DEV


Custom coding Checked Custom coding
for workload estimate
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 46
ABAP Test Cockpit Deployment Options
Option 4 : Remote Analysis with SAP Cloud Platform ABAP Environment
Strongly recommended:
1 Provision a SAP Cloud 2 Configure Remote ATC 3 Connect to ERP PRODUCTION
Platform ABAP connecting to the ERP Dev for “usage analysis”
environment

SAP Cloud
Platform ABAP
ERP PROD
SAP Cloud Platform SAP Cloud Platform environment
ABAP environment ABAP environment Worklist displayed Usage
in Fiori UI based on
prod usage

ERP DEV ERP DEV


Checked Custom coding
Custom coding for workload estimate

• Analysis carried out during Pre-project phase of SAP S/4HANA Conversion


• Pre-requisite : Provisioning of a SAP Cloud Platform ABAP Environment
• Remote ATC configuration with check variant ‘S4HANA_READINESS_REMOTE’ more details here
• Analysis is carried out with SAP Fiori App Custom Code Migration
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 47
Pro/strength
ABAP Test Cockpit Deployment Options
Cons/weakness
Several deployment options matching different needs: Comparison
ATC Remote Analysis with Remote analysis using SAP SAP S/4HANA based ATC on Remote analysis using
a 7.52 NetWeaver System S/4HANA based ATC (on New Converted Sandbox SAP Cloud Platform
installation ) /Development system ABAP Environment
Can be used before the conversion of any
system, for workload estimate or to adapt
Yes Yes No Yes
on SAP HANA related changes on SAP
ERP before project start
prerequisites

Requires additional infrastructure in the


Yes Yes No No
customer landscape
Requires SAP S/4HANA licenses and SAP
No Yes Yes No
HANA hardware
TCO, and speed to implement 2 3 4 1
Requires solving of “hybrid” landscape
No No No Yes
topics (eg security, connections with cloud)
Enables Quick Fixes
No No Yes No
Features

Can be used with SAP Fiori App Custom


Code Migration No Yes Yes Yes

Can be used for multiple systems using


different SAP products Yes Yes No Yes

Latest features available


No Yes Yes Yes
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 48
Day 1 – Key Takeaways

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 49


Key takeaways

• The simplifications made to SAP S/4HANA will impact your custom code existing in the current
ECC system.

• The move to SAP HANA database may impact your custom code from a technical and functional
side.

• You can identify the impacted custom code using SAP ABAP Test Cockpit or SAP Fiori App for
Custom Code Migration

• You have several deployment options for the ABAP Test Cockpit depending on your current
project status and perspective
• Either deployed as a separate system if you do not have yet a SAP S/4HANA converted environment and
want to estimate workload.
• Either within the SAP S/4HANA system, a fresh installation or a sandbox converted.

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 50


Day 1 – Additional Resources

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 51


SAP Enterprise Support Resources
Source Description Link
EGI Portfolio List of available Expert Guided Implementations https://support.sap.com/en/offerings-programs/enterprise-
support/enterprise-support-academy/expert-guided-implementation.html
SAP Enterprise SAP Enterprise Support Value Map for SAP S/4HANA Sign up here: https://support.sap.com/valuemaps
Support Value Map → “Sign Up” → Choose the SAP S/4HANA on premise Value Map

SAP Enterprise EGI “SAP Readiness Check tool for SAP S/4HANA” Go to https://support.sap.com/esacademy
Support Explains how to prepare and run the check as well as how to → Access Learning content
EGI analyze and follow-up on the results → Search by course ID: SUP_EDE_0080_1712
Duration: 3 days
SAP Enterprise Expert Guided Implementation “Custom Code Quality and Go to https://support.sap.com/esacademy
Support Clones” →Access Learning Content
EGI Understand
Duration: 4 days Search by course ID: SUP_EDE_0180_1312 or course name

Simplification List Simplification List and Simplification Item Catalogue • the Simplification List PDF:
https://help.sap.com/viewer/product/SAP_S4HANA_ON-PREMISE/
• the Simplification Item Catalog:
https://launchpad.support.sap.com/#/sic/
• SAP Note 2313884 in XLS format
• Blog: The SAP S/4HANA Simplification List
• Blog: The SAP Simplification Item Catalog & Simplification Item
Checks

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 52


Additional Resources
Source Description Link

Blogs How to activate ABAP Call Monitor (SCMON) Go to blogs.sap.com and search for:
“ABAP Call Monitor (SCMON)”

Wiki Further How-To Guides for activating UPL and SCMON https://wiki.scn.sap.com → SAP Solution Manager → Custom
Code Management

Blog SAP S/4HANA Custom Code Migration Worklist Go to blogs.sap.com and search for:
“SAP S/4HANA Custom Code Migration Worklist”

Blog SAP S/4HANA System Conversion – Custom code adaptation Go to blogs.sap.com and search for:
process “SAP S/4HANA System Conversion – Custom code adaptation
process”

Blog How-to guides to setup and utilize ABAP Test Cockpit Go to blogs.sap.com
and search for:
“Remote Code Analysis in ATC”
“ATC – Technical Setup Step by Step”

Help Portal Conversion Guide for SAP S/4HANA https://help.sap.com/viewer/p/SAP_S4HANA_ON-PREMISE


→ Product Documentation
Guides you step by step through the conversion process, detailing
prerequisites, available tools, and activities.

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 53


SAP Enterprise Support Value Maps
SAP Enterprise Support guides program I At a Glance

SAP Enterprise Support


guides program will help
you from the Prepare
phase through your SAP
S/4HANA go-live.

The program offers:


• A proposed goals-based Engagement Plan tailored to support your project
• Planned Engagement Points during your SAP S/4HANA project life cycle
• Journey Checks to guide you in the right direction at each stage of your project
• The program is available to SAP Enterprise Support Direct customers at no
additional cost
Do you have questions? [email protected]
IMPORTANT: In some scenarios, Discover phase can also be covered by the program. E.g. if you did not join the Adoption Starter program.
The SAP Enterprise Support guides Program does not include consulting or other services from SAP and will share the most current program information from SAP. Results from the SAP Enterprise Support guides
program are for illustrative purposes only and are provided without warranty as to accuracy or completeness. The SAP Enterprise Support guides program is provided for informational purposes only and does not alleviate
or amend customers’ responsibility for the management, completion, function and operation of its current SAP S/4HANA implementation and/or deployment project and initiative.
Not every Journey Check will be available at the start of guides. Number of Journey Checks varies depending on deployment options and transition paths

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 55


Your CRITICAL NEXT STEP >>
>>Sign
Signup
up today
today
with the SAP Enterprise Support value map for SAP S/4HANA
Congratulations! You have completed this session. Now you can start collaborating with us to achieve your SAP S/4HANA
goals. The SAP S/4HANA value map is a must to help you to adopt and run SAP S/4HANA scenarios, guiding you from the
discovery stages of this journey to the planning, implementation, and run phases of your project.
Become a member today by following these simple steps:

1. Sign Up for SAP Learning Hub (if not already a member)


2. Join the main group and choose SAP S/4HANA On Premise Value Map from the list on tab “Explore Value Maps” **
3. Select & Start Learning Journeys to view all available content
4. Explore & Achieve Quick Wins

SAP S/4HANA Value Map


Learning Journeys

Discover Prepare Explore

Discover the value Plan, prepare, and start Define all the details
the implementation

Engage with us
Engageandwith
getustheand get
best
the bestguidance
guidancewherewhere
Run Deploy Realize
youyou
need it from
need it fromour
globalteam
our global teamofof
Optimize the operability Prepare to go live Implement technical and
functional changes SAPS/4HANA
SAP S/4HANA
©Disclaimer:
2019 SAP SE **Valid
or an SAPS-User is required
affiliate company. to sign
All rights up for
reserved. SAP Learning
Hub, edition for SAP Enterprise Support in order to access all value maps available in
ǀ PUBLIC experts
experts
56
SAP Enterprise Support Value Maps Learning Room. Identify or request your S-User.
7 REASONS WHY YOU SHOULD JOIN
the SAP Enterprise Support value map for SAP S/4HANA

Structured Guidance
All the SAP S/4HANA related expert lead and self-paced content from the SAP
Enterprise Support Academy (webinars, workshops, best practice documents…) are
centralized in one place so you can find what you need when you need it.

Influence Content Prescriptive Approach


We work in close collaboration with the SAP teams who develop the SAP Not only have we selected the content for you, we will show you what you need to
Enterprise Support services and portfolio. Based on your experience and consume and when, depending on your project stage. Our content is structured
feedback we can influence the SAP Enterprise Support portfolio offering, to following the SAP Activate framework for your convenience.
shape SAP S/4HANA content that works for you.

Platform
Facts Personal Onboarding
Blog Directory
Subscribe to our blog posts and review our published content to keep We encourage you to request a touch-point call with one of our team members. A value
abreast of the latest SAP S/4HANA news and product updates. map onboarding call allows us to understand what exactly you are doing in terms of your
project plans, tasks you are working on and any issues or areas of concern that you
might have. In turn, we will tailor the conversation to suit your needs and highlight
specific content for you.

Expert Support Social Collaboration


Got a question? Our value map is not just a repository of data. You can pose With thousands of members at present in our value map community, there is a
questions to our experts in the forums and review other member’s comments.. massive opportunity to engage with and learn from other customers and partners.

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 57


FIRST THINGS FIRST!
Request a call and turn your curiosity into confidence!

We are here and ready to talk with you!


Once you gain access to the SAP Enterprise
SAP Learning Hub
Support Value Maps Learning Room, click the
SAP Enterprise Support Value Maps Learning ‘Request a Call’ tab to speak with a member of our
Room
team and enjoy a smoother transition to SAP
Overview What's New Explore Value Maps Empowerment Events Scope S/4HANA.
SAP Enterprise Support Value Maps Learning Room

Search this Group…


Start your journey to the Intelligent Request a Call
Enterprise
Build your skills, reach your objective, connect
with SAP Experts and obtain guidance with SAP
Navigation Guide Additional Information
Enterprise Support Value Maps now integrated
in the SAP Learning Hub. Benefit from self-
paced e-learning courses, online classes,
expert-led live sessions, and collaborative social
learning rooms – from anywhere, anytime and
how you want it.
You can read more about SAP Enterprise
Support value maps at this link:
• SAP Support Portal

Or watch this short YouTube Video:


• Next-Generation SAP Enterprise Support
Value Maps Program Overview &
Navigation

If you have any questions, please contact us:


[email protected]
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 58
How is SAP S/4HANA different?
Data model has been simplified
SALES FINANCE
Document Document Totals Indices
Header Item Header Item

Sales Order VBAK VBAP VAKPA VAPMA GL, AR, AP BKPF BSEG GLT0 KNC1 KNC3 BSIS BSAS BSIK

Delivery LIKP KIPS


LIPS VLKPA LKPMA LFC1 LFC3 BSID BSAD BSAK

FAGLF FAGLF FAGL FAGL


Billing Document VBRK VBRP VRKPA VRPMA New GL ACDOCA
LEXA* LEXT* BSIS BSAS
FAAT_
Status Info VBUK VBUP CO COBK COEP
DOC_IT COSS COSP

PRCD_
FAAT_
Conditions KONV
Elements VBOX AA ANEK ANEP
YODA ANEA ANLC ANLP
(new)
FAAT_
VBFA
Document Flow VBFA
(Simplified) ML MLHD… MLIT…
PLAN_ MLCD… MCLR… BSIM* CKMI1*
VALUES

MATERIAL VALUES
SAP ERP MATERIAL QUANTITIES
Valuation in MM or Valuation ML Aggregates
Aggregates Stock Aggregates History
Used for
Hybrid: Master Data Master ML
History Valuation Material Document
with Valuated Stock Data only MSSA MSSL MSSQ MSSAH MSTBH MSSQH

MATDOC_
MBEW MBEWH
MBEW CKMLCR MLPP CKMLPP MLDOC
CKMLPPWIP MKPF
MATDOC MSEG
EXTRACT MSTE MSTQ MSTB MSTEH MSTQH

EBEW EBEWH
EBEW CKMLPP MLCR CKMLCR CKMLKEPH
MLDOCCCS Inventory Movements Hybrid: Master
Used Data with
for Master DataStock
only Aggregates MARCH MARDH MKOLH

QBEW QBEWH
QBEW MLHD MLCRF MLCD CKMLMV004 MCHB MARC MARD MSKU MSLBH MCHBH MSKUH

OBEW OBEWH
OBEW MLIT MLKEPH CKLMMV004 MSKA MKOL MSPR MSLB MSKAH MSKAH

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 59


How is SAP S/4HANA different?
Data model has been simplified

© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 60


Thank you.
Contact information: SAP Enterprise Support Academy
Francisco Martinez [email protected]
CCM / ABAP Performance
SAP Intelligent Delivery Group
Follow us

www.sap.com/contactsap

© 2019 SAP SE or an SAP affiliate company. All rights reserved.


No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of
SAP SE or an SAP affiliate company.
The information contained herein may be changed without prior notice. Some software products marketed by SAP SE and its
distributors contain proprietary software components of other software vendors. National product specifications may vary.
These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or
warranty of any kind, and SAP or its affiliated companies shall not be liable for errors or omissions with respect to the materials.
The only warranties for SAP or SAP affiliate company products and services are those that are set forth in the express warranty
statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional
warranty.
In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this document or
any related presentation, or to develop or release any functionality mentioned therein. This document, or any related presentation,
and SAP SE’s or its affiliated companies’ strategy and possible future developments, products, and/or platforms, directions, and
functionality are all subject to change and may be changed by SAP SE or its affiliated companies at any time for any reason
without notice. The information in this document is not a commitment, promise, or legal obligation to deliver any material, code, or
functionality. All forward-looking statements are subject to various risks and uncertainties that could cause actual results to differ
materially from expectations. Readers are cautioned not to place undue reliance on these forward-looking statements, and they
should not be relied upon in making purchasing decisions.
SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered
trademarks of SAP SE (or an SAP affiliate company) in Germany and other countries. All other product and service names
mentioned are the trademarks of their respective companies.

See www.sap.com/copyright for additional trademark information and notices.

You might also like