Handling BusinessObjects Data Services
Once you have BusinessObjects Data Integrator jobs, a special syntax allows you to add parameters and variables. Note that this can also be achieved by duplicating the SAP_BObj_DataServicesJobRun process definition.
You specify standard parameters as follows:
DS_JP_AUDITING
- Enable auditing (true or false).DS_JP_DISTRIBUTION_LEVEL
- distribution_levelDS_JP_JOB_SERVER
- Job Server or Server Group.DS_JP_JOB_SYSTEM_PROFILE
- System profile used to run the job.DS_JP_RECOVERY
- Enable recovery (true or false).DS_JP_SAMPLING_RATE
- Monitor sample rate (# of rows).DS_JP_TRACING_TYPE
- tracing, accepts the following values:job_trace_all
job_trace_row
job_trace_session
job_trace_workflow
job_trace_dataflow
job_trace_transform
job_trace_usertransform
job_trace_userfunction
job_trace_abapquery
job_trace_sqlfunctions
job_trace_sqlreaders
job_trace_sqlloaders
job_trace_optimized_dataflow
job_trace_table
job_trace_script
job_trace_ascomm
job_trace_rfc_function
job_trace_table_reader
job_trace_idoc_file
job_trace_adapter
job_trace_communication
job_trace_parallel_execution
job_trace_audit
Custom parameters and global variables are set with the following syntax:
PAR_<parameter name>
- Data Integrator custom parameter nameVAR_<variable name>
- Data Integrator variable name
When you specify global variables and parameters:
- Don't omit the leading
$
sign(s) - Preserve the case
This allows you to further customize imported process definitions or create your own.
Example
Global variable $GroupNo
becomes VAR_$GroupNo
Substitution parameter $$ReportsGeocoder
becomes PAR_$$ReportsGeocoder
Using the SOAP Interface to Interact with Data Services
The following section describes how to use the SOAP interface of Data Services.
Logging on, Retrieving all Batch Job Names, Logging out
The URL to interact with the Data Services Web Service is usually <BO_System>/DataServices/servlet/webservices
, such as https://bo4.example.com:8080/DataServices/servlet/webservices
; this URL will be referred to as <BO_URL>
in this procedure. The CMS
name is usually the host name of the Data Services system, such as bo4.example.com
, for example.
- Create a SOAP process definition for retrieving the session ID:
- Navigate to Definitions > Processes, choose New Process Definition, select SOAP.
- Fill
DS_GetSessionID
in the Name field, see DS_GetSessionID Source below for the source. - On the Parameters tab:
- In the SOAP_URL parameter, fill
<BO_URL>
. - In the SOAP_Action parameter, fill
function=Logon
. - Add a parameter named
Username
. - Add a parameter named
Password
, select Password in the Parameter Options to hide the password in the user interface. - Add a parameter named
AuthType
. - Add a parameter named
CMS_System
, fill in the host name of the Data Services system. - Add a parameter named
SessionID
with Direction Out; this parameter will contain the SAP session ID. - Choose Save & Close.
- Create a SOAP process definition for retrieving the names of Batch jobs:
- Navigate to Definitions > Processes, choose New Process Definition, select SOAP.
- Fill
DS_GetBatchJobs
in the Name field, see DS_GetBatchJobs Source below for the source. - On the Parameters tab:
- In the SOAP_URL field, fill
<BO_URL>
. - In the SOAP_Action, fill
GET
. - Add a parameter named
Repo
with the default valueDS_REPO
. - Add a parameter named
SessionID
. - Add a parameter named
AllBatchJobs
. - On the Options tab, select PortableDocumentFormat in the Default Output Format field.
- Choose Save & Close.
- Create a SOAP process definition for logging out:
- Navigate to Definitions > Processes, choose New Process Definition, select SOAP.
- Fill
DS_Logoff
in the Name field, see DS_Logoff Source below for the source. - On the Parameters tab:
- In the SOAP_URL parameter, fill
<BO_URL>
. - In the SOAP_Action parameter, fill
function=Logout
. - Add a parameter named
SessionID
. - Choose Save & Close.
- Create the chain definition:
- Navigate to Definitions > Chains, choose New Chain Definition.
- In the Name field, fill
JC_DS_BatchJobs
. - On the Parameters tab:
- Add a parameter named
URL
, fill<BO_URL>
into the Default Value. - Add a parameter named
Username
. - Add a parameter named
Password
, select Password in the Parameter Options to hide the password in the user interface. - Add a parameter named
AuthType
, select List in the Simple Constraint Type field, fillsecEnterprise,secLDAP,secWinAD,secSAPR3
into the Simple Constraint Data field. - Add a parameter named
CMS_System
, fill in the host name of the Data Services system. - Add a parameter named
Repo
with the default valueDS_REPO
. - Add a parameter named
AllBatchJobs
, select List in the Simple Constraint Type field, filltrue,false
into the Simple Constraint Data field.
- Add a parameter named
- On the Diagram tab:
- Under Step 1, choose the first process and fill
DS_GetSessionID
into the Process Definition field. - Map parameters URL, Username, Password, AuthType, CMS_System to their respective chain parameters.
- Add another step by choosing the
[+]
to the right of Step 1. - Fill
DS_GetBatchJobs
into the Process Definition field of process 1 of Step 2. - Map parameter SessionID to parameter SessionID of DS_GetSessionID in the first step.
- Map parameter SOAP_URL to parameter URL on the chain.
- Map parameter AllBatchJobs to the respective parameter on the chain.
- Add another step by choosing the
[+]
to the right of Step 2. - Fill
DS_Logoff
into the Process Definition field of process 2 of Step 2. - Map parameter SOAP_URL to parameter URL on the chain.
- Map parameter SessionID to parameter SessionID of DS_GetSessionID in the first step.
- Under Step 1, choose the first process and fill
- Choose Save & Close.
DS_GetSessionID Source
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ser="http://www.businessobjects.com/DataServices/ServerX.xsd">
<soapenv:Header/>
<soapenv:Body>
<ser:LogonRequest>
<username>${Username}</username>
<password>${Password}</password>
<cms_system>${CMS_System}</cms_system>
<cms_authentication>AuthType</cms_authentication>
</ser:LogonRequest>
</soapenv:Body>
</soapenv:Envelope>
DS_GetBatchJobs Source
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ser="http://www.businessobjects.com/DataServices/ServerX.xsd">
<soapenv:Header>
<ser:SessionID>${SessionID}</ser:SessionID>
</soapenv:Header>
<soapenv:Body>
<ser:GetListOfBatchJobsRequest>
<repoName>${Repo}</repoName>
<allBatchJobs>${allBatchJobs}</allBatchJobs>
</ser:GetListOfBatchJobsRequest>
</soapenv:Body>
</soapenv:Envelope>
DS_Logoff Source
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ser="http://www.businessobjects.com/DataServices/ServerX.xsd">
<soapenv:Header>
<ser:SessionID>${SessionID}</ser:SessionID>
</soapenv:Header>
<soapenv:Body/>
</soapenv:Envelope>