Skip to content

SAP On-Demand Flow

SAP Flow

Introduction

Maintainer: olivier_lasis@bmc.com & vaibhav_tyagi@bmc.com

Prerequisites

  • Downloading the SAP Cient

To initiate and demonstrate certain functions of the “Control-M for SAP” module, it is now necessary to download the SAP GUI fat client.

Connect to the address: Developers Trials & Downloads

Scroll to the bottom of the page.

If you have a Dell laptop with Windows, click on the link: SAP GUI for Windows If you have an Apple Macbook laptop, click on the link: SAP GUI for Java

You’ll then need to register on the « SAP Developers » site. To install the SAP GUI for Windows thick client, go to: SAP GUI fow Windows

To install the SAP GUI for Java thick client on your Macbook, go to: SAP GUI fow MAC

  • Installing the SAP Cient

We now need to configure the connections to the SAP environments, which are the target of our work:

To access our “SAP BW” demonstration environment:

The login credentials are :

User: contact DBA-DEMO-COE

Password: contact DBA-DEMO-COE

This information will be published once the site is published on Okta.

To access our “SAP R3” demonstration environment:

The login credentials are:

User: contact DBA-DEMO-COE

Password: contact DBA-DEMO-COE

Demo zzz-sap-flow

Duplicate the flow “zzz-sap-jobs” to “usercode-sap-jobs”. Example: “ola-sap-jobs” for me.

Change the application with your “usercode” for the Smart folder and Jobs. Example: “ola” for me.

Run then the workflow: usercode-sap-jobs, with the options:

You will get the message “Run partially succeeded”. This is normal.

Use Case Overview

The SAP workflow will run different SAP R3 & SAP BW jobs with different actions in each job.

The workflow begins with 4 jobs in parallel, using ZZZ_SAP connection profile:

  • zzz-SAP-3-Steps: which creates a job in the SAP system with 3 steps,
  • zzz_SAP-ActivateProfile: which activates the profile “ZZZ-PROFILE” in the SAP system,
  • zzz-SAP-ChildJob: which spawns two child jobs in SAP system, i.e. CHILD_1 & CHILD_2
  • zzz-SAP-PeriodicJobs: Cyclic Job which creates a job in the SAP system, running the program BTCAUX04 to identify Periodic Jobs scheduled more than once in SAP.

These 4 jobs further triggered jobs which include jobs:

  • zzz-BW-ProcessChain: SAP Business Warehouse job running a process chain using ZZZ_SAP_BW connection profile

3 jobs using ZZZ_SAP connection profile:

  • zzz-SAP-AddEvent: which triggers an event “LFI-EVENT-FROM-DBA” with parameter “DBA2SAP”
  • zzz-SAP-CreateJob: which creates a job in the SAP system to check the backgroup processes
  • zzz-SAP-WaitEvent: To make this job successful, send an event “ZZZ-DEMO-EVENT” with parameter “FROM-SAP” with SAP GUI.

Open a Monitoring Viewpoint with the filters: Application=ZZZ, Sub-Application=SAP

Connect to our SAP R3 environment with SAP GUI. Launch the transaction “sm64”

In “Event History” tab, we can see the SAP event created: ZZZ-DEMO-EVENT.

In “BckProcEvnts” tab, search for the “ZZZ-EVENT-FROM-SAP” Background Processing Event:

Then, trigger it with the parameter: SAP2DBA

From “New” to “Confirmed” status:

Then, the zzz-SAP-WaitEvent is ended OK.

This use case is available for the VSE CTM QA & VSE CTM PROD Demo Systems .