Monday 25 January 2021

S/4HANA Greenfield Implementation

Overview

This Roadmap is intended for SAP BASIS team in an implementation project for SAP S/4HANA on premise. This Roadmap is comprised of different Phases and provide high-level details for each phase.

Phases include –

1. SAP Architecture

2. Maintenance Planner

3. Installation Preparation

4. SAP S/4HANA 1909 Installation

5. Best Practices Activation

6. SAP S/4HANA Migration Cockpit

SAP HANA Exam Prep, SAP HANA Learning, SAP HANA Certifications, SAP HANA Tutorial and Material, SAP HANA Career, SAP HANA Guides

SAP Architecture


In the SAP Architecture phase, define overall designing for SAP S/4HANA system. This based on different factors such as – on-premise / hyperscaler (AWS, Azure), OS version (RHEL, SUSE), HANA replication strategy (based on RPO/RTO requirement), backup-strategy.

Here in this example, SAP is deployed on on-premise data center, operating system RHEL 8.1 with PACEMAKER (for ASCS and HANA), HANA replication strategy SYNCMEM.

SAP HANA Exam Prep, SAP HANA Learning, SAP HANA Certifications, SAP HANA Tutorial and Material, SAP HANA Career, SAP HANA Guides

Maintenance Planner


In the Maintenance Planner phase, create stack.xml file by selecting appropriate software components and download all required components.

1. Login into SAP marketplace
2. Select maintenance planner
3. Select the Fiori tile Plan for SAP S/4HANA
4. Select Install a new SAP S/4HANA
5. Then enter SID = S4H; select Target Version = SAP S/4HANA 1909; Target Stack = 02
6. Then select choose Co-deployed with Backend for FIORI. 
7. Then Continue Planning –> select OS/DB dependent files –> and Click on Push to Download Basket.

Installation Preparation


In the Installation Preparation phase, perform all pre-requisites for installations.

Consider following pointers –

1. OS recommended settings
2. Users ids, group creation
3. File system creation, mounting and provide appropriate permission
4. Define SID, Instance #
5. Download all software

OS recommended settings –

Following settings are applicable for HANA database –

1. Disable SELinux
2. Configure tuned to use profile “sap-hana”
3. Disable ABRT, Core Dumps and kdump
4. Turn off auto-numa balancing
5. Disable Transparent Hugepages (THP)
6. Cluster-On-Die (COD) / sub-NUMA clustering technology (Intel 64 platform only)
7. Configure CPU Governor for performance (Intel 64 platform only)
8. Configure Energy Performance Bias (EPB, Intel 64 platform only)
9. Disable Kernel samepage merging (KSM)
10. Increase kernel.pid_max

Users ids, group –

During the installation, the installer checks all required accounts (users, groups) and services on the local machine. The installer checks whether the required users and groups already exist. If not, it creates new users and groups as necessary.

For distributed installations, you must create the target users automatically using the installer or manually on the operating system, before starting the installation.

Start the installer and choose Generic Installation Options  –> HANA Database –>  Preparation –> Operating System Users and Groups .

The user ID (UID) and group ID (GID) of SAP users and groups must be identical for all servers belonging to an SAP system.

This does not mean that all users and groups have to be installed on all SAP servers.

For Linux :

You have to set the limits for operating system users root, <sapsid>adm, and your database-specific operating system users .

Use below command to assign limit :

limit -h datasize unlimited

Use below command to check limit :

ulimit -a

The output of command needs to be at least as follows:

Output Properties 
cpu time (seconds)   unlimited
file size (blocks)   unlimited 
data seg size (kbytes)   unlimited 
stack size (kbytes)   8192 KB
core file size (blocks)   unlimited 
open files   8192 
max memory size (kbytes)   unlimited 

For example purpose,

For SAP ASCS, ERS, Application Server –

User Name UID  Primary Group   Additional Group   Description 
root 0 root (0) 0(root), 1001(sapinst) Superuser of the UNIX operating system
s4hadm  9100  801(sapsys)   801(sapsys), 1001(sapinst)  SAP system administrator 
s4hadm  9300  801(sapsys)   801(sapsys), 1001(sapinst)  SAP Host Agent administrator 

Users s4hadm and sapadm must have the same password on all hosts.

For SAP HANA Database Server –

User Name UID  Primary Group   Additional Group   Description 
root 0 root (0) 0(root), 1001(sapinst) Superuser of the UNIX operating system
s4hadm  9100  801(sapsys)   801(sapsys),1001(sapinst), 1002(s4dshm) SAP system administrator
sapadm 9200  801(sapsys)   801(sapsys),1001(sapinst), 1002(s4dshm) SAP HANA Database System Administrator
sapadm 9300  801(sapsys)   801(sapsys), 1001(sapinst) SAP Host Agent administrator

You should remove the operating system users from the group sapinst after the installer has completed

File system –

For Application Server,

Path Type  To be mounted on 
/sapmnt   NFS ASCS, ERS, PAS
/usr/sap/trans   NFS  ASCS, ERS, PAS
/usr/sap/S4H/SYS   NFS  ASCS, ERS, PAS 
/usr/sap/S4H/ASCS20   NFS  ASCS 
/usr/sap/S4H/ERS29   NFS  ERS 
/usr/sap/S4H/D21   Local  PAS 

For Database Server,

Path Type 
/sapmnt NFS 
/root  Local 
/usr/sap  Local 
/hana/shared  Local 
/hana/data  Local 
/hana/log  Local 
/hana/log  Local 

Linux: Recommended file systems is XFS as long as your hardware or technology partner does not recommend otherwise.
 
Other –

In this phase, define SID, instance # as per your your organizational compliance, if any.

Some SID are reserved, so choose your SAP system ID (SAPSID) and Database ID (DBSID) carefully.

Make sure, you have downloaded all required software.

SAP S/4HANA 1909 Installation –


Using software provisioning manager (SWPM) install instances in the following order:

ASCS instance
ERS instance
DB instance
PAS instance
AAS instances

Before installing S/4HANA application, install HANA database software and create tenant database

DB Software Installation –

1. Run SAP HANA Hardware and Cloud Measurement Tools
SAP HANA hardware and cloud measurement tools help customers and partners to optimize their hardware or cloud systems before deploying SAP HANA or applying for SAP HANA certification.

2. Uncar HANA database SAR file and ./hdblcm as root user

3. This will install HANA database and create system and tenant database. This databases having SID as your HANA database. In some case you do not want the default tenant, Add option when call hdblcm
– create_initial_tenant=off

4. Create another tenant database, as per your SAP system SID using SQL command :

CREATE DATABASE S4H SYSTEM USER PASSWORD <password>;

ASCS instance

Make sure following file-systems are available –

/usr/sap/S4H/ASCS20
/usr/sap/S4H/SYS
/usr/sap/trans
/sapmnt

Virtual IP for should be enabled on s4node1.

Run the installer using following command using root user :

# ./sapinst SAPINST_USE_HOSTNAME=s4ascs

Select High-Availability System option 

ERS instance

Make sure following file-systems are available –

/usr/sap/S4H/ERS29
/usr/sap/S4H/SYS
/usr/sap/trans
/sapmnt

Virtual IP for should be enabled on s4node2.

Run the installer using following command using root user :

# ./sapinst SAPINST_USE_HOSTNAME=s4ers

Select High-Availability System option

Install SAP HANA

Run the installer:

# ./sapinst SAPINST_USE_HOSTNAME=s4db

Install SAP Primary Application Server

The following file systems should be mounted on the host to run the Application Server instance

/usr/sap/S4H/D21
/usr/sap/S4H/SYS
/usr/sap/trans
/sapmnt

Run the installer:

# ./sapinst

Select High-Availability System option.

SAP S/4HANA 1909 Best Practices Activation

In this phase, we will activate best practices for S/4HANA 1909 system.

1. Login into client 000 and activate business function. Also capture it into TR
2. Perform client copy either merged or best practices.
3. Get the Most Recent SAP Best Practices Content
     i. import the latest reference content before content activation into your system:
BP-S4CONT 190902 (download from software center) –> BPS4CONT190902_0_0-70005217.ZIP
     ii. Download the zip archive locally.
     iii. Log on to client 000 in your system.
     iv. Start transaction STMS_IMPORT.
     v. From the menu, choose Extras  Other Requests  Add.
     vi. In the dialog box, enter the transport request that you have imported (Request ID corresponds to the file name: <source system><6 digits>). Choose Continue
     vii. Confirm that you want to add the transport request to the import queue.
     viii. Select a transport that you want to import.
     ix. Choose Import Request.
     x. Choose target client 000.
     xi. On the Options tab, select the Ignore Invalid Component Version flag.
     xii. Choose Continue.

4. Pre-requisite steps: Must be performed before starting the Best Practices activation – (Functional Consultant task)

i. Mandatory : Apply all SAP notes provided in the content activation Note 2917623
ii. Delete UTX2 and UTX3 in Transaction OVK1
iii. Delete all client 000 reference Tax Jurisdiction codes from the activation client:
iv. Pre-selecting the best practices Operating concern
v. Define Reasons for Quantity Differences deletion
vi. Business Partner – Customer/Vendor settings

1. Deleting Number Range Intervals for Debitor Number Range Object
2. Create BP Interval for DEBITOR Number Range Object
3. Deleting Number Range Intervals for KREDITOR Number Range Object
4. Create BP Interval for KREDITOR Number Range Object
5. Assigning the BP Number Range Interval to All Customer Account Groups
6. Assigning the BP Number Range Interval to All Vendor Account Groups
7. Adapt Numbering Logic in the CVI – for Customers
8. Adapt Numbering Logic in the CVI – for Vendors

5. Carrying out Pre-requisites settings for implementation

i. Provide users for content activation.
ii. Create a dialog user for content activation.
iii. Prevent out of memory dumps

6. Best Practices IMPLEMENTATION – 

i. Importing Solutions from SAP Best Practices Content
ii. Defining the Scope of Your Solution
iii. Activating Your Solution

1. Prerequisite Settings for Activation

    1. Updating Activation User Settings
    2. Pre-Activation Settings for EWM Scope Items
        1. Defining RFC Destination
        2. Defining Dummy Logical System
        3. Determining RFC Destinations for Method Calls
        4. Determining RFC Destinations for Method Calls from SAP S/4HANA EWM
        5. Defining Queue for Transfer to SAP S/4HANA EWM
        6. Setting the QOUT Scheduler
        7. Defining the Business System
        8. Defining Own Business System
        9. Maintaining Business System Group
       10. Assigning Logical System and Queue Type
       11. Setting Control for RFC Queue

    3. Finally, Best Practices Activation and capture in the TR for QA/PROD landscape.

        1. You will find some known error. Please refer attached from SAP note 2917623, 2839315

Migration Cockpit

From S/4HANA 1909 onwards, you can transfer data directly from SAP system

1. Transfer data from SAP ERP source system to target SAP S/4HANA system
2. Access source system via RFC connection
3. Available for
     i. SAP ERP 6.0 to SAP S/4HANA
     ii. SAP Extended Warehouse management to Decentralized EWM based on SAP S/4HANA
     iii. SAP CRM to SAP S/4HANA for Customer Management

No comments:

Post a Comment