CN104202335B - A kind of SAP data transmission methods of the simplification based on XML - Google Patents

A kind of SAP data transmission methods of the simplification based on XML Download PDF

Info

Publication number
CN104202335B
CN104202335B CN201410484569.XA CN201410484569A CN104202335B CN 104202335 B CN104202335 B CN 104202335B CN 201410484569 A CN201410484569 A CN 201410484569A CN 104202335 B CN104202335 B CN 104202335B
Authority
CN
China
Prior art keywords
data
sap
xml
format
clients
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.)
Active
Application number
CN201410484569.XA
Other languages
Chinese (zh)
Other versions
CN104202335A (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.)
Shanghai Huatong platinum silver trading market Co.,Ltd.
Original Assignee
Chengdu Biz United Information Technology 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 Chengdu Biz United Information Technology Co Ltd filed Critical Chengdu Biz United Information Technology Co Ltd
Priority to CN201410484569.XA priority Critical patent/CN104202335B/en
Publication of CN104202335A publication Critical patent/CN104202335A/en
Application granted granted Critical
Publication of CN104202335B publication Critical patent/CN104202335B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

In order to improve the efficiency that SAP is used by communication, the present invention provides a kind of SAP data transmission methods of the simplification based on XML, including:SAP clients send service request and format library version calibration information to SAP server ends;SAP server ends are proofreaded, if check and correction finds that version is different, the format library of latest edition are sent to client, so that client carries out format library renewal first;Server end obtains the result data of XML format according to the service request from database, separates the first XML content data and XML format data of the result data;Server end sends the second XML content data to client;Client directly passes through the second XML content data received by corresponding format analysis processing tool display according to the format library.Technical scheme significantly reduces the database access load of client data processing load and server end, improves the communication efficiency of SAP.

Description

A kind of SAP data transmission methods of the simplification based on XML
Technical field
The present invention relates to a kind of data transmission method, is passed more particularly, to a kind of SAP data of simplification based on XML Transmission method.
Background technology
XML (eXtensible Markup Language) extensible markup language, be it is a kind of it is simple, cross-platform, The method of the flag data of extension.Its major advantage is:The data structure of complexity can be marked using simple text;Can be non- Format data is easily often obtained from xml by xslt;So that the definition (being defined with xslt) of data type is with showing Show and (shown with xml) and separated so that service logic can be relatively independent with user interface, easy to business processing;xslt (eXtensible Stylesheet Language Transformation) is the language for changing xml data types, can To specify the type for defining different xml data using xslt processors according to different user terminals, meet different terminals not With the needs of display specification.Xml is a kind of markup language easy to operate, and operator can customize mark when writing xml, and The mark that predefined is good in rule must be used not necessarily like html language used in traditional data markers, therefore, xml has The very high free degree, writes and changes and is relatively easy;Coordinate xslt to use xml, can preferably realize to various different business Data exchange between data type, so that data transfer is more smooth.Soap agreements are described in data using XML statement Hold, there is simple readability, but data redundancy amount is larger, there is substantial amounts of description character.
Surfed the Internet now by wireless network, the demand into row data communication is increasing.User is obtained using wireless networking Information is the main trend of Communication Development.User radio is surfed the Internet, communication protocol using or as common computer online, institute Some data are all carried in IP agreement, and simply the mode of user's access is using wireless mode.
The shortcomings that traditional wireless data transmission technology is mostly no to use xml technologies, it is maximum is each business datum Scalability and poor compatibility between type and service protocol.When needs are between different programs or same program different piece Or between server and client carry out business data transmission with exchanging when, for different traffic data types such as mail, stock Ticket, document, enterprise's Working information and other specific document formats etc., it all possesses each exclusive operational data structure and industry Agreement of being engaged in, it is necessary to provide its proprietary analysis program respectively for each traffic data type and service protocol;Therefore cause When business data transmission with exchange used by service protocol be modified when, such as:POP3/IMAP4 changes WebDAV agreements into, needs Various mail analysis programs are rewritten;This is larger to the change of original operation system, increases to a certain extent Workload, and also have a certain impact to the efficiency of business data transmission.Therefore need to provide a kind of new based on http The method using self-defined xml format files parsing business datum so as to fulfill wireless data transmission under agreement.
The content of the invention
In order to overcome the drawbacks described above of the prior art, the present invention proposes a kind of SAP data transfers of the simplification based on XML Method, including:
(1) SAP clients send service request and format library version calibration information to SAP server ends;
(2) SAP server ends are proofreaded, if check and correction finds that version is different, the lattice of latest edition are sent to SAP clients Formula storehouse, so that SAP clients carry out format library renewal first;
(3) SAP server ends obtain the result data of XML format, separation should according to the service request from database The the first XML content data and XML format data of result data;
(4) SAP server ends send the second XML content data to SAP clients;
(5) SAP clients directly pass through received by corresponding format analysis processing tool display according to the format library Two XML content data.
Further, the first XML content data are identical with the second XML content data.
Further, further included before the step (4) and coding is compressed to the first XML content data, obtained By compressed encoding XML format data content as the second XML content data.
Further, the form of second XML data is:The data format code of two bytes+pass through compressed encoding XML format content-data.
Further, the method further includes:
Before step (2), SAP clients check the request history of itself, to determine whether there is the industry of same type Business request, and in the case of there are same type service request, only sends to not being obtained to the SAP server ends The related service request of data;And
In the step (5), SAP clients store the second XML content data at itself.
Further, the service request includes the one or more of following business:Authority inquiry, site polling, commodity Species inquiry, the inquiry of each field sales amount, the inquiry of each region cost, business personnel's information inquiry, the inquiry of each region quantity in stock, each area Domain amount of purchase inquiry.
Further, the format analysis processing instrument includes text processing application, data handling utility and graphics process application.
Further, the format library includes:The type of service request type, the first XML content data, and processing institute State the format analysis processing instrument of the second XML content data.
Further, the format library is saved as document form, and further comprises format library version number.
Further, the format library further includes:The version number of each handling implement.
The beneficial effects of the invention are as follows:The characteristics of being separated content with form using XML itself, is further based on XML The simplification of SAP client data structures is completed, so as to simplify the data transfer between SAP clients and SAP server ends Agreement, greatly reduces the format information for being repeated as many times as required transmission in SAP data transmission procedures.In addition, in SAP clients Historical query result data is preserved, it is searched and is transmitted no longer from SAP servers, greatly reduces SAP number clients According to processing load and the database access load of SAP server ends, the work efficiency of SAP is improved.
Brief description of the drawings
Fig. 1 shows structure flow chart according to a preferred embodiment of the invention.
Embodiment
Below in conjunction with Fig. 1 preferred embodiment that the present invention will be described in detail.In the present invention, " data " word both can be with Only refer to numeral and/or word composition, in SAP system with practical significance set (such as:Sales volume, personal information Deng), also may indicate that set that the expression of other information when being stored in database type showed (such as:Image, sound, And/or video etc.).
In the present invention, first defined in SAP " format library ", it represents various data types, service request type, data Mapping relations between path where representation aids (or " format analysis processing instrument ").This " format library " is simplification of the present invention The basis of SAP data transmission procedures.In the preferred embodiment shown in Fig. 1, the format library includes:Service request type, The type of one XML content data, and the path of the format analysis processing instrument of processing the second XML content data.
Preferably, the format library is saved as document form, and further comprises format library version number.
Other preferred embodiments, above-mentioned format library further include the version number of each handling implement according to the present invention.
It will be clear for those skilled in the art that in the present invention, " format analysis processing instrument " refers to dock in SAP clients Received XML content data are handled accordingly, to provide the application of displaying to the user of SAP clients (for example, using journey Sequence, service, process etc.).In this preferred embodiment, " format analysis processing instrument " mainly includes completing answering for following three aspects task With:The application in terms of application, data processing in terms of including word processing and the application in terms of graphics process.People in the art Member is it should also be clear that above application is not necessarily application independent of each other or has at least the above one at the same time The application of the function of aspect.For example, when certain part of xml document with .doc forms is presented to user, wherein, this document is not only Including text message, digital information, pictorial information even animation information is further included, at this moment can use MS Office as suitable When application for user present above- mentioned information.
In preferred embodiment corresponding to the attached drawing 1 of the present invention, service request includes the one or more of following business:Power Limit inquiry, site polling, type of merchandize inquiry, the inquiry of each field sales amount, the inquiry of each region cost, business personnel's information inquiry, Each region quantity in stock inquiry, the inquiry of each regional procurement amount.
Preferred embodiment is corresponded to according to Fig. 1, the SAP data transmission methods of the simplification based on XML include the following steps:
Step 1:SAP clients send service request and format library version calibration information to SAP server ends.When SAP takes When business device end receives the service request of SAP clients, it can receive the format library preserved in SAP clients at the same time.
Step 2:SAP server ends are proofreaded, if check and correction finds that version is different, latest edition is sent to SAP clients Format library so that SAP clients carry out format library renewal first.Above-mentioned format library is formed the form of file, is present in SAP clients and SAP server ends.Wherein, SAP server ends provide business service towards multiple SAP clients, especially believe Breath inquiry service.For example, when SAP server ends are due to adjusting the path of the application corresponding to certain data type (can actually be deemed to be the way of presentation or handling implement that have adjusted the data type), have updated at some time point The SAP form library files of its own, and some SAP client misses current version due to be not turned on networking or being not powered on During this upgrading, then the two just becomes have different implications for the processing mode of same data source.Due to SAP client End does not upgrade in time, and therefore, check and correction here just generates the effect made up in time.
Step 3:SAP server ends obtain the result data of XML format from database, divide according to the service request From the first XML content data and XML format data of the result data.Here the first XML content data refer to some business Ask the data entity of corresponding result data in the database.XML format data refer to data entity quilt from database After reading, disassembled or unpacked by XML parser as " data mode " corresponding with " data content ".
For example, for multistage video data, corresponding multiple blob classes are saved as in the database of SAP server ends The data of type.At this time, if SAP client request SAP server ends ask for a certain section of video, the data of some blob type It will be queried and data as a result.This section of video can be .mov .avi or .mms type.These " .mov .avi or Form specified in respective protocol corresponding to person .mms types " is exactly above-mentioned " XML format data ", and in this section of video really Reflect that each pixel at " video data " of the value at each moment etc is exactly above-mentioned " the first XML content data ".
Step 4:SAP server ends send the second XML content data to SAP clients.Here the first XML content number , can not also be same according to can be identical with the second XML content data.When the two is different, further included before the step:To institute State the first XML content data and be compressed coding, obtain the data content by the XML format of compressed encoding as the 2nd XML Content-data.The form of second XML data is:The data format code of two bytes+by the XML format of compressed encoding Content-data.
Above-mentioned compression coding technology is highly developed in the prior art, it is substantially to reduce number waiting for transmission According to amount.Embodiment need not be shown in detail again in the present invention.
Step 5:SAP clients are according to the format library, directly by received by corresponding format analysis processing tool display The second XML content data.Here, during the second XML content data received by format analysis processing tool display, required XML Formatted data is found from the form library file of SAP clients, and completes XML data by above-mentioned data processing tools Content is combined into one with XML data form, i.e. the encapsulation to XML.
According to the preferred embodiment, before step (2), SAP clients check the request history of itself, to determine whether There are the service request of same type, and in the case of there are same type service request, only sent out to the SAP server ends Send the service request related to the data that were not obtained;And in the step (5), SAP clients store institute at itself State the second XML content data.In this way, SAP clients have actually been accomplished most to the request of data that SAP server ends are sent Simplify and optimize, its direct effect be make SAP server ends data query amount and SAP server ends to SAP client Hold the data volume of data sent to reduce, and the increase of the service request with SAP clients, its service request it is specific in The repetition of appearance also can be more and more.It has been queried and has handled and that is, many time is used to inquire about and handles Through the information for being present in the SAP clients.Therefore, this processing simplified first in SAP clients is just greatly enhanced The efficiency of SAP server ends inquiry database.On the other hand, with the hardware cost of SAP clients (for example, smart mobile phone) Reduction and performance raising, the task that script should be fully-operational in SAP server ends is reduced.
In the following, the processing for this request history, provides the explanation of another embodiment:
S101:Inquire about the video file (video length 140 minutes) of regular meeting last Monday.If nothing in the local period History video, the then corresponding .mkv files of file generated inquired according to front end, otherwise according to the file renewal inquired .mkv file;
S102:The video of SAP client requests is downloaded;
S103:In the request history of SAP clients, had requested that yesterday and stored the second half section of above-mentioned regular meeting automatically The video of (70 minutes after i.e.).Therefore, current SAP clients are sending the " whole of transmission regular meeting last Monday to SAP server ends Before the service request of video information ", the service request is changed from " all videos information of transmission regular meeting last Monday " For " videos of 70 minutes after the removing of transmission regular meeting last Monday ".Therefore, SAP server ends are only remaining to SAP client transmissions Video information.In SAP clients, content that video data is locally recorded from it and from SAP received server-sides in Appearance is merged formation.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and scope.In this way, if these modifications and changes of the present invention belongs to the scope of the claims in the present invention and its equivalent technology Within, then the present invention is also intended to comprising including these modification and variations.

Claims (10)

  1. A kind of 1. SAP data transmission methods of the simplification based on XML, it is characterised in that including:(1) SAP clients take to SAP Business device end sends service request and format library version calibration information;(2) SAP server ends are proofreaded, if check and correction finds version Difference, then send the format library of latest edition, so that SAP clients carry out format library renewal, above-mentioned form first to SAP clients Storehouse is formed the form of file, is present in SAP clients and SAP server ends;Wherein, SAP server ends are towards multiple SAP Client provides business service;(3) SAP server ends obtain the result of XML format according to the service request from database Data, separate the first XML content data and XML format data of the result data, and the first XML content data here refer to certain The data entity of a service request corresponding result data in the database;XML format data refer to the data entity from data After being read in storehouse, disassembled or unpacked by XML parser as " data mode " corresponding with " data content ";(4) SAP is serviced Device end sends the second XML content data to SAP clients;(5) SAP clients are according to the format library, directly by corresponding The second XML content data received by format analysis processing tool display, in the 2nd XML received by format analysis processing tool display When holding data, required XML format data are found from the form library file of SAP clients, and by above-mentioned form Handling implement completion XML data content is combined into one with XML data form, i.e. the encapsulation to XML.
  2. 2. data transmission method according to claim 1, it is characterised in that the first XML content data and described Two XML content data are identical.
  3. 3. data transmission method according to claim 1, it is characterised in that further included before the step (4) to described First XML content data are compressed coding, obtain the data content by the XML format of compressed encoding as in the 2nd XML Hold data.
  4. 4. data transmission method according to claim 1, it is characterised in that the form of second XML data is:Two The data format code of byte+by compressed encoding XML format content-data.
  5. 5. data transmission method according to claim 1, it is characterised in that the method further includes:Step (2) it Before, SAP clients check the request history of itself, to determine whether there is the service request of same type, and there are identical In the case that type service is asked, the service request related to the data that were not obtained is only sent to the SAP server ends; And in the step (5), SAP clients store the second XML content data at itself.
  6. 6. data transmission method according to claim 1, it is characterised in that the service request includes the one of following business Kind is a variety of:Authority inquiry, site polling, type of merchandize inquiry, the inquiry of each field sales amount, the inquiry of each region cost, business Member's information inquiry, the inquiry of each region quantity in stock, the inquiry of each regional procurement amount.
  7. 7. data transmission method according to claim 1, it is characterised in that the format analysis processing instrument includes word processing Using, data handling utility and graphics process application.
  8. 8. data transmission method according to claim 1, it is characterised in that the format library includes:Service request type, The type of first XML content data, and the format analysis processing instrument of processing the second XML content data.
  9. 9. data transmission method according to claim 1, it is characterised in that the format library is saved as document form, And further comprise format library version number.
  10. 10. data transmission method according to claim 8, it is characterised in that the format library further includes:Each handling implement Version number.
CN201410484569.XA 2014-09-19 2014-09-19 A kind of SAP data transmission methods of the simplification based on XML Active CN104202335B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410484569.XA CN104202335B (en) 2014-09-19 2014-09-19 A kind of SAP data transmission methods of the simplification based on XML

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410484569.XA CN104202335B (en) 2014-09-19 2014-09-19 A kind of SAP data transmission methods of the simplification based on XML

Publications (2)

Publication Number Publication Date
CN104202335A CN104202335A (en) 2014-12-10
CN104202335B true CN104202335B (en) 2018-04-20

Family

ID=52087560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410484569.XA Active CN104202335B (en) 2014-09-19 2014-09-19 A kind of SAP data transmission methods of the simplification based on XML

Country Status (1)

Country Link
CN (1) CN104202335B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106572127B (en) * 2015-10-08 2020-05-12 阿里巴巴集团控股有限公司 Data transmission method and device
CN108650318B (en) * 2018-05-10 2021-04-30 北京奇艺世纪科技有限公司 Data acquisition method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272543A (en) * 2008-04-25 2008-09-24 巴别塔(北京)科技有限公司 Wireless data transmission method
US7519739B2 (en) * 2003-08-26 2009-04-14 International Business Machines Corporation Synchronizing a client user interface with a server backend
CN101615174A (en) * 2008-06-24 2009-12-30 北京信息科技大学 Conversion method based on the documents in various formats of XML
CN103744991A (en) * 2014-01-21 2014-04-23 国家电网公司 Method for XML-based data transmission between SAP systems

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7519739B2 (en) * 2003-08-26 2009-04-14 International Business Machines Corporation Synchronizing a client user interface with a server backend
CN101272543A (en) * 2008-04-25 2008-09-24 巴别塔(北京)科技有限公司 Wireless data transmission method
CN101615174A (en) * 2008-06-24 2009-12-30 北京信息科技大学 Conversion method based on the documents in various formats of XML
CN103744991A (en) * 2014-01-21 2014-04-23 国家电网公司 Method for XML-based data transmission between SAP systems

Also Published As

Publication number Publication date
CN104202335A (en) 2014-12-10

Similar Documents

Publication Publication Date Title
US10277702B2 (en) Method and apparatus for accessing an enterprise resource planning system via a mobile device
US9654586B2 (en) Resource server providing a rapidly changing resource
WO2020015186A1 (en) Method and apparatus for real-time update of page data and electronic device
JP4680925B2 (en) Mass quote message processing using market data message format by trading engine
JP4219555B2 (en) Channel definition architecture extension
KR20190039230A (en) Method and system for server-side rendering of native content for presentations
US11301617B2 (en) Systems and methods for providing error recovery in data transmissions
WO2019134340A1 (en) Salary calculation method, application server, and computer readable storage medium
AU2006234977A1 (en) Enterprise software system having multidimensional XBRL engine
US20140237065A1 (en) System, Method, and Computer Program Product for Server Side Processing in a Mobile Device Environment
US20060230057A1 (en) Method and apparatus for mapping web services definition language files to application specific business objects in an integrated application environment
EP2380089B1 (en) Extensibility for web based diagram visualization
CN102882974A (en) Method for saving website access resource by website identification version number
CN104202335B (en) A kind of SAP data transmission methods of the simplification based on XML
US10649964B2 (en) Incorporating external data into a database schema
CN105989065B (en) Flash data processing method and system
EP2787454A1 (en) Methods for optimizing a web content proxy server and devices thereof
US7424522B2 (en) Method of processing data from a submission interface
US7756906B2 (en) Schema-aware mid-tier binary XML implementation
WO2019071964A1 (en) Enterprise relationship construction method, and application server
US9201838B2 (en) Systems and methods for the efficient exchange of hierarchical data
CN111860708B (en) Commodity management system and commodity management method
US11550861B1 (en) Dissemination of information updates across devices
US8826300B2 (en) File system interface for a message service system
US8990146B2 (en) Systems and methods to provide server-side client based caching

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 610000 No. 25 Qin Fang street, hi tech Development Zone, Sichuan, Chengdu

Patentee after: CHENGDU BOZHI WEIXUN INFORMATION TECHNOLOGY CO.,LTD.

Address before: 610000 No. 25 Qin Fang street, hi tech Development Zone, Sichuan, Chengdu

Patentee before: CHENGDU BIZ-UNITED INFORMATION TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20191008

Address after: 400,000 Chongqing Jiangbei District Haier Road 319 2-2-1-61 (Two Road Cuntan Bonded Port Area)

Patentee after: Chongqing Steady Technology Co.,Ltd.

Address before: 610000 No. 25 Qin Fang street, hi tech Development Zone, Sichuan, Chengdu

Patentee before: CHENGDU BOZHI WEIXUN INFORMATION TECHNOLOGY CO.,LTD.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200413

Address after: 200333 room B05, 17th floor, 2650 Zhongshan North Road, Putuo District, Shanghai

Patentee after: Shanghai Huatong platinum silver trading market Co.,Ltd.

Address before: 400,000 Chongqing Jiangbei District Haier Road 319 2-2-1-61 (Two Road Cuntan Bonded Port Area)

Patentee before: Chongqing Steady Technology Co.,Ltd.