SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

Destacado

Chapter 08 abap dictionary objects views1
Chapter 08 abap dictionary objects views1Chapter 08 abap dictionary objects views1
Chapter 08 abap dictionary objects views1
Kranthi Kumar
 
Chapter 01 user exits
Chapter 01 user exitsChapter 01 user exits
Chapter 01 user exits
Kranthi 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 systems
Kranthi Kumar
 
Yash technologies interview questions and answers
Yash technologies interview questions and answersYash technologies interview questions and answers
Yash technologies interview questions and answers
GarySpeed1234
 
Introducing enhancement framework.doc
Introducing enhancement framework.docIntroducing enhancement framework.doc
Introducing enhancement framework.doc
Kranthi Kumar
 
Scenario on business transaction events
Scenario on business transaction eventsScenario on business transaction events
Scenario on business transaction events
Kranthi Kumar
 
User exit training
User exit trainingUser exit training
User exit training
Jen Ringel
 

Destacado (15)

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
 

Similar a Dot Net 串接 SAP

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)
Tarek Hossain Chowdhury
 
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
smile790243
 
Lecture01 abap on line
Lecture01 abap on lineLecture01 abap on line
Lecture01 abap on line
Milind Patil
 
Erp sap r3 overview introduction
Erp  sap r3 overview introductionErp  sap r3 overview introduction
Erp sap r3 overview introduction
Bunty Jain
 
SAP Introduction
SAP IntroductionSAP Introduction
SAP Introduction
Shaikh Zareen
 
Enterprise Reporting for ERP Systems
Enterprise Reporting for ERP SystemsEnterprise Reporting for ERP Systems
Enterprise Reporting for ERP Systems
Ambareesh Kulkarni
 
Wp sap integration kartik
Wp sap integration kartikWp sap integration kartik
Wp sap integration kartik
PRADEEP Reddy
 

Similar a 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
 

Más de 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
 

Último

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
panagenda
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
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
 
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
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
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...
 
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
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
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...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
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)
 
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
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
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
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 

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