SlideShare a Scribd company logo
Sample payloads for SAP
Integration via Azure Logic Apps
David Burg
November 2019
©Microsoft Corporation
Azure
Starting with the basic
Azure Logic Apps SAP Connector
Integration solution in the Azure hybrid cloud
https://azure.microsoft.com/en-
us/services/logic-apps/
REST-native, serverless, codeless, massively
scalable, several hundred connectors,
enterprise grade service.
Introduction to the connector for SAP
https://docs.microsoft.com/en-us/azure/logic-
apps/logic-apps-using-sap-connector
All the requests-responses are XML. Logic App
has native XML support and to Json
conversion
https://docs.microsoft.com/en-us/azure/logic-
apps/workflow-definition-language-functions-
reference#manipulation-functions-json--xml
©Microsoft Corporation
Azure
3 types of possible communication with SAP
RFC BAPI IDOC
Remote Function Call – SAP’s standard
interface to communicate between systems
https://en.wikipedia.org/wiki/Remote_Function
_Call
Business API – higher level access, manipulate
business objects via functions (API)
maintaining data consistency
https://en.wikipedia.org/wiki/Business_Applicat
ion_Programming_Interface
Intermediate Document – SAP’s format for
business transactions, e.g. purchase, invoice,
shipment, etc.
https://en.wikipedia.org/wiki/IDoc
Optional XML prolog
This is optional and the SAP Connector will work with or without it.
The SAP .NET Connector library on which the connector is built is Unicode native. Do send XML
documents encoded with UTF-8.
Read more about the prolog here:
https://www.w3schools.com/xml/xml_syntax.asp
RFCs
Hello world RFC call
RFC name
Namespace for all RFCs.
This example uses default
namespace (xmlns=…). You can
also assign and use namespace
aliases (xmlns:aliasXyz=…).
Simple input parameter
RFC with table parameter
This test RFC and its group of test RFCs
are available out of the box in any SAP
system.
The table parameter name
(TCPICDAT).
This specific row type contains a
single field named LINE. Table line
types may contain n fields.
The table line type is ABAPTEXT.
This element repeats for each row
in the table.
Table with anonymous field
This line type structure contains a single
anonymous field (i.e. the field has no
name assigned).
Character for hex code 002F is
reserved in SAP field name and
used here as escape character.
Note that complex types are
declared under separate
namespace. This new XML
namespace declaration set a
new default for the current
node and all its child elements.
Namespaces prefixes sample
All prefixes can be declared at once or any
amount of prefix may be declared as
attribute to any node.
‘RFC’ namespace is used for the
root and parameters of basic
type.
Note that complex types are
declared under separate
namespace ‘RFC types’.
Full samples as files (double click file to open)
BAPIs
Get list of Banks
<GETLIST
xmlns="http://Microsoft.LobServices.Sap/2007/03/Ba
pi/BUS1011/">
<BANK_CTRY>US</BANK_CTRY>
<MAX_ROWS>10</MAX_ROWS>
</GETLIST>
The BAPI method ‘Get list’.
When an object is selected in the designer,
the set of available methods is provided as
simple drop-down in the Logic App
designer.
The business object for bank (BUS1011).
The Call BAPI API on SAP connector
provides a searchable list in the Azure
Logic Apps Designer. Typing ‘bank’
keyword will filter to all business object
types for bank including this BUS1011.
Limits the number of items in the response
Create a Bank object
<CREATE
xmlns="http://Microsoft.LobServices.Sap/2007/03/Ba
pi/BUS1011/">
<BANK_ADDRESS>
<BANK_NAME
xmlns="http://Microsoft.LobServices.Sap/2007/03/Ty
pes/Rfc/">VERIZON BANK</BANK_NAME>
<REGION
xmlns="http://Microsoft.LobServices.Sap/2007/03/Ty
pes/Rfc/"></REGION>
<STREET
xmlns="http://Microsoft.LobServices.Sap/2007/03/Ty
pes/Rfc/">15</STREET>
<CITY
xmlns="http://Microsoft.LobServices.Sap/2007/03/Ty
pes/Rfc/">JODHPUR</CITY>
</BANK_ADDRESS>
<BANK_CTRY>US</BANK_CTRY>
<BANK_KEY>{0}</BANK_KEY>
</CREATE>
Create method
Same business object
Beware per system configured SAP
validation rule(s). For instance, the
key may have to be an ABA bank
identifier in the USA.
Get Bank details
<GETDETAIL
xmlns="http://Microsoft.LobServices.Sap/2007/03/Ba
pi/BUS1011/">
<BANKCOUNTRY>US</BANKCOUNTRY>
<BANKKEY>{0}</BANKKEY>
</GETDETAIL>
Update this key to a value
existing in your test SAP system.
Full sample as files (double click file to open)
IDOCs
Plain SAP IDOC XML
©Microsoft Corporation
Azure
Plain SAP IDOC XML
Generating the schema
Use SAP Logon GUI application and T-Code WE-60 to access
SAP Documentation and generate per IDOC type / per IDOC
extension XML schema (XSD file)
Usage
This format and payload is generic to SAP. Find explanation of
each field built-in SAP dialog and in SAP documentation as
well as many online public resources.
Full sample as files (double click file to open)
With ‘BizTalk’-style
namespaces
©Microsoft Corporation
Azure
‘BizTalk’s’ SAP IDOC XML (and Flat
File)
Generating the schema
Use Azure Logic Apps SAP Connector built-in schema
generation action and generate per IDOC type / per IDOC
extension XML schema (XSD file)
Usage
This format and payload is most convenient if you are
migrating from BizTalk. Learn more in BizTalk Server’s public
documentation at:
https://docs.microsoft.com/en-us/biztalk/adapters-and-
accelerators/adapter-sap/send-idocs-to-sap-using-biztalk-
server
Flat-file IDOC in XML message is also supported in Azure
Logic App SAP Connector.
Root node, namespaces declarations
http://schemas.microsoft.com/2003/10/Serialization/
http://Microsoft.LobServices.Sap/2007/03/Types/Idoc/Common/
Find detailed explanation about the IDOC URI in this blog post:
https://www.linkedin.com/pulse/logic-app-sap-connector-idoc-support-going-under-hood-david-burg/
The idocData node can be repeated to form a batch of IDOCs to send in a single call.
IDOC Data element
One Control Record
N Data Records
Control Record sample
SAP Official doc for the control record:
- click here -
Data Record plain Segments
Data Record segment name
This sample is using SAP’s format for dates.
Strong typed documents can use native XML types,
e.g.
9999-12-31
23:59:59
More at
https://www.w3schools.com/xml/schema_dtypes_date.
asp
Data Record Group Segments
Group parent node
N child nodes
Optional IDOC transport ID for tRFC
Last Data Record segment node
closing
IDOC Data node closing
GUID will form the tRFC TID for
duplicate transport detection.
This node can be omitted.
Recommend to set the tRFC TID
instead via connector API
parameter, see:
https://docs.microsoft.com/en-
us/connectors/sap/#send-idoc
Full samples as file (double click file to open)
©Microsoft Corporation
Azure
Resources
Free Azure Account Author’s blog
https://azure.microsoft.com/en-us/free/
Find this deck and more posts about Azure,
Logic Apps, SAP, XML, Json at my blog:
https://www.linkedin.com/in/daviburg/detail/re
cent-activity/posts/
© Copyright Microsoft Corporation. All rights reserved.

More Related Content

What's hot

Planning Your Migration to SharePoint Online #SPBiz60
Planning Your Migration to SharePoint Online #SPBiz60Planning Your Migration to SharePoint Online #SPBiz60
Planning Your Migration to SharePoint Online #SPBiz60
Christian Buckley
 
The fast track to sap s:4 hana
The fast track to sap s:4 hanaThe fast track to sap s:4 hana
The fast track to sap s:4 hana
Implement Consulting Group
 
Creating Event Driven Applications with Azure Event Grid
Creating Event Driven Applications with Azure Event GridCreating Event Driven Applications with Azure Event Grid
Creating Event Driven Applications with Azure Event Grid
Callon Campbell
 
Azure data factory
Azure data factoryAzure data factory
Azure data factory
David Giard
 
Azure Event Grid
Azure Event Grid Azure Event Grid
Azure Event Grid
Karthikeyan VK
 
DevOps for SAP CPI presentation
DevOps for SAP CPI presentationDevOps for SAP CPI presentation
DevOps for SAP CPI presentation
Daniel Graversen
 
Oracle SOA Suite in use – a practical experience report
Oracle SOA Suite in use – a practical experience reportOracle SOA Suite in use – a practical experience report
Oracle SOA Suite in use – a practical experience report
Guido Schmutz
 
Dealer management system on sap cloud platform
Dealer management system on sap cloud platformDealer management system on sap cloud platform
Dealer management system on sap cloud platform
Virendra Rai, PMP
 
Introduction to Azure Functions
Introduction to Azure FunctionsIntroduction to Azure Functions
Introduction to Azure Functions
Callon Campbell
 
Data Quality Patterns in the Cloud with ADF
Data Quality Patterns in the Cloud with ADFData Quality Patterns in the Cloud with ADF
Data Quality Patterns in the Cloud with ADF
Mark Kromer
 
Logic Apps and Azure Functions
Logic Apps and Azure FunctionsLogic Apps and Azure Functions
Logic Apps and Azure Functions
Daniel Toomey
 
Azure Data Factory
Azure Data FactoryAzure Data Factory
Azure Data Factory
HARIHARAN R
 
Azure Service Bus
Azure Service BusAzure Service Bus
Azure Service Bus
Josh Lane
 
Building Event Driven (Micro)services with Apache Kafka
Building Event Driven (Micro)services with Apache KafkaBuilding Event Driven (Micro)services with Apache Kafka
Building Event Driven (Micro)services with Apache Kafka
Guido Schmutz
 
Four Scenarios for an Integration Service Environment (ISE)
Four Scenarios for an Integration Service Environment (ISE)Four Scenarios for an Integration Service Environment (ISE)
Four Scenarios for an Integration Service Environment (ISE)
Daniel Toomey
 
SAP BASIS Daily Monitoring T - codes
SAP BASIS Daily Monitoring T - codesSAP BASIS Daily Monitoring T - codes
SAP BASIS Daily Monitoring T - codes
Jitendra Ahir
 
Data as a service
Data as a serviceData as a service
Data as a service
Khushbu Joshi
 
Azure sql database limitations
Azure sql database limitationsAzure sql database limitations
Azure sql database limitations
BRIJESH KUMAR
 
Sharepoint overview
Sharepoint overviewSharepoint overview
Sharepoint overview
Richard Christian
 
Build and run an sql data warehouse on sap hana
Build and run an sql data warehouse on sap hanaBuild and run an sql data warehouse on sap hana
Build and run an sql data warehouse on sap hana
Luc Vanrobays
 

What's hot (20)

Planning Your Migration to SharePoint Online #SPBiz60
Planning Your Migration to SharePoint Online #SPBiz60Planning Your Migration to SharePoint Online #SPBiz60
Planning Your Migration to SharePoint Online #SPBiz60
 
The fast track to sap s:4 hana
The fast track to sap s:4 hanaThe fast track to sap s:4 hana
The fast track to sap s:4 hana
 
Creating Event Driven Applications with Azure Event Grid
Creating Event Driven Applications with Azure Event GridCreating Event Driven Applications with Azure Event Grid
Creating Event Driven Applications with Azure Event Grid
 
Azure data factory
Azure data factoryAzure data factory
Azure data factory
 
Azure Event Grid
Azure Event Grid Azure Event Grid
Azure Event Grid
 
DevOps for SAP CPI presentation
DevOps for SAP CPI presentationDevOps for SAP CPI presentation
DevOps for SAP CPI presentation
 
Oracle SOA Suite in use – a practical experience report
Oracle SOA Suite in use – a practical experience reportOracle SOA Suite in use – a practical experience report
Oracle SOA Suite in use – a practical experience report
 
Dealer management system on sap cloud platform
Dealer management system on sap cloud platformDealer management system on sap cloud platform
Dealer management system on sap cloud platform
 
Introduction to Azure Functions
Introduction to Azure FunctionsIntroduction to Azure Functions
Introduction to Azure Functions
 
Data Quality Patterns in the Cloud with ADF
Data Quality Patterns in the Cloud with ADFData Quality Patterns in the Cloud with ADF
Data Quality Patterns in the Cloud with ADF
 
Logic Apps and Azure Functions
Logic Apps and Azure FunctionsLogic Apps and Azure Functions
Logic Apps and Azure Functions
 
Azure Data Factory
Azure Data FactoryAzure Data Factory
Azure Data Factory
 
Azure Service Bus
Azure Service BusAzure Service Bus
Azure Service Bus
 
Building Event Driven (Micro)services with Apache Kafka
Building Event Driven (Micro)services with Apache KafkaBuilding Event Driven (Micro)services with Apache Kafka
Building Event Driven (Micro)services with Apache Kafka
 
Four Scenarios for an Integration Service Environment (ISE)
Four Scenarios for an Integration Service Environment (ISE)Four Scenarios for an Integration Service Environment (ISE)
Four Scenarios for an Integration Service Environment (ISE)
 
SAP BASIS Daily Monitoring T - codes
SAP BASIS Daily Monitoring T - codesSAP BASIS Daily Monitoring T - codes
SAP BASIS Daily Monitoring T - codes
 
Data as a service
Data as a serviceData as a service
Data as a service
 
Azure sql database limitations
Azure sql database limitationsAzure sql database limitations
Azure sql database limitations
 
Sharepoint overview
Sharepoint overviewSharepoint overview
Sharepoint overview
 
Build and run an sql data warehouse on sap hana
Build and run an sql data warehouse on sap hanaBuild and run an sql data warehouse on sap hana
Build and run an sql data warehouse on sap hana
 

Similar to SAP integration sample payloads for Azure Logic Apps

Biz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data Sheet
Biz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data SheetBiz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data Sheet
Biz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data Sheetkaushiksin
 
Biz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data Sheet
Biz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data SheetBiz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data Sheet
Biz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data Sheetkaushiksin
 
Biz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data Sheet
Biz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data SheetBiz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data Sheet
Biz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data Sheetkaushiksin
 
Biz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data Sheet
Biz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data SheetBiz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data Sheet
Biz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data Sheetkaushiksin
 
Biztalk Server 2006
Biztalk Server 2006Biztalk Server 2006
Biztalk Server 2006
ipaciti
 
MOSS 2007 Deployment Fundamentals -Part2
MOSS 2007 Deployment Fundamentals -Part2MOSS 2007 Deployment Fundamentals -Part2
MOSS 2007 Deployment Fundamentals -Part2Information Technology
 
Mashups
MashupsMashups
Mashups
Johan Eltes
 
Solutions for bi-directional integration between Oracle RDBMS and Apache Kafka
Solutions for bi-directional integration between Oracle RDBMS and Apache KafkaSolutions for bi-directional integration between Oracle RDBMS and Apache Kafka
Solutions for bi-directional integration between Oracle RDBMS and Apache Kafka
Guido Schmutz
 
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
Lucas Jellema
 
Pivoting Spring XD to Spring Cloud Data Flow with Sabby Anandan
Pivoting Spring XD to Spring Cloud Data Flow with Sabby AnandanPivoting Spring XD to Spring Cloud Data Flow with Sabby Anandan
Pivoting Spring XD to Spring Cloud Data Flow with Sabby Anandan
PivotalOpenSourceHub
 
Serverless by Example: Building a Real-Time Chat System
Serverless by Example: Building a Real-Time Chat SystemServerless by Example: Building a Real-Time Chat System
Serverless by Example: Building a Real-Time Chat System
Amazon Web Services
 
Building social and RESTful frameworks
Building social and RESTful frameworksBuilding social and RESTful frameworks
Building social and RESTful frameworksbrendonschwartz
 
The Story of How an Oracle Classic Stronghold successfully embraced SOA
The Story of How an Oracle Classic Stronghold successfully embraced SOAThe Story of How an Oracle Classic Stronghold successfully embraced SOA
The Story of How an Oracle Classic Stronghold successfully embraced SOA
Lucas Jellema
 
Deep dive into the native multi model database ArangoDB
Deep dive into the native multi model database ArangoDBDeep dive into the native multi model database ArangoDB
Deep dive into the native multi model database ArangoDB
ArangoDB Database
 
Visual studio
Visual studioVisual studio
Visual studio
anupathak17jul
 
Introducing SOA and Oracle SOA Suite 11g for Database Professionals
Introducing SOA and Oracle SOA Suite 11g for Database ProfessionalsIntroducing SOA and Oracle SOA Suite 11g for Database Professionals
Introducing SOA and Oracle SOA Suite 11g for Database Professionals
Lucas Jellema
 
Introduction To Adobe Flex And Semantic Resources
Introduction To Adobe Flex And Semantic ResourcesIntroduction To Adobe Flex And Semantic Resources
Introduction To Adobe Flex And Semantic Resources
keith_sutton100
 
Onion Architecture with S#arp
Onion Architecture with S#arpOnion Architecture with S#arp
Onion Architecture with S#arp
Gary Pedretti
 

Similar to SAP integration sample payloads for Azure Logic Apps (20)

Biz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data Sheet
Biz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data SheetBiz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data Sheet
Biz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data Sheet
 
Biz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data Sheet
Biz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data SheetBiz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data Sheet
Biz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data Sheet
 
Biz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data Sheet
Biz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data SheetBiz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data Sheet
Biz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data Sheet
 
Biz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data Sheet
Biz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data SheetBiz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data Sheet
Biz Talk Adapter Pack 2 0 Oracle Ebs Adapter Data Sheet
 
Biztalk Server 2006
Biztalk Server 2006Biztalk Server 2006
Biztalk Server 2006
 
MOSS 2007 Deployment Fundamentals -Part2
MOSS 2007 Deployment Fundamentals -Part2MOSS 2007 Deployment Fundamentals -Part2
MOSS 2007 Deployment Fundamentals -Part2
 
Mashups
MashupsMashups
Mashups
 
Solutions for bi-directional integration between Oracle RDBMS and Apache Kafka
Solutions for bi-directional integration between Oracle RDBMS and Apache KafkaSolutions for bi-directional integration between Oracle RDBMS and Apache Kafka
Solutions for bi-directional integration between Oracle RDBMS and Apache Kafka
 
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
 
Pivoting Spring XD to Spring Cloud Data Flow with Sabby Anandan
Pivoting Spring XD to Spring Cloud Data Flow with Sabby AnandanPivoting Spring XD to Spring Cloud Data Flow with Sabby Anandan
Pivoting Spring XD to Spring Cloud Data Flow with Sabby Anandan
 
Project seminar
Project seminarProject seminar
Project seminar
 
Serverless by Example: Building a Real-Time Chat System
Serverless by Example: Building a Real-Time Chat SystemServerless by Example: Building a Real-Time Chat System
Serverless by Example: Building a Real-Time Chat System
 
Building social and RESTful frameworks
Building social and RESTful frameworksBuilding social and RESTful frameworks
Building social and RESTful frameworks
 
The Story of How an Oracle Classic Stronghold successfully embraced SOA
The Story of How an Oracle Classic Stronghold successfully embraced SOAThe Story of How an Oracle Classic Stronghold successfully embraced SOA
The Story of How an Oracle Classic Stronghold successfully embraced SOA
 
CouchDB
CouchDBCouchDB
CouchDB
 
Deep dive into the native multi model database ArangoDB
Deep dive into the native multi model database ArangoDBDeep dive into the native multi model database ArangoDB
Deep dive into the native multi model database ArangoDB
 
Visual studio
Visual studioVisual studio
Visual studio
 
Introducing SOA and Oracle SOA Suite 11g for Database Professionals
Introducing SOA and Oracle SOA Suite 11g for Database ProfessionalsIntroducing SOA and Oracle SOA Suite 11g for Database Professionals
Introducing SOA and Oracle SOA Suite 11g for Database Professionals
 
Introduction To Adobe Flex And Semantic Resources
Introduction To Adobe Flex And Semantic ResourcesIntroduction To Adobe Flex And Semantic Resources
Introduction To Adobe Flex And Semantic Resources
 
Onion Architecture with S#arp
Onion Architecture with S#arpOnion Architecture with S#arp
Onion Architecture with S#arp
 

Recently uploaded

ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
ShahidSultan24
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
Kamal Acharya
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
abh.arya
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
MuhammadTufail242431
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 

Recently uploaded (20)

ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 

SAP integration sample payloads for Azure Logic Apps

  • 1. Sample payloads for SAP Integration via Azure Logic Apps David Burg November 2019
  • 2. ©Microsoft Corporation Azure Starting with the basic Azure Logic Apps SAP Connector Integration solution in the Azure hybrid cloud https://azure.microsoft.com/en- us/services/logic-apps/ REST-native, serverless, codeless, massively scalable, several hundred connectors, enterprise grade service. Introduction to the connector for SAP https://docs.microsoft.com/en-us/azure/logic- apps/logic-apps-using-sap-connector All the requests-responses are XML. Logic App has native XML support and to Json conversion https://docs.microsoft.com/en-us/azure/logic- apps/workflow-definition-language-functions- reference#manipulation-functions-json--xml
  • 3. ©Microsoft Corporation Azure 3 types of possible communication with SAP RFC BAPI IDOC Remote Function Call – SAP’s standard interface to communicate between systems https://en.wikipedia.org/wiki/Remote_Function _Call Business API – higher level access, manipulate business objects via functions (API) maintaining data consistency https://en.wikipedia.org/wiki/Business_Applicat ion_Programming_Interface Intermediate Document – SAP’s format for business transactions, e.g. purchase, invoice, shipment, etc. https://en.wikipedia.org/wiki/IDoc
  • 4. Optional XML prolog This is optional and the SAP Connector will work with or without it. The SAP .NET Connector library on which the connector is built is Unicode native. Do send XML documents encoded with UTF-8. Read more about the prolog here: https://www.w3schools.com/xml/xml_syntax.asp
  • 6. Hello world RFC call RFC name Namespace for all RFCs. This example uses default namespace (xmlns=…). You can also assign and use namespace aliases (xmlns:aliasXyz=…). Simple input parameter
  • 7. RFC with table parameter This test RFC and its group of test RFCs are available out of the box in any SAP system. The table parameter name (TCPICDAT). This specific row type contains a single field named LINE. Table line types may contain n fields. The table line type is ABAPTEXT. This element repeats for each row in the table.
  • 8. Table with anonymous field This line type structure contains a single anonymous field (i.e. the field has no name assigned). Character for hex code 002F is reserved in SAP field name and used here as escape character. Note that complex types are declared under separate namespace. This new XML namespace declaration set a new default for the current node and all its child elements.
  • 9. Namespaces prefixes sample All prefixes can be declared at once or any amount of prefix may be declared as attribute to any node. ‘RFC’ namespace is used for the root and parameters of basic type. Note that complex types are declared under separate namespace ‘RFC types’.
  • 10. Full samples as files (double click file to open)
  • 11. BAPIs
  • 12. Get list of Banks <GETLIST xmlns="http://Microsoft.LobServices.Sap/2007/03/Ba pi/BUS1011/"> <BANK_CTRY>US</BANK_CTRY> <MAX_ROWS>10</MAX_ROWS> </GETLIST> The BAPI method ‘Get list’. When an object is selected in the designer, the set of available methods is provided as simple drop-down in the Logic App designer. The business object for bank (BUS1011). The Call BAPI API on SAP connector provides a searchable list in the Azure Logic Apps Designer. Typing ‘bank’ keyword will filter to all business object types for bank including this BUS1011. Limits the number of items in the response
  • 13. Create a Bank object <CREATE xmlns="http://Microsoft.LobServices.Sap/2007/03/Ba pi/BUS1011/"> <BANK_ADDRESS> <BANK_NAME xmlns="http://Microsoft.LobServices.Sap/2007/03/Ty pes/Rfc/">VERIZON BANK</BANK_NAME> <REGION xmlns="http://Microsoft.LobServices.Sap/2007/03/Ty pes/Rfc/"></REGION> <STREET xmlns="http://Microsoft.LobServices.Sap/2007/03/Ty pes/Rfc/">15</STREET> <CITY xmlns="http://Microsoft.LobServices.Sap/2007/03/Ty pes/Rfc/">JODHPUR</CITY> </BANK_ADDRESS> <BANK_CTRY>US</BANK_CTRY> <BANK_KEY>{0}</BANK_KEY> </CREATE> Create method Same business object Beware per system configured SAP validation rule(s). For instance, the key may have to be an ABA bank identifier in the USA.
  • 15. Full sample as files (double click file to open)
  • 16. IDOCs
  • 18. ©Microsoft Corporation Azure Plain SAP IDOC XML Generating the schema Use SAP Logon GUI application and T-Code WE-60 to access SAP Documentation and generate per IDOC type / per IDOC extension XML schema (XSD file) Usage This format and payload is generic to SAP. Find explanation of each field built-in SAP dialog and in SAP documentation as well as many online public resources.
  • 19. Full sample as files (double click file to open)
  • 21. ©Microsoft Corporation Azure ‘BizTalk’s’ SAP IDOC XML (and Flat File) Generating the schema Use Azure Logic Apps SAP Connector built-in schema generation action and generate per IDOC type / per IDOC extension XML schema (XSD file) Usage This format and payload is most convenient if you are migrating from BizTalk. Learn more in BizTalk Server’s public documentation at: https://docs.microsoft.com/en-us/biztalk/adapters-and- accelerators/adapter-sap/send-idocs-to-sap-using-biztalk- server Flat-file IDOC in XML message is also supported in Azure Logic App SAP Connector.
  • 22. Root node, namespaces declarations http://schemas.microsoft.com/2003/10/Serialization/ http://Microsoft.LobServices.Sap/2007/03/Types/Idoc/Common/ Find detailed explanation about the IDOC URI in this blog post: https://www.linkedin.com/pulse/logic-app-sap-connector-idoc-support-going-under-hood-david-burg/ The idocData node can be repeated to form a batch of IDOCs to send in a single call.
  • 23. IDOC Data element One Control Record N Data Records
  • 24. Control Record sample SAP Official doc for the control record: - click here -
  • 25. Data Record plain Segments Data Record segment name This sample is using SAP’s format for dates. Strong typed documents can use native XML types, e.g. 9999-12-31 23:59:59 More at https://www.w3schools.com/xml/schema_dtypes_date. asp
  • 26. Data Record Group Segments Group parent node N child nodes
  • 27. Optional IDOC transport ID for tRFC Last Data Record segment node closing IDOC Data node closing GUID will form the tRFC TID for duplicate transport detection. This node can be omitted. Recommend to set the tRFC TID instead via connector API parameter, see: https://docs.microsoft.com/en- us/connectors/sap/#send-idoc
  • 28. Full samples as file (double click file to open)
  • 29. ©Microsoft Corporation Azure Resources Free Azure Account Author’s blog https://azure.microsoft.com/en-us/free/ Find this deck and more posts about Azure, Logic Apps, SAP, XML, Json at my blog: https://www.linkedin.com/in/daviburg/detail/re cent-activity/posts/
  • 30. © Copyright Microsoft Corporation. All rights reserved.