Selection screen configuration method and system based on SAP platforms
Technical field
The present invention relates to field of information processing more particularly to it is a kind of based on the selection screen configuration method of SAP platforms be
System.
Background technology
SAP (systems applications and products in data processing) is a for looking forward to
The software of industry resource planning ERP (enterprise resource planning) management.
SAP generally uses development system, test system, production system to be separated from each other, real in such a way that each system is packaged
Existing system modification operation.
SAP system in actual report development process, need the demand according to management consultant to fixed searching bar
Part field is increased newly, is deleted, and the same field is likely to occur multiple activation and cancels operation, leads to a large amount of duplicated code
Write, waste a large amount of manpower and time, also, a large amount of due to when report business demand is adjusted, needing to carry out
Written in code, cause the real-time of report display to be deteriorated, affect the operation cost of enterprise and real-time that report uses.
Invention content
The purpose of the present invention is exactly to solve the above-mentioned problems, it is proposed that a kind of selection screen configuration based on SAP platforms
The report display rule setting frequently adjusted is to be easy to the allocation list of user maintenance by method and system, this method and system, behaviour
Make simply, real-time property is good.
To achieve the goals above, the present invention adopts the following technical scheme that:
A kind of selection screen configuration method based on SAP platforms, includes the following steps:
Step 1:All fields possibly being present in querying condition are collected according to user demand, the field is converted into
The screen elements that client can use;
Step 2:Static construction query statement, above-mentioned all fields involved in query statement, use scope condition, to every
One field variable uses range types as reference;
Step 3:All appear in report is read by the SAP function module IAC_GET_DYNPRO_INFO provided
The internal indicator of screen elements;The internal indicator is one-to-one relationship with screen elements;
Step 4:Selection screen allocation list is created on SAP platforms, and the internal indicator read is stored in allocation list,
And the view that table clause maintenance can be carried out by SM30 is created by transaction code SE55, simulate SAP configuration interfaces;
Step 5:When report initializes, the selection screen allocation list that read step 4 creates carries out result screening and judges institute
Whether the field stated in selection screen allocation list needs to show.
The selection screen allocation list includes:Whether field name, screen elements and its corresponding internal indicator need to show
Show.
When report business demand adjusts, needed in internal indicator to be shown or modification querying condition by add or delete
Field realize;
A kind of system of the selection screen configuration method based on SAP platforms, including:
Unit for collecting all fields possibly being present in querying condition according to user demand;For by the word
Section is converted into the unit for the screen elements that client can use;
For the unit of static construction query statement, all fields involved in the query statement, use scope condition,
Use range types as reference each field variable;
Function module IAC_GET_DYNPRO_INFO for being provided by SAP reads all screens appeared in report
The unit of the internal indicator of curtain element;The internal indicator is one-to-one relationship with screen elements;
Unit for creating selection screen allocation list on SAP platforms, for the internal indicator read to be stored in
Unit in allocation list, for creating the view that can carry out table clause maintenance by SM30 by transaction code SE55, simulation SAP matches
Set the unit at interface;
When being initialized for report, the selection screen allocation list of establishment is read, carry out result screening and judges the selection
Whether the field in screen allocation list needs field to be shown.
The selection screen allocation list includes:Whether field name, screen elements and its corresponding internal indicator need to show
Show.
Further include:
When being adjusted for report business demand, internal indicator to be shown or modification is needed to inquire item by add or delete
The unit that field in part is realized.
The beneficial effects of the invention are as follows:
The present invention in SAP platforms by creating selection screen allocation list, by the corresponding internal mark of the screen elements of report
Knowledge is safeguarded into allocation list, in report display rule frequently adjustment, it is only necessary to the maintenance regulation library table in production system, you can
The requirement for realizing report display adjustment immediately, eliminates the intermediate link that development system arrives production system to test system again, both
While saving human cost and time cost, real-time property is also largely increased.
Description of the drawings
Fig. 1 is the method for the present invention flow chart;
Fig. 2 is that allocation list of the present invention safeguards view;
Fig. 3 is allocative effect figure of the present invention.
Specific implementation mode:
The present invention will be further described with embodiment below in conjunction with the accompanying drawings:
Based on the selection screen configuration method of SAP platforms as shown in Figure 1, including the following steps:
Step 1:All fields possibly being present in querying condition are collected according to user demand, the field is converted into
The screen elements that client can use;
Step 2:Static construction query statement, above-mentioned all fields involved in query statement, use scope condition, to every
One field variable uses range types as reference;Field variable is used to store the screen elements of client input.
When the screen elements of client user's input are single field, query result is single field;When client inputs
Screen elements be range of condition when, query result be a corresponding field range.
Step 3:All appear in report is read by the SAP function module IAC_GET_DYNPRO_INFO provided
The internal indicator of screen elements;The internal indicator is one-to-one relationship with screen elements;
Selection screen allocation list include:Field name, screen elements and its corresponding internal indicator, whether need display etc.
Information, as shown in Figure 2.
Step 4:Selection screen allocation list is created on SAP platforms, and the internal indicator read is stored in allocation list,
And the view that table clause maintenance can be carried out by SM30 is created by transaction code SE55, simulate SAP configuration interfaces;
Step 5:When report initializes, the selection screen allocation list that read step 4 creates carries out result screening and judges institute
Whether the field stated in selection screen allocation list needs to show.
By selecting client to need screen elements to be shown, the final display of report interface, specific effect such as Fig. 3 are realized
It is shown.
When report business demand adjusts, needed in internal indicator to be shown or modification querying condition by add or delete
Field realize;
A kind of system of the selection screen configuration method based on SAP platforms, including:
Unit for collecting all fields possibly being present in querying condition according to user demand;For by the word
Section is converted into the unit for the screen elements that client can use;
For the unit of static construction query statement, all fields involved in the query statement, use scope condition,
Use range types as reference each field variable;
Function module IAC_GET_DYNPRO_INFO for being provided by SAP reads all screens appeared in report
The unit of the internal indicator of curtain element;The internal indicator is one-to-one relationship with screen elements;
Unit for creating selection screen allocation list on SAP platforms, for the internal indicator read to be stored in
Unit in allocation list, for creating the view that can carry out table clause maintenance by SM30 by transaction code SE55, simulation SAP matches
Set the unit at interface;
When being initialized for report, the selection screen allocation list of establishment is read, carry out result screening and judges the selection
Whether the field in screen allocation list needs field to be shown.
Further include:
When being adjusted for report business demand, internal indicator to be shown or modification is needed to inquire item by add or delete
The unit that field in part is realized.
Above-mentioned, although the foregoing specific embodiments of the present invention is described with reference to the accompanying drawings, not protects model to the present invention
The limitation enclosed, those skilled in the art should understand that, based on the technical solutions of the present invention, those skilled in the art are not
Need to make the creative labor the various modifications or changes that can be made still within protection scope of the present invention.