CN102404356A - Long-distance function call transmission adapter and data reading method thereof - Google Patents

Long-distance function call transmission adapter and data reading method thereof Download PDF

Info

Publication number
CN102404356A
CN102404356A CN201010278515XA CN201010278515A CN102404356A CN 102404356 A CN102404356 A CN 102404356A CN 201010278515X A CN201010278515X A CN 201010278515XA CN 201010278515 A CN201010278515 A CN 201010278515A CN 102404356 A CN102404356 A CN 102404356A
Authority
CN
China
Prior art keywords
transmission adapter
ftp
data
server
function calls
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201010278515XA
Other languages
Chinese (zh)
Other versions
CN102404356B (en
Inventor
王台弘
黄玉玺
刘柏廷
甘淑慧
简吉廷
梁文广
姚进
罗伟
何宝儒
林晟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jetta Software (shenzhen) Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Jetta Software (shenzhen) Co Ltd
Hon Hai Precision Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jetta Software (shenzhen) Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Jetta Software (shenzhen) Co Ltd
Priority to CN201010278515.XA priority Critical patent/CN102404356B/en
Publication of CN102404356A publication Critical patent/CN102404356A/en
Application granted granted Critical
Publication of CN102404356B publication Critical patent/CN102404356B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

Provided are a long-distance function call transmission adapter and a data reading method thereof. The method comprises the steps of reading original payload input by a systems, applications and products in data processing (SAP) system to a request for comments (RFC) transmission adapter; analyzing the read original payload to obtain a file transfer protocol (FTP) route of the data and a text file name of the data, connecting the FTP route and the text file name obtained by analysis to a FTP server and reading a text file in the FTP server; converting the read text file into the file in extensive makeup language (XML) format; and regarding the converted file in the XML format and the content of the original payload as new payload to replace the original payload and providing the new payload to a process intelligence (PI) server. By means of the long-distance function call transmission adapter and the data reading method of the long-distance function call transmission adapter, the transmission adapter can dynamically read the text file.

Description

The method of remote function calls transmission adapter and reading of data thereof
Technical field
The present invention relates to the method for a kind of remote function calls transmission adapter and reading of data thereof.
Background technology
At present; Enterprises all has application system separately; For example, factory's finished product management system, former material management system, purchasing system, bonded storehouse system etc. are in the time of in each application system that the data in the SAP is sent to enterprises; Be that this flow process is a RFC Outbound flow process with in identical data transmission to a plurality of application systems or the application system group.RFC (remote function call remote function calls) is the interface protocol of a SAP, has simplified the programing work of communication between system to a great extent, allows to call and carry out a remote system, or the pre-defined function on the identical systems.Wherein, in this RFC Outbound flow process, require when carrying out RFC; Dynamically the position at typing data place refers to FTP (file transfer protocol, FTP) path here; Carry out RFC then, this RFC reads data automatically according to the position of data and sends to flow process and integrates (PI, process integration) server; Also be about to this FTP path and input among the standard RFC Sender Adapter (RFC transmission adapter) in the PI server, but this standard RFC adapter in the PI server can only receive the parameter (comprising input and table) of RFC input, is translated into XML (extensible markup language as parameter; Extend markup language) file but can not (be actually the FTP address, port through the parameter of this input; User name; Password, file name etc.), come to read dynamically ftp file.
Summary of the invention
In view of above content, be necessary to provide the method for a kind of remote function calls transmission adapter and reading of data thereof, let the remote function calls transmission adapter can read ftp file dynamically.
A kind of remote function calls transmission adapter; Be arranged in flow process and integrate the PI server; This PI server is connected with SAP system and goal systems communication respectively, and the data that described SAP system will send goal systems to leave on the ftp server with text file format.This far call transmission adapter comprises: read module; Be used to read the original payload payload that the SAP system inputs to the remote function calls transmission adapter; The content of said original payload is made up of the parameter of the data that will be sent to goal systems, and this parameter comprises FTP address, port, user name, password and the file name of store data; Parsing module is used to resolve the original payload that is read, with the FTP path and the text title of the data that obtain being sent to goal systems; Calling module, the FTP path that is used to utilize parsing to obtain is connected to ftp server, and reads the text in the ftp server according to the text title that parsing obtains; Said calling module also is used for the text that is read is converted into the file of expandable mark language XML form; Processing module is used for parameter with the file of the XML form after transforming and input remote function calls transmission adapter as new payload, replaces original payload, to offer the PI server.
A kind of method of remote function calls transmission adapter reading of data; Being applied to flow process integrates in the PI server; This PI server is connected with SAP system and goal systems communication respectively, and the data that described SAP system will send goal systems to leave on the ftp server with text TXT form.The method comprising the steps of: a. reads the original payload payload that the SAP system inputs to the remote function calls transmission adapter; The content of said original payload is made up of the parameter of the data that will be sent to goal systems, and this parameter comprises FTP address, port, user name, password and the file name of store data; B. resolve the original payload read, with the FTP path and the text title of the data that obtain being sent to goal systems; C. the FTP path that utilizes parsing to obtain is connected to ftp server; D. the text title that obtains according to parsing reads the text in the ftp server; E. the text that is read is converted into the file of expandable mark language XML form; The parameter of the file of the XML form after f. will transforming and input remote function calls transmission adapter is replaced original payload, to offer the PI server as new payload.
Compared to prior art, the method for said remote function calls transmission adapter and reading of data thereof lets the remote function calls transmission adapter (be actually the FTP address through the parameter of input; Port; User name, password, file name etc.); Read the text on the ftp server, strengthened the function of transmission adapter.
Description of drawings
Fig. 1 is the Organization Chart of remote function calls transmission adapter of the present invention preferred embodiment.
Fig. 2 is the functional block diagram of remote function calls transmission adapter of the present invention system preferred embodiment.
Fig. 3 is the flow chart of the method preferred embodiment of remote function calls transmission adapter reading of data of the present invention.
The main element symbol description
The SAP system 1
The Report program 10
The RFC interface 11
The PI server 2
The RFC transmission adapter 21
Function library 22
Goal systems 3
Ftp server 4
Calling module 210
Read module 212
Parsing module 214
Processing module 216
Embodiment
As shown in Figure 1, be the Organization Chart of the preferred embodiment of RFC transmission adapter of the present invention.Described remote function calls transmission adapter (remote function call sender adapter; RFCSender Adapter) 21 (hereinafter to be referred as " RFC transmission adapters 21 ") run in PI (flow process is integrated, the process integration) server 2.Described PI server is the middleware between SAP (systems applications and products in data processing) system 1 and the goal systems 3.Can be through PI server 2 with in the transfer of data in the SAP system 1 to the goal systems 3; PI server 2 can be integrated with the product (software) in the SAP system 1, also can interconnect with the product (software) in the goal systems 3 (the third party system outside PI server 2 and the SAP system 1).Said goal systems 3 comprises a plurality of application systems of enterprises, for example, and factory's finished product management system, former material management system, bonded storehouse system etc.
Described SAP system 1 has comprised Report program 10 and RFC (remote function call, remote function calls) interface 11.Described SAP system 1 reads the parameter of the data that will be sent to goal systems 3 of user's input through Report program 10; In fact the parameter of these data comprises FTP address, port, user name, password and the file name etc. of data, and reads the data corresponding to above-mentioned parameter that will be sent to goal systems 3.Described SAP system 1 is according to the parameter (for example FTP address etc.) of described data, with data that this read with the format of text document (TXT) on ftp server 4.Described RFC interface 11 is the communication interface between PI server 2 and the SAP system 1.This RFC interface 11 calls in described SAP system 1, can the said parameter that is transferred to the data of goal systems 3 be inputed to the RFC transmission adapter 21 in the PI server 2.Described RFC transmission adapter 21 is read the parameter of the data of input into, and PI server 2 carries out follow-up integration flow process.The parameter of data that RFC interface 11 will transfer to goal systems 3 is called as original Payload (payload) by said in the present invention SAP system 1; The form of this original payload is XML (extensible markup language, an extend markup language) form.Content among this original payload is made up of the parameter that inputs to RFC transmission adapter 21.
Said RFC transmission adapter 21 comprises function library 22.Stored a plurality of types in this function library 22, comprised that the class, the TXT that realize interface change into XML class and FTP instrument class etc.The class of said realization interface is used for providing interface that RFC transmission adapter 21 each modules can be intercomed with RFC transmission adapter 21 mutually, can dynamically read the function of the text document on the ftp server 4 to realize this RFC transmission adapter 21.Described TXT changes into the file that the XML class is used for the file of TXT form is converted into the XML form.Described FTP instrument class is used to connect ftp server 4, and reads the content in the ftp server 4 Chinese version files with UTF8 coded system (form of a kind of storage and transmission).
As shown in Figure 2, be the Organization Chart of transmission adapter preferred embodiment of the present invention.Described RFC transmission adapter 21 also comprises calling module 210, read module 212, parsing module 214 and processing module 216.
Described calling module 210 is used for the class that interface is realized in call function storehouse 22; Provide interface to make that each module can intercom with RFC transmission adapter 21 mutually in the RFC transmission adapter 21, can dynamically read the function of ftp file to realize this RFC transmission adapter 21.
Described read module 212 is used to read the original payload that SAP system 1 imports the XML form of RFC transmission adapter 21, and the content of original payload is made up of the parameter of input RFC transmission adapter 21.This initial parameter comprises the parameters such as FTP address, port, user name, password and file name of store data.
Described parsing module 214 is used to resolve the original payload of the XML form that is read, with the FTP path and the text title of the data that obtain transferring to goal systems 3.
Described calling module 210 also is used for the FTP instrument class in call function storehouse 22, is connected to ftp server 4 with the FTP path that utilizes parsing to obtain, and reads the text in the ftp server 4 according to the text title that parsing obtains.
Described calling module 210 also is used for calling TXT from function library 22 and changes into the XML class, the text that is read is converted into the file of XML form.
Described processing module 216 is used for parameter (being the content of original payload) with the file of the XML form after transforming and input RFC transmission adapter 21 as new payload; Replace original payload, continue follow-up integration flow process to offer PI server 2.
Need to prove that in other embodiments, above-mentioned each module and function library also can be hung on this RFC transmission adapter 21 outward, realize dynamically reading the text document on the ftp server 4.
As shown in Figure 3, be the flow chart of the method preferred embodiment of remote function calls transmission adapter reading of data of the present invention.
Step S10; The class of the realization interface in the described calling module 210 call function storehouses 22; Provide interface to make that each module can intercom with RFC transmission adapter 21 mutually in the RFC transmission adapter 21, can dynamically read the function of the text document on the ftp server 4 to realize this RFC transmission adapter 21.
Step S11, described read module 212 read the original payload of the XML form of SAP system 1 input RFC transmission adapter 21, and the content of original payload is made up of the parameter of input RFC transmission adapter 21.This initial parameter comprises the parameters such as FTP address, port, user name, password and file name of store data.
Step S12, described parsing module 214 is resolved the original payload of the XML form that is read, with the FTP path and the text title of the data that obtain transferring to goal systems 3.
Step S13, described calling module 210 calls FTP instrument class from function library 22, and the FTP path that utilizes parsing to obtain is connected to ftp server 4.
Step S14, according to the text title that parsing obtains, described calling module 210 reads the text TXT in the ftp server 4.
Step S15, described calling module 210 calls from function library 22 TXT is converted into the XML class, the text that is read is converted into the file of XML form.
Step S16; The parameter (being the content among the original payload) of the file of the XML form after described processing module 216 will transform and input RFC transmission adapter 21 is as new payload; Replace original payload, continue follow-up integration flow process to offer PI server 2.
Above execution mode is only unrestricted in order to technical scheme of the present invention to be described; Although the present invention is specified with reference to above preferred embodiments; Those of ordinary skill in the art should be appreciated that and can make amendment or be equal to spirit and the scope that replacement should not break away from technical scheme of the present invention technical scheme of the present invention.

Claims (10)

1. the method for a remote function calls transmission adapter reading of data; Being applied to flow process integrates in the PI server; This PI server is connected with SAP system and goal systems communication respectively; The data that described SAP system will send goal systems to leave on the ftp server with text TXT form, it is characterized in that the method comprising the steps of:
A. read the original payload payload of SAP system input remote function calls transmission adapter; The content of said original payload is made up of the parameter of the data that will be sent to goal systems, and this parameter comprises FTP address, port, user name, password and the file name of store data;
B. resolve the original payload read, with the FTP path and the text title of the data that obtain being sent to goal systems;
C. the FTP path that utilizes parsing to obtain is connected to ftp server;
D. the text title that obtains according to parsing reads the text in the ftp server;
E. the text that is read is converted into the file of expandable mark language XML form;
The parameter of the file of the XML form after f. will transforming and input remote function calls transmission adapter is replaced original payload, to offer the PI server as new payload.
2. the method for remote function calls transmission adapter reading of data as claimed in claim 1; It is characterized in that; This remote function calls transmission adapter comprises function library, and described function library comprises that the class, the TXT that realize interface are converted into XML class and FTP instrument class.
3. the method for remote function calls transmission adapter reading of data as claimed in claim 2 is characterized in that, also comprises step before the step a:
The class of the realization interface in the call function storehouse is to realize that this remote function calls transmission adapter dynamically reads the text document in the ftp server.
4. the method for remote function calls transmission adapter reading of data as claimed in claim 2 is characterized in that, between step b and step c, also comprises step:
Call FTP instrument class, said FTP instrument class is used to connect ftp server, and reads the content of ftp server Chinese version file with the UTF8 coded system.
5. the method for remote function calls transmission adapter reading of data as claimed in claim 2 is characterized in that, between steps d and step e, also comprises step:
Call TXT and be converted into the XML class, said TXT is converted into the file that the XML class is used for the file of TXT form is converted into the XML form.
6. remote function calls transmission adapter; Be arranged in flow process and integrate the PI server; This PI server is connected with SAP system and goal systems communication respectively; The data that described SAP system will send goal systems to leave on the ftp server with text file format, it is characterized in that this far call transmission adapter comprises:
Read module; Be used to read the original payload payload that the SAP system inputs to the remote function calls transmission adapter; The content of said original payload is made up of the parameter of the data that will be sent to goal systems, and this parameter comprises FTP address, port, user name, password and the file name of store data;
Parsing module is used to resolve the original payload that is read, with the FTP path and the text title of the data that obtain being sent to goal systems;
Calling module, the FTP path that is used to utilize parsing to obtain is connected to ftp server, and reads the text in the ftp server according to the text title that parsing obtains;
Said calling module also is used for the text that is read is converted into the file of expandable mark language XML form;
Processing module is used for parameter with the file of the XML form after transforming and input remote function calls transmission adapter as new payload, replaces original payload, to offer the PI server.
7. remote function calls transmission adapter as claimed in claim 6 is characterized in that, this remote function calls transmission adapter comprises function library, and described function library comprises that the class, the TXT that realize interface are converted into XML class and FTP instrument class.
8. remote function calls transmission adapter as claimed in claim 7; It is characterized in that, described calling module also be used for the call function storehouse the realization interface the class to provide interface that each module in the remote function calls transmission adapter can be intercomed with this remote function calls transmission adapter mutually.
9. remote function calls transmission adapter as claimed in claim 7; It is characterized in that; Described calling module also is used to call FTP instrument class, and said FTP instrument class is used to connect ftp server, and reads the content of ftp server Chinese version file with the UTF8 coded system.
10. remote function calls transmission adapter as claimed in claim 7 is characterized in that, described calling module also is used to call TXT and is converted into the XML class, and said TXT is converted into the file that the XML class is used for the file of TXT form is converted into the XML form.
CN201010278515.XA 2010-09-10 2010-09-10 Long-distance function call transmission adapter and data reading method thereof Expired - Fee Related CN102404356B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010278515.XA CN102404356B (en) 2010-09-10 2010-09-10 Long-distance function call transmission adapter and data reading method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010278515.XA CN102404356B (en) 2010-09-10 2010-09-10 Long-distance function call transmission adapter and data reading method thereof

Publications (2)

Publication Number Publication Date
CN102404356A true CN102404356A (en) 2012-04-04
CN102404356B CN102404356B (en) 2014-12-31

Family

ID=45886142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010278515.XA Expired - Fee Related CN102404356B (en) 2010-09-10 2010-09-10 Long-distance function call transmission adapter and data reading method thereof

Country Status (1)

Country Link
CN (1) CN102404356B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103778357A (en) * 2014-01-21 2014-05-07 国家电网公司 Method for controlling RFC (remote function call) authority between SAP (systems, applications and products in data processing) systems
CN105335310A (en) * 2014-06-05 2016-02-17 阿里巴巴集团控股有限公司 Interface defining method, and data transmission method and apparatus
CN106569789A (en) * 2015-10-13 2017-04-19 北京国双科技有限公司 Task submission method and apparatus
CN109327546A (en) * 2018-11-21 2019-02-12 Oppo(重庆)智能科技有限公司 A kind of method, client, MES and electronic equipment accessing ftp server
CN110658770A (en) * 2019-10-22 2020-01-07 深圳市芝麻自动化科技有限公司 SAP manufacturing execution system data processing interface driving method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100031233A1 (en) * 2008-07-30 2010-02-04 Sap Ag Extended enterprise connector framework using direct web remoting (dwr)
CN101650648A (en) * 2008-08-14 2010-02-17 鸿富锦精密工业(深圳)有限公司 System and method for dynamically calling functional module

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100031233A1 (en) * 2008-07-30 2010-02-04 Sap Ag Extended enterprise connector framework using direct web remoting (dwr)
CN101650648A (en) * 2008-08-14 2010-02-17 鸿富锦精密工业(深圳)有限公司 System and method for dynamically calling functional module

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
BRUNO MIGUEL BRITO DE GOUVEIA: "《Implementation of an Electronic Invoice Solution using the BizTalk Service Oriented Architecture》", 30 October 2008, article "state of the electronic invoicing systems in Europe and portugal" *
XU LI: "《Business Process Integration》", 30 March 2004, article "Process Integration Catalogue with XI", pages: 21 - 45 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103778357A (en) * 2014-01-21 2014-05-07 国家电网公司 Method for controlling RFC (remote function call) authority between SAP (systems, applications and products in data processing) systems
CN103778357B (en) * 2014-01-21 2016-08-17 国家电网公司 A kind of solve the method that RFC between SAP system calls authorization control
CN105335310A (en) * 2014-06-05 2016-02-17 阿里巴巴集团控股有限公司 Interface defining method, and data transmission method and apparatus
CN106569789A (en) * 2015-10-13 2017-04-19 北京国双科技有限公司 Task submission method and apparatus
CN106569789B (en) * 2015-10-13 2020-06-12 北京国双科技有限公司 Task submission method and device
CN109327546A (en) * 2018-11-21 2019-02-12 Oppo(重庆)智能科技有限公司 A kind of method, client, MES and electronic equipment accessing ftp server
CN110658770A (en) * 2019-10-22 2020-01-07 深圳市芝麻自动化科技有限公司 SAP manufacturing execution system data processing interface driving method

Also Published As

Publication number Publication date
CN102404356B (en) 2014-12-31

Similar Documents

Publication Publication Date Title
EP3399715B1 (en) Protocol conversion method, platform, and protocol conversion gateway
CN104125208B (en) Data transmission method and device
CN107018147B (en) Internet of things communication method and system and gateway module
CN1625878B (en) Method and equipment for processing synchronous related information
CN102802139A (en) Gateway data adapting system and method of Internet of Things
CN101159730B (en) Information processing method, system and device of multimedia affiliation center
US20100179967A1 (en) MAP-Queue-Based Data Transfer Method
US20060095288A1 (en) Transaction network
CN102404356B (en) Long-distance function call transmission adapter and data reading method thereof
CN105786913A (en) Cloud manufacturing platform oriented ERP integrated database service interface encapsulation system and method
CN101316226A (en) Method, device and system for acquiring resources
CN109299173B (en) Data transmission method, device and storage medium
CN1917510B (en) Method for accessing address list, and system of address list
CN103399735A (en) Method for developing intermediate layer of remote function call interface
CN104580073A (en) Method and device for transmitting messages between heterogeneous systems
CN107577541A (en) A kind of application and a kind of call method of component
CN105656643A (en) Method and equipment for performing compatible management based on network configuration protocol
CN104901954A (en) Soft switching system of Internet of Things and method thereof
CN102263707A (en) Method and system for sending messages
CN102377738A (en) Process integration server and method for realizing system integration by utilizing process integration server
CN102090039A (en) A method of performing data mediation, and an associated computer program product, data mediation device and information system
CN101655873A (en) Single sign-on system as well as method and device for inputting and outputting data thereof
CN110209722A (en) A kind of data-interface for data exchange
CN115080649A (en) Data interaction method, interface assembly and electronic equipment
JP5648273B2 (en) Storage system, access management device, data transfer method and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141231

Termination date: 20150910

EXPY Termination of patent right or utility model