SlideShare ist ein Scribd-Unternehmen logo
1 von 16
2014/3/3 Howard
 SAP
 是歐洲最大的軟體企業,世界上最大的商業應用、企業資源規劃(ERP)解決方案和獨立軟體

的供應商,在全球企業應用軟體的市場佔有率高達三成以上
 總部設於德國沃爾多夫。
 德文:Systeme, Anwendungen und Produkte in der Datenverarbeitung
 英文:systems applications and Products in Data Processing
 通常 SAP 指的是 SAP 提供的 ERP 系統 ( SAP R/3 )
 是一個基於客戶/服務機結構和開放系統的、集成的企業資源計劃系統 ( ERP )。
 其功能覆蓋企業的財務、後勤(工程設計、採購、庫存、生產銷售和質量等)和人力資源管理、

SAP業務工作流系統以及因特網應用鏈接功能等各個方面。

 SAP R/3 is architecture of :
 database
 functional module
 client graphical user interface (GUI)
 respective hardware components
 RFC(Remote Function Call,遠程功能調用)
 是SAP系統之間以及SAP與外部系統之間程序通信的基本接口技術,諸多其他更高層的SAP接

口和通信技術,如BAPI、ALE等,都是基於RFC實現的。
 SAP所提供的外部接口包括:
 程序通信接口(communication interface)、
 文件I/O接口(file I/O interface)
 數據接口(data interface)。

 RFC位於程序通信接口中,以實現外部程序對 SAP

系統內部數據的訪問
 SAP .NET Connector 3.0 is the current version of SAP's development environment

for communication between the Microsoft .NET platform and SAP systems.

 This connector supports RFCs and Web services. It allows you to write different

applications such as Web form, Windows form, or console applications in the
Microsoft Visual Studio.Net.

 With the SAP .NET Connector, you can use all common programming languages,

such as Visual Basic. NET, C#, or Managed C++.
 Using the SAP .NET Connector you can:
 Write .NET Windows and Web form applications that have access to SAP business objects

(BAPIs).

 Develop client applications for the SAP Server.
 Write RFC server applications that run in a .NET environment and can be installed

starting from the SAP system.
 Install SAPDotNetConnector3 nuget package

 The SAP .Net Connector is a set of libraries that handle connections and abstractions between

.Net Framework code and SAP BAPIs and RFCs.

 Add reference:System.Web
 Prepare Connection Settings








Name
AppServerHost
SystemNumber
Client
User
Password
Language
 Create RfcConfigParameters

public class RfcConfigParameters : Dictionary<string, string>

RfcConfigParameters configParams = new RfcConfigParameters();
configParams.Add(RfcConfigParameters.Name, opt.GetOptionArg("AppServerHost"));
configParams.Add(RfcConfigParameters.AppServerHost, opt.GetOptionArg("AppServerHost"));
configParams.Add(RfcConfigParameters.SystemNumber, opt.GetOptionArg("SystemNumber"));
configParams.Add(RfcConfigParameters.Client, opt.GetOptionArg("Client"));
configParams.Add(RfcConfigParameters.User, opt.GetOptionArg("User"));
configParams.Add(RfcConfigParameters.Password, opt.GetOptionArg("Password"));
configParams.Add(RfcConfigParameters.Language, opt.GetOptionArg("Language"));
 Create RfcDestination

RfcDestination rfcdest = RfcDestinationManager.GetDestination(configParams);
 Get RfcRepository

RfcRepository rfcRepo = rfcdest.Repository;
 Invoke RFC

IRfcFunction personoutoaFun = null;
personoutoaFun = rfcRepo.CreateFunction("ZOA_CALLSAP_RFC_NAME");
personoutoaFun.Invoke(rfcdest);
 Get RFC Table

IRfcTable personTable = personoutoaFun.GetTable(“OUTPUT_TABLE_NAME");
 Convert RFC Table To Data Table
 Wrapper library for the SAP .Net Connector 3.0.
 Adapts existing api to a more friendly form for the .Net developers.
 NSAPConnector tries to emulate an ADO.Net behavior and usage which is the most

common way of dealing with database data in the .Net world.

 NuGet
 NSAPConnector_x86
 NSAPConnector_x64
 有 input, output 資料夾
 填寫 Request XML 參數,放到 input 資料夾中,
 稍等幾分鐘,output 資料夾會產生 Response XML,即查詢結果
 http://www.thewireframecommunity.com/node/194
 http://zh.wikipedia.org/wiki/SAP_R/3
 http://www.sunchis.com/html/sap/2010/0504/153.html

 https://github.com/ion-sapoval/NSAPConnector/blob/master/README.md

Weitere ähnliche Inhalte

Was ist angesagt?

データで散らかった製造業界における最高の翻訳機 Node-RED
データで散らかった製造業界における最高の翻訳機 Node-REDデータで散らかった製造業界における最高の翻訳機 Node-RED
データで散らかった製造業界における最高の翻訳機 Node-REDnodered_ug_jp
 
CAD/BIM/GIS 융복합 활용 방향과 디지털 트윈
CAD/BIM/GIS 융복합 활용 방향과 디지털 트윈CAD/BIM/GIS 융복합 활용 방향과 디지털 트윈
CAD/BIM/GIS 융복합 활용 방향과 디지털 트윈SANGHEE SHIN
 
WebRTC と Native とそれから、それから。
WebRTC と Native とそれから、それから。 WebRTC と Native とそれから、それから。
WebRTC と Native とそれから、それから。 tnoho
 
OpenStreetMap pour les géomaticiens
OpenStreetMap pour les géomaticiensOpenStreetMap pour les géomaticiens
OpenStreetMap pour les géomaticiensAntoine Riche
 
ヘッドレスCMS調査 Strapiを試してみた
ヘッドレスCMS調査 Strapiを試してみたヘッドレスCMS調査 Strapiを試してみた
ヘッドレスCMS調査 Strapiを試してみたSosukeYamada
 
ビジネスルールの複雑さに立ち向かう
ビジネスルールの複雑さに立ち向かうビジネスルールの複雑さに立ち向かう
ビジネスルールの複雑さに立ち向かう増田 亨
 
系統程式 -- 為何撰寫此書
系統程式 -- 為何撰寫此書系統程式 -- 為何撰寫此書
系統程式 -- 為何撰寫此書鍾誠 陳鍾誠
 
並列データベースシステムの概念と原理
並列データベースシステムの概念と原理並列データベースシステムの概念と原理
並列データベースシステムの概念と原理Makoto Yui
 
Building fast interpreters in Rust
Building fast interpreters in RustBuilding fast interpreters in Rust
Building fast interpreters in RustIngvar Stepanyan
 
虚数は作れる!Swift で学ぶ複素数
虚数は作れる!Swift で学ぶ複素数虚数は作れる!Swift で学ぶ複素数
虚数は作れる!Swift で学ぶ複素数Taketo Sano
 
MySQLの文字コード事情 2017春版
MySQLの文字コード事情 2017春版MySQLの文字コード事情 2017春版
MySQLの文字コード事情 2017春版Masahiro Tomita
 
GLSLによるシェーダーアートことはじめ
GLSLによるシェーダーアートことはじめGLSLによるシェーダーアートことはじめ
GLSLによるシェーダーアートことはじめYoichi Hirata
 
ドメイン駆動設計の正しい歩き方
ドメイン駆動設計の正しい歩き方ドメイン駆動設計の正しい歩き方
ドメイン駆動設計の正しい歩き方増田 亨
 
リアルタイムサーバー 〜Erlang/OTPで作るPubSubサーバー〜
リアルタイムサーバー 〜Erlang/OTPで作るPubSubサーバー〜 リアルタイムサーバー 〜Erlang/OTPで作るPubSubサーバー〜
リアルタイムサーバー 〜Erlang/OTPで作るPubSubサーバー〜 Yugo Shimizu
 
Apple Watchを使い倒す 〜Watchから取れるデータとその活用法〜
Apple Watchを使い倒す 〜Watchから取れるデータとその活用法〜Apple Watchを使い倒す 〜Watchから取れるデータとその活用法〜
Apple Watchを使い倒す 〜Watchから取れるデータとその活用法〜Atsushi Otsubo
 
Protocol Buffers 入門
Protocol Buffers 入門Protocol Buffers 入門
Protocol Buffers 入門Yuichi Ito
 
自宅PCでinterFoamを使ってミルククラウンの計算ができるかやってみた
自宅PCでinterFoamを使ってミルククラウンの計算ができるかやってみた自宅PCでinterFoamを使ってミルククラウンの計算ができるかやってみた
自宅PCでinterFoamを使ってミルククラウンの計算ができるかやってみた守淑 田村
 
.NET 7 家族新成員: Microsoft Orleans v7
.NET 7 家族新成員:Microsoft Orleans v7.NET 7 家族新成員:Microsoft Orleans v7
.NET 7 家族新成員: Microsoft Orleans v7twMVC
 
オープンソースで構築するWebメタバース ~Mozilla Hubsで学ぶUX開発から運用コスト最小化まで #CEDEC2022
オープンソースで構築するWebメタバース ~Mozilla Hubsで学ぶUX開発から運用コスト最小化まで #CEDEC2022オープンソースで構築するWebメタバース ~Mozilla Hubsで学ぶUX開発から運用コスト最小化まで #CEDEC2022
オープンソースで構築するWebメタバース ~Mozilla Hubsで学ぶUX開発から運用コスト最小化まで #CEDEC2022GREE VR Studio Lab
 
整数列圧縮
整数列圧縮整数列圧縮
整数列圧縮JAVA DM
 

Was ist angesagt? (20)

データで散らかった製造業界における最高の翻訳機 Node-RED
データで散らかった製造業界における最高の翻訳機 Node-REDデータで散らかった製造業界における最高の翻訳機 Node-RED
データで散らかった製造業界における最高の翻訳機 Node-RED
 
CAD/BIM/GIS 융복합 활용 방향과 디지털 트윈
CAD/BIM/GIS 융복합 활용 방향과 디지털 트윈CAD/BIM/GIS 융복합 활용 방향과 디지털 트윈
CAD/BIM/GIS 융복합 활용 방향과 디지털 트윈
 
WebRTC と Native とそれから、それから。
WebRTC と Native とそれから、それから。 WebRTC と Native とそれから、それから。
WebRTC と Native とそれから、それから。
 
OpenStreetMap pour les géomaticiens
OpenStreetMap pour les géomaticiensOpenStreetMap pour les géomaticiens
OpenStreetMap pour les géomaticiens
 
ヘッドレスCMS調査 Strapiを試してみた
ヘッドレスCMS調査 Strapiを試してみたヘッドレスCMS調査 Strapiを試してみた
ヘッドレスCMS調査 Strapiを試してみた
 
ビジネスルールの複雑さに立ち向かう
ビジネスルールの複雑さに立ち向かうビジネスルールの複雑さに立ち向かう
ビジネスルールの複雑さに立ち向かう
 
系統程式 -- 為何撰寫此書
系統程式 -- 為何撰寫此書系統程式 -- 為何撰寫此書
系統程式 -- 為何撰寫此書
 
並列データベースシステムの概念と原理
並列データベースシステムの概念と原理並列データベースシステムの概念と原理
並列データベースシステムの概念と原理
 
Building fast interpreters in Rust
Building fast interpreters in RustBuilding fast interpreters in Rust
Building fast interpreters in Rust
 
虚数は作れる!Swift で学ぶ複素数
虚数は作れる!Swift で学ぶ複素数虚数は作れる!Swift で学ぶ複素数
虚数は作れる!Swift で学ぶ複素数
 
MySQLの文字コード事情 2017春版
MySQLの文字コード事情 2017春版MySQLの文字コード事情 2017春版
MySQLの文字コード事情 2017春版
 
GLSLによるシェーダーアートことはじめ
GLSLによるシェーダーアートことはじめGLSLによるシェーダーアートことはじめ
GLSLによるシェーダーアートことはじめ
 
ドメイン駆動設計の正しい歩き方
ドメイン駆動設計の正しい歩き方ドメイン駆動設計の正しい歩き方
ドメイン駆動設計の正しい歩き方
 
リアルタイムサーバー 〜Erlang/OTPで作るPubSubサーバー〜
リアルタイムサーバー 〜Erlang/OTPで作るPubSubサーバー〜 リアルタイムサーバー 〜Erlang/OTPで作るPubSubサーバー〜
リアルタイムサーバー 〜Erlang/OTPで作るPubSubサーバー〜
 
Apple Watchを使い倒す 〜Watchから取れるデータとその活用法〜
Apple Watchを使い倒す 〜Watchから取れるデータとその活用法〜Apple Watchを使い倒す 〜Watchから取れるデータとその活用法〜
Apple Watchを使い倒す 〜Watchから取れるデータとその活用法〜
 
Protocol Buffers 入門
Protocol Buffers 入門Protocol Buffers 入門
Protocol Buffers 入門
 
自宅PCでinterFoamを使ってミルククラウンの計算ができるかやってみた
自宅PCでinterFoamを使ってミルククラウンの計算ができるかやってみた自宅PCでinterFoamを使ってミルククラウンの計算ができるかやってみた
自宅PCでinterFoamを使ってミルククラウンの計算ができるかやってみた
 
.NET 7 家族新成員: Microsoft Orleans v7
.NET 7 家族新成員:Microsoft Orleans v7.NET 7 家族新成員:Microsoft Orleans v7
.NET 7 家族新成員: Microsoft Orleans v7
 
オープンソースで構築するWebメタバース ~Mozilla Hubsで学ぶUX開発から運用コスト最小化まで #CEDEC2022
オープンソースで構築するWebメタバース ~Mozilla Hubsで学ぶUX開発から運用コスト最小化まで #CEDEC2022オープンソースで構築するWebメタバース ~Mozilla Hubsで学ぶUX開発から運用コスト最小化まで #CEDEC2022
オープンソースで構築するWebメタバース ~Mozilla Hubsで学ぶUX開発から運用コスト最小化まで #CEDEC2022
 
整数列圧縮
整数列圧縮整数列圧縮
整数列圧縮
 

Andere mochten auch

SAP ABAP web services creation.
SAP ABAP web services creation. SAP ABAP web services creation.
SAP ABAP web services creation. Anjali Rao
 
Dr John Dee - Communications With Spirits - Free Ebook
Dr John Dee -  Communications With Spirits - Free EbookDr John Dee -  Communications With Spirits - Free Ebook
Dr John Dee - Communications With Spirits - Free EbookChuck Thompson
 
Chapter 08 abap dictionary objects views1
Chapter 08 abap dictionary objects views1Chapter 08 abap dictionary objects views1
Chapter 08 abap dictionary objects views1Kranthi Kumar
 
Chapter 01 user exits
Chapter 01 user exitsChapter 01 user exits
Chapter 01 user exitsKranthi Kumar
 
Enhancement framework the new way to enhance your abap systems
Enhancement framework   the new way to enhance your abap systemsEnhancement framework   the new way to enhance your abap systems
Enhancement framework the new way to enhance your abap systemsKranthi Kumar
 
Creation of a web service in sap
Creation of a web service in sapCreation of a web service in sap
Creation of a web service in saprajdongre
 
Ab1011 module pool programming
Ab1011   module pool programmingAb1011   module pool programming
Ab1011 module pool programmingSatheesh Kanna
 
Yash technologies interview questions and answers
Yash technologies interview questions and answersYash technologies interview questions and answers
Yash technologies interview questions and answersGarySpeed1234
 
Introducing enhancement framework.doc
Introducing enhancement framework.docIntroducing enhancement framework.doc
Introducing enhancement framework.docKranthi Kumar
 
Scenario on business transaction events
Scenario on business transaction eventsScenario on business transaction events
Scenario on business transaction eventsKranthi Kumar
 
SAP BADI Implementation Learning for Functional Consultant
SAP BADI Implementation Learning for Functional ConsultantSAP BADI Implementation Learning for Functional Consultant
SAP BADI Implementation Learning for Functional ConsultantAnkit Sharma
 
Smartforms interview questions with answers
Smartforms interview questions with answersSmartforms interview questions with answers
Smartforms interview questions with answersUttam Agrawal
 
Classical ABAP interactive report
Classical ABAP interactive reportClassical ABAP interactive report
Classical ABAP interactive reportRavi Kanudawala
 
User exit training
User exit trainingUser exit training
User exit trainingJen Ringel
 

Andere mochten auch (16)

SAP ABAP web services creation.
SAP ABAP web services creation. SAP ABAP web services creation.
SAP ABAP web services creation.
 
022006 zaidi badi
022006   zaidi badi022006   zaidi badi
022006 zaidi badi
 
Dr John Dee - Communications With Spirits - Free Ebook
Dr John Dee -  Communications With Spirits - Free EbookDr John Dee -  Communications With Spirits - Free Ebook
Dr John Dee - Communications With Spirits - Free Ebook
 
Chapter 08 abap dictionary objects views1
Chapter 08 abap dictionary objects views1Chapter 08 abap dictionary objects views1
Chapter 08 abap dictionary objects views1
 
Chapter 01 user exits
Chapter 01 user exitsChapter 01 user exits
Chapter 01 user exits
 
Enhancement framework the new way to enhance your abap systems
Enhancement framework   the new way to enhance your abap systemsEnhancement framework   the new way to enhance your abap systems
Enhancement framework the new way to enhance your abap systems
 
Creation of a web service in sap
Creation of a web service in sapCreation of a web service in sap
Creation of a web service in sap
 
Ab1011 module pool programming
Ab1011   module pool programmingAb1011   module pool programming
Ab1011 module pool programming
 
Yash technologies interview questions and answers
Yash technologies interview questions and answersYash technologies interview questions and answers
Yash technologies interview questions and answers
 
Introducing enhancement framework.doc
Introducing enhancement framework.docIntroducing enhancement framework.doc
Introducing enhancement framework.doc
 
Scenario on business transaction events
Scenario on business transaction eventsScenario on business transaction events
Scenario on business transaction events
 
SAP BADI Implementation Learning for Functional Consultant
SAP BADI Implementation Learning for Functional ConsultantSAP BADI Implementation Learning for Functional Consultant
SAP BADI Implementation Learning for Functional Consultant
 
Badi document
Badi documentBadi document
Badi document
 
Smartforms interview questions with answers
Smartforms interview questions with answersSmartforms interview questions with answers
Smartforms interview questions with answers
 
Classical ABAP interactive report
Classical ABAP interactive reportClassical ABAP interactive report
Classical ABAP interactive report
 
User exit training
User exit trainingUser exit training
User exit training
 

Ähnlich wie Dot Net 串接 SAP

Ähnlich wie Dot Net 串接 SAP (20)

Sap overview
Sap overviewSap overview
Sap overview
 
05. sap architecture final and os concepts (1)
05. sap architecture  final and os concepts (1)05. sap architecture  final and os concepts (1)
05. sap architecture final and os concepts (1)
 
Session 6 & 7
Session 6 & 7Session 6 & 7
Session 6 & 7
 
Sap
SapSap
Sap
 
Basics of sap
Basics of  sapBasics of  sap
Basics of sap
 
Introduction to sap
Introduction to sapIntroduction to sap
Introduction to sap
 
Sap overview
Sap overviewSap overview
Sap overview
 
sappm-171220062959.pdf
sappm-171220062959.pdfsappm-171220062959.pdf
sappm-171220062959.pdf
 
Lecture1 Introduction to SAP and Finance ReviewFIN419 .docx
Lecture1 Introduction to SAP and Finance ReviewFIN419 .docxLecture1 Introduction to SAP and Finance ReviewFIN419 .docx
Lecture1 Introduction to SAP and Finance ReviewFIN419 .docx
 
Lecture01 abap on line
Lecture01 abap on lineLecture01 abap on line
Lecture01 abap on line
 
Project Report on SAP
Project Report on SAPProject Report on SAP
Project Report on SAP
 
Introduction to Microsoft R Services
Introduction to Microsoft R ServicesIntroduction to Microsoft R Services
Introduction to Microsoft R Services
 
Erp sap r3 overview introduction
Erp  sap r3 overview introductionErp  sap r3 overview introduction
Erp sap r3 overview introduction
 
Software Archaeology with RDz and RAA
Software Archaeology with RDz and RAASoftware Archaeology with RDz and RAA
Software Archaeology with RDz and RAA
 
SAP Introduction
SAP IntroductionSAP Introduction
SAP Introduction
 
Sap- An Overview
Sap- An OverviewSap- An Overview
Sap- An Overview
 
Sap
SapSap
Sap
 
Enterprise Reporting for ERP Systems
Enterprise Reporting for ERP SystemsEnterprise Reporting for ERP Systems
Enterprise Reporting for ERP Systems
 
Proc r
Proc rProc r
Proc r
 
Wp sap integration kartik
Wp sap integration kartikWp sap integration kartik
Wp sap integration kartik
 

Mehr von LearningTech

Mehr von LearningTech (20)

vim
vimvim
vim
 
PostCss
PostCssPostCss
PostCss
 
ReactJs
ReactJsReactJs
ReactJs
 
Docker
DockerDocker
Docker
 
Semantic ui
Semantic uiSemantic ui
Semantic ui
 
node.js errors
node.js errorsnode.js errors
node.js errors
 
Process control nodejs
Process control nodejsProcess control nodejs
Process control nodejs
 
Expression tree
Expression treeExpression tree
Expression tree
 
SQL 效能調校
SQL 效能調校SQL 效能調校
SQL 效能調校
 
flexbox report
flexbox reportflexbox report
flexbox report
 
Vic weekly learning_20160504
Vic weekly learning_20160504Vic weekly learning_20160504
Vic weekly learning_20160504
 
Reflection &amp; activator
Reflection &amp; activatorReflection &amp; activator
Reflection &amp; activator
 
Peggy markdown
Peggy markdownPeggy markdown
Peggy markdown
 
Node child process
Node child processNode child process
Node child process
 
20160415ken.lee
20160415ken.lee20160415ken.lee
20160415ken.lee
 
Peggy elasticsearch應用
Peggy elasticsearch應用Peggy elasticsearch應用
Peggy elasticsearch應用
 
Expression tree
Expression treeExpression tree
Expression tree
 
Vic weekly learning_20160325
Vic weekly learning_20160325Vic weekly learning_20160325
Vic weekly learning_20160325
 
D3js learning tips
D3js learning tipsD3js learning tips
D3js learning tips
 
git command
git commandgit command
git command
 

Kürzlich hochgeladen

Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusZilliz
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 

Kürzlich hochgeladen (20)

Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 

Dot Net 串接 SAP

  • 2.  SAP  是歐洲最大的軟體企業,世界上最大的商業應用、企業資源規劃(ERP)解決方案和獨立軟體 的供應商,在全球企業應用軟體的市場佔有率高達三成以上  總部設於德國沃爾多夫。  德文:Systeme, Anwendungen und Produkte in der Datenverarbeitung  英文:systems applications and Products in Data Processing  通常 SAP 指的是 SAP 提供的 ERP 系統 ( SAP R/3 )
  • 3.  是一個基於客戶/服務機結構和開放系統的、集成的企業資源計劃系統 ( ERP )。  其功能覆蓋企業的財務、後勤(工程設計、採購、庫存、生產銷售和質量等)和人力資源管理、 SAP業務工作流系統以及因特網應用鏈接功能等各個方面。  SAP R/3 is architecture of :  database  functional module  client graphical user interface (GUI)  respective hardware components
  • 4.
  • 5.  RFC(Remote Function Call,遠程功能調用)  是SAP系統之間以及SAP與外部系統之間程序通信的基本接口技術,諸多其他更高層的SAP接 口和通信技術,如BAPI、ALE等,都是基於RFC實現的。  SAP所提供的外部接口包括:  程序通信接口(communication interface)、  文件I/O接口(file I/O interface)  數據接口(data interface)。  RFC位於程序通信接口中,以實現外部程序對 SAP 系統內部數據的訪問
  • 6.
  • 7.  SAP .NET Connector 3.0 is the current version of SAP's development environment for communication between the Microsoft .NET platform and SAP systems.  This connector supports RFCs and Web services. It allows you to write different applications such as Web form, Windows form, or console applications in the Microsoft Visual Studio.Net.  With the SAP .NET Connector, you can use all common programming languages, such as Visual Basic. NET, C#, or Managed C++.
  • 8.  Using the SAP .NET Connector you can:  Write .NET Windows and Web form applications that have access to SAP business objects (BAPIs).  Develop client applications for the SAP Server.  Write RFC server applications that run in a .NET environment and can be installed starting from the SAP system.
  • 9.
  • 10.  Install SAPDotNetConnector3 nuget package  The SAP .Net Connector is a set of libraries that handle connections and abstractions between .Net Framework code and SAP BAPIs and RFCs.  Add reference:System.Web  Prepare Connection Settings        Name AppServerHost SystemNumber Client User Password Language
  • 11.  Create RfcConfigParameters public class RfcConfigParameters : Dictionary<string, string> RfcConfigParameters configParams = new RfcConfigParameters(); configParams.Add(RfcConfigParameters.Name, opt.GetOptionArg("AppServerHost")); configParams.Add(RfcConfigParameters.AppServerHost, opt.GetOptionArg("AppServerHost")); configParams.Add(RfcConfigParameters.SystemNumber, opt.GetOptionArg("SystemNumber")); configParams.Add(RfcConfigParameters.Client, opt.GetOptionArg("Client")); configParams.Add(RfcConfigParameters.User, opt.GetOptionArg("User")); configParams.Add(RfcConfigParameters.Password, opt.GetOptionArg("Password")); configParams.Add(RfcConfigParameters.Language, opt.GetOptionArg("Language"));
  • 12.  Create RfcDestination RfcDestination rfcdest = RfcDestinationManager.GetDestination(configParams);  Get RfcRepository RfcRepository rfcRepo = rfcdest.Repository;  Invoke RFC IRfcFunction personoutoaFun = null; personoutoaFun = rfcRepo.CreateFunction("ZOA_CALLSAP_RFC_NAME"); personoutoaFun.Invoke(rfcdest);  Get RFC Table IRfcTable personTable = personoutoaFun.GetTable(“OUTPUT_TABLE_NAME");
  • 13.  Convert RFC Table To Data Table
  • 14.  Wrapper library for the SAP .Net Connector 3.0.  Adapts existing api to a more friendly form for the .Net developers.  NSAPConnector tries to emulate an ADO.Net behavior and usage which is the most common way of dealing with database data in the .Net world.  NuGet  NSAPConnector_x86  NSAPConnector_x64
  • 15.  有 input, output 資料夾  填寫 Request XML 參數,放到 input 資料夾中,  稍等幾分鐘,output 資料夾會產生 Response XML,即查詢結果
  • 16.  http://www.thewireframecommunity.com/node/194  http://zh.wikipedia.org/wiki/SAP_R/3  http://www.sunchis.com/html/sap/2010/0504/153.html  https://github.com/ion-sapoval/NSAPConnector/blob/master/README.md