Set Up Staging Database
You can set up one of the following databases as your staging database for Transaction, Drilldown, and SyncBack:
- SAP HANA
- Microsoft SQL Server
Note: The option to set SAP ASE as a staging database is deprecated from November 2022 release onwards.
Prerequisite Tasks
Before you set up the staging database, copy the setup files located at <SetupFolder>\Stage\<StagingDatabase> to the computer on which you want to run the setup files.
SQL Scripts to Create Read-Only Login Access (MSSQL as Stage)
To create a login and user with read-only access to all reconciliation objects (Tables, Views, Procedures, and other scripts), follow these steps:
- Run the sda_access.bat batch file by double-clicking it or running it in the command prompt.
- Enter the Following Details:
- serverhost_st: Stage MSSQL Server Hostname
- username_st: Stage MSSQL Server Username
- password_st: Stage MSSQL Server Password
- master_schema: Master Database/Schema Name
- stage_database: Stage Database Name
- stage_schema: Stage Schema Name
- Login_Name: New Login Name
- Login_Password: New Login Password
- User_Name: New User Name
- Role_Name: New Role Name
Set Up Staging Database in SAP HANA
To set up your staging database in SAP HANA, perform the following tasks:
- In SAP HANA, create a database user named MAG_SC_STG.
- Log in as MAG_SC_STG user, go to the
<SetupFolder>\Stage\HANA\Tablesfolder, and perform the following:- Open the
Run.sqlfile in which a set of.sqlfiles are listed. - Run the
.sqlfiles in the order they are listed. The staging tables are created.
- Open the
- Open the
Virtual_source_tables.sqlfile at<SetupFolder>\Stage\HANAfolder, and do the following:- As indicated in the
Virtual_source_tables.sqlfile, create remote sources using smart data access in SAP HANA that point to the SLT Replication Server database and SAP S/4HANA database. - Run the
virtual_source_tables.sqlfile. The virtual source tables are created.
- As indicated in the
- Go to the
<SetupFolder>\Stage\HANA\Viewsfolder, and do the following:- Open the
Run.sqlfile in which a set of.sqlfiles are listed. - Run the
.sqlfiles in the order they are listed. The views are created.
- Open the
- Go to the
<SetupFolder>\Stage\HANA\Proceduresfolder, and do the following:- Open the
Run.sqlfile in which a set of.sqlfiles are listed. - Run the
.sqlfiles in the order they are listed. The procedures are created.
The tables and the related database objects are created for the staging user in SAP HANA for Transaction, Drilldown, SyncBack, and Reconciliation reports.
- Open the
Set Up Staging Database in SQL Server
To set up your staging database in SQL Server, perform the following steps:
- In SQL Server, create a database named MAG_SC_STG.
- Go to the
<SetupFolder>\Stage\MSSQLfolder, and run theinstall_stage.batfile. The prompts requiring the staging database details are displayed. - Provide inputs for the parameters as follows:
- Host name: Enter the host name of SQL Server on which the staging database is created.
- Username: Enter the user login name, who has access to the staging database in the server.
- Password : Enter the password of the login user to connect to the server.
- Staging schema: Enter the name of the staging database that you created in Step 1.
The tables and the related database objects for the staging user are created in SQL Server for Transaction, Drilldown, SyncBack, and Reconciliation reports.
Staging Tables
The staging tables, such as the following are created in the staging database.
| Table | Description |
|---|---|
|
Indicates the status of the CDC job (ON/OFF). |
|
Indicates the staging tables for storing transactions data from source systems before they are moved to the SLT tables.
The |
|
Indicates the staging tables for storing AVL data from applicable source systems before they are moved to the SLT tables. |
|
Stores SAP S/4HANA pre-configurable master data for source and target systems. You need to map the journal types, logical system, user name, and other relevant information. |