45
Setting Up Cloud IBP Application Job Monitoring (i.e. S/4HANA CE Application Job Monitoring) using Solution Manager 7.2 (via notes the functionality is down ported to SP05, SP06 and SP07)

(i.e. S/4HANA CE Application Job Monitoring) using

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Setting Up Cloud IBP Application Job Monitoring (i.e. S/4HANA CE Application Job Monitoring)

using Solution Manager 7.2 (via notes the functionality is down

ported to SP05, SP06 and SP07)

2PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Motivation for Cloud IBP Job Monitoring

SAP Integrated Business Planning enables a company to fulfill future demand profitably with real-time supply

chain management.

SAP IBP processes data and creates forecasts using data from any backend system (typically a SAP ERP

system), i.e. there are important inbound and outbound data processes as well as forecast runs.

Important jobs therefore are the Data Integration*, Forecast* jobs.

Whereas system operation is part of the cloud offering, application / business process operation including

batch job management and monitoring is normally in the responsibility of the customer’s IT organization.

3PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

With SAP Solution Manager 7.2 SP05+ you are in the position not only to monitor your on premise

landscape jobs, but you can also monitor your cloud IBP jobs (or in general your cloud SAP

Application Jobs).

This document explains, what you need to do to enable your SAP Solution Manager for Cloud SAP

Application Job Monitoring.

Central Monitoring of Cloud IBP Jobs as well as Backend System Jobs

Monitor your on premise ERP jobs.

Monitor your cloud IBP application jobs.

NW Appl Job

NW Appl Job

4PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

1) Apply SAP notes on top of 7.2 SP05 / SP06 / SP07

2) Connect IBP to Solution Manager (Managed System Setup via Cloud Service)

3) Update Solution Manager Content

4) Below SP09 apply BC Set in your Solution Manager to get the IBP job type parameterization

5) Create /SOMO/UNIJOBMONDC_CUST Implementation in development Solution Manager.

a) Maintain method CHANGE_METRICS

6) Transport the BAdI changes to productive Solution Manager.

→ Setup of IBP Job Monitoring can start (e.g. from Technical Scenario or from Job Documentation)

Implementation Steps The implementation steps can be supported by a SAP Support service.

For this reach out to your support contact or send a mail to

[email protected] .

System Preparation

6PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Apply SAP notes

Note Text SP05 SP06 SP07

2525607 SEARCH_UIBB: Configured Number of Rows in Result List is not taken into account at runtime, Part 2 x

2504851 Job Monitoring UI Prerequisites for SP04, SP05 and SP06 x x x

2686637 Copy Alert Severity when copy from MO x x

2520964 HANA DB XS job monitoring x x

2637612 Wrong system type for Cust Job of External Service x x x

2638004 Monitoring UI - Technical Key of Custom Job Type is displayed Instead of Description x x

2638231 Multiple fixes for Custom Job Types in Job Monitoring x x x

2639048 Monitoring of Cloud IBP Jobs - Powered by SAP Solution Manager - Job Monitoring x x x

2639214 Determination of RFC destination does not happen for custom job which type is cloud services x x

2640526 Prefill selection fields for Custom job types x x x

2645108 Custom Job Type Settings (2.7) - special characters accepted without error. x x

2657950 External service: Tenant displayed instead of system ID x

2662806 Downport : Custom Job type analytics x x x

2625554 Corrections unified job monitoring included in ST-PI 2008_1_7xx SP19 and ST-PI 740 SP9 x x x

2648317 Enable external services for custom job types x x x

For note 2648317 implement the manual steps outlined in the PDF attached

to the note. After the manual steps are performed, implement the note.

7PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Connect IBP to Solution ManagerManaged System Setup via Cloud Service

You need Root URL (e.g. https://pkt-

001.wdf.sap.corp) to cloud service and a user (e.g.

JOBSCHEDULINGUSER) an logon credentials.

1. Cloud Service Operations: Create Cloud Service

2. Configure Cloud Service

JOBMON

8PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Connect IBP to Solution ManagerAdd communication scenario SAP_COM_0064

In your IBP system:

Add communication scenario SAP_COM_0064

9PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Connect IBP to Solution ManagerAdd communication system

In your IBP system:

Add communication system (i.e. the Solution

Manager). The host name is irrelevant as this

is an inbound scenario.

10PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Connect IBP to Solution ManagerMaintain communication scenario SAP_COM_0064

In your IBP system:

Enter communication system and user into

communication scenario SAP_COM_0064.

JOBSCHEDULINGUSER

11PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Connect IBP to Solution ManagerApply IBP certificate to your Solution Manager in STRUST transaction

Details can be found here:

https://support.sap.com/en/al

m/solution-manager/expert-

portal/public-cloud-

operations/integrated-

business-planning.html

In your Solution Manager:

Apply IBP certificate to the SSL Client

12PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Update Solution Manager Content

Makes sure, no new content is available.

Background Info https://blogs.sap.com/2016/11/15/overview-of-rapid-content-delivery-in-sap-solution-manager-7.2/

13PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

a) The BC Set IBP_JOB_TYPE.bcs is attached to

SAP Note 2669548. Download it to your desktop.

b) To upload the BC Set into your Solution Manager

1) Call transaction SCPR20

2) Upload the BC Set IBP_JOB_TYPE.bcs *

3) Compare with customizing tables (would give a waring in

case of overwrite)

4) Activate

Implement and Activate BC Set

* Package AI_SOLMAN_JOB_MONITORING_SETUP

14PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Create /SOMO/UNIJOBMONDC_CUST Implementation (1/6)

Call transaction SE18 → Display → Create BAdI Implementation (you will be asked for an access key)

15PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Create /SOMO/UNIJOBMONDC_CUST Implementation (2/6)

Maintain the text

and press enter.

You have now created an

enhancement implementation

16PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Create /SOMO/UNIJOBMONDC_CUST Implementation (3/6)

Repeat the “Create BAdI Implementation” action and select your

enhancement implementation. Press enter.

In order to transport you cannot use $TMP. Please use

package /SOMO/MA_6X_MAIN and assign the implementation.

17PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Create /SOMO/UNIJOBMONDC_CUST Implementation (4/6)

Maintain the fields (in customer system the BAdI

name and the class needs to start with Z) and

press enter.

18PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Create /SOMO/UNIJOBMONDC_CUST Implementation (5/6)

You have now created a BAdI implementation.

19PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Create /SOMO/UNIJOBMONDC_CUST Implementation (6/6)

Now you need to create the implementation for all

methods (by double-click) and activate them.

Note, that the coding for the CHANGE_METRICS

method is attached to SAP Note 2669548.

Setup from Technical Scenario

21PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Add the Cloud Service to a Technical Scenario

Add the Cloud Service as External

Service to the scenario.

22PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Create Job Monitoring Object of Type NW Appl Job

1. Create Job Monitoring Object of Job Type NW Appl Job.

2. Select as Technical System the cloud service.

3. Chose option From Managed System.

23PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Use Option From Managed System to Check that Communication Works

Select in the Search Results table the job

that you want to monitor and click next.

Configure the object and activate (more

details are shown here).

If Search Results table is empty then the

communication does not work (or there are no

Application Jobs for the tenant). See next slide on a

quick analysis.

24PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Quick Analysis, if no Jobs are Found (1/2)

Set a breakpoint in

CL_JOBMON_CUSTOM_IBP~SEARCH_JOBS.

Click Search again.

25PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Quick Analysis, if no Jobs are Found (2/2)

If you get to the place, where the LV_RESPONSE_STRING is filled,

communication between Solution Manager and the cloud system works in

principle (i.e. no certificate issue).

If you see Forbidden, there is an authorization issue and you have to check the

authorizations of the communication user in your IBP tenant.

Solution Documentation Preparation

27PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Add IBP as External Service in Solution Administration (1/3)

Create Logical Component Group of

Type External Service.

28PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Add IBP as External Service in Solution Administration (2/3)

Select the Logical Component Group that

you created for IBP.

Select the Branch Production and assign the

IBP system to role Production System.

1

2

3

29PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Add IBP as External Service in Solution Administration (3/3)

Select the Branch Operations and reference

the logical component from the Production

Branch, i.e. select Production - Global.

4

5

30PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Create a Process Step with IBP

Model the process to be monitored.

31PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Create an Executable Folder with IBP

Make sure to have an executables folder

for system IBP.

Monitoring Configuration

33PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Create Job Documentation for Cloud Application Jobs

https://<server>:<port>/sap/bc/ui2/flp?sap-client=<CLNT>&sap-language=EN#Action-

CreateJobDoc?APPLICATION=WD_AGS_EJR_JOBDOC_FPM&FPM_EVENT_ID=FPM_EDIT&JOB_OBJECT_TYPE=J&WDCONFIGURATIONID=WD_AGS_

EJR_JOBDOC_FPM_CONFIG

Chose the newly created

job type for NW Appl Job.

NW Appl Job

Link to create Job Document

34PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Add Solution Context to Job Document

Custom Job Type “Job Type”

Add the IBP step Solution Documentation

context to the Job Document.

35PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Configure Monitoring for Job Document

NW Appl Job

Configure Monitoring for

Process Element Context.Click Next to complete to do the

actual monitoring object configuration.

36PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Configure Monitoring for Job Document

You can search for the job,

select it and click Next.

37PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Configure Monitoring for Job Document

Specify the monitoring object name

and click Confirm in the right bottom

corner of the screen.

NW Appl Job

38PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Configure Monitoring for Job Document

Now you can do the metric configuration

and activation of the object.

NW Appl Job

39PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Supported Metricsa) Status → Status (i.e. Finished Green, Failed Red)

b) Appl. Log Status → Log status as reported by the Job

c) Duration → Duration

d) Start Delay→ Alerts if technical start delay or actual start delay

e) End Delay → Alerts if delayed end comparing to Planned End Time (for daily and less

frequent jobs)

f) Out of Time Window → Alerts if a job does not run in the specified time window (for

daily and less frequent jobs)

g) Not Started on Time → Alerts the delayed start with respect to check times.

Solution

Manager

Cloud IBP

For details on Job Monitoring Metrics see at https://wiki.scn.sap.com/wiki/display/SM/Job+Management

the document Configuring Job Monitoring in SAP SolMan 7.2

41PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Monitoring Application (e.g. scope Solution Context)

Select Solution Context. https://<server>:<client>/sap/bc/ui5_ui5/sap/job_monitoring/index.html?SELECT

ED_JOBS&entrypoint=TECHMON&scenario&type=TSCEN&sap-

client=<client>&sap-language=EN

Link to open Job Monitoring

Application.

NW Appl Job

42PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Monitoring Application for Solution Context

Consume Monitoring for Solution Context.

NW Appl Job

NW Appl Job

43PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Monitoring Application for Solution Context → Alert Details

Alert Details

NW Appl Job

44PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Monitoring Application for Solution Context → Alert Details

Link to Application Job Detail

45PUBLIC© 2018 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Monitoring Application for Solution Context → Alert Details

Navigation to Job Details in IBP via pasting link from

Alert Details into browser. From Job Details forward

navigation to Application Log for Job.