12
IBM BPM Developing SAP Integration Service (AIS) using IBM Integration Designer (IID) SAP Integration : A ‘How-to’ Guide Contact Logan Vadivelu ([email protected] for any question AIS – Advanced Integration Service

Developing SAP Integration services in IBM BPM Advanced

Embed Size (px)

Citation preview

IBM BPM

Developing SAP Integration Service (AIS) using IBM Integration Designer (IID)

SAP Integration : A ‘How-to’ Guide

Contact Logan Vadivelu ([email protected] for any question

AIS – Advanced Integration Service

Topics

• Overview of WebSphere Adapter for SAP

– WebSphere Adapter supports all SAP Interface Types

• Developing SAP Integration as SCA Service in 3 Steps

• Development Walk thru (Step-by-Step) using IBM Integration Designer (IID)

– Step 1: Generate SAP Interface (e.g., BAPI) as SCA Service Component

– Step 2 a: Create Business Object Data Mapping in IID

– Step 2 b: Create Mediation flow to transform Complex SAP BO to simplifed BO and vice-versa

– Step 2 c: Create BPEL Microflow for Invoking SAP Interface and for any related business logic

– Step 3: Unit Test developed SAP Service Interface

• IBM BPM v8.5.x includes AIS Pattern for SAP that simplifies “Step 2a-c” by generating interface artifacts, incorporating ‘good integration practices’

– the developer needs to ‘fill-in’ specific parameter values, thus saving significant time for rapid development. Helps address developer skills gap

– helps minimize developer learning curve and ensures consistency

Outbound Config: Managed Connection Factory ConnectionSpec InteractionSpec Inbound Config: ActivationSpec

WebSphere Adapter for SAP (v7.5.0.3)

• Iterative EIS metadata discovery with zero coding efforts • SAP Adapter Wizard discovers SAP metadata iteratively with no coding

• Supports SCA programming model (Import/Export/Interface)

• Bi-direction integration support • Supports both inbound and outbound interaction with EIS.

• Security • Connection properties either through Managed Connection Factory properties

• Java Authentication and Authorization Services (JAAS) alias

provided by foundation classes

provided by adapter developer

provided by EIS

provided by user using IBM Integration Designer

provided by JCA spec

SAP specific subclasses

Adapter Foundation Classes

WebSphere Adapter for SAP

SAP Application (EIS)

CCI

sapjco.jar (From SAP)

Users , Systems & External Business Processes

SCA Application in IBM BPM

Request

Events

SCA EIS Import

SCA EIS Export

Inbound Listener interface

More detail in IBM Knowledge Center http://publib.boulder.ibm.com/infocenter/dmndhelp/v8r0m1/topic/com.ibm.wsadapters.jca.doc/welcome_wsa.html

WebSphere Adapter enables Rapid SAP Integration in “3 Steps” Simplifies integration and eliminates custom coding. Improves reusability

Step 1 – Generate SAP Interface as SCA Service – Generate Service Component for the identified SAP function

(BAPI, RFC, IDoc, Table, etc). No SAP skills needed • This is done using External Service Wizard in IBM Integration

Designer (IID) and using WebSphere Adapter for SAP.

Step 2 – Complete Data Mapping & Service Invocation – Develop Data mapping using graphical tool to handle data

transformation.

– Create BPEL flow for ‘Service invocation’ and business logic

– Exposed as Advance Integration Service (AIS) for invocation by a Service Activity in a Process Application (BPD)

Step 3 – Unit Test the Service in IBM Integration Designer – Validate Service functions as designed using Unit test facility

in IID by connecting to SAP system (Dev / Test).

The generated Service (Adv Integration Service) is ready for use in any Process Applications (BPDs).

– Reuse the Service for different interaction styles • such as Web service, JMS call or plain old Java call by wiring with

any other Service Component (SCA)

ALE Interface

(Outbound / Inbound)

BAPI Interface

(Outbound / Inbound)

Query Interface

(Outbound)

WebSphere Adapter for SAP Supported SAP Interfaces

Advance Event Processing Interface

(Inbound)

Available for IBM BPM Advanced Edition

SAP Connection Info & Interface Type selection

Step 1: Generate SAP Interface as SCA Service Component

1. Generate Service Component for the identified SAP function (BAPI, RFC, IDoc, Table, etc). No SAP skills is needed, only name of BAPI, Function Module or IDoc

• An External Service Wizard for SAP Adapter in IBM Integration Designer (IID) guides the developer through steps needed to

• ‘discover’, generate’ SAP function as a ‘Service Component’ based on SCA standard.

Tool: IBM Integration Designer External Service Wizard External Service

Wizard to ‘discover’, ‘generate’ Service Interface for BAPI,

IDoc

Adapter for SAP

Discover SAP BAPI (PO GetDetail1) Generated Service Interface for SAP BAPI

Step 1: Generate SAP Interface a …. continued

2. Integration Artifacts generated by IID External Service Wizard for SAP

– Interface to invoke BAPI, ALE or RFC

• An Export for SAP Inbound call

• An Import for SAP Outbound call

– Business Objects for BAPI, IDoc, SAP Table

Tool: IBM Integration Designer External Service Wizard

Generated ‘Service Interface’ for BAPI

(PO GetDetail)

Generated ’Business Objects’ representing

SAP BAPI (PO GetDetail)

Complex SAP BAPI Business Object (Parent & Child Objects) The calling application must populate data for all fields in the required format to post a transaction in SAP

SAP PO BAPI Method

SAP PO BAPI Parent Object

SAP PO BAPI Child Object Data Structure

Step 2 a: Create Data Mapping in IID

Tool: IBM Integration Designer – Business Object Map Editor

Complex SAP BAPI Data Structure – needs to be mapped from source BO data

Simple Business Object used in BPMN human workflows

Custom Data mapping

Step 2b: Create Mediation flow

Service Activity in BPD invokes SAP AIS

• SAP Bos (BAPI, Idoc) are complex • Use of mediations for converting BAPI BOs

to easily consumable BOs intended for business users

Tool: IBM Integration Designer – Mediation Flow Editor

Step 2 c: Create BPEL Microflow for Invoking SAP Interface and for any related business logic

Tool: IBM Integration Designer – BPEL Process Editor

Step 3: Unit Test SAP Service Interface

Tool: IBM Integration Designer – ITC (Integration Test Client)

Retrieved PO Detail

AIS Pattern for SAP Integration in v8.5.x – Generated Artifacts and Inputs

Inputs to the AIS Pattern Wizard

Artifacts Generated by the SAP Pattern Wizard

AIS Pattern Wizard

AIS Pattern for SAP Integration

The End