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?

N,narantsetseg тэгш хэм
N,narantsetseg тэгш хэмN,narantsetseg тэгш хэм
N,narantsetseg тэгш хэмNNaraa
 
си хэлний хичээлүүд 11 р анги
си хэлний хичээлүүд 11 р ангиси хэлний хичээлүүд 11 р анги
си хэлний хичээлүүд 11 р ангиenhsaran_tsahim
 
Havtgain geometr
Havtgain geometrHavtgain geometr
Havtgain geometrMunguuzb
 
Amjiltand hureh altan durem
Amjiltand hureh altan duremAmjiltand hureh altan durem
Amjiltand hureh altan duremSoko_92
 
Функцэн цуваа
Функцэн цувааФункцэн цуваа
Функцэн цувааBattur
 
математик анализ хичээлийн лекц № 2
математик анализ хичээлийн лекц № 2математик анализ хичээлийн лекц № 2
математик анализ хичээлийн лекц № 2narangerelodon
 
10 р анги дэвших шалгалт
10 р анги дэвших шалгалт10 р анги дэвших шалгалт
10 р анги дэвших шалгалтnaraa_0714
 
101 8-himiin urbaliin hurd
101 8-himiin urbaliin hurd101 8-himiin urbaliin hurd
101 8-himiin urbaliin hurdXaz Bit
 
Дээд эрэмбийн дифференциал тэгшитгэл
Дээд эрэмбийн дифференциал тэгшитгэлДээд эрэмбийн дифференциал тэгшитгэл
Дээд эрэмбийн дифференциал тэгшитгэлBattur
 

Was ist angesagt? (20)

ш.функц
ш.функцш.функц
ш.функц
 
эрка 2011 цахим
эрка 2011 цахимэрка 2011 цахим
эрка 2011 цахим
 
N,narantsetseg тэгш хэм
N,narantsetseg тэгш хэмN,narantsetseg тэгш хэм
N,narantsetseg тэгш хэм
 
си хэлний хичээлүүд 11 р анги
си хэлний хичээлүүд 11 р ангиси хэлний хичээлүүд 11 р анги
си хэлний хичээлүүд 11 р анги
 
Havtgain geometr
Havtgain geometrHavtgain geometr
Havtgain geometr
 
Лекц 1 (Алгоритм Програмчлал - 1)
Лекц 1 (Алгоритм Програмчлал - 1)Лекц 1 (Алгоритм Програмчлал - 1)
Лекц 1 (Алгоритм Програмчлал - 1)
 
3
33
3
 
Amjiltand hureh altan durem
Amjiltand hureh altan duremAmjiltand hureh altan durem
Amjiltand hureh altan durem
 
Функцэн цуваа
Функцэн цувааФункцэн цуваа
Функцэн цуваа
 
MT102 Лекц 13
MT102 Лекц 13MT102 Лекц 13
MT102 Лекц 13
 
Лекц №11
Лекц №11Лекц №11
Лекц №11
 
Програмчлалын хэл
Програмчлалын хэлПрограмчлалын хэл
Програмчлалын хэл
 
массив
массивмассив
массив
 
математик анализ хичээлийн лекц № 2
математик анализ хичээлийн лекц № 2математик анализ хичээлийн лекц № 2
математик анализ хичээлийн лекц № 2
 
10 р анги дэвших шалгалт
10 р анги дэвших шалгалт10 р анги дэвших шалгалт
10 р анги дэвших шалгалт
 
Lection 3
Lection 3Lection 3
Lection 3
 
с++ хэл
с++ хэлс++ хэл
с++ хэл
 
Olonlog n6
Olonlog n6Olonlog n6
Olonlog n6
 
101 8-himiin urbaliin hurd
101 8-himiin urbaliin hurd101 8-himiin urbaliin hurd
101 8-himiin urbaliin hurd
 
Дээд эрэмбийн дифференциал тэгшитгэл
Дээд эрэмбийн дифференциал тэгшитгэлДээд эрэмбийн дифференциал тэгшитгэл
Дээд эрэмбийн дифференциал тэгшитгэл
 

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

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
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
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
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 productivityPrincipled Technologies
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
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 DevelopmentsTrustArc
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 

Kürzlich hochgeladen (20)

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
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
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
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
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
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
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 

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