SlideShare a Scribd company logo
SAP INTEGRATION
BY MULE ESB
OVERVIEW
-As one of the most widely used enterprise resource planning solutions on
the market, SAP plays a central role in the most critical business processes
for many companies. In order to fully automate and optimize these business
processes, companies need to integrate SAP with other applications within
their organization. This article discusses SAP integration with other
applications like Salesforce, e-POS, e-Commerce SharePoint etc. including
uses and benefits, challenges, and new approaches.
-An alternative approach to point-to-point quick fixes and expensive SOA
stacks is integrate SAP using an (Enterprise Service Bus).
-Mule’s SAP Enterprise Connector provides bidirectional communication and
works with existing SAP technologies such as:
Intermediate Documents (IDocs)
Business Application Programming Interfaces (BAPIs)
SAP Java Connector (JCo)
2
MULE ESB SAP CONNECTOR-Mule ESB supports SAP integration
through an SAP-certified Java
connector. With the Mule Enterprise
Gateway for SAP, integration between
applications with SAP ECC is faster
and easier.
-Mule SAP JCo Connector is a
transport developed to provide bi-
directional connectivity between SAP
and other applications or tools.
Using SAP JCo connector we can
easily invoke BAPIs (Business
Application Programming Interface)
and iDocs (Intermediate Document
Interface) in SAP. The SAP JCo
connector is built using SAP Java
Connector libraries provided by SAP.
3
MULE ESB SAP CONNECTOR
(CONT ...)
The connector leverages the SAP Java Connector (JCo) libraries, which enable
Mule applications to:
Send and receive iDocs over tRFC and qRFC
Transform all SAP objects (JCoFunction & IDocs) both to and from XML
Execute Business Application Programming Interface (BAPI) functions using
all of the following types of Remote Function Calls (RFC) like sRFC
(synchronous RFC), tRFC (transactional RFC) and qRFC (queued RFC)
Act as a JCo Server to be called as a BAPI over the following protocols like
sRFC, tRFC, qRFC
The SAP connector establishes connection to SAP system using JCO libraries
(provided by SAP). The Connector supports the option to configure SAP
connection details, connection pooling and max limit of active connections.
If the connector is used for outbound data from SAP, then ESB registers the
current Mule ESB instance as JCO destination/Gateway Server.
4
INTEGRATION FOR SAP BAPI FUNCTION
A simple BAPI performs a single
operation, such as retrieving a list of
Product master data. The adapter
supports simple BAPI calls by
representing each with a single
business object schema. Simple
BAPIs can be used for outbound or
inbound processing. You can specify
synchronous RFC processing or
asynchronous transactional RFC
(tRFC) processing when you
configure a module for a simple
BAPI. In addition, for outbound
processing, you can specify
asynchronous queued RFC (qRFC)
processing, in which BAPIs are
delivered to a predefined queue on
the SAP server.
5
INTEGRATION FOR SAP BAPI FUNCTION
(CONT ...)In synchronous RFC processing, the SAP server and the adapter must be
available during processing.
In outbound processing, the message flow sends a request, then waits for a
response from the SAP server.
In inbound processing, the SAP server sends a request through the adapter
to an endpoint and waits for a response from the adapter.
In asynchronous tRFC outbound processing, the adapter associates a
transaction ID with the function call to the SAP server. The adapter does not
wait for a response from the SAP server. If the delivery is unsuccessful, the
message flow can use the SAP transaction ID (TID) to make the request
again. The TID is a field in your message.
6
INTEGRATION FOR SAP BAPI FUNCTION
(CONT ...)In asynchronous tRFC inbound processing, the adapter does not have to be
available when the SAP server runs the function call. The function call is
placed on a list of functions to be invoked, and the call is attempted until it
is successful. To send function calls from a user-defined outbound queue
on the SAP server, you also specify asynchronous tRFC inbound processing.
In asynchronous qRFC outbound processing, the process is similar to
asynchronous tRFC outbound processing. A TID is associated with the
function call, and the adapter does not wait for a response from the SAP
server. In addition, the BAPIs are delivered to a predefined queue on the
SAP server. By sending BAPIs to the predefined queue, you can ensure the
order in which they are delivered.
7
INTEGRATION FOR SAP IDOCS
DOCUMENTSThe IDoc adapter is part of the
Integration Server. Essentially, the
IDoc adapter comprises two parts,
namely an adapter at the Integration
Server inbound channel, and an
adapter at the Integration Server
outbound channel.
The metadata for the IDoc types
involved is shared. The adapter at
the inbound channel is located
before the Integration Server pipeline
and calls this pipeline. The adapter
at the outbound channel, however, is
called by the pipeline, and can
therefore be regarded as part of the
pipeline.
8
INTEGRATION FOR SAP IDOCS DOCUMENTS
(CONT ...)
As part of ESB flow definition, a SAP inbound endpoint was used to
receive iDocs from SAP. A new destination (Program ID) was created in
SAP, the iDocs created in SAP were also published to the new
destination.
There are two processes in IDOC processing one is INBOUND PROCESS
(IDOC coming to the system and its handling at various stages) and the
other is OUTBOUND PROCESS (IDOC is send to other system. Outbound
data from SAP, in case of Price/VAT data from SAP, ESB receives iDocs
as JCO iDocDocumentList elements. Each iDocDocument contains iDoc
metadata and Segments which internally had the Segment data (Price or
VAT information). ESB can receive multiple iDocs at any time.
Inbound data to SAP, in case of Sales/Return Order from other
application to SAP, Mule ESB converted payload to iDoc XML format
using XML-to-iDoc transformer and posted the request to SAP.
9
BENEFITS
When SAP is properly integrated with other applications, companies are able
to streamline and fully automate their business processes. Companies
further benefit from SAP integration in the following ways:
Increased Business Alignment: The ability to create an integrated agile
software infrastructure for changing business needs
Better Business Efficiency: The ability to streamline, automate, and enable a
better tracking and visibility to business processes
Improved Business Visibility: Ability to integrate systems and to aggregate
data for a consistent and accurate view of business as a whole
Significant cost savings by using low cost Mule ESB Enterprise
10
BENEFITS (CONT ...)
Support for functional and non-functional requirements
Ability to generate reports in SAP based on regions and evaluate the sale
across the world
Improved customer interactions by automating direct communications
Elimination of the need for dual data entry, saving time and money
Fewer data redundancies and errors caused by manual data entry
Enhanced agility to act on new information quickly
11
MULE EXAMPLE
I will be publishing a new PPT to get more details on how the actually
end to end flow works with iDocs and Bapi.
12
13

More Related Content

PPT
Enterprise resources and mule
PPT
Mule ESB
PPTX
Mule esb
PPTX
Mule Esb
PPT
Enterprise resources and mule
PPTX
Features of Mule SAP Connector
PPTX
Cloud hub architecture
PPT
Anypoint platform
Enterprise resources and mule
Mule ESB
Mule esb
Mule Esb
Enterprise resources and mule
Features of Mule SAP Connector
Cloud hub architecture
Anypoint platform

What's hot (19)

PPT
2. muleesb
PPT
Mule ESB
ODP
Anypoint platform architecture and components
PPT
Mule anypoint connector dev kit
PPT
Service orchestration and soa
PPTX
Mule for beginners
PPTX
Mule fundamentals
PDF
Mule Sap Integration
PPTX
SOAP Service in Mule Esb
PPT
Mule anypoint b2 b
PPT
Mule architecture
PPT
Mule developing a cloud hub application
PPTX
Mule Concur Connector
PPTX
Mule in a nutshell
PPTX
Mule sap connector
PPTX
Mule esb
PPTX
Anypoint mq (mulesoft) introduction
PPTX
Mule esb made system integration easy
2. muleesb
Mule ESB
Anypoint platform architecture and components
Mule anypoint connector dev kit
Service orchestration and soa
Mule for beginners
Mule fundamentals
Mule Sap Integration
SOAP Service in Mule Esb
Mule anypoint b2 b
Mule architecture
Mule developing a cloud hub application
Mule Concur Connector
Mule in a nutshell
Mule sap connector
Mule esb
Anypoint mq (mulesoft) introduction
Mule esb made system integration easy
Ad

Viewers also liked (20)

PPTX
Mule tcat server - deploying applications
PPTX
Cloudhub fabric
PPTX
Mule with velocity
PPTX
MUnit matchers
PPTX
Mule message structure
PPTX
Configuring Anypoint Studio MQ connector
PPTX
Mule tcat server - Server profiles
PPTX
Mule agent notifications
PPTX
Cloud hub scalability and availability
PPTX
MUnit run and wait scope
PPTX
MuleSoft CloudHub FAQ
PPTX
Anypoint access management
PPTX
Mule testing
PPTX
Mule management console
PPTX
Rest security in mule
PPTX
Cloudhub and Mule
PPTX
Mule Security
PPTX
Mule esb mule message
PPTX
Using mule with web services
PPTX
Mule tcat server - Monitoring applications
Mule tcat server - deploying applications
Cloudhub fabric
Mule with velocity
MUnit matchers
Mule message structure
Configuring Anypoint Studio MQ connector
Mule tcat server - Server profiles
Mule agent notifications
Cloud hub scalability and availability
MUnit run and wait scope
MuleSoft CloudHub FAQ
Anypoint access management
Mule testing
Mule management console
Rest security in mule
Cloudhub and Mule
Mule Security
Mule esb mule message
Using mule with web services
Mule tcat server - Monitoring applications
Ad

Similar to Sap integration by mule esb (20)

PPTX
Integration with SAP using Mule ESB
PPTX
SAP Connector.
PDF
SAP Integration: Best Practices | MuleSoft
PPTX
SAP Integration with MuleSoft | MuleSoft Mysore Meetup #14
PDF
MuleSoft SAP Integration using IDocs
PDF
Integrating with SAP FIX and HL7
PPTX
MuleSoft London Community October 2017 - Hybrid and SAP Integration
PPTX
10th Brisbane MuleSoft Meetup Aug 2022
PPTX
Mule SAP connector
PPTX
PPTX
20140515 BTUG.be - Integration with SAP 101
PPTX
Choosing The Right ESB
PDF
Enterprise Integration with WSO2 ESB
PPTX
Accelerate integration with SAP using MuleSoft
PDF
Service Oriented Architecture (SOA) [2/5] : Enterprise Service Bus
PDF
A Buyers Guide to an Enterprise Service Bus (ESB)
PDF
Esb buyers guide_final
PPTX
How to Send IDOC to SAP using MuleSoft
PDF
Mule esb presentation
PPTX
Mule ESB - An Enterprise Service Bus
Integration with SAP using Mule ESB
SAP Connector.
SAP Integration: Best Practices | MuleSoft
SAP Integration with MuleSoft | MuleSoft Mysore Meetup #14
MuleSoft SAP Integration using IDocs
Integrating with SAP FIX and HL7
MuleSoft London Community October 2017 - Hybrid and SAP Integration
10th Brisbane MuleSoft Meetup Aug 2022
Mule SAP connector
20140515 BTUG.be - Integration with SAP 101
Choosing The Right ESB
Enterprise Integration with WSO2 ESB
Accelerate integration with SAP using MuleSoft
Service Oriented Architecture (SOA) [2/5] : Enterprise Service Bus
A Buyers Guide to an Enterprise Service Bus (ESB)
Esb buyers guide_final
How to Send IDOC to SAP using MuleSoft
Mule esb presentation
Mule ESB - An Enterprise Service Bus

More from Son Nguyen (20)

PPTX
Wsdl connector introduction
PPTX
Android intergrate with mule
PPTX
Mule flow overview
PPTX
Mule flow and filter
PPTX
Handle exceptions in mule
PPT
Spring security integrate with mule
PPTX
Message processor in mule
PPTX
Expression language in mule
PPTX
Mule with data weave
PPTX
Using spring scheduler mule
PPTX
Composite source in bound and out-bound
PPT
Batch job processing
PPTX
Using message enricher
PPT
Finance connectors with mule
PPT
Google drive connection
PPTX
Using properties in mule
PPT
Mule integrate with microsoft
PPTX
Jms queue
PPT
Anypoint connectors
PPTX
Mule esb basic introduction
Wsdl connector introduction
Android intergrate with mule
Mule flow overview
Mule flow and filter
Handle exceptions in mule
Spring security integrate with mule
Message processor in mule
Expression language in mule
Mule with data weave
Using spring scheduler mule
Composite source in bound and out-bound
Batch job processing
Using message enricher
Finance connectors with mule
Google drive connection
Using properties in mule
Mule integrate with microsoft
Jms queue
Anypoint connectors
Mule esb basic introduction

Recently uploaded (20)

PDF
Electronic commerce courselecture one. Pdf
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPT
Teaching material agriculture food technology
PDF
Encapsulation theory and applications.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Empathic Computing: Creating Shared Understanding
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Modernizing your data center with Dell and AMD
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Electronic commerce courselecture one. Pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Reach Out and Touch Someone: Haptics and Empathic Computing
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Teaching material agriculture food technology
Encapsulation theory and applications.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Per capita expenditure prediction using model stacking based on satellite ima...
“AI and Expert System Decision Support & Business Intelligence Systems”
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Empathic Computing: Creating Shared Understanding
The AUB Centre for AI in Media Proposal.docx
Review of recent advances in non-invasive hemoglobin estimation
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Unlocking AI with Model Context Protocol (MCP)
Mobile App Security Testing_ A Comprehensive Guide.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Modernizing your data center with Dell and AMD
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows

Sap integration by mule esb

  • 2. OVERVIEW -As one of the most widely used enterprise resource planning solutions on the market, SAP plays a central role in the most critical business processes for many companies. In order to fully automate and optimize these business processes, companies need to integrate SAP with other applications within their organization. This article discusses SAP integration with other applications like Salesforce, e-POS, e-Commerce SharePoint etc. including uses and benefits, challenges, and new approaches. -An alternative approach to point-to-point quick fixes and expensive SOA stacks is integrate SAP using an (Enterprise Service Bus). -Mule’s SAP Enterprise Connector provides bidirectional communication and works with existing SAP technologies such as: Intermediate Documents (IDocs) Business Application Programming Interfaces (BAPIs) SAP Java Connector (JCo) 2
  • 3. MULE ESB SAP CONNECTOR-Mule ESB supports SAP integration through an SAP-certified Java connector. With the Mule Enterprise Gateway for SAP, integration between applications with SAP ECC is faster and easier. -Mule SAP JCo Connector is a transport developed to provide bi- directional connectivity between SAP and other applications or tools. Using SAP JCo connector we can easily invoke BAPIs (Business Application Programming Interface) and iDocs (Intermediate Document Interface) in SAP. The SAP JCo connector is built using SAP Java Connector libraries provided by SAP. 3
  • 4. MULE ESB SAP CONNECTOR (CONT ...) The connector leverages the SAP Java Connector (JCo) libraries, which enable Mule applications to: Send and receive iDocs over tRFC and qRFC Transform all SAP objects (JCoFunction & IDocs) both to and from XML Execute Business Application Programming Interface (BAPI) functions using all of the following types of Remote Function Calls (RFC) like sRFC (synchronous RFC), tRFC (transactional RFC) and qRFC (queued RFC) Act as a JCo Server to be called as a BAPI over the following protocols like sRFC, tRFC, qRFC The SAP connector establishes connection to SAP system using JCO libraries (provided by SAP). The Connector supports the option to configure SAP connection details, connection pooling and max limit of active connections. If the connector is used for outbound data from SAP, then ESB registers the current Mule ESB instance as JCO destination/Gateway Server. 4
  • 5. INTEGRATION FOR SAP BAPI FUNCTION A simple BAPI performs a single operation, such as retrieving a list of Product master data. The adapter supports simple BAPI calls by representing each with a single business object schema. Simple BAPIs can be used for outbound or inbound processing. You can specify synchronous RFC processing or asynchronous transactional RFC (tRFC) processing when you configure a module for a simple BAPI. In addition, for outbound processing, you can specify asynchronous queued RFC (qRFC) processing, in which BAPIs are delivered to a predefined queue on the SAP server. 5
  • 6. INTEGRATION FOR SAP BAPI FUNCTION (CONT ...)In synchronous RFC processing, the SAP server and the adapter must be available during processing. In outbound processing, the message flow sends a request, then waits for a response from the SAP server. In inbound processing, the SAP server sends a request through the adapter to an endpoint and waits for a response from the adapter. In asynchronous tRFC outbound processing, the adapter associates a transaction ID with the function call to the SAP server. The adapter does not wait for a response from the SAP server. If the delivery is unsuccessful, the message flow can use the SAP transaction ID (TID) to make the request again. The TID is a field in your message. 6
  • 7. INTEGRATION FOR SAP BAPI FUNCTION (CONT ...)In asynchronous tRFC inbound processing, the adapter does not have to be available when the SAP server runs the function call. The function call is placed on a list of functions to be invoked, and the call is attempted until it is successful. To send function calls from a user-defined outbound queue on the SAP server, you also specify asynchronous tRFC inbound processing. In asynchronous qRFC outbound processing, the process is similar to asynchronous tRFC outbound processing. A TID is associated with the function call, and the adapter does not wait for a response from the SAP server. In addition, the BAPIs are delivered to a predefined queue on the SAP server. By sending BAPIs to the predefined queue, you can ensure the order in which they are delivered. 7
  • 8. INTEGRATION FOR SAP IDOCS DOCUMENTSThe IDoc adapter is part of the Integration Server. Essentially, the IDoc adapter comprises two parts, namely an adapter at the Integration Server inbound channel, and an adapter at the Integration Server outbound channel. The metadata for the IDoc types involved is shared. The adapter at the inbound channel is located before the Integration Server pipeline and calls this pipeline. The adapter at the outbound channel, however, is called by the pipeline, and can therefore be regarded as part of the pipeline. 8
  • 9. INTEGRATION FOR SAP IDOCS DOCUMENTS (CONT ...) As part of ESB flow definition, a SAP inbound endpoint was used to receive iDocs from SAP. A new destination (Program ID) was created in SAP, the iDocs created in SAP were also published to the new destination. There are two processes in IDOC processing one is INBOUND PROCESS (IDOC coming to the system and its handling at various stages) and the other is OUTBOUND PROCESS (IDOC is send to other system. Outbound data from SAP, in case of Price/VAT data from SAP, ESB receives iDocs as JCO iDocDocumentList elements. Each iDocDocument contains iDoc metadata and Segments which internally had the Segment data (Price or VAT information). ESB can receive multiple iDocs at any time. Inbound data to SAP, in case of Sales/Return Order from other application to SAP, Mule ESB converted payload to iDoc XML format using XML-to-iDoc transformer and posted the request to SAP. 9
  • 10. BENEFITS When SAP is properly integrated with other applications, companies are able to streamline and fully automate their business processes. Companies further benefit from SAP integration in the following ways: Increased Business Alignment: The ability to create an integrated agile software infrastructure for changing business needs Better Business Efficiency: The ability to streamline, automate, and enable a better tracking and visibility to business processes Improved Business Visibility: Ability to integrate systems and to aggregate data for a consistent and accurate view of business as a whole Significant cost savings by using low cost Mule ESB Enterprise 10
  • 11. BENEFITS (CONT ...) Support for functional and non-functional requirements Ability to generate reports in SAP based on regions and evaluate the sale across the world Improved customer interactions by automating direct communications Elimination of the need for dual data entry, saving time and money Fewer data redundancies and errors caused by manual data entry Enhanced agility to act on new information quickly 11
  • 12. MULE EXAMPLE I will be publishing a new PPT to get more details on how the actually end to end flow works with iDocs and Bapi. 12
  • 13. 13

Editor's Notes

  • #6: Follow Do's and Do Not'sCommon Profile PicFollow Company and Geography:HydAdd followers from peers and WW, MuleSoftHave a Note about yourselfAsk Questions in live BrightTalk Webinars using #tweetsTweet/Retweet Articles on Mule. WW blog, G+ and Forum Links Follow WW and Mulesoft....
  • #7: Follow Do's and Do Not'sCommon Profile PicFollow Company and Geography:HydAdd followers from peers and WW, MuleSoftHave a Note about yourselfAsk Questions in live BrightTalk Webinars using #tweetsTweet/Retweet Articles on Mule. WW blog, G+ and Forum Links Follow WW and Mulesoft....
  • #8: Follow Do's and Do Not'sCommon Profile PicFollow Company and Geography:HydAdd followers from peers and WW, MuleSoftHave a Note about yourselfAsk Questions in live BrightTalk Webinars using #tweetsTweet/Retweet Articles on Mule. WW blog, G+ and Forum Links Follow WW and Mulesoft....