ASUG84475 - Callidus Contract Lifecycle Management Migration To SAP HANA in Record Time
ASUG84475 - Callidus Contract Lifecycle Management Migration To SAP HANA in Record Time
May 7 – 9, 2019
About the Speakers
Rob Verschoor Carina Kern
• SAP • Product & Solution Marketing
• Vice President & Global Database Manager, SAP
Migration Lead • Products included e.g. SAP Big
• Arrived at SAP via Sybase Data, SAP HANA, SAP HANA
• Global SAP Advanced SQL Migration tool Blockchain Service, SAP ASE, and
program SAP Database Migration Program
Agenda
• What is the CallidusCloud Commissions application?
>1M
Payees
278+
Trillion
13
Minutes
X6
Consecutive years
Lenovo utilizes [SAP] Commissions and gains better
service delivery to its customers
CHALLENGE:
Because Lenovo is a global company, they were
challenged to find a consistent and common platform for
SOLUTION:
Lenovo turned to [SAP] and the Commissions solution
to deliver one sales performance system globally that
“ SAP gives us a much
more robust solution and
helps our business run
faster and better.”
managing sales plans, attainment, and payments across all works across business units. With the Commissions
geographies. component of the quote-to-cash solution, Lenovo can
process commissions once a week, not just in one
central office, but in several countries.
PRODUCT:
SAP Commissions
Our customers range from startups to Fortune 500 companies
SAP Commissions Structure
Plan Communicator Commissions UI
Sales Compensation Plan Program Maintenance and
Creation And Distribution Control
Dashboards
Commissions Pipeline
Transactions
Allocate
(i.e. from CRM or
(Crediting Reward Pay
ERP)
Measurement
Attainment)
Reporting
SQL interface to DBMS And Analytics
Database
Database complexity largely determined by SQL: SQL Metrics of
the SAP Commissions application
Technically, database complexity is largely determined by SQL aspects
From a server-side SQL perspective, the SAP Commissions application looks like this:
• 1016 tables, 37 views; 13262 columns
• 397 indexes, 1538 constraints(905 CHECK, 391 PRIMARY KEY, 103 REFERENCES, 139 UNIQUE)
• 1 datatype definition, 4 sequences
• Procedural objects:
• 105 PL/SQL packages
• 1 PL/SQL function
• 5 PL/SQL stored procedures
• 2 triggers
• Total >200,000 lines of PL/SQL code in procedural objects
The challenge: migrate SAP Commissions to SAP HANA
• Objective: SAP Commissions application to run on the SAP HANA database
• Generally, migrating complex SQL applications to a different DBMS is a complex, non-trivial activity
• Complexity is primarily in conversion of existing SQL code to the SQL dialect of SAP HANA
• …but plenty of other challenges too (data migration, HA/DR, operational procedures, connectivity, tools…)
• Initial estimate for migrating the application to SAP HANA was 18-
24 months
• So, is this really feasible?
Migration of custom (non-SAP) DBMS apps to SAP HANA
DBMS migration of custom apps involves many aspects Target
Current Same custom non-SAP app on
Custom non-SAP app running SAP database (cloud / on-prem)
on non-SAP database
COMPLEXITY!
Aspects to consider:
• Schema conversion • Client app migration
• SQL conversion • HA/DR
• Data migration • Operational readiness
• Client/server connectivity • Project Management
• Functional testing • Tech-skilled staff
MSSQL / Oracle / DB2 • Performance testing • Cost, Risk, Duration SAP
/ HANA
Teradata / Netezza
Migration of Custom (non-SAP) DBMS Apps to SAP HANA
Success factors for DBMS migration
Target
Current Same custom non-SAP app on
SAP database (cloud / on-prem)
Custom non-SAP app running
on non-SAP database Success factors for DBMS migration:
ü Highly automated conversion of schema and SQL
code
ü Deep technical SQL skills (source & target SQL
dialect)
ü Detailed application knowledge ("why was it done that
way?")
ü Migration project experience
ü Availability of application test environment
ü Customer commitment
ü Executive sponsorship
ü Project management skills
ü Consulting services at acceptable price point
SAP
MSSQL / Oracle / DB2 HANA
/
Teradata / Netezza
SAP Advanced SQL Migration tool Target
A highly automated SQL conversion to SAP HANA
Same custom non-SAP app on
Current SAP database (cloud/on-prem)
Custom non-SAP app running
on non-SAP database
SQL CONVERSION
• 93% of all SQL code converted automatically by SAP Advanced SQL Migration tool
• Migration project staffed by CallidusCloud team with support from the SAP HANA team
• The SAP Advanced SQL Migration tool is exclusively aimed at "custom non-SAP" applications
• As opposed to traditional SAP applications based on ABAP/Netweaver -- migration practices already exist for
those
• No other feasible custom-app migration tools for Hana available
• Custom applications often used server-side SQL (stored procedures etc.) - most complex aspect of
SQL migration
How it was done: migrating SAP Commissions to SAP HANA
Complexity Assessment
• Oracle outer join syntax (WHERE a(+) = b) converted to ANSI OJ syntax (28 cases)
• Date/time arithmetic (200+ cases)
• Oracle: vStartDate + (nIndex - 1) * 13 * 7
• Hana: ADD_SECONDS(vStartDate , (86400*(CAST(((:nIndex - 1) * 13 * 7) AS INT))))
• SQL code generated to compensate for HANA semantics for concatenation of NULL strings
Redesign/rewrite issues: some examples
• Collection datatypes and -operations
ü Converted by the migration tool, but preferable to redesign
• Table-in-table structures
• UTL_FILE package calls
• CONNECT BY
• Dynamically declared SELECT statement in cursor
• DELETE..RETURNING, UPDATE..RETURNING
SAP Customer Offerings for DBMS Migration
How SAP helps you migrate your custom DBMS applications
SQL CONVERSION
MIGRATION PROJECT
E. Client-side (application-generated) SQL migration (migration tool support for ad-hoc SQL query conversion)
• Client-side SQL may or may not be hard to capture or locate in app source code - "it depends"
• Fortunately, most application-submitted SQL code is usually quite simple
www.sap.com/database-migration
.
Take the Session Survey.