You are on page 1of 27

Welcome to the session!

We will start in few minutes.

If you have questions during the session please use the Q&A panel
(click on the button
© 2021 SAP SE or an SAP affiliate company. All rights reserved.
in the lower part of the screen). 1
March 2021

Custom Code adaptation


STEP09
Dipen Mehta
Sushil Singhal
Veeresh Angadi
Phased approach | Week 1

STEP01 STEP02 STEP03 STEP04 STEP05


Date/Time Monday 22nd February Tuesday, 2nd Wednesday, 3rd March
Monday,1st March 2021 Thursday, 4th March 2021
2021 March 2021 2021
12:30 – 14:30 PM (SGT) 12:3:0 – 14::30 PM (SGT)
12:30 – 13:30PM (SGT) 12:30 – 14:30 PM (SGT) 12:30 – 14:00 AM (SGT)

Objective Initial Kickoff call Preparation phase Preparation phase Preparation phase Realization phase
Technical Logistics Finance Technical Conversion

Content & • Overview of • Readiness Check • Review STEP02 • Review STEP03 • Review STEP04
bootcamp • Maintenance Planner • Business Partner • Finance preparation • Overview about SUM
Activities • Mutual Expectations • Simplification Items concept • Consistency checks for System
• System conversion Check (tool) • Customer Vendor • Reconciliation Conversion
overview • Custom Code analysis Integration (CVI) • Period-end closing • Execute technical
• System environment • Q&A • MRP activities and conversion including
used • MATNR Extension documentation uptime and downtime
• Q&A • Simplification Items • Simplification Items phases with SUM
Check (Logistics) Check (FI-CO) (DMO)
• Q&A • Q&A • Q&A
Rollout call 1 hour 2 hours 2 hours 1,5 hours 2 hours

Basis 6 hours 32 hours

ABAP 2 hours 1 hour (SPDD, optional)


Finance 4 hours
Logistics 6 hours

© 2021 SAP SE or an SAP affiliate company. All rights reserved. 3


Phased approach | Week 2
STEP06 STEP07 STEP08 STEP09 STEP10
Date/Time Wednesday, 10th March Thursday, 11th March
Monday, 8th March 2021 Tuesday, 9th March 2021 Friday, 12th March 2021
2021 2021
12:30 – 14:00 PM (SGT) 12:30 – 14:30 PM (SGT) 12:30 – 14:00 PM (SGT)
12:30 – 14:03 AM (SGT) 12:30 – 14:30 PM (SGT)

Objective Realization phase Realization phase Realization phase Realization phase Review and Feedback
Finance migration SAP Fiori activation Post follow-up activities Custom Code adaptation

Content & • Review STEP05 • Review STEP06 • Review STEP07 • Review STEP08 • Review STEP09
• Post technical • Overview of Fiori • Post activities for CVI • Overview of S/4HANA • Project Experience
Activities conversion tasks deployment options and MRP extensibility options • Feedback
• FI Customizing/Data • SAP Fiori apps • Configuration and • Side-by-side and in- • Certificates
Model impact selection activation of S/4HANA app extensibility • System access
changes • Rapid Activation for Output Management • Custom Code • JAM Group and
• Q&A SAP Fiori in SAP • Activation of PP/DS adaptation material access
S/4HANA • Q&A • Q&A • Q&A
• Q&A
Rollout call 1.5 hours 2 hours 2 hours 2 hours 1.5 hours

Basis 6 hours 2 hours 2 hours

ABAP 2 hours
Finance 4 hours
Logistics 2 hours

© 2021 SAP SE or an SAP affiliate company. All rights reserved. 4


Content:

• Review of previous STEP08

• Custom Code adaptation

• Closure & call-to-action

• Q&A

© 2021 SAP SE or an SAP affiliate company. All rights reserved. 5


Review of STEP08
Review of STEP09

Logistic post-conversion activities

Output Management

PP / DS

© 2021 SAP SE or an SAP affiliate company. All rights reserved. 7


Custom Code adaptation
SAP S/4HANA system conversion
Custom code related process

Preparation phase Realization phase

Maintenance Software Update Application specific


Application specific
System requirements SI checks Custom code
Custom code preparation
preparation
planner Manager (SUM) follow-up activities
follow-up activities

Custom code Custom code Functional


scoping analysis adaptation

Usage tracking of custom code Remote ATC to check for Adjust modifications in
in production S/4HANA related changes SPDD/SPAU
Find more about
(SCMON/SUSG or UPL) (Simplification DB)
Custom code adaptation process ADT for Eclipse
in the SAP community Custom Code Migration App Custom Code Migration App
Quick Fixes for semi-automated
to detect unused code for efficient custom code
custom code adaptation
analysis
© 2021 SAP SE or an SAP affiliate company. All rights reserved. Remove unused code via SUM 9
Functional adaptation | Examples

SAP HANA finding example: if you selected from the table SAP S/4HANA finding example: replace your own defined
without any order and execute binary search, it will return the material number with the SAP data type MATNR.
wrong entries, therefore you need to fix your SELECT by either
providing ORDER BY statement or sort the internal table before
the statement READ TABLE … BINARY SEARCH.
© 2021 SAP SE or an SAP affiliate company. All rights reserved. 10
Functional adaptation in ABAP Development Tools in Eclipse

ABAP Test Cockpit in ABAP Development Tools


Run ABAP Test Cockpit in ABAP Development Tools in Eclipse
▪ Tightly integrated in development (“Run As…” menu)
▪ Browse all ABAP Test Cockpit check runs of the system
(filter by users) using the cockpit’s result browser
▪ Display simplification item information (e.g., SAP
Notes, referenced objects) incl. navigation ATC Problems View
▪ Integrate checks in your on-going development
activities, e.g. during transport release
▪ Change contact person to transfer findings

* Functional adaptation in ABAP workbench (SE80) still possible with limitations:


no automatic code adaptation, CDS and AMDP not supported

© 2021 SAP SE or an SAP affiliate company. All rights reserved. 11


Semi-automatic custom code adaptation in ADT in Eclipse with Quick Fixes

Quick Fixes in the source code editor


Quick Fixes to minimize adaptation efforts
▪ Order By
▪ MATNR and amount field length extension
▪ Field length extension of field VBTYP (SD document
category) and elimination of field VBTYP_EXT
▪ Reduce findings for VBRK and VBRP
▪ Data model changes, e.g.
– KONV Mass-enabled Quick Fixes in the ATC Problems View
– VBUK/VBUP
– BSEG

Mass-enabled Quick Fixes to adapt whole work


packages in one step

Find more about Semi-automatic custom code adaptation


in the SAP community

© 2021 SAP SE or an SAP affiliate company. All rights reserved. 12


SAP S/4HANA system conversion
Custom code related process

Preparation phase Realization phase

System Maintenance Software Update Application specific


Application specific
SI checks Custom code
Custom code preparation
preparation
requirements planner Manager (SUM) follow-up activities
follow-up activities

Custom code Custom code Functional Custom code


scoping analysis adaptation optimization

Usage tracking of custom code Remote ATC to check for Adjust modifications in Performance tuning
Find more about in production S/4HANA related changes SPDD/SPAU
Code pushdown
Custom code adaptation process (SCMON/SUSG or UPL) (Simplification DB) ADT for Eclipse
Simplification
in the SAP community Custom Code Migration App Custom Code Migration App Quick Fixes for semi-automated
to detect unused code for efficient custom code custom code adaptation User experience
analysis
© 2021 SAP SE or an SAP affiliate company. All rights reserved. Remove unused code via SUM 13
Custom ABAP code optimizations for SAP HANA
Detection of best performance tuning candidates

SQL Monitor for runtime SQL performance


analysis in productive ABAP-based systems

Classic performance monitoring


and trace tools (SQL Trace, ABAP runtime
analysis/Profiler…)

© 2021 SAP SE or an SAP affiliate company. All rights reserved. 14


Performance tuning using SQL Monitor

SQL Monitor allows to get performance data for all SQLs


executed in your productive system
What are the most expensive and most frequently executed SQLs?
Which SQL reads/writes millions of records?
What is the SQL profile of transaction VA01?

SQL Monitor allows to link the monitored SQL to the driving


transaction

Available for SAP NetWeaver >= 7.00

SQL Monitor does not harm your business processes


(performance overhead < 3%)

Find more about SQL Monitor


Guide and Best Practices in the
SAP community
© 2021 SAP SE or an SAP affiliate company. All rights reserved. 15
SQL Monitor - Example
BUSINESS PROCESS LIST RANKED BY TOTAL DB TIME

DRILL DOWN

SQL PROFILE OF REPORT ZSQLM_TEST3 RUNNING AS BATCH JOB (6 SQL STATEMENTS)

CODE

NAVIGATE

© 2021 SAP SE or an SAP affiliate company. All rights reserved. 16


Custom code optimization and modernization

Optimize towards SAP HANA


Code pushdown, performance tuning

Embedded analytics
Execute reporting directly on your
transactional data

… is not only about new Apply clean core principles


Decouple from SAP standard,
applications. You also get a get rid of modifications where possible
renewed technology stack.

Use modern ABAP language and released APIs


Stable contracts

ABAP RESTful Application Programming Model


To easily develop SAP Fiori-based apps

© 2021 SAP SE or an SAP affiliate company. All rights reserved. 17


ABAP development for SAP S/4HANA and HANA
The essentials

SAP HANA Programming Paradigm Shift ABAP Development Tools


as primary database (Code Pushdown) in Eclipse

High pace From data-2-code High developer productivity


in-memory processing to code-2-data

Columnar store; OLAP & OLTP Delegation of data-intensive Advanced source code editing,
computations to the database search & navigation
Multicore and parallelization
Adjusted SQL programming Full support for ABAP
Advanced compression
Guidelines: “5 Golden Rules” development for SAP HANA
Specialized engines,
Advanced database-centric Test, troubleshooting and
libraries and functions
programming techniques quality assurance

© 2021 SAP SE or an SAP affiliate company. All rights reserved. 18


ABAP optimizations for SAP HANA
At a glance

MORE Exploit
SAP HANA native
capabilities
ABAP managed
database procedures
Advanced SQL and functions (AMDP)
programming CDS table functions
Effort for Quick wins with
reuse components Open SQL
code enhancements
pushdown ALV with integrated
Out-of-the-box data access Advanced view
transparent building with Core
Enhanced search help Data Services (CDS)
optimizations
Fast Data Access
For all entries
LESS

LOW Utilization of SAP HANA capabilities HIGH

© 2021 SAP SE or an SAP affiliate company. All rights reserved. 19


What’s new

Greenfield project
SAP Fiori app Custom Code Migration
▪ Available in SAP Cloud Platform, ABAP environment
▪ Support for “greenfield” projects
▪ Analysis of source code complexity
▪ Integration of ABAP Test Cockpit check results into
SAP Readiness Check 2.0

Comments in Quick Fixes


Quick Fixes in ABAP Development Tools
▪ Provide comments for “quick-fixed” source code in
Quick Fixes
▪ New Quick Fix for SD billing documents
(for DB accesses to VBRK, VBRP)
▪ Improve Quick Fixes for VBTYP

Find more about Comments for the ADT Quick Fixes


in SAP Community

© 2021 SAP SE or an SAP affiliate company. All rights reserved. 20


Further information

SAP Community for ABAP testing and analysis: https://www.sap.com/community/topics/abap-testing-analysis.html

© 2021 SAP SE or an SAP affiliate company. All rights reserved. 21


Closure, call-to-action and Q&A
Activity documents for today

Custom Code adaptation


© 2021 SAP SE or an SAP affiliate company. All rights reserved. 23
System landscape for today

The frontend and backend


server
SAP S/4HANA 2020

SID: K<XX> (e.g. K01)

Main usage: this system is the


S/4HANA back-end system

Activities:
• Custom Code adaptation using
• SAP GUI (trx. ADT) and
• ADT for Eclipse

© 2021 SAP SE or an SAP affiliate company. All rights reserved. 24


Call to action

• Review this presentation (published in JAM group)

• Execute the activity document for STEP09

• Collaborate using JAM in case of issues or doubts

© 2021 SAP SE or an SAP affiliate company. All rights reserved. 25


Q&A
You can now ask your questions

Using the Q&A panel (click on the

button in the lower part of the screen).

or

Raise your hand to ask verbally (click the raise


hand button) and we will unmute your line.

© 2021 SAP SE or an SAP affiliate company. All rights reserved. 26


Thank you.
Contact information:
SAP 10Steps2S4 Team

Mail: sap10steps2s4@sap.com

JAM: 10Steps2S4 APJ-March 2021

You might also like