SlideShare une entreprise Scribd logo
1  sur  30
Télécharger pour lire hors ligne
HOW-TO GUIDE | PUBLIC
Application Server ABAP 7.53 SP00
Document Version: 1.0 – 2018-09-21
Custom Code Migration Guide for SAP S/4HANA
1809
Feature Package Stack 00
©2018SAPSEoranSAPaffiliatecompany.Allrightsreserved.
THE BEST RUN
Content
1 Custom Code Migration Guide for SAP S/4HANA 1809. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2 Getting Started. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.1 Overview of the Conversion Process. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.2 System Requirements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
3 Optional: Custom Code Analysis During Preparation Phase. . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.1 Preparing the Checked System. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Configuring the User. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Applying SAP Notes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
3.2 Preparing the Central Check System. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Configuring the User. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Applying SAP Notes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
Configuring RFC Connections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Importing the Simplification Database. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Setting the Role as Central Check System. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Creating System Groups. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Configuring Object Providers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
3.3 Running Remote SAP S/4HANA Checks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Configuring a Remote ATC Run Series. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Scheduling a Remote ATC Run Series. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
Monitoring an ATC Run Series. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Analyzing ATC Run Results. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4 Custom Code Adaptation After System Conversion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.1 Running Transactions SPDD and SPAU. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.2 Running Local SAP S/4HANA Checks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
Importing the Simplification Database. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
Configuring Local ATC Run Series. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Scheduling Local ATC Run Series. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
4.3 Adapting Custom Code in ADT. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Displaying Active Results. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Fixing ATC Findings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Rechecking the Active Result. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
4.4 Rerunning Local SAP S/4HANA Checks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
5 What's Next?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
2 P U B L I C
Custom Code Migration Guide for SAP S/4HANA 1809
Content
6 Glossary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Custom Code Migration Guide for SAP S/4HANA 1809
Content P U B L I C 3
1 Custom Code Migration Guide for SAP S/
4HANA 1809
Custom Code Migration is part of the system conversion process from the classic SAP Business Suite running
on any database to the SAP S/4HANA system. In the context of this system conversion, custom ABAP code
needs to be adapted, since a lot of SAP code within SAP S/4HANA was simplified and in some cases changed
in a non-compatible way.
Some of your custom code objects are not valid anymore and either do not perform as expected or produce
syntax errors or dumps (red objects in the picture). You almost certainly have other objects that do perform as
expected and do not need to be changed (green objects in the picture).
SAP provides tools, based on the Simplification Database, that detect any custom code that needs to be
adapted to SAP S/4HANA. The Simplification Database is a database table in the SAP S/4HANA system that
contains all Simplification Items that refer to SAP objects simplified in SAP S/4HANA. Each simplification item
describes changed or removed SAP objects and refers to a dedicated SAP Note that describes the impact of
the change and how the related custom code can be adapted.
To analyze the required adaptations, you need to set up a system based on SAP NetWeaver AS for ABAP 7.52
that operates as a Central Check System. Using this Central Check System, you can perform remote custom
code checks in ABAP Test Cockpit (ATC) for one or more systems in your landscape.
4 P U B L I C
Custom Code Migration Guide for SAP S/4HANA 1809
Custom Code Migration Guide for SAP S/4HANA 1809
2 Getting Started
This guide focuses on the custom code related process, from checking custom code remotely, then analyzing
the findings, and finally adapting the custom code. Read this guide carefully to get instructions on how to adapt
your custom code to SAP S/4HANA 1809.
2.1 Overview of the Conversion Process
SAP provides a process for the system conversion to SAP S/4HANA. The following figure gives you an overview
of the tools, the phases, and the activities involved in the process.
The Custom Code Migration process describes the tools and necessary activities that help you to migrate
custom code. The process consists of preparatory analysis (Custom Code Analysis) and the adaptation of the
custom code (Custom Code Adaptation) after the technical conversion.
Custom Code Analysis
To prepare the system conversion, we recommend that you evaluate your custom code and remove any
obsolete code as indicated in the Usage Procedure Log (UPL/SCMON). For more information, see ABAP Call
Monitor (SCMON) – Analyze usage of your code .
In addition, your custom code needs to be checked with ABAP Test Cockpit (ATC) against the SAP S/4HANA
simplifications in the Simplification Database and for any SAP HANA related changes. The result is a list of
findings where your custom code does not comply with the scope and data structure of SAP S/4HANA. At this
step you can estimate the required effort required to adapt custom code to migrate to SAP S/4HANA.
Custom Code Migration Guide for SAP S/4HANA 1809
Getting Started P U B L I C 5
 Note
The only purpose of the Custom Code Analysis phase is to estimate the effort required for the Custom
Code Adaptation for system conversion in your current SAP Business Suite landscape. This phase can be a
long time before the actual system conversion to SAP S/4HANA.
Nevertheless, in this phase you can also prepare your custom code for the future system conversion. For
more information, see the blog What you can do today to prepare your custom code for SAP S/4HANA .
Only after the system conversion to SAP S/4HANA was fulfilled can the functional adaptation be carried
out locally on the SAP S/4HANA system.
Custom Code Adaptation
In the system conversion, you need to adapt any modifications related to ABAP Dictionary objects using
transaction SPDD.
After you performed the system conversion to SAP S/4HANA with Software Update Manager (SUM), you need
to adapt any modifications related to repository objects using transaction SPAU.
After this, we recommend that you run ABAP Test Cockpit (ATC) with SAP S/4HANA checks in ABAP
Development Tools (ADT). The result is a list of ATC findings that are related to SAP S/4HANA simplifications
and refer to SAP Notes which describe how to solve the issues. Based on these ATC findings, you can start
adapting your custom code.
For more information on the overall system conversion process, see http://help.sap.com/s4hana_op_1809
Product Documentation Conversion Guide .
 Note
If you upgrade from lower release of SAP S/4HANA to SAP S/4HANA 1809, you also need to adapt some of
your custom code. For more information on the upgrade process, see http://help.sap.com/
s4hana_op_1809 Product Documentation Upgrade Guide .
2.2 System Requirements
To perform the Custom Code Analysis, you need to set up a centralized SAP NetWeaver AS for ABAP 7.52
system as the Central Check System within your SAP system landscape.
 Note
The Central Check System can be used to check one or more SAP Business Suite systems.
For remote access, the Central Check System needs RFC destinations for each relevant system that you want
to check using ATC. When executed, the Central Check System accesses the Checked System using Remote
Stubs and the RFC connection. These Remote Stubs are an interface between the Central Check System and
the Checked System and return a model from custom code that needs to be checked.
6 P U B L I C
Custom Code Migration Guide for SAP S/4HANA 1809
Getting Started
To analyze your custom code, you need to meet the following system requirements:
SAP System Software Component
Central Check System SAP_BASIS 7.52 or higher
Checked System SAP_BASIS 7.00, 7.01, 7.02, 7.31, 7.40, 7.50, 7.51 or 7.52
To adapt your custom code, you need the ABAP Development Tools (ADT) in the latest client version too. See
https://tools.hana.ondemand.com/ for more information.
 Recommendation
We recommend that you use the ABAP Development Tools (ADT) since transaction SE80 in SAP GUI no
longer supports all development objects (such as CDS Views) needed in SAP S/4HANA.
Custom Code Migration Guide for SAP S/4HANA 1809
Getting Started P U B L I C 7
3 Optional: Custom Code Analysis During
Preparation Phase
The Custom Code Analysis is performed before the technical conversion and is optional. In this phase, you can
estimate the effort required to adapt the custom code to SAP S/4HANA simplifications.
 Note
The functional adaptation of custom code is done after the technical conversion. If you do not want to
estimate the effort required in advance, continue with the Custom Code Adaptation After System
Conversion [page 19].
3.1 Preparing the Checked System
To enable your Central Check System to check your custom code remotely, you need to configure your user
and apply some required SAP Notes in your Checked System.
3.1.1 Configuring the User
The RFC user needs the following authorizations in the Checked System:
Name of Authoriza­
tion Object Activity Type of RFC Object Name of RFC Object Description
S_RFC 16 (Execute) FUGR SABP_COMP_PROCS
_E,
SCA_REMOTE_DATA
_ACCESS
Authorization for:
● Configuring Ob­
ject Providers
● Running SAP S/
4HANA checks
FUNC REPOSITORY_ENVI
RONMENT_ALL,
RFC_GET_NAMETAB,
FUNCTION_EXISTS,
RFCPING
S_DEVELOP 03 (Display) * *
8 P U B L I C
Custom Code Migration Guide for SAP S/4HANA 1809
Optional: Custom Code Analysis During Preparation Phase
3.1.2 Applying SAP Notes
Apply the following SAP Notes in the Checked System:
● 2485231 - Remote ATC Checks of Modifications and Enhancements
● 2270689 - RFC Extractor for performing static checks
● 2190065 - ATC/CI: Remote Code Analysis - Object Provider Stub
● 2196792 - RFC-Stub for CVA/SLIN-Remote
3.2 Preparing the Central Check System
To check custom code remotely in ABAP Test Cockpit (ATC), you need to install and configure an ATC Central
Check System. This system checks one or more SAP systems in your landscape for SAP S/4HANA related
changes.
3.2.1 Configuring the User
You need the following user to use transaction ATC to perform custom code checks:
User Role Description
SAP_SATC_ADMIN Authorization for setting up ABAP Test Cockpit (ATC) for
central quality checking
In addition, you need the following authorization object:
Name of the Authorization
Object
Name of the Authorization
Field
Value of the Authorization
Field Description
S_YCM SYCM_AREA SDB Authorization for importing
the Simplification Database
ACTVT UL
3.2.2 Applying SAP Notes
In the Central Check System, apply all the relevant SAP Notes that are mentioned in the following SAP Notes so
that you can use the latest features:
● 2436688 - Recommended SAP Notes for using SAP S/4HANA custom code checks in ATC
Custom Code Migration Guide for SAP S/4HANA 1809
Optional: Custom Code Analysis During Preparation Phase P U B L I C 9
● 2364916 - Recommended SAP Notes for using ATC to perform remote analysis
3.2.3 Configuring RFC Connections
Use transaction SM59 to create RFC connections for each Checked System.
 Note
The RFC connection must be usable without a logon dialog.
3.2.4 Importing the Simplification Database
To check your custom code against the SAP S/4HANA simplifications, you need to import the Simplification
Database into the Central Check System.
3.2.4.1 Downloading the Simplification Database
SAP provides content for the Simplification Database of an SAP product as a ZIP file in SAP Service
Marketplace (SMP). The content of the Simplification Database can be downloaded as a ZIP file. This ZIP file
then has to be uploaded to the central check system.
Procedure
1. Open the SAP Software Download Center .
2. Choose Software Downloads and search for CCMSIDB.
3. Choose the relevant ZIP file and choose Download Basket.
 Note
To find the most recent content of the Simplification Database provided for SAP S/4HANA, see also
SAP Note 2241080 .
Results
The ZIP file is downloaded and saved on your selected drive. It contains the content of the Simplification
Database.
10 P U B L I C
Custom Code Migration Guide for SAP S/4HANA 1809
Optional: Custom Code Analysis During Preparation Phase
3.2.4.2 Importing the Simplification Database
To add the content of the Simplification Database to your system for further analysis, you need to upload the
downloaded ZIP file to the Central Check System.
Procedure
1. Log on to the Central Check System.
2. Run transaction SYCM.
The Display Simplification Database Content view is opened.
3. Choose Simplification Database Import from ZIP File from the menu bar.
4. Choose the ZIP file with the downloaded Simplification Database from your drive and confirm with Open.
Results
The Simplification Database is uploaded to the Central Check System and is now available for analysis in
transaction SYCM.
3.2.4.3 Displaying the Content of the Simplification
Database
You can display the content of the Simplification Database to get an overview of all changes or specific changes
and the corresponding SAP objects that are simplified in SAP S/4HANA.
Procedure
To get a list of all Simplification Items, choose Ctrl + F8 or the Overview button.
Custom Code Migration Guide for SAP S/4HANA 1809
Optional: Custom Code Analysis During Preparation Phase P U B L I C 11
 Note
To limit the number of Simplification Items displayed, enter the relevant filter criteria in transaction SYCM
and choose Execute.
Results
The Simplification Database Content view is opened. From here you can order the displayed list, for example by
their SAP Object Type, the assigned Simplification Category, or the relevant SAP Note Number.
From the overview, you can display the list of objects contained in a Simplification Item.
 Note
To find out whether a certain object is related to a Simplification Item, enter the name of the object (for
example MATNR) in the Object Name field and execute ( F8 ). Then you can navigate to the corresponding
SAP Note to get more information.
3.2.5 Setting the Role as Central Check System
The system role needs to be specified as Central Check System for remote SAP S/4HANA checks.
Procedure
1. Run transaction ATC.
The ABAP Test Cockpit Overview screen appears.
2. In the navigation pane, expand the node ATC Administration Setup and double-click System Role.
3. Switch to change mode ( F6 ).
4. On the Change System Role screen, choose ATC Checks by Object Providers Only.
12 P U B L I C
Custom Code Migration Guide for SAP S/4HANA 1809
Optional: Custom Code Analysis During Preparation Phase
5. Save the new settings and return to the ABAP Test Cockpit Overview screen.
3.2.6 Creating System Groups
A system group contains multiple SAP systems. Every Object Provider must be assigned to a system group and
therefore you need to create a system group before you configure an Object Provider.
Procedure
1. In the navigation pane in transaction ATC, expand the node ATC Administration Setup and double-
click Object Providers.
2. Double-click the item System Groups for selection.
3. Switch to change mode ( F6 ).
4. Choose the New Entries button in the toolbar.
5. Enter an ID and short Description for the new system group you want to add.
6. Save the new entry.
3.2.7 Configuring Object Providers
An Object Provider defines the RFC connection to be used for analysis in a remote SAP system. While a check
run is being executed, the ATC framework uses this RFC connection to the Checked System to extract a model
from the custom code.
Procedure
1. In the RFC Object Providers view, double-click the item RFC Object Providers for selection.
Custom Code Migration Guide for SAP S/4HANA 1809
Optional: Custom Code Analysis During Preparation Phase P U B L I C 13
2. Switch to change mode ( F6 ).
3. Choose the New Entries button in the toolbar.
4. Specify the following entries for the Object Provider you want to create:
Fields Description
<ID> ID that specifies the Object Provider
 Note
This ID is used when configuring an ATC run series.
<Description> Short text that specifies the Object Provider
<System Group> The system group to which the Object Provider belongs
<SAP System> ID of the remote system, to which you want to connect us­
ing the Object Provider
<RFC Destination> Valid RFC destination for RFC connection to the Checked
System
 Note
This RFC connection must be usable without a logon
dialog.
5. Save the new entry.
14 P U B L I C
Custom Code Migration Guide for SAP S/4HANA 1809
Optional: Custom Code Analysis During Preparation Phase
3.3 Running Remote SAP S/4HANA Checks
In the Central Check System, you can perform SAP S/4HANA checks to analyze development objects in a
Checked System remotely. In this step, you can estimate the effort required to adapt your ABAP source code to
SAP S/4HANA-related changes.
3.3.1 Configuring a Remote ATC Run Series
Procedure
1. In the navigation pane in transaction ATC, expand the nodes ATC Administration Runs and double-
click Schedule Runs.
The screen that appears displays a list of existing run series.
2. Choose the Create button in the toolbar.
3. Enter the name for the series you want to create and confirm.
4. Specify the following entries for the run series you want to create:
Field Description
<Description> Enter a short description for the ATC run series you want
to configure.
 Tip
You can use the template provided by the Description
field. When you execute the run series, the built-in var­
iables are filled with data for the system, the day of
the week, the calendar week, and for the year. How­
ever, you can also add further texts to these variables,
rearrange them, or replace the built-in variables with
your own text.
<Check Variant> Enter the check variant S4HANA_READINESS_1809
 Note
This product-specific global check variant checks only
the simplifications relating to SAP S/4HANA 1809.
<Object Provider> Enter the ID of the relevant object provider that represents
the remote system you want to check.
Custom Code Migration Guide for SAP S/4HANA 1809
Optional: Custom Code Analysis During Preparation Phase P U B L I C 15
Field Description
<Objects to Check> Specify the set of development objects you want to check
in the Checked System.
On the Checkable Namespaces tab, the option By Query
lets you specify objects by name (for example, by package
name), by transport layer, or by component. The option By
Object Set lets you specify an object set you defined in
Code Inspector in the Checked System.
 Tip
You can use the value help to choose the packages or
the object set in the remote system.
On the Modified Objects tab, you can specify the modified
source code objects you want to check.
5. Save the configuration.
3.3.2 Scheduling a Remote ATC Run Series
Procedure
1. In the list of run series, select the run series in question and click the Schedule button in the toolbar.
2. In the dialog that appears, adapt the settings for the Life Span of the series and for Execution to your
needs. Otherwise, leave these settings unchanged.
 Note
The Life Span defines how long (in days) the ATC result is kept in the system. After this, the ATC result
is automatically deleted in the system.
3. Choose Execute ( F8 ).
 Note
You can use the option Execute in Background ( F9 ) to schedule a run series at regular intervals.
16 P U B L I C
Custom Code Migration Guide for SAP S/4HANA 1809
Optional: Custom Code Analysis During Preparation Phase
3.3.3 Monitoring an ATC Run Series
In this step, you can monitor the status of the remote ATC run series.
Procedure
1. In the navigation pane in transaction ATC, expand the nodes ATC Administration Runs and double-
click Monitor and Control Runs.
2. Leave the run series field empty and execute ( F8 ).
The ATC Run Monitor view is displayed. The view shows the status of check runs as running, finished, or
failed.
3.3.4 Analyzing ATC Run Results
Procedure
1. In the navigation pane in transaction ATC, expand the nodes ATC Administration Runs and double-
click Manage Results.
2. Leave the run series field empty and choose Execute ( F8 ).
 Note
By default, the ATC run results of the last 10 days are displayed. If you want to see theATC run results
from a different period of time, change the settings in Schedule Data.
The ATC Manage Results view is displayed. The view shows a list of ATC run results from your requested
period of time.
3. In the ATC Manage Results view, select a run series and choose Display to inspect the results.
A list of all ATC findings is displayed in transaction SE80.
4. Choose Statistics View.
5. Choose Choose Statistic to group the ATC findings (for example, by SAP Note Number).
Custom Code Migration Guide for SAP S/4HANA 1809
Optional: Custom Code Analysis During Preparation Phase P U B L I C 17
The ATC findings are grouped by the selected statistics.
6. Double-click a statistics group to display the list of ATC findings assigned to the selected statistics.
7. Double-click an ATC finding to open detailed information. Here you can find the SAP Note number referring
to a dedicated SAP Note and the referenced object.
8. Click the object name to navigate to the source code to see where the incompatible code occurs.
18 P U B L I C
Custom Code Migration Guide for SAP S/4HANA 1809
Optional: Custom Code Analysis During Preparation Phase
4 Custom Code Adaptation After System
Conversion
After Software Update Manager (SUM) has performed the technical conversion, you can start adapting your
custom code.
 Note
This phase is separated chronologically from the Custom Code Analysis and can be performed much later
(even years) after the first analysis took place.
4.1 Running Transactions SPDD and SPAU
SAP provides the adjustment tools SPDD and SPAU, which enable you to reimplement any modifications related
to ABAP Dictionary objects and development objects (such as programs, function modules, screens,
interfaces, and documentation) in system upgrades.
To adapt these modifications, see http://help.sap.com/s4hana_op_1809 Product Assistance English
Enterprise Technology ABAP Platform Developing on the ABAP Platform Development Concepts and
Tools Application Development on AS ABAP Customer-Specific ABAP Development Changing the SAP
Standard (BC) Installing Upgrades, Support Packages, and Enhancement Packages and SAP Note 2168190
for more information.
 Note
Transaction SPDD is performed during the system conversion whereas all other adaptations take place after
the conversion.
Custom Code Migration Guide for SAP S/4HANA 1809
Custom Code Adaptation After System Conversion P U B L I C 19
4.2 Running Local SAP S/4HANA Checks
To check for ATC findings in the converted system, you need to configure a local ATC run series that checks the
requested development objects.
4.2.1 Importing the Simplification Database
To detect custom code which needs to be adapted to SAP S/4HANA, SAP provides tools based on the
Simplification Database.
Procedure
Import the Simplification Database. For more information, see Importing the Simplification Database [page
10].
4.2.2 Configuring Local ATC Run Series
Procedure
1. Log on to your converted system.
2. Run transaction ATC.
The ABAP Test Cockpit Overview screen appears.
3. In the navigation pane, expand the nodes ATC Administration Runs and double-click the Schedule
Runs entry.
The screen that appears displays a list of existing run series.
4. Choose the Create button in the toolbar.
5. Enter a name for the new series and confirm.
6. Specify the following entries for the new run series:
20 P U B L I C
Custom Code Migration Guide for SAP S/4HANA 1809
Custom Code Adaptation After System Conversion
Field Description
<Description> Enter a short description for the ATC run series you want
to configure.
 Tip
You can use the template provided by the Description
field. When you execute the run series, the built-in var­
iables are filled with data for the system, the day of
the week, the calendar week, and the year. However,
you can also add further texts to these variables, rear­
range them, or replace the built-in variables with your
own text.
<Check Variant> Enter the check variant S4HANA_READINESS.
 Note
This check variant provides checks for SAP S/4HANA
readiness (for example, searches for DB operations or
field length extensions).
<Objects to Check> Specify the set of development objects you want to check.
On the Checkabable Namespaces tab, the option By Query
lets you specify objects by name (such as by package
name), by transport layer, or by component. The option By
Object Set lets you specify an object set that you have de­
fined in Code Inspector in the Checked System.
 Tip
You can use the value help to choose the packages or
the object set in the remote system.
On the Modified Objects tab, you can specify the modified
source code objects you want to check.
7. Save the configuration.
4.2.3 Scheduling Local ATC Run Series
Procedure
1. In the list of run series, select the run series in question and click the Schedule button in the toolbar.
2. In the dialog that appears, choose Set to Active Result.
Custom Code Migration Guide for SAP S/4HANA 1809
Custom Code Adaptation After System Conversion P U B L I C 21
3. Adapt the settings for the Life Span of the series and for Execution to your needs. Otherwise, leave these
settings unchanged.
 Note
The Life Span defines how long (in days) the ATC result is kept in the system. After this, the ATC result
is automatically deleted in the system.
4. Choose Execute in Background ( F9 ) to schedule the run series in regular time intervals.
 Recommendation
We recommend that youto schedule the local ATC run series in regular time intervals since new ATC
findings could emerge during custom code adaptation.
4.3 Adapting Custom Code in ADT
After a local ATC run series has checked the requested development objects, you can start adapting the
custom code by fixing the ATC findings of the ATC run result with ABAP Development Tools (ADT).
4.3.1 Displaying Active Results
Prerequisites
You installed the latest version of ABAP Development Tools (ADT) in Eclipse. In Eclipse, you created an ABAP
Project which is connected to your converted SAP S/4HANA system. For more information, see the Help
Contents in ADT.
22 P U B L I C
Custom Code Migration Guide for SAP S/4HANA 1809
Custom Code Adaptation After System Conversion
Procedure
1. In ADT, log on to your converted system.
2. Open the ATC Result Browser view and select your converted system.
3. Select the Active Result to display the list of ATC findings.
 Note
By default, all ATC findings are filtered by your user name and only ATC findings belonging to your user
are displayed. To display the ATC findings of all users, open the context menu of the ABAP Project in the
ATC Result Browser view, choose Change User Filter, and enter * as the user name.
4. Choose Group By Check to display the ATC findings sorted by the different checks of the check
variant S4HANA_READINESS.
5. Select the check group S/4HANA: Search for S/4 related syntax errors and choose Recheck in the context
menu.
Custom Code Migration Guide for SAP S/4HANA 1809
Custom Code Adaptation After System Conversion P U B L I C 23
4.3.2 Fixing ATC Findings
Procedure
1. Open the ATC Problems view.
The view shows a Worklist of ATC findings resulting from the recheck on the check group S/4HANA: Search
for S/4 related syntax errors.
2. Select an ATC finding to display further information about what and where the statements with problems
are and what you can do to fix the ATC finding.
3. Double-click an ATC finding to jump to the source code at the position where the ATC found a statement
with a problem.
4. Fix each ATC finding in the Worklist as described in the Details view and the assigned SAP Note.
 Note
You can also fix ATC findings by using Quick Fixes. See Applying Quick Fixes [page 24] for more
information.
4.3.2.1 Applying Quick Fixes
Quick Fixes enable you to resolve errors and warnings in the ABAP source code using the functions provided in
the Quick Fix popup.
Procedure
 Note
ATC findings that can be fixed with a Quick Fix are displayed with a lightbulb icon .
1. Select an ATC finding with a lightbulb icon in the ATC Problems view.
2. Right-click the ATC finding and choose Quick Fix ( Ctrl + 1 ).
24 P U B L I C
Custom Code Migration Guide for SAP S/4HANA 1809
Custom Code Adaptation After System Conversion
The Quick Fix view opens.
3. Select the displayed Quick Fix and choose Finish.
 Recommendation
If there is more than one Quick Fix available for an ATC finding, we recommend that you select the first
Quick Fix displayed.
4.3.2.2 Using Pseudo Comments
Pseudo comments are one way of suppressing ATC findings. Sometimes it is the case that certain ATC findings
cannot be fixed (so-called false positives). In this case and especially in the context of the Custom Code
Adaptation to SAP S/4HANA, we recommend that you use pseudo comments to suppress the specific ATC
finding.
Procedure
 Note
If SAP S/4HANA-related pseudo comments are available for an ATC finding, they can easily be applied as a
Quick Fix.
Apply the quick fix. For more information, see Applying Quick Fixes [page 24].
Custom Code Migration Guide for SAP S/4HANA 1809
Custom Code Adaptation After System Conversion P U B L I C 25
The pseudo comment is appended at the end of the code line in question.
4.3.3 Rechecking the Active Result
Once you have fixed the ATC findings of the check group S/4HANA: Search for S/4 related syntax errors, you
need to recheck the active result and fix all other ATC findings.
Procedure
1. Open the ATC Result Browser view.
2. Right-click Active Result and choose Recheck.
3. Open the ATC Problems view.
The view shows a Worklist of ATC findings resulting from the recheck on the active result.
4. Fix the ATC findings in the Worklist.
5. Recheck the Active Result in ATC Result Browser view again to validate that the ATC findings are fixed.
 Note
Repeat the steps 4 and 5 if there are still ATC findings in the Worklist after the recheck.
4.4 Rerunning Local SAP S/4HANA Checks
Rerun the local ATC run series once all the ATC findings are fixed, since new ATC findings could have emerged
during the adaptation of your custom code.
26 P U B L I C
Custom Code Migration Guide for SAP S/4HANA 1809
Custom Code Adaptation After System Conversion
5 What's Next?
There are a few more things you can do after the Custom Code Migration:
● Testing applications: Test your applications to check whether your programs run on SAP S/4HANA.
 Note
ATC is not able to find all potential issues (for example, dynamic coding is not covered by static code
checks).
● Regular ATC checks with S4HANA_READINESS: Add the SAP S/4HANA checks with check variant
S4HANA_READINESS to your regular ATC checks.
● Runtime Checks: Switch on the Runtime Check Monitor in the new productive system and correct the
additional findings found by the runtime check.
● Performance optimizations: Switch on SQL Monitor in the productive system. Sort the SQL Monitor
results by execution time and optimize the top 10-20 SQLs in your custom code which affect relevant
business processes. After performance optimizations reach the productive system, this process needs to
be repeated 2-3 times to achieve the best results.
● Optimizing your code for SAP HANA: After the successful migration, you can now start to think about
optimizing your business processes by using code push down techniques of SAP HANA, like the Core Data
Services (CDS) and ABAP-managed database procedures (AMDP) implemented by the native HANA
language SQL script.
Custom Code Migration Guide for SAP S/4HANA 1809
What's Next? P U B L I C 27
6 Glossary
The following terms are used within the context of this Custom Code Migration guide:
Term Definition
ABAP Test Cockpit (ATC) Tool for performing static and dynamic quality checking of
ABAP code and associated repository objects both remotely
and locally
ATC Finding Message with supporting information and functionality that
alerts a developer to a problem with ABAP code or some
other object in ABAP Repository
Central Check System SAP NetWeaver AS for ABAP 7.52 system that checks cus­
tom code in one or multiple SAP systems remotely
Checked System System with custom code that gets checked remotely by the
Central Check System
Simplification Database Database table in the SAP S/4HANA system that contains all
the Simplification Items referring to SAP objects simplified
in SAP S/4HANA
28 P U B L I C
Custom Code Migration Guide for SAP S/4HANA 1809
Glossary
Important Disclaimers and Legal Information
Hyperlinks
Some links are classified by an icon and/or a mouseover text. These links provide additional information.
About the icons:
● Links with the icon : You are entering a Web site that is not hosted by SAP. By using such links, you agree (unless expressly stated otherwise in your
agreements with SAP) to this:
● The content of the linked-to site is not SAP documentation. You may not infer any product claims against SAP based on this information.
● SAP does not agree or disagree with the content on the linked-to site, nor does SAP warrant the availability and correctness. SAP shall not be liable for any
damages caused by the use of such content unless damages have been caused by SAP's gross negligence or willful misconduct.
● Links with the icon : You are leaving the documentation for that particular SAP product or service and are entering a SAP-hosted Web site. By using such
links, you agree that (unless expressly stated otherwise in your agreements with SAP) you may not infer any product claims against SAP based on this
information.
Beta and Other Experimental Features
Experimental features are not part of the officially delivered scope that SAP guarantees for future releases. This means that experimental features may be changed by
SAP at any time for any reason without notice. Experimental features are not for productive use. You may not demonstrate, test, examine, evaluate or otherwise use
the experimental features in a live operating environment or with data that has not been sufficiently backed up.
The purpose of experimental features is to get feedback early on, allowing customers and partners to influence the future product accordingly. By providing your
feedback (e.g. in the SAP Community), you accept that intellectual property rights of the contributions or derivative works shall remain the exclusive property of SAP.
Example Code
Any software coding and/or code snippets are examples. They are not for productive use. The example code is only intended to better explain and visualize the syntax
and phrasing rules. SAP does not warrant the correctness and completeness of the example code. SAP shall not be liable for errors or damages caused by the use of
example code unless damages have been caused by SAP's gross negligence or willful misconduct.
Gender-Related Language
We try not to use gender-specific word forms and formulations. As appropriate for context and readability, SAP may use masculine word forms to refer to all genders.
Custom Code Migration Guide for SAP S/4HANA 1809
Important Disclaimers and Legal Information P U B L I C 29
www.sap.com/contactsap
© 2018 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.
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.
Please see https://www.sap.com/about/legal/trademark.html for
additional trademark information and notices.
THE BEST RUN

Contenu connexe

Tendances

S/4HANA Installation Quickstart Guide and Monitoring S/4HANA
S/4HANA Installation Quickstart Guide and Monitoring S/4HANAS/4HANA Installation Quickstart Guide and Monitoring S/4HANA
S/4HANA Installation Quickstart Guide and Monitoring S/4HANALinh Nguyen
 
Solution Manager 7.2 SAP Monitoring - Part 2 - Configuration
Solution Manager 7.2 SAP Monitoring - Part 2 - ConfigurationSolution Manager 7.2 SAP Monitoring - Part 2 - Configuration
Solution Manager 7.2 SAP Monitoring - Part 2 - ConfigurationLinh Nguyen
 
Mastering SAP Monitoring - Workload Monitoring
Mastering SAP Monitoring - Workload MonitoringMastering SAP Monitoring - Workload Monitoring
Mastering SAP Monitoring - Workload MonitoringLinh Nguyen
 
Mastering SAP Monitoring - Determining the Health of your SAP Environment
Mastering SAP Monitoring - Determining the Health of your SAP EnvironmentMastering SAP Monitoring - Determining the Health of your SAP Environment
Mastering SAP Monitoring - Determining the Health of your SAP EnvironmentLinh Nguyen
 
Solution Manager - SAP NW BW on HANA Setup Part 3 of 3 (Technical Monitoring ...
Solution Manager - SAP NW BW on HANA Setup Part 3 of 3 (Technical Monitoring ...Solution Manager - SAP NW BW on HANA Setup Part 3 of 3 (Technical Monitoring ...
Solution Manager - SAP NW BW on HANA Setup Part 3 of 3 (Technical Monitoring ...Linh Nguyen
 
SAP HANA SPS12 Upgrade and Exploring New Features - Part 1
SAP HANA SPS12 Upgrade and Exploring New Features - Part 1SAP HANA SPS12 Upgrade and Exploring New Features - Part 1
SAP HANA SPS12 Upgrade and Exploring New Features - Part 1Linh Nguyen
 
Solution Manager Technical Monitoring - SAP NW BW on HANA Setup Part 2 of 3 (...
Solution Manager Technical Monitoring - SAP NW BW on HANA Setup Part 2 of 3 (...Solution Manager Technical Monitoring - SAP NW BW on HANA Setup Part 2 of 3 (...
Solution Manager Technical Monitoring - SAP NW BW on HANA Setup Part 2 of 3 (...Linh Nguyen
 
SAP Plant Maintenance Training Material | www.sapdocs.info
SAP Plant Maintenance Training Material | www.sapdocs.infoSAP Plant Maintenance Training Material | www.sapdocs.info
SAP Plant Maintenance Training Material | www.sapdocs.infosapdocs. info
 
Sap basis installation on win nt oracle 4.6d
Sap basis installation on win nt oracle 4.6dSap basis installation on win nt oracle 4.6d
Sap basis installation on win nt oracle 4.6dFelipeHernndez75
 
SAP System copy
SAP System copySAP System copy
SAP System copyashish_bbd
 
10 Ways to Better Application-Centric Service Management
10 Ways to Better Application-Centric Service Management10 Ways to Better Application-Centric Service Management
10 Ways to Better Application-Centric Service ManagementLinh Nguyen
 
Configuration of sap net weaver for oracle grid infrastructure 11.2 with orac...
Configuration of sap net weaver for oracle grid infrastructure 11.2 with orac...Configuration of sap net weaver for oracle grid infrastructure 11.2 with orac...
Configuration of sap net weaver for oracle grid infrastructure 11.2 with orac...Graciete Martins
 
Performance and Sizing Guide - Analysis, edition for OLAP v0.2
Performance and Sizing Guide - Analysis, edition for OLAP v0.2Performance and Sizing Guide - Analysis, edition for OLAP v0.2
Performance and Sizing Guide - Analysis, edition for OLAP v0.2Mickey Wong
 
Step by step how to install diagnostic agent
Step by step how to install diagnostic agentStep by step how to install diagnostic agent
Step by step how to install diagnostic agentgauravpanwar8
 
Select Refresh For SAP PPT Show
Select Refresh  For SAP PPT ShowSelect Refresh  For SAP PPT Show
Select Refresh For SAP PPT Showcspencert
 
SAP HANA SPS08 Scale-Out, High Availability and Disaster Recovery
SAP HANA SPS08 Scale-Out, High Availability and Disaster RecoverySAP HANA SPS08 Scale-Out, High Availability and Disaster Recovery
SAP HANA SPS08 Scale-Out, High Availability and Disaster Recovery SAP Technology
 
Performance tuning in sap bi 7.0
Performance tuning in sap bi 7.0Performance tuning in sap bi 7.0
Performance tuning in sap bi 7.0gireesho
 

Tendances (19)

S/4HANA Installation Quickstart Guide and Monitoring S/4HANA
S/4HANA Installation Quickstart Guide and Monitoring S/4HANAS/4HANA Installation Quickstart Guide and Monitoring S/4HANA
S/4HANA Installation Quickstart Guide and Monitoring S/4HANA
 
Solution Manager 7.2 SAP Monitoring - Part 2 - Configuration
Solution Manager 7.2 SAP Monitoring - Part 2 - ConfigurationSolution Manager 7.2 SAP Monitoring - Part 2 - Configuration
Solution Manager 7.2 SAP Monitoring - Part 2 - Configuration
 
Mastering SAP Monitoring - Workload Monitoring
Mastering SAP Monitoring - Workload MonitoringMastering SAP Monitoring - Workload Monitoring
Mastering SAP Monitoring - Workload Monitoring
 
Mastering SAP Monitoring - Determining the Health of your SAP Environment
Mastering SAP Monitoring - Determining the Health of your SAP EnvironmentMastering SAP Monitoring - Determining the Health of your SAP Environment
Mastering SAP Monitoring - Determining the Health of your SAP Environment
 
Solution Manager - SAP NW BW on HANA Setup Part 3 of 3 (Technical Monitoring ...
Solution Manager - SAP NW BW on HANA Setup Part 3 of 3 (Technical Monitoring ...Solution Manager - SAP NW BW on HANA Setup Part 3 of 3 (Technical Monitoring ...
Solution Manager - SAP NW BW on HANA Setup Part 3 of 3 (Technical Monitoring ...
 
SAP HANA SPS12 Upgrade and Exploring New Features - Part 1
SAP HANA SPS12 Upgrade and Exploring New Features - Part 1SAP HANA SPS12 Upgrade and Exploring New Features - Part 1
SAP HANA SPS12 Upgrade and Exploring New Features - Part 1
 
Solution Manager Technical Monitoring - SAP NW BW on HANA Setup Part 2 of 3 (...
Solution Manager Technical Monitoring - SAP NW BW on HANA Setup Part 2 of 3 (...Solution Manager Technical Monitoring - SAP NW BW on HANA Setup Part 2 of 3 (...
Solution Manager Technical Monitoring - SAP NW BW on HANA Setup Part 2 of 3 (...
 
SAP Plant Maintenance Training Material | www.sapdocs.info
SAP Plant Maintenance Training Material | www.sapdocs.infoSAP Plant Maintenance Training Material | www.sapdocs.info
SAP Plant Maintenance Training Material | www.sapdocs.info
 
Sap basis installation on win nt oracle 4.6d
Sap basis installation on win nt oracle 4.6dSap basis installation on win nt oracle 4.6d
Sap basis installation on win nt oracle 4.6d
 
SAP Basis CCMS
SAP Basis CCMSSAP Basis CCMS
SAP Basis CCMS
 
SAP System copy
SAP System copySAP System copy
SAP System copy
 
10 Ways to Better Application-Centric Service Management
10 Ways to Better Application-Centric Service Management10 Ways to Better Application-Centric Service Management
10 Ways to Better Application-Centric Service Management
 
Configuration of sap net weaver for oracle grid infrastructure 11.2 with orac...
Configuration of sap net weaver for oracle grid infrastructure 11.2 with orac...Configuration of sap net weaver for oracle grid infrastructure 11.2 with orac...
Configuration of sap net weaver for oracle grid infrastructure 11.2 with orac...
 
Performance and Sizing Guide - Analysis, edition for OLAP v0.2
Performance and Sizing Guide - Analysis, edition for OLAP v0.2Performance and Sizing Guide - Analysis, edition for OLAP v0.2
Performance and Sizing Guide - Analysis, edition for OLAP v0.2
 
Step by step how to install diagnostic agent
Step by step how to install diagnostic agentStep by step how to install diagnostic agent
Step by step how to install diagnostic agent
 
Select Refresh For SAP PPT Show
Select Refresh  For SAP PPT ShowSelect Refresh  For SAP PPT Show
Select Refresh For SAP PPT Show
 
SAP HANA SPS08 Scale-Out, High Availability and Disaster Recovery
SAP HANA SPS08 Scale-Out, High Availability and Disaster RecoverySAP HANA SPS08 Scale-Out, High Availability and Disaster Recovery
SAP HANA SPS08 Scale-Out, High Availability and Disaster Recovery
 
Indice
IndiceIndice
Indice
 
Performance tuning in sap bi 7.0
Performance tuning in sap bi 7.0Performance tuning in sap bi 7.0
Performance tuning in sap bi 7.0
 

Similaire à Custom codemigration to S/4HANA

Sap hana installation_guide_en
Sap hana installation_guide_enSap hana installation_guide_en
Sap hana installation_guide_enGraciete Martins
 
UITECH_OP1909_latest.pdf
UITECH_OP1909_latest.pdfUITECH_OP1909_latest.pdf
UITECH_OP1909_latest.pdfpraveenRapeti3
 
hana_sps11_SUSE_Linux_Enterprise_Server_11_x_for_SAP_Applications_Configurati...
hana_sps11_SUSE_Linux_Enterprise_Server_11_x_for_SAP_Applications_Configurati...hana_sps11_SUSE_Linux_Enterprise_Server_11_x_for_SAP_Applications_Configurati...
hana_sps11_SUSE_Linux_Enterprise_Server_11_x_for_SAP_Applications_Configurati...JessDavidGuzmnGalleg
 
Suse linux enterprise_server_12_x_for_sap_applications_configuration_guide_fo...
Suse linux enterprise_server_12_x_for_sap_applications_configuration_guide_fo...Suse linux enterprise_server_12_x_for_sap_applications_configuration_guide_fo...
Suse linux enterprise_server_12_x_for_sap_applications_configuration_guide_fo...Jaleel Ahmed Gulammohiddin
 
sum2_abap_unix_hana.pdf
sum2_abap_unix_hana.pdfsum2_abap_unix_hana.pdf
sum2_abap_unix_hana.pdfssuser9f920a1
 
Suse linux enterprise_server_15_x_for_sap_applications_configuration_guide_fo...
Suse linux enterprise_server_15_x_for_sap_applications_configuration_guide_fo...Suse linux enterprise_server_15_x_for_sap_applications_configuration_guide_fo...
Suse linux enterprise_server_15_x_for_sap_applications_configuration_guide_fo...Jaleel Ahmed Gulammohiddin
 
Sap s4 hana 1709 op sap api-master guide
Sap s4 hana 1709 op sap api-master guideSap s4 hana 1709 op sap api-master guide
Sap s4 hana 1709 op sap api-master guidemutia_arum
 
Youwe sap-ecc-r3-hana-e commerce-with-magento-mb2b-100717-1601-206
Youwe sap-ecc-r3-hana-e commerce-with-magento-mb2b-100717-1601-206Youwe sap-ecc-r3-hana-e commerce-with-magento-mb2b-100717-1601-206
Youwe sap-ecc-r3-hana-e commerce-with-magento-mb2b-100717-1601-206Dennis Reurings
 
Ariba cloud ci 7.0
Ariba cloud ci 7.0Ariba cloud ci 7.0
Ariba cloud ci 7.0Kaustubh M
 
Cockpit esp
Cockpit espCockpit esp
Cockpit espmsabry7
 
Saphanaadministrationguide
SaphanaadministrationguideSaphanaadministrationguide
SaphanaadministrationguideKumar Ag
 
In-memory Computing with SAP HANA on IBM eX5 Systems
In-memory Computing with SAP HANA on IBM eX5 SystemsIn-memory Computing with SAP HANA on IBM eX5 Systems
In-memory Computing with SAP HANA on IBM eX5 SystemsIBM India Smarter Computing
 
SAP HANA direct extractor:Data acquisition
SAP HANA direct extractor:Data acquisition SAP HANA direct extractor:Data acquisition
SAP HANA direct extractor:Data acquisition Deepak Chaubey
 

Similaire à Custom codemigration to S/4HANA (20)

CONV_OP2022.pdf
CONV_OP2022.pdfCONV_OP2022.pdf
CONV_OP2022.pdf
 
Conv op2020
Conv op2020Conv op2020
Conv op2020
 
Sap hana master_guide_en
Sap hana master_guide_enSap hana master_guide_en
Sap hana master_guide_en
 
Sap hana master guide
Sap hana master guideSap hana master guide
Sap hana master guide
 
Sap hana installation_guide_en
Sap hana installation_guide_enSap hana installation_guide_en
Sap hana installation_guide_en
 
UITECH_OP1909_latest.pdf
UITECH_OP1909_latest.pdfUITECH_OP1909_latest.pdf
UITECH_OP1909_latest.pdf
 
Sap setup guide
Sap setup guideSap setup guide
Sap setup guide
 
hana_sps11_SUSE_Linux_Enterprise_Server_11_x_for_SAP_Applications_Configurati...
hana_sps11_SUSE_Linux_Enterprise_Server_11_x_for_SAP_Applications_Configurati...hana_sps11_SUSE_Linux_Enterprise_Server_11_x_for_SAP_Applications_Configurati...
hana_sps11_SUSE_Linux_Enterprise_Server_11_x_for_SAP_Applications_Configurati...
 
Suse linux enterprise_server_12_x_for_sap_applications_configuration_guide_fo...
Suse linux enterprise_server_12_x_for_sap_applications_configuration_guide_fo...Suse linux enterprise_server_12_x_for_sap_applications_configuration_guide_fo...
Suse linux enterprise_server_12_x_for_sap_applications_configuration_guide_fo...
 
sum2_abap_unix_hana.pdf
sum2_abap_unix_hana.pdfsum2_abap_unix_hana.pdf
sum2_abap_unix_hana.pdf
 
Suse linux enterprise_server_15_x_for_sap_applications_configuration_guide_fo...
Suse linux enterprise_server_15_x_for_sap_applications_configuration_guide_fo...Suse linux enterprise_server_15_x_for_sap_applications_configuration_guide_fo...
Suse linux enterprise_server_15_x_for_sap_applications_configuration_guide_fo...
 
Conn sap
Conn sapConn sap
Conn sap
 
Sap s4 hana 1709 op sap api-master guide
Sap s4 hana 1709 op sap api-master guideSap s4 hana 1709 op sap api-master guide
Sap s4 hana 1709 op sap api-master guide
 
Youwe sap-ecc-r3-hana-e commerce-with-magento-mb2b-100717-1601-206
Youwe sap-ecc-r3-hana-e commerce-with-magento-mb2b-100717-1601-206Youwe sap-ecc-r3-hana-e commerce-with-magento-mb2b-100717-1601-206
Youwe sap-ecc-r3-hana-e commerce-with-magento-mb2b-100717-1601-206
 
Ariba cloud ci 7.0
Ariba cloud ci 7.0Ariba cloud ci 7.0
Ariba cloud ci 7.0
 
Cockpit esp
Cockpit espCockpit esp
Cockpit esp
 
Saphanaadministrationguide
SaphanaadministrationguideSaphanaadministrationguide
Saphanaadministrationguide
 
In-memory Computing with SAP HANA on IBM eX5 Systems
In-memory Computing with SAP HANA on IBM eX5 SystemsIn-memory Computing with SAP HANA on IBM eX5 Systems
In-memory Computing with SAP HANA on IBM eX5 Systems
 
matlab
matlabmatlab
matlab
 
SAP HANA direct extractor:Data acquisition
SAP HANA direct extractor:Data acquisition SAP HANA direct extractor:Data acquisition
SAP HANA direct extractor:Data acquisition
 

Dernier

Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationkaushalgiri8080
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 

Dernier (20)

Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanation
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 

Custom codemigration to S/4HANA

  • 1. HOW-TO GUIDE | PUBLIC Application Server ABAP 7.53 SP00 Document Version: 1.0 – 2018-09-21 Custom Code Migration Guide for SAP S/4HANA 1809 Feature Package Stack 00 ©2018SAPSEoranSAPaffiliatecompany.Allrightsreserved. THE BEST RUN
  • 2. Content 1 Custom Code Migration Guide for SAP S/4HANA 1809. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2 Getting Started. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.1 Overview of the Conversion Process. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.2 System Requirements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6 3 Optional: Custom Code Analysis During Preparation Phase. . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3.1 Preparing the Checked System. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Configuring the User. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Applying SAP Notes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9 3.2 Preparing the Central Check System. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Configuring the User. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Applying SAP Notes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9 Configuring RFC Connections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Importing the Simplification Database. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Setting the Role as Central Check System. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Creating System Groups. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Configuring Object Providers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13 3.3 Running Remote SAP S/4HANA Checks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Configuring a Remote ATC Run Series. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Scheduling a Remote ATC Run Series. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16 Monitoring an ATC Run Series. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Analyzing ATC Run Results. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 4 Custom Code Adaptation After System Conversion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 4.1 Running Transactions SPDD and SPAU. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 4.2 Running Local SAP S/4HANA Checks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20 Importing the Simplification Database. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20 Configuring Local ATC Run Series. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Scheduling Local ATC Run Series. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21 4.3 Adapting Custom Code in ADT. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Displaying Active Results. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Fixing ATC Findings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Rechecking the Active Result. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 4.4 Rerunning Local SAP S/4HANA Checks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 5 What's Next?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 2 P U B L I C Custom Code Migration Guide for SAP S/4HANA 1809 Content
  • 3. 6 Glossary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Custom Code Migration Guide for SAP S/4HANA 1809 Content P U B L I C 3
  • 4. 1 Custom Code Migration Guide for SAP S/ 4HANA 1809 Custom Code Migration is part of the system conversion process from the classic SAP Business Suite running on any database to the SAP S/4HANA system. In the context of this system conversion, custom ABAP code needs to be adapted, since a lot of SAP code within SAP S/4HANA was simplified and in some cases changed in a non-compatible way. Some of your custom code objects are not valid anymore and either do not perform as expected or produce syntax errors or dumps (red objects in the picture). You almost certainly have other objects that do perform as expected and do not need to be changed (green objects in the picture). SAP provides tools, based on the Simplification Database, that detect any custom code that needs to be adapted to SAP S/4HANA. The Simplification Database is a database table in the SAP S/4HANA system that contains all Simplification Items that refer to SAP objects simplified in SAP S/4HANA. Each simplification item describes changed or removed SAP objects and refers to a dedicated SAP Note that describes the impact of the change and how the related custom code can be adapted. To analyze the required adaptations, you need to set up a system based on SAP NetWeaver AS for ABAP 7.52 that operates as a Central Check System. Using this Central Check System, you can perform remote custom code checks in ABAP Test Cockpit (ATC) for one or more systems in your landscape. 4 P U B L I C Custom Code Migration Guide for SAP S/4HANA 1809 Custom Code Migration Guide for SAP S/4HANA 1809
  • 5. 2 Getting Started This guide focuses on the custom code related process, from checking custom code remotely, then analyzing the findings, and finally adapting the custom code. Read this guide carefully to get instructions on how to adapt your custom code to SAP S/4HANA 1809. 2.1 Overview of the Conversion Process SAP provides a process for the system conversion to SAP S/4HANA. The following figure gives you an overview of the tools, the phases, and the activities involved in the process. The Custom Code Migration process describes the tools and necessary activities that help you to migrate custom code. The process consists of preparatory analysis (Custom Code Analysis) and the adaptation of the custom code (Custom Code Adaptation) after the technical conversion. Custom Code Analysis To prepare the system conversion, we recommend that you evaluate your custom code and remove any obsolete code as indicated in the Usage Procedure Log (UPL/SCMON). For more information, see ABAP Call Monitor (SCMON) – Analyze usage of your code . In addition, your custom code needs to be checked with ABAP Test Cockpit (ATC) against the SAP S/4HANA simplifications in the Simplification Database and for any SAP HANA related changes. The result is a list of findings where your custom code does not comply with the scope and data structure of SAP S/4HANA. At this step you can estimate the required effort required to adapt custom code to migrate to SAP S/4HANA. Custom Code Migration Guide for SAP S/4HANA 1809 Getting Started P U B L I C 5
  • 6.  Note The only purpose of the Custom Code Analysis phase is to estimate the effort required for the Custom Code Adaptation for system conversion in your current SAP Business Suite landscape. This phase can be a long time before the actual system conversion to SAP S/4HANA. Nevertheless, in this phase you can also prepare your custom code for the future system conversion. For more information, see the blog What you can do today to prepare your custom code for SAP S/4HANA . Only after the system conversion to SAP S/4HANA was fulfilled can the functional adaptation be carried out locally on the SAP S/4HANA system. Custom Code Adaptation In the system conversion, you need to adapt any modifications related to ABAP Dictionary objects using transaction SPDD. After you performed the system conversion to SAP S/4HANA with Software Update Manager (SUM), you need to adapt any modifications related to repository objects using transaction SPAU. After this, we recommend that you run ABAP Test Cockpit (ATC) with SAP S/4HANA checks in ABAP Development Tools (ADT). The result is a list of ATC findings that are related to SAP S/4HANA simplifications and refer to SAP Notes which describe how to solve the issues. Based on these ATC findings, you can start adapting your custom code. For more information on the overall system conversion process, see http://help.sap.com/s4hana_op_1809 Product Documentation Conversion Guide .  Note If you upgrade from lower release of SAP S/4HANA to SAP S/4HANA 1809, you also need to adapt some of your custom code. For more information on the upgrade process, see http://help.sap.com/ s4hana_op_1809 Product Documentation Upgrade Guide . 2.2 System Requirements To perform the Custom Code Analysis, you need to set up a centralized SAP NetWeaver AS for ABAP 7.52 system as the Central Check System within your SAP system landscape.  Note The Central Check System can be used to check one or more SAP Business Suite systems. For remote access, the Central Check System needs RFC destinations for each relevant system that you want to check using ATC. When executed, the Central Check System accesses the Checked System using Remote Stubs and the RFC connection. These Remote Stubs are an interface between the Central Check System and the Checked System and return a model from custom code that needs to be checked. 6 P U B L I C Custom Code Migration Guide for SAP S/4HANA 1809 Getting Started
  • 7. To analyze your custom code, you need to meet the following system requirements: SAP System Software Component Central Check System SAP_BASIS 7.52 or higher Checked System SAP_BASIS 7.00, 7.01, 7.02, 7.31, 7.40, 7.50, 7.51 or 7.52 To adapt your custom code, you need the ABAP Development Tools (ADT) in the latest client version too. See https://tools.hana.ondemand.com/ for more information.  Recommendation We recommend that you use the ABAP Development Tools (ADT) since transaction SE80 in SAP GUI no longer supports all development objects (such as CDS Views) needed in SAP S/4HANA. Custom Code Migration Guide for SAP S/4HANA 1809 Getting Started P U B L I C 7
  • 8. 3 Optional: Custom Code Analysis During Preparation Phase The Custom Code Analysis is performed before the technical conversion and is optional. In this phase, you can estimate the effort required to adapt the custom code to SAP S/4HANA simplifications.  Note The functional adaptation of custom code is done after the technical conversion. If you do not want to estimate the effort required in advance, continue with the Custom Code Adaptation After System Conversion [page 19]. 3.1 Preparing the Checked System To enable your Central Check System to check your custom code remotely, you need to configure your user and apply some required SAP Notes in your Checked System. 3.1.1 Configuring the User The RFC user needs the following authorizations in the Checked System: Name of Authoriza­ tion Object Activity Type of RFC Object Name of RFC Object Description S_RFC 16 (Execute) FUGR SABP_COMP_PROCS _E, SCA_REMOTE_DATA _ACCESS Authorization for: ● Configuring Ob­ ject Providers ● Running SAP S/ 4HANA checks FUNC REPOSITORY_ENVI RONMENT_ALL, RFC_GET_NAMETAB, FUNCTION_EXISTS, RFCPING S_DEVELOP 03 (Display) * * 8 P U B L I C Custom Code Migration Guide for SAP S/4HANA 1809 Optional: Custom Code Analysis During Preparation Phase
  • 9. 3.1.2 Applying SAP Notes Apply the following SAP Notes in the Checked System: ● 2485231 - Remote ATC Checks of Modifications and Enhancements ● 2270689 - RFC Extractor for performing static checks ● 2190065 - ATC/CI: Remote Code Analysis - Object Provider Stub ● 2196792 - RFC-Stub for CVA/SLIN-Remote 3.2 Preparing the Central Check System To check custom code remotely in ABAP Test Cockpit (ATC), you need to install and configure an ATC Central Check System. This system checks one or more SAP systems in your landscape for SAP S/4HANA related changes. 3.2.1 Configuring the User You need the following user to use transaction ATC to perform custom code checks: User Role Description SAP_SATC_ADMIN Authorization for setting up ABAP Test Cockpit (ATC) for central quality checking In addition, you need the following authorization object: Name of the Authorization Object Name of the Authorization Field Value of the Authorization Field Description S_YCM SYCM_AREA SDB Authorization for importing the Simplification Database ACTVT UL 3.2.2 Applying SAP Notes In the Central Check System, apply all the relevant SAP Notes that are mentioned in the following SAP Notes so that you can use the latest features: ● 2436688 - Recommended SAP Notes for using SAP S/4HANA custom code checks in ATC Custom Code Migration Guide for SAP S/4HANA 1809 Optional: Custom Code Analysis During Preparation Phase P U B L I C 9
  • 10. ● 2364916 - Recommended SAP Notes for using ATC to perform remote analysis 3.2.3 Configuring RFC Connections Use transaction SM59 to create RFC connections for each Checked System.  Note The RFC connection must be usable without a logon dialog. 3.2.4 Importing the Simplification Database To check your custom code against the SAP S/4HANA simplifications, you need to import the Simplification Database into the Central Check System. 3.2.4.1 Downloading the Simplification Database SAP provides content for the Simplification Database of an SAP product as a ZIP file in SAP Service Marketplace (SMP). The content of the Simplification Database can be downloaded as a ZIP file. This ZIP file then has to be uploaded to the central check system. Procedure 1. Open the SAP Software Download Center . 2. Choose Software Downloads and search for CCMSIDB. 3. Choose the relevant ZIP file and choose Download Basket.  Note To find the most recent content of the Simplification Database provided for SAP S/4HANA, see also SAP Note 2241080 . Results The ZIP file is downloaded and saved on your selected drive. It contains the content of the Simplification Database. 10 P U B L I C Custom Code Migration Guide for SAP S/4HANA 1809 Optional: Custom Code Analysis During Preparation Phase
  • 11. 3.2.4.2 Importing the Simplification Database To add the content of the Simplification Database to your system for further analysis, you need to upload the downloaded ZIP file to the Central Check System. Procedure 1. Log on to the Central Check System. 2. Run transaction SYCM. The Display Simplification Database Content view is opened. 3. Choose Simplification Database Import from ZIP File from the menu bar. 4. Choose the ZIP file with the downloaded Simplification Database from your drive and confirm with Open. Results The Simplification Database is uploaded to the Central Check System and is now available for analysis in transaction SYCM. 3.2.4.3 Displaying the Content of the Simplification Database You can display the content of the Simplification Database to get an overview of all changes or specific changes and the corresponding SAP objects that are simplified in SAP S/4HANA. Procedure To get a list of all Simplification Items, choose Ctrl + F8 or the Overview button. Custom Code Migration Guide for SAP S/4HANA 1809 Optional: Custom Code Analysis During Preparation Phase P U B L I C 11
  • 12.  Note To limit the number of Simplification Items displayed, enter the relevant filter criteria in transaction SYCM and choose Execute. Results The Simplification Database Content view is opened. From here you can order the displayed list, for example by their SAP Object Type, the assigned Simplification Category, or the relevant SAP Note Number. From the overview, you can display the list of objects contained in a Simplification Item.  Note To find out whether a certain object is related to a Simplification Item, enter the name of the object (for example MATNR) in the Object Name field and execute ( F8 ). Then you can navigate to the corresponding SAP Note to get more information. 3.2.5 Setting the Role as Central Check System The system role needs to be specified as Central Check System for remote SAP S/4HANA checks. Procedure 1. Run transaction ATC. The ABAP Test Cockpit Overview screen appears. 2. In the navigation pane, expand the node ATC Administration Setup and double-click System Role. 3. Switch to change mode ( F6 ). 4. On the Change System Role screen, choose ATC Checks by Object Providers Only. 12 P U B L I C Custom Code Migration Guide for SAP S/4HANA 1809 Optional: Custom Code Analysis During Preparation Phase
  • 13. 5. Save the new settings and return to the ABAP Test Cockpit Overview screen. 3.2.6 Creating System Groups A system group contains multiple SAP systems. Every Object Provider must be assigned to a system group and therefore you need to create a system group before you configure an Object Provider. Procedure 1. In the navigation pane in transaction ATC, expand the node ATC Administration Setup and double- click Object Providers. 2. Double-click the item System Groups for selection. 3. Switch to change mode ( F6 ). 4. Choose the New Entries button in the toolbar. 5. Enter an ID and short Description for the new system group you want to add. 6. Save the new entry. 3.2.7 Configuring Object Providers An Object Provider defines the RFC connection to be used for analysis in a remote SAP system. While a check run is being executed, the ATC framework uses this RFC connection to the Checked System to extract a model from the custom code. Procedure 1. In the RFC Object Providers view, double-click the item RFC Object Providers for selection. Custom Code Migration Guide for SAP S/4HANA 1809 Optional: Custom Code Analysis During Preparation Phase P U B L I C 13
  • 14. 2. Switch to change mode ( F6 ). 3. Choose the New Entries button in the toolbar. 4. Specify the following entries for the Object Provider you want to create: Fields Description <ID> ID that specifies the Object Provider  Note This ID is used when configuring an ATC run series. <Description> Short text that specifies the Object Provider <System Group> The system group to which the Object Provider belongs <SAP System> ID of the remote system, to which you want to connect us­ ing the Object Provider <RFC Destination> Valid RFC destination for RFC connection to the Checked System  Note This RFC connection must be usable without a logon dialog. 5. Save the new entry. 14 P U B L I C Custom Code Migration Guide for SAP S/4HANA 1809 Optional: Custom Code Analysis During Preparation Phase
  • 15. 3.3 Running Remote SAP S/4HANA Checks In the Central Check System, you can perform SAP S/4HANA checks to analyze development objects in a Checked System remotely. In this step, you can estimate the effort required to adapt your ABAP source code to SAP S/4HANA-related changes. 3.3.1 Configuring a Remote ATC Run Series Procedure 1. In the navigation pane in transaction ATC, expand the nodes ATC Administration Runs and double- click Schedule Runs. The screen that appears displays a list of existing run series. 2. Choose the Create button in the toolbar. 3. Enter the name for the series you want to create and confirm. 4. Specify the following entries for the run series you want to create: Field Description <Description> Enter a short description for the ATC run series you want to configure.  Tip You can use the template provided by the Description field. When you execute the run series, the built-in var­ iables are filled with data for the system, the day of the week, the calendar week, and for the year. How­ ever, you can also add further texts to these variables, rearrange them, or replace the built-in variables with your own text. <Check Variant> Enter the check variant S4HANA_READINESS_1809  Note This product-specific global check variant checks only the simplifications relating to SAP S/4HANA 1809. <Object Provider> Enter the ID of the relevant object provider that represents the remote system you want to check. Custom Code Migration Guide for SAP S/4HANA 1809 Optional: Custom Code Analysis During Preparation Phase P U B L I C 15
  • 16. Field Description <Objects to Check> Specify the set of development objects you want to check in the Checked System. On the Checkable Namespaces tab, the option By Query lets you specify objects by name (for example, by package name), by transport layer, or by component. The option By Object Set lets you specify an object set you defined in Code Inspector in the Checked System.  Tip You can use the value help to choose the packages or the object set in the remote system. On the Modified Objects tab, you can specify the modified source code objects you want to check. 5. Save the configuration. 3.3.2 Scheduling a Remote ATC Run Series Procedure 1. In the list of run series, select the run series in question and click the Schedule button in the toolbar. 2. In the dialog that appears, adapt the settings for the Life Span of the series and for Execution to your needs. Otherwise, leave these settings unchanged.  Note The Life Span defines how long (in days) the ATC result is kept in the system. After this, the ATC result is automatically deleted in the system. 3. Choose Execute ( F8 ).  Note You can use the option Execute in Background ( F9 ) to schedule a run series at regular intervals. 16 P U B L I C Custom Code Migration Guide for SAP S/4HANA 1809 Optional: Custom Code Analysis During Preparation Phase
  • 17. 3.3.3 Monitoring an ATC Run Series In this step, you can monitor the status of the remote ATC run series. Procedure 1. In the navigation pane in transaction ATC, expand the nodes ATC Administration Runs and double- click Monitor and Control Runs. 2. Leave the run series field empty and execute ( F8 ). The ATC Run Monitor view is displayed. The view shows the status of check runs as running, finished, or failed. 3.3.4 Analyzing ATC Run Results Procedure 1. In the navigation pane in transaction ATC, expand the nodes ATC Administration Runs and double- click Manage Results. 2. Leave the run series field empty and choose Execute ( F8 ).  Note By default, the ATC run results of the last 10 days are displayed. If you want to see theATC run results from a different period of time, change the settings in Schedule Data. The ATC Manage Results view is displayed. The view shows a list of ATC run results from your requested period of time. 3. In the ATC Manage Results view, select a run series and choose Display to inspect the results. A list of all ATC findings is displayed in transaction SE80. 4. Choose Statistics View. 5. Choose Choose Statistic to group the ATC findings (for example, by SAP Note Number). Custom Code Migration Guide for SAP S/4HANA 1809 Optional: Custom Code Analysis During Preparation Phase P U B L I C 17
  • 18. The ATC findings are grouped by the selected statistics. 6. Double-click a statistics group to display the list of ATC findings assigned to the selected statistics. 7. Double-click an ATC finding to open detailed information. Here you can find the SAP Note number referring to a dedicated SAP Note and the referenced object. 8. Click the object name to navigate to the source code to see where the incompatible code occurs. 18 P U B L I C Custom Code Migration Guide for SAP S/4HANA 1809 Optional: Custom Code Analysis During Preparation Phase
  • 19. 4 Custom Code Adaptation After System Conversion After Software Update Manager (SUM) has performed the technical conversion, you can start adapting your custom code.  Note This phase is separated chronologically from the Custom Code Analysis and can be performed much later (even years) after the first analysis took place. 4.1 Running Transactions SPDD and SPAU SAP provides the adjustment tools SPDD and SPAU, which enable you to reimplement any modifications related to ABAP Dictionary objects and development objects (such as programs, function modules, screens, interfaces, and documentation) in system upgrades. To adapt these modifications, see http://help.sap.com/s4hana_op_1809 Product Assistance English Enterprise Technology ABAP Platform Developing on the ABAP Platform Development Concepts and Tools Application Development on AS ABAP Customer-Specific ABAP Development Changing the SAP Standard (BC) Installing Upgrades, Support Packages, and Enhancement Packages and SAP Note 2168190 for more information.  Note Transaction SPDD is performed during the system conversion whereas all other adaptations take place after the conversion. Custom Code Migration Guide for SAP S/4HANA 1809 Custom Code Adaptation After System Conversion P U B L I C 19
  • 20. 4.2 Running Local SAP S/4HANA Checks To check for ATC findings in the converted system, you need to configure a local ATC run series that checks the requested development objects. 4.2.1 Importing the Simplification Database To detect custom code which needs to be adapted to SAP S/4HANA, SAP provides tools based on the Simplification Database. Procedure Import the Simplification Database. For more information, see Importing the Simplification Database [page 10]. 4.2.2 Configuring Local ATC Run Series Procedure 1. Log on to your converted system. 2. Run transaction ATC. The ABAP Test Cockpit Overview screen appears. 3. In the navigation pane, expand the nodes ATC Administration Runs and double-click the Schedule Runs entry. The screen that appears displays a list of existing run series. 4. Choose the Create button in the toolbar. 5. Enter a name for the new series and confirm. 6. Specify the following entries for the new run series: 20 P U B L I C Custom Code Migration Guide for SAP S/4HANA 1809 Custom Code Adaptation After System Conversion
  • 21. Field Description <Description> Enter a short description for the ATC run series you want to configure.  Tip You can use the template provided by the Description field. When you execute the run series, the built-in var­ iables are filled with data for the system, the day of the week, the calendar week, and the year. However, you can also add further texts to these variables, rear­ range them, or replace the built-in variables with your own text. <Check Variant> Enter the check variant S4HANA_READINESS.  Note This check variant provides checks for SAP S/4HANA readiness (for example, searches for DB operations or field length extensions). <Objects to Check> Specify the set of development objects you want to check. On the Checkabable Namespaces tab, the option By Query lets you specify objects by name (such as by package name), by transport layer, or by component. The option By Object Set lets you specify an object set that you have de­ fined in Code Inspector in the Checked System.  Tip You can use the value help to choose the packages or the object set in the remote system. On the Modified Objects tab, you can specify the modified source code objects you want to check. 7. Save the configuration. 4.2.3 Scheduling Local ATC Run Series Procedure 1. In the list of run series, select the run series in question and click the Schedule button in the toolbar. 2. In the dialog that appears, choose Set to Active Result. Custom Code Migration Guide for SAP S/4HANA 1809 Custom Code Adaptation After System Conversion P U B L I C 21
  • 22. 3. Adapt the settings for the Life Span of the series and for Execution to your needs. Otherwise, leave these settings unchanged.  Note The Life Span defines how long (in days) the ATC result is kept in the system. After this, the ATC result is automatically deleted in the system. 4. Choose Execute in Background ( F9 ) to schedule the run series in regular time intervals.  Recommendation We recommend that youto schedule the local ATC run series in regular time intervals since new ATC findings could emerge during custom code adaptation. 4.3 Adapting Custom Code in ADT After a local ATC run series has checked the requested development objects, you can start adapting the custom code by fixing the ATC findings of the ATC run result with ABAP Development Tools (ADT). 4.3.1 Displaying Active Results Prerequisites You installed the latest version of ABAP Development Tools (ADT) in Eclipse. In Eclipse, you created an ABAP Project which is connected to your converted SAP S/4HANA system. For more information, see the Help Contents in ADT. 22 P U B L I C Custom Code Migration Guide for SAP S/4HANA 1809 Custom Code Adaptation After System Conversion
  • 23. Procedure 1. In ADT, log on to your converted system. 2. Open the ATC Result Browser view and select your converted system. 3. Select the Active Result to display the list of ATC findings.  Note By default, all ATC findings are filtered by your user name and only ATC findings belonging to your user are displayed. To display the ATC findings of all users, open the context menu of the ABAP Project in the ATC Result Browser view, choose Change User Filter, and enter * as the user name. 4. Choose Group By Check to display the ATC findings sorted by the different checks of the check variant S4HANA_READINESS. 5. Select the check group S/4HANA: Search for S/4 related syntax errors and choose Recheck in the context menu. Custom Code Migration Guide for SAP S/4HANA 1809 Custom Code Adaptation After System Conversion P U B L I C 23
  • 24. 4.3.2 Fixing ATC Findings Procedure 1. Open the ATC Problems view. The view shows a Worklist of ATC findings resulting from the recheck on the check group S/4HANA: Search for S/4 related syntax errors. 2. Select an ATC finding to display further information about what and where the statements with problems are and what you can do to fix the ATC finding. 3. Double-click an ATC finding to jump to the source code at the position where the ATC found a statement with a problem. 4. Fix each ATC finding in the Worklist as described in the Details view and the assigned SAP Note.  Note You can also fix ATC findings by using Quick Fixes. See Applying Quick Fixes [page 24] for more information. 4.3.2.1 Applying Quick Fixes Quick Fixes enable you to resolve errors and warnings in the ABAP source code using the functions provided in the Quick Fix popup. Procedure  Note ATC findings that can be fixed with a Quick Fix are displayed with a lightbulb icon . 1. Select an ATC finding with a lightbulb icon in the ATC Problems view. 2. Right-click the ATC finding and choose Quick Fix ( Ctrl + 1 ). 24 P U B L I C Custom Code Migration Guide for SAP S/4HANA 1809 Custom Code Adaptation After System Conversion
  • 25. The Quick Fix view opens. 3. Select the displayed Quick Fix and choose Finish.  Recommendation If there is more than one Quick Fix available for an ATC finding, we recommend that you select the first Quick Fix displayed. 4.3.2.2 Using Pseudo Comments Pseudo comments are one way of suppressing ATC findings. Sometimes it is the case that certain ATC findings cannot be fixed (so-called false positives). In this case and especially in the context of the Custom Code Adaptation to SAP S/4HANA, we recommend that you use pseudo comments to suppress the specific ATC finding. Procedure  Note If SAP S/4HANA-related pseudo comments are available for an ATC finding, they can easily be applied as a Quick Fix. Apply the quick fix. For more information, see Applying Quick Fixes [page 24]. Custom Code Migration Guide for SAP S/4HANA 1809 Custom Code Adaptation After System Conversion P U B L I C 25
  • 26. The pseudo comment is appended at the end of the code line in question. 4.3.3 Rechecking the Active Result Once you have fixed the ATC findings of the check group S/4HANA: Search for S/4 related syntax errors, you need to recheck the active result and fix all other ATC findings. Procedure 1. Open the ATC Result Browser view. 2. Right-click Active Result and choose Recheck. 3. Open the ATC Problems view. The view shows a Worklist of ATC findings resulting from the recheck on the active result. 4. Fix the ATC findings in the Worklist. 5. Recheck the Active Result in ATC Result Browser view again to validate that the ATC findings are fixed.  Note Repeat the steps 4 and 5 if there are still ATC findings in the Worklist after the recheck. 4.4 Rerunning Local SAP S/4HANA Checks Rerun the local ATC run series once all the ATC findings are fixed, since new ATC findings could have emerged during the adaptation of your custom code. 26 P U B L I C Custom Code Migration Guide for SAP S/4HANA 1809 Custom Code Adaptation After System Conversion
  • 27. 5 What's Next? There are a few more things you can do after the Custom Code Migration: ● Testing applications: Test your applications to check whether your programs run on SAP S/4HANA.  Note ATC is not able to find all potential issues (for example, dynamic coding is not covered by static code checks). ● Regular ATC checks with S4HANA_READINESS: Add the SAP S/4HANA checks with check variant S4HANA_READINESS to your regular ATC checks. ● Runtime Checks: Switch on the Runtime Check Monitor in the new productive system and correct the additional findings found by the runtime check. ● Performance optimizations: Switch on SQL Monitor in the productive system. Sort the SQL Monitor results by execution time and optimize the top 10-20 SQLs in your custom code which affect relevant business processes. After performance optimizations reach the productive system, this process needs to be repeated 2-3 times to achieve the best results. ● Optimizing your code for SAP HANA: After the successful migration, you can now start to think about optimizing your business processes by using code push down techniques of SAP HANA, like the Core Data Services (CDS) and ABAP-managed database procedures (AMDP) implemented by the native HANA language SQL script. Custom Code Migration Guide for SAP S/4HANA 1809 What's Next? P U B L I C 27
  • 28. 6 Glossary The following terms are used within the context of this Custom Code Migration guide: Term Definition ABAP Test Cockpit (ATC) Tool for performing static and dynamic quality checking of ABAP code and associated repository objects both remotely and locally ATC Finding Message with supporting information and functionality that alerts a developer to a problem with ABAP code or some other object in ABAP Repository Central Check System SAP NetWeaver AS for ABAP 7.52 system that checks cus­ tom code in one or multiple SAP systems remotely Checked System System with custom code that gets checked remotely by the Central Check System Simplification Database Database table in the SAP S/4HANA system that contains all the Simplification Items referring to SAP objects simplified in SAP S/4HANA 28 P U B L I C Custom Code Migration Guide for SAP S/4HANA 1809 Glossary
  • 29. Important Disclaimers and Legal Information Hyperlinks Some links are classified by an icon and/or a mouseover text. These links provide additional information. About the icons: ● Links with the icon : You are entering a Web site that is not hosted by SAP. By using such links, you agree (unless expressly stated otherwise in your agreements with SAP) to this: ● The content of the linked-to site is not SAP documentation. You may not infer any product claims against SAP based on this information. ● SAP does not agree or disagree with the content on the linked-to site, nor does SAP warrant the availability and correctness. SAP shall not be liable for any damages caused by the use of such content unless damages have been caused by SAP's gross negligence or willful misconduct. ● Links with the icon : You are leaving the documentation for that particular SAP product or service and are entering a SAP-hosted Web site. By using such links, you agree that (unless expressly stated otherwise in your agreements with SAP) you may not infer any product claims against SAP based on this information. Beta and Other Experimental Features Experimental features are not part of the officially delivered scope that SAP guarantees for future releases. This means that experimental features may be changed by SAP at any time for any reason without notice. Experimental features are not for productive use. You may not demonstrate, test, examine, evaluate or otherwise use the experimental features in a live operating environment or with data that has not been sufficiently backed up. The purpose of experimental features is to get feedback early on, allowing customers and partners to influence the future product accordingly. By providing your feedback (e.g. in the SAP Community), you accept that intellectual property rights of the contributions or derivative works shall remain the exclusive property of SAP. Example Code Any software coding and/or code snippets are examples. They are not for productive use. The example code is only intended to better explain and visualize the syntax and phrasing rules. SAP does not warrant the correctness and completeness of the example code. SAP shall not be liable for errors or damages caused by the use of example code unless damages have been caused by SAP's gross negligence or willful misconduct. Gender-Related Language We try not to use gender-specific word forms and formulations. As appropriate for context and readability, SAP may use masculine word forms to refer to all genders. Custom Code Migration Guide for SAP S/4HANA 1809 Important Disclaimers and Legal Information P U B L I C 29
  • 30. www.sap.com/contactsap © 2018 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. 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. Please see https://www.sap.com/about/legal/trademark.html for additional trademark information and notices. THE BEST RUN