Summary of the invention
The problem existing in order to overcome prior art, the querying method that the object of this invention is to provide a kind of level node data, the method merges MDX statement, BW ETL data pick-up in one on the basis of the RFC of inheriting tradition function, by operation BW(Business Datawarehouse Data Warehouse for Enterprises) form carrys out the data of securing layer minor node, and efficiency is high; In whole query script, by the optimization of peek link, shorten the overall time of querying node; With MDX(Multi-Dimensional Expressions Multidimensional Expressions language) the statement Real-time Obtaining form result moving is out to interior table, as the conditional parameter of inquiry, uses; BW ETL instrument is realized and ERP(Enterprises Resources Planning Enterprise Resources Plan) seamless link of system, data are uploaded more stable.
The object of the invention is to be achieved through the following technical solutions:
A querying method for level node data, is characterized in that: the method merges MDX statement, BW ETL data pick-up and RFC remote function calls in one, the inquiry of implementation level node data, and concrete steps are as follows:
1) level node input, the node of input inquiry on data retrieval platform (can input the node of any level);
2) scope check, does the verification of authority to the personnel of the node of input and use;
3) parameter transmission, if verification is passed through, Transfer Parameters, to function, carries out concrete peek operation;
4) XM form, after function receives parameter, according to parameter call BW QUERY node form; If form moves out, there is no data, return to searching platform, this inquires about countless certificates;
5) call MDX statement, input node is had to data, call MDX statement, the result of form operation is delivered in the interior table of function, as the parameter of inquiry, retain;
6) return results, according to the restrictive condition of node parameter and function reading out data from DSO model, return results to data retrieval platform, obtain level node data.
Step 2 of the present invention), in, according to the input at data search platform interface, call RFC function (remote function calls) parameter is delivered to BW system.In step 5), if there is child node, call MDX statement, the result that form is moved out is saved in the interior table of function, as the parameter reservation of inquiry.
The present invention can process complicated logic, versatility is good, is not limited to certain concrete inquiry, so long as relate to the inquiry of level node in SAP system, can use, by third party's extracted data, in the process of transmission data, do not affect the use of operation system.
This method is on traditional RFC (Remote Function Call) remote function calls basis, introduce MDX (Multi-Dimensional Expressions) Multidimensional Expressions language technology, utilize MDX technology can obtain dynamically the data of SAP BW (Business Datawarehouse) form, form has great advantage with respect to ABAP program in the multi-level node data of inquiry.By use efficient inquiry processing method in the process of querying node, optimized peek flow process, the load balancing of server and the balance of function call response speed have been accomplished, particularly tackle the inquiry of the level node data of big data quantity, average query responding time can shorten more than at least 2 times.
The present invention incorporates MDX technology in traditional RFC function application, traditional MDX technology and RFC function peek technology are all to use separately, the present invention peeks technology in the enforcement that combines by MDX technology and RFC function, has simplified the flow process of exploitation, has improved data acquisition efficiency.In whole query script, by the optimization of peek link, shorten the overall time of querying node; BW ETL instrument is realized the seamless link with ERP system, and data are uploaded more stable.
Embodiment
This method merges MDX statement, BW ETL data pick-up and RFC remote function calls in one.Will inquire about now certain organizational structure node serial number is all personnel's information below 13000001.Detailed step is as follows:
The first step: inquiring user data search platform on input need personnel's node of inquiry, in this example, input 13000001 nodes;
Second step: according to the input at data search platform interface, call RFC(remote function calls) function is delivered to BW(Data Warehouse for Enterprises parameter) system;
The 3rd step: BW is according to the corresponding parameter call retrieval function of 13000001 node receiving;
The 4th step: personnel's node form that retrieval function is called QUERY DESIGNER exploitation, moves out of all child nodes under this node;
The 5th step: if show that node, without child node, directly returns results countless certificates; If there is child node, call MDX statement, the result that form is moved out is saved in the interior table of function, as the parameter reservation of inquiry.In inquiry, introduce first the technology of MDX statement; Traditional method is directly to read by function, does not use MDX technology.
The 6th step: the DSO(Data Storage Object data storage object according to the restrictive condition of child node parameter and function from BW) reading out data in model, returns to personal information below 13000001 nodes to data search platform.
This implementation method is verified.From concerning the time of reading of node, if the order of magnitude is at the node of about 2w, the time that operation form reads level node needs just can go out result about 5,6 seconds, but a kind of OO program development language of developing by ABAP(SAP company) program recurrence reading out data, need at least spend more than 30 seconds.In improved RFC function, merged the correlation technique of MDX statement, by MDX, obtain the real time data of form operation, guaranteeing under the correct prerequisite of data, reduced the complicacy of function peek logic, saved a large amount of working times, reduced the redundance that data read simultaneously, made the operation of data and transmit more quick, really accomplish to shorten the response time of system queries, improved client's satisfaction.