SAP LVM Integration with SAP BPA

15
SAP LVM Integration with SAP BPA

Transcript of SAP LVM Integration with SAP BPA

Page 1: SAP LVM Integration with SAP BPA

SAP  LVM  Integration  with  SAP  BPA

Page 2: SAP LVM Integration with SAP BPA

• This is the fourth in a series of presentations dedicated to SAPLandscape Virtualization Management (LVM)

• This document provides a quick overview of how to integratean SAP Business Process Automation (BPA) web service in SAPLVM

• The document is aimed at system administrators responsiblefor configuring SAP LVM and are familiar with LVM CustomOperations (see SlideShare presentation)

• The document assumes the reader has a knowledge of SAP BPAand associated terminology

Introduction

Page 3: SAP LVM Integration with SAP BPA

Overview

• This  custom  operation  controls  BPA  queues  from  LVM• The  custom  operation  for  LVM  is  based  on  creation  of  the  

following  LVM  elements:– Provider  Implementation– Custom  Operation

• The  custom  operation  for  LVM  is  based  on  creation  of  the  following  BPA  objects:– Process  Definition– Web  Service

• The  custom  operation  also  requires  a  script  registered  with  the  Host  Agent

Page 4: SAP LVM Integration with SAP BPA

Process  Definition  in  BPA

• Define the RedwoodScript process definition in BPA – e.g.Custom_Set_Queue

Page 5: SAP LVM Integration with SAP BPA

Process  Definition  in  BPA• Give the process definition two output string parameters e.g. QN and

QA to represent the queue name and action to be carried out on thequeue i.e. HOLD (hold, closed) or RELE (release, open)

Page 6: SAP LVM Integration with SAP BPA

Web  Service  Definition  in  BPA

• Publish the process definition as a web service to be referencedin the host agent script later e.g. WS_Custom_Set_Queue

Page 7: SAP LVM Integration with SAP BPA

Configuration  in  LVM

• Provider implementation for the BPA queue custom operations• SetupèExtensibilityèProvider Implementation Definitions

Page 8: SAP LVM Integration with SAP BPA

Configuration  in  LVM• Custom operation “Hold” using the defined provider implementation

with the Operation parameter set to ”HOLD”• SetupèExtensibilityèCustom Operation

Page 9: SAP LVM Integration with SAP BPA

Configuration  in  LVM• Custom operation “Release” using the defined provider

implementation with the Operation parameter set to ”RELE”• SetupèExtensibilityèCustom Operation

Page 10: SAP LVM Integration with SAP BPA

Configuration  in  LVM• Characteristic ”Job Managed by BPA”used to indicate to LVM if the system is

managed by BPA – controls if the operation button is shown for the instance• ConfigurationèCharacteristics

Page 11: SAP LVM Integration with SAP BPA

Operation  in  LVM

• Once the configuration is complete, the custom operationgroup “BPA Queue Operation” and ”Custom Operation”selections will be visible for the chosen instance(s)

Page 12: SAP LVM Integration with SAP BPA

Host  Agent  Registered  Script

• The  configuration  in  LVM  and  BPA  are  hooked  together  with  the  host  agent  registered  script

• The  $[PARAM-­‐OPERATION]  can  be  seen  being  passed  as  the  first  parameter  to  the  Korn script,  indicating   the  custom  operation  being  requested  by  LVM

• The  queue  name  to  be  manipulated   is  automatically  calculated  by  the  script  based  on  the  SID  

File ContentClusterAdm.conf Name: LVM_CustomOperation_BPAQueueAdm

Command: /sap/Scripts/SetQueue.ksh $[PARAM-OPERATION]Workdir: $[DIR_HOME:#sapparam]Username: rootResultConverter: flat

Page 13: SAP LVM Integration with SAP BPA

Example  Script  – SetQueue.ksh

Sample Coding

################################################################################### # ## Perform operation (call web service) ## # ################################################################################### echo "[RESULT]: ${OPERATION} issued for queue ${QUEUE}" curl -L -S -H 'SOAPAction: "'${bpa_wsdl}'"' -H "Content-Type: application/xml; charset=utf-8" –H "Authorization:Basic ${bpa_user}" --data @- "${bpa_wurl}"<<EOF<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:red="Redwood.customer.redwood.com"> <soapenv:Header/> <soapenv:Body>

<red:SubmitJobParameters> <red:QN>${QUEUE}</red:QN> <red:QA>${OPERATION}</red:QA>

</red:SubmitJobParameters> </soapenv:Body></soapenv:Envelope>EOF

Page 14: SAP LVM Integration with SAP BPA

Reference  Material• Further  details  are  available  on  request  

– mailto:[email protected]

Page 15: SAP LVM Integration with SAP BPA

Thank-­‐you