CN105760974A - Method and device for acquiring business object allocation relationship in ERP system - Google Patents

Method and device for acquiring business object allocation relationship in ERP system Download PDF

Info

Publication number
CN105760974A
CN105760974A CN201410789429.3A CN201410789429A CN105760974A CN 105760974 A CN105760974 A CN 105760974A CN 201410789429 A CN201410789429 A CN 201410789429A CN 105760974 A CN105760974 A CN 105760974A
Authority
CN
China
Prior art keywords
distribution
relations
business object
assignment relation
erp system
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.)
Pending
Application number
CN201410789429.3A
Other languages
Chinese (zh)
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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN201410789429.3A priority Critical patent/CN105760974A/en
Publication of CN105760974A publication Critical patent/CN105760974A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Abstract

The invention discloses a method for acquiring the business object allocation relationship in an ERP system. The method comprises the steps of acquiring the source allocation relationship for business objects in an ERP system; when the source allocation relationship contains a cyclic allocation relationship, determining the final allocation relationship in the cyclic allocation relationship and deleting the final allocation relationship to obtain a new allocation relationship; determining a non-cyclic allocation relationship in the source allocation relationship and adopting the new allocation relationship and the non-cyclic allocation relationship as the target allocation relationship. The invention also discloses a device for acquiring the business object allocation relationship in the ERP system. According to the technical scheme of the invention, the business object cost information can be accounted more accurately. Meanwhile, the accounting efficiency is improved.

Description

The acquisition methods of the business object relations of distribution and device in ERP system
Technical field
The present invention relates to technical field of data processing in ERP system, particularly relate to acquisition methods and the device of the business object relations of distribution in ERP system.
Background technology
Along with the development of data processing technique, in increasing electronic data management system Entry Firm, for instance, ERP (EnterpriseResourcePlanning, Enterprise Resources Planning) system.Enterprise or company can pass through ERP system record traffic object (material) and pass in and out original position (warehouse gone out) and the distribution information in target location (warehouse entered), and described distribution information includes distribution time, the relations of distribution and/or business object information.Obtain business object according to the distribution information of record in ERP system to come in and go out the situation in warehouse, be specially in the relations of distribution to sort preceding for outbound, posterior for warehouse-in, and the discrepancy situation working out distribution cost according to warehouse.
Above by ERP system record traffic assignments relation working out distribution cost mode process circulation the relations of distribution time, such as, business object is from A distribution depot to B warehouse, again from B distribution depot to C warehouse, time again by C distribution depot to A warehouse, business object turnover original position and target location cannot be determined, therefore, what cannot obtain business object goes out warehouse situation, causing cannot the cost information of calculation business object accurately, and then make the cost information of business object adjust not accurate enough, and efficiency is on the low side.
Foregoing is only used for assisting understanding technical scheme, does not represent and admits that foregoing is prior art.
Summary of the invention
Present invention is primarily targeted at acquisition methods and device that the business object relations of distribution in a kind of ERP system are provided, aim to solve the problem that what cannot obtain business object goes out warehouse situation, causing cannot the cost information of calculation business object accurately, and then make the cost information of business object adjust not accurate enough, and the problem that efficiency is on the low side.
For achieving the above object, the present invention provides the acquisition methods of the business object relations of distribution in a kind of system, comprises the following steps:
Obtain the source relations of distribution of business object in ERP system;
When the described source relations of distribution exist cycle assignment relation, it is determined that the last relations of distribution in described cycle assignment relation, delete the described last relations of distribution and obtain the new relations of distribution;
Determine the acyclic relations of distribution in the relations of distribution of described source, using the described new relations of distribution and the described acyclic relations of distribution as Target Assignment relation.
Preferably, the step of the described last relations of distribution determined in described cycle assignment relation includes:
Determine the distribution time of each the sub-relations of distribution in described cycle assignment relation;
Determine the distribution time the latest in the described distribution time, using the sub-relations of distribution the latest of described distribution time as the last relations of distribution in described cycle assignment relation.
Preferably, the step of the described last relations of distribution determined in described cycle assignment relation includes:
Determine the record information of described cycle assignment relation;
The last relations of distribution in described cycle assignment relation are determined according to described record information.
Preferably, in described acquisition ERP system, the step of the source relations of distribution of business object includes:
Obtain the source relations of distribution of business object in ERP system;
Directed Graph Model is built according to the described source relations of distribution.
Preferably, the described last relations of distribution determined in described cycle assignment relation, and determine in the relations of distribution of described source before the step of the acyclic relations of distribution, also include:
Depth Priority Algorithm is adopted to travel through described Directed Graph Model, it may be judged whether to there is cycle assignment relation.
Preferably, the described acyclic relations of distribution determined in the relations of distribution of described source, using the described new relations of distribution and the described acyclic relations of distribution as after the step of Target Assignment relation, also including:
According to described Target Assignment relation, generate the distribution cost information of business object.
Additionally, for achieving the above object, the present invention furthermore provides the acquisition device of the business object relations of distribution in a kind of ERP system, including:
Acquisition module, for obtaining the source relations of distribution of business object in ERP system;
Determine module, for when the described source relations of distribution exist cycle assignment relation, it is determined that the last relations of distribution in described cycle assignment relation, and determine the acyclic relations of distribution in the relations of distribution of described source;
Processing module, obtains the new relations of distribution for deleting the described last relations of distribution, using the described new relations of distribution and the described acyclic relations of distribution as Target Assignment relation.
Preferably, described determine module, be additionally operable to determine in described cycle assignment relation the distribution time of each the sub-relations of distribution;
The distribution time being additionally operable to determine in the described distribution time the latest, using the sub-relations of distribution the latest of described distribution time as the last relations of distribution in described cycle assignment relation.
Preferably, described determine module, be additionally operable to determine the record information of described cycle assignment relation;
It is additionally operable to determine the last relations of distribution in described cycle assignment relation according to described record information.
Preferably, described acquisition module includes acquiring unit and construction unit,
Described acquiring unit, for obtaining the source relations of distribution of business object in ERP system;
Described construction unit, for building Directed Graph Model according to the described source relations of distribution.
Preferably, in described ERP system, the acquisition device of the business object relations of distribution also includes judge module, is used for adopting Depth Priority Algorithm to travel through described Directed Graph Model, it may be judged whether there is cycle assignment relation.
Preferably, in described ERP system, the acquisition device of the business object relations of distribution also includes generation module, for according to described Target Assignment relation, generating the distribution cost information of business object.
The present invention is by first judging whether there is cycle assignment relation in the relations of distribution of described source, when there being cycle assignment relation, determine the last relations of distribution in described cycle assignment relation, the described last relations of distribution are deleted, to obtain the new relations of distribution, the described new relations of distribution are not cycle assignment relation, using the acyclic relations of distribution in the relations of distribution of described source and the described new relations of distribution as Target Assignment relation, and distribute cost information according to described Target Assignment relation calculation business object.Be prevented effectively from cannot obtain business object go out warehouse situation, cause cannot the cost information of calculation business object accurately, and then make the cost information of business object adjust not accurate enough, and the problem that efficiency is on the low side.Realize the accounting of finishing service object cost information more accurately, and improve accounting efficiency.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the first embodiment of the acquisition methods of the business object relations of distribution in ERP system of the present invention;
Fig. 2 is the refinement schematic flow sheet of step S20 mono-embodiment in Fig. 1;
Fig. 3 is the refinement schematic flow sheet of another embodiment of step S20 in Fig. 1;
Fig. 4 is the schematic flow sheet of the second embodiment of the acquisition methods of the business object relations of distribution in ERP system of the present invention;
Fig. 5 is the high-level schematic functional block diagram of the first embodiment of the acquisition device of the business object relations of distribution in ERP system of the present invention;
Fig. 6 is the refinement high-level schematic functional block diagram of acquisition module in Fig. 5;
Fig. 7 is the high-level schematic functional block diagram of the second embodiment of the acquisition device of the business object relations of distribution in ERP system of the present invention.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Detailed description of the invention
Should be appreciated that specific embodiment described herein is only in order to explain the present invention, is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention is: obtain the source relations of distribution of business object in ERP system;When the described source relations of distribution exist cycle assignment relation, it is determined that the last relations of distribution in described cycle assignment relation, delete the described last relations of distribution and obtain the new relations of distribution;Determine the acyclic relations of distribution in the relations of distribution of described source;Using the described new relations of distribution and the described acyclic relations of distribution as Target Assignment relation.By first judging whether the described source relations of distribution exist cycle assignment relation, when there being cycle assignment relation, determine the last relations of distribution in described cycle assignment relation, the described last relations of distribution are deleted, to obtain the new relations of distribution, the described new relations of distribution are not cycle assignment relation, using the acyclic relations of distribution in the relations of distribution of described source and the described new relations of distribution as Target Assignment relation, and distribute cost information according to described Target Assignment relation calculation business object.Be prevented effectively from cannot obtain business object go out warehouse situation, cause cannot the cost information of calculation business object accurately, and then make the cost information of business object adjust not accurate enough, and the problem that efficiency is on the low side.Realize the accounting of finishing service object cost information more accurately, and improve accounting efficiency.
Owing to existing business object cost information calculation process is when processing the business object of cycle assignment relation, business object turnover original position and target location cannot be determined, what namely cannot obtain business object goes out warehouse situation, causing cannot the cost information of calculation business object accurately, and then make the cost information of business object adjust not accurate enough, and efficiency is on the low side.
Based on the problems referred to above, the present invention provides the acquisition methods of the business object relations of distribution in a kind of ERP system.
It is the schematic flow sheet of the first embodiment of the acquisition methods of the business object relations of distribution in ERP system of the present invention with reference to Fig. 1, Fig. 1.
In one embodiment, in described ERP system, the acquisition methods of the business object relations of distribution includes:
Step S10, obtains the source relations of distribution of business object in ERP system;
Perform the main body of the acquisition methods of the business object relations of distribution in ERP system of the present invention be electric terminal (such as, computer, pad etc.), server etc., the acquisition application of the business object relations of distribution in the ERP system of electric terminal or server can be mounted to further.In the present embodiment, executive agent is preferably electric terminal.
The distribution information of business object can be preserved to ERP system by enterprise or company as required, and described distribution information includes distribution time, distribution services object information, work organization information and/or the relations of distribution etc..When receiving business object distribution cost information and adjusting instruction, or when Preset Time (1 month or a season etc. are arranged according to demand) arrives, obtaining the source relations of distribution of business object in ERP system, the described source relations of distribution include the out position relations of distribution and enter the position relations of distribution.The source relations of distribution of the business object of described acquisition are distinguished according to the title of business object, namely obtain the source relations of distribution of each business object respectively.Can also be make a distinction according to work organization, namely obtain the source relations of distribution of each business object under each work organization.The described source relations of distribution include the acyclic relations of distribution, for instance, business object a distributes to second position B from primary importance A, then from second position B distribution to the 3rd position C;The relations of distribution of circulation can also be included, for instance, business object a distributes to second position B from primary importance A, then distributes to the 3rd position C from second position B, then from the 3rd position C distribution to primary importance A.
Step S20, when the described source relations of distribution exist cycle assignment relation, it is determined that the last relations of distribution in described cycle assignment relation, deletes the described last relations of distribution and obtains the new relations of distribution;
Step S30, it is determined that the acyclic relations of distribution in the relations of distribution of described source, using the described new relations of distribution and the described acyclic relations of distribution as Target Assignment relation.
In getting ERP system after the source relations of distribution of business object, judge whether the described source relations of distribution exist cycle assignment relation, when there is cycle assignment relation in the described source relations of distribution, determine the last relations of distribution in described cycle assignment relation, and determine the acyclic relations of distribution in the relations of distribution of described source;If there is multiple cycle assignment relation, then determine the last relations of distribution in each cycle assignment relation respectively.Concrete, the described process judging whether to there is cycle assignment relation in the relations of distribution of described source may is that such as, if same distribution position is original position again for final target location, then judges that described business object exists cycle assignment relation.Such as, business a is from primary importance A distribution to second position B, from second position B distribution to the 3rd position C, from the 3rd position distribution to primary importance A, wherein primary importance A is original position, is also final target location, or second position B is that original position is again for final target location, or the 3rd position C is original position is again final target location, then this relations of distribution are cycle assignment relation.
Concrete, with reference to Fig. 2, the process of the described last relations of distribution determined in described cycle assignment relation may include that
Step S21, it is determined that the distribution time of each the sub-relations of distribution in described cycle assignment relation;
Step S22, it is determined that distribution time the latest in the described distribution time, using the sub-relations of distribution the latest of described distribution time as the last relations of distribution in described cycle assignment relation, and determines the acyclic relations of distribution in the relations of distribution of described source.
The relations of distribution of each business object all include at least one the sub-relations of distribution, determine the distribution time of each the sub-relations of distribution in described cycle assignment relation, such as, determine that the sub-relations of distribution of business object a have, the sub-relations of distribution 1, the sub-relations of distribution 2 and the sub-relations of distribution 3, then determine the distribution time of the sub-relations of distribution respectively, such as, the distribution time of the sub-relations of distribution 1 is T1, and the distribution time of the sub-relations of distribution 2 is T2, and the distribution time of the sub-relations of distribution 3 is T3.From T1, T2 and T3, determine the distribution time the latest, namely determine from the nearest sub-relations of distribution of current time, if T3 is nearest from current time, then using the sub-relations of distribution 3 as the last relations of distribution.
Concrete, with reference to Fig. 3, the process of the described last relations of distribution determined in described cycle assignment relation can also include:
Step S23, it is determined that the record information of described cycle assignment relation;
Step S24, determines the last relations of distribution in described cycle assignment relation according to described record information, and determines the acyclic relations of distribution in the relations of distribution of described source.
When the described relations of distribution exist cycle assignment relation, determine the record information of described cycle assignment relation, described record information can be the assignment flag of business object, such as, the relations of distribution corresponding to business object a first time batch operation arrange assignment flag F1, the second time relations of distribution corresponding to batch operation are set to F2, and the relations of distribution corresponding to third time batch operation are set to F3.Assignment flag according to arranging determines the last relations of distribution in described recurrence relation, for instance, the relations of distribution corresponding for assignment flag F3 are the last relations of distribution of business object a.Can arrange the sequencing of assignment flag according to user habit and demand, follow-up to identify which relations of distribution further according to assignment flag be the last relations of distribution.
It is understandable that, in order to improve the accuracy determining the last relations of distribution, also can also is that to combine distribution time and record information and determine the last relations of distribution, such as, first determine the last relations of distribution according to record information and determine the last relations of distribution according to the distribution time simultaneously, when the last relations of distribution determined for twice are identical, then these relations of distribution are defined as the last relations of distribution, if differing, then point out and therefrom select one of them as the last relations of distribution, or select the last relations of distribution of conduct determined by the distribution time.
After the last relations of distribution in determining described cycle assignment relation, delete the described last relations of distribution and obtain the new relations of distribution, namely pass through after the deletion of the last relations of distribution, be the acyclic relations of distribution by cycle assignment Automated generalization.Such as, cycle assignment relation is: business object a is from primary importance A distribution to second position B, again from second position B distribution to the 3rd position C, again from the 3rd position C distribution to primary importance A, the last relations of distribution are from the 3rd position C distribution to primary importance A, then these last relations of distribution being deleted, the new relations of distribution are that business object a distributes to second position B from primary importance A, then from second position B distribution to the 3rd position C.Using the described new relations of distribution and the described acyclic relations of distribution as Target Assignment relation, namely described Target Assignment relation is the acyclic relations of distribution.
Step S40, according to described Target Assignment relation, generates the distribution cost information of business object.
After getting described Target Assignment relation, because described Target Assignment relation is absent from the relations of distribution of circulation, then the out position of determination business object that can be clear and definite and enter position, according to described Target Assignment relation, generate the distribution cost information of business object.When adjusting the distribution expense come in and gone out, the distribution expense gone out is calculated by the distribution expense entered, when there being the relations of distribution of cross-location, the expense entered is calculated by the expense gone out, accordingly, it would be desirable to the out position accurately determined in the relations of distribution and enter position, and whether same business object exists cross-location distribution, it is existing process that concrete distribution expense calculates process, and this is no longer going to repeat them.By the way cycle assignment relation is being interrupted, after deleting by the last relations of distribution of cycle assignment relation, relations of distribution calculating the going out the relations of distribution in out position from out position in the described relations of distribution, but enter described in being not counted in the relations of distribution of position.Such as, the warehouse-in relations of distribution in the last relations of distribution are not counted in distribution expense, but the outbound relations of distribution in the last relations of distribution count distribution expense.
In service logic, when certain business object exists cycle assignment relation, because the out position of distribution cannot be determined and enters position and causes determining distribution information.Accordingly, it would be desirable to the last relations of distribution in cycle assignment relation are interrupted, delete by the last relations of distribution so that cycle assignment relation becomes the acyclic relations of distribution.Concrete that cost accounting process is: such as, at cycle assignment relation A to B to C again in the process of A, the relations of distribution of C to A are deleted, when calculating the distribution expense of A, do not calculate and enter the expense of A (because cannot know the situation that business object comes in and goes out accurately when cycle calculations from C, namely circulation always cannot the distribution expense of accurate calculation business object), but when the distribution expense of calculating C, need to calculate and go out the expense to A from C.
In order to better illustrate the acquisition methods of the business object relations of distribution of the present invention, allot as example from material below, specific as follows:
There is material a, and the relations of distribution of material a are, allot to warehouse B from warehouse A, allot to warehouse C from warehouse B, allot to warehouse A from warehouse C.There is material b, the relations of distribution of material b are, allot to warehouse E from warehouse D, allot to warehouse F from warehouse E, allot to warehouse H from warehouse F.Then the relations of distribution of material a are cycle assignment relation, and the relations of distribution of material b are the acyclic relations of distribution.Cannot determining outbound and the warehouse-in information of material a in the relations of distribution of material a, namely cannot determine the outbound that warehouse is material a, which is the warehouse-in of material a.
The present embodiment is by first judging whether there is cycle assignment relation in the relations of distribution of described source, when there being cycle assignment relation, determine the last relations of distribution in described cycle assignment relation, the described last relations of distribution are deleted, to obtain the new relations of distribution, the described new relations of distribution are not cycle assignment relation, using the acyclic relations of distribution in the relations of distribution of described source and the described new relations of distribution as Target Assignment relation, and distribute cost information according to described Target Assignment relation calculation business object.Be prevented effectively from cannot obtain business object go out warehouse situation, cause cannot the cost information of calculation business object accurately, and then make the cost information of business object adjust not accurate enough, and the problem that efficiency is on the low side.Realize the accounting of finishing service object cost information more accurately, and improve accounting efficiency.
Schematic flow sheet with reference to the second embodiment that Fig. 4, Fig. 4 are the inventive method.Based on the first embodiment of said method, described step S10 may include that
Step S11, obtains the source relations of distribution of business object in ERP system;
Step S12, builds Directed Graph Model according to the described source relations of distribution.
Figure indicates that the method for the relation between object and object, ins succession with line between each object, if giving one direction of each edge regulation of figure, then the figure obtained is called directed graph.Such as, A-> B, for directed graph, the direction of expression is from A to B.When the distribution cost information receiving business object generates instruction, or when described Preset Time arrives, obtain the source relations of distribution of business object in ERP system, build Directed Graph Model according to the described source relations of distribution.
Further, the source relations of distribution of business object in ERP system are obtained based on as above, the described process judging whether to there is cycle assignment relation in the relations of distribution of described source may include that step S50, Depth Priority Algorithm is adopted to travel through described Directed Graph Model, it may be judged whether to there is cycle assignment relation.Depth Priority Algorithm is existing algorithm, and detailed process repeats no more again.
The embodiment of the present invention by being configured to Directed Graph Model by the relations of distribution of business object in ERP system, and travels through described Directed Graph Model based on Depth Priority Algorithm, therefrom quickly determines whether there is cycle assignment relation.Adjust accurately simultaneously at the distribution cost information ensureing business object, further increase accounting efficiency.
Corresponding, the present invention furthermore provides the acquisition device of the business object relations of distribution in a kind of ERP system.
It is the high-level schematic functional block diagram of the first embodiment of the acquisition device of the business object relations of distribution in ERP system of the present invention with reference to Fig. 5, Fig. 5.
In one embodiment, in described ERP system, the acquisition device of the business object relations of distribution includes: acquisition module 10, determine module 20 processing module 30 and generation module 40.
Described acquisition module 10, for obtaining the source relations of distribution of business object in ERP system;
The distribution information of business object can be preserved to ERP system by enterprise or company as required, and described distribution information includes distribution time, distribution services object information, work organization information and/or the relations of distribution etc..When receiving business object distribution cost information and adjusting instruction, or when Preset Time (1 month or a season etc. are arranged according to demand) arrives, obtain the source relations of distribution of business object in ERP system.The described source relations of distribution include the relations of distribution of out position and enter the relations of distribution of position.The source relations of distribution of the business object of described acquisition are distinguished according to the title of business object, namely obtain the source relations of distribution of each business object respectively.Can also be make a distinction according to work organization, namely obtain the source relations of distribution of each business object under each work organization.The described source relations of distribution include the acyclic relations of distribution, for instance, business object a distributes to second position B from primary importance A, then from second position B distribution to the 3rd position C;The relations of distribution of circulation can also be included, for instance, business object a distributes to second position B from primary importance A, then distributes to the 3rd position C from second position B, then from the 3rd position C distribution to primary importance A.
Described determine module 20, for when the described source relations of distribution exist cycle assignment relation, it is determined that the last relations of distribution in described cycle assignment relation, and determine the acyclic relations of distribution in the relations of distribution of described source;
In getting ERP system after the source relations of distribution of business object, judge whether the described source relations of distribution exist cycle assignment relation, when there is cycle assignment relation in the described source relations of distribution, determine the last relations of distribution in described cycle assignment relation, and determine the acyclic relations of distribution in the relations of distribution of described source;If there is multiple cycle assignment relation, then determine the last relations of distribution in each cycle assignment relation respectively.Concrete, the described process judging whether to there is cycle assignment relation in the relations of distribution of described source may is that such as, if same distribution position is original position again for final target location, then judges that described business object exists cycle assignment relation.Such as, business a is from primary importance A distribution to second position B, from second position B distribution to the 3rd position C, from the 3rd position distribution to primary importance A, wherein primary importance A is original position, is also final target location, or second position B is that original position is again for final target location, or the 3rd position C is original position is again final target location, then this relations of distribution are cycle assignment relation.
Described determine module 20, be additionally operable to determine in described cycle assignment relation the distribution time of each the sub-relations of distribution;The distribution time being additionally operable to determine in the described distribution time the latest, using the sub-relations of distribution the latest of described distribution time as the last relations of distribution in described cycle assignment relation.
The relations of distribution of each business object all include at least one the sub-relations of distribution, determine the distribution time of each the sub-relations of distribution in described cycle assignment relation, such as, determine that the sub-relations of distribution of business object a have, the sub-relations of distribution 1, the sub-relations of distribution 2 and the sub-relations of distribution 3, then determine the distribution time of the sub-relations of distribution respectively, such as, the distribution time of the sub-relations of distribution 1 is T1, and the distribution time of the sub-relations of distribution 2 is T2, and the distribution time of the sub-relations of distribution 3 is T3.From T1, T2 and T3, determine the distribution time the latest, namely determine from the nearest sub-relations of distribution of current time, if T3 is nearest from current time, then using the sub-relations of distribution 3 as the last relations of distribution.
Described determine module 20, be additionally operable to determine the record information of described cycle assignment relation;It is additionally operable to determine the last relations of distribution in described cycle assignment relation according to described record information.
When the described relations of distribution exist cycle assignment relation, determine the record information of described cycle assignment relation, described record information can be the assignment flag of business object, such as, the relations of distribution corresponding to business object a first time batch operation arrange assignment flag F1, the second time relations of distribution corresponding to batch operation are set to F2, and the relations of distribution corresponding to third time batch operation are set to F3.Assignment flag according to arranging determines the last relations of distribution in described recurrence relation, for instance, the relations of distribution corresponding for assignment flag F3 are the last relations of distribution of business object a.Can arrange the sequencing of assignment flag according to user habit and demand, follow-up to identify which relations of distribution further according to assignment flag be the last relations of distribution.
It is understandable that, in order to improve the accuracy determining the last relations of distribution, also can also is that to combine distribution time and record information and determine the last relations of distribution, such as, first determine the last relations of distribution according to record information and determine the last relations of distribution according to the distribution time simultaneously, when the last relations of distribution determined for twice are identical, then these relations of distribution are defined as the last relations of distribution, if differing, then point out and therefrom select one of them as the last relations of distribution, or select the last relations of distribution of conduct determined by the distribution time.
Described processing module 30, obtains the new relations of distribution for deleting the described last relations of distribution, using the described new relations of distribution and the described acyclic relations of distribution as Target Assignment relation.
After the last relations of distribution in determining described cycle assignment relation, delete the described last relations of distribution and obtain the new relations of distribution, namely pass through after the deletion of the last relations of distribution, be the acyclic relations of distribution by cycle assignment Automated generalization.Such as, cycle assignment relation is: business object a is from primary importance A distribution to second position B, again from second position B distribution to the 3rd position C, again from the 3rd position C distribution to primary importance A, the last relations of distribution are from the 3rd position C distribution to primary importance A, then these last relations of distribution being deleted, the new relations of distribution are that business object a distributes to second position B from primary importance A, then from second position B distribution to the 3rd position C.Using the described new relations of distribution and the described acyclic relations of distribution as Target Assignment relation, namely described Target Assignment relation is the acyclic relations of distribution.
Described generation module 40, for according to described Target Assignment relation, generating the distribution cost information of business object.
After getting described Target Assignment relation, because described Target Assignment relation is absent from the relations of distribution of circulation, then the out position of determination business object that can be clear and definite and enter position, according to described Target Assignment relation, generate the distribution cost information of business object.When adjusting the distribution expense come in and gone out, the distribution expense gone out is calculated by the distribution expense entered, when there being the relations of distribution of cross-location, the expense entered is calculated by the expense gone out, accordingly, it would be desirable to the out position accurately determined in the relations of distribution and enter position, and whether same business object exists cross-location distribution, it is existing process that concrete distribution expense calculates process, and this is no longer going to repeat them.By the way cycle assignment relation is being interrupted, after deleting by the last relations of distribution of cycle assignment relation, relations of distribution calculating the going out the relations of distribution in out position from out position in the described relations of distribution, but enter described in being not counted in the relations of distribution of position.Such as, the warehouse-in relations of distribution in the last relations of distribution are not counted in distribution expense, but the outbound relations of distribution in the last relations of distribution count distribution expense.
In service logic, when certain business object exists cycle assignment relation, because the out position of distribution cannot be determined and enters position and causes determining distribution information.Accordingly, it would be desirable to the last relations of distribution in cycle assignment relation are interrupted, delete by the last relations of distribution so that cycle assignment relation becomes the acyclic relations of distribution.Concrete that cost accounting process is: such as, at cycle assignment relation A to B to C again in the process of A, the relations of distribution of C to A are deleted, when calculating the distribution expense of A, do not calculate and enter the expense of A (because cannot know the situation that business object comes in and goes out accurately when cycle calculations from C, namely circulation always cannot the distribution expense of accurate calculation business object), but when the distribution expense of calculating C, need to calculate and go out the expense to A from C.
In order to better illustrate the acquisition methods of the business object relations of distribution of the present invention, allot as example from material below, specific as follows:
There is material a, and the relations of distribution of material a are, allot to warehouse B from warehouse A, allot to warehouse C from warehouse B, allot to warehouse A from warehouse C.There is material b, the relations of distribution of material b are, allot to warehouse E from warehouse D, allot to warehouse F from warehouse E, allot to warehouse H from warehouse F.Then the relations of distribution of material a are cycle assignment relation, and the relations of distribution of material b are the acyclic relations of distribution.Cannot determining outbound and the warehouse-in information of material a in the relations of distribution of material a, namely cannot determine the outbound that warehouse is material a, which is the warehouse-in of material a.
The present embodiment is by first judging whether there is cycle assignment relation in the relations of distribution of described source, when there being cycle assignment relation, determine the last relations of distribution in described cycle assignment relation, the described last relations of distribution are deleted, to obtain the new relations of distribution, the described new relations of distribution are not cycle assignment relation, using the acyclic relations of distribution in the relations of distribution of described source and the described new relations of distribution as Target Assignment relation, and distribute cost information according to described Target Assignment relation calculation business object.Be prevented effectively from cannot obtain business object go out warehouse situation, cause cannot the cost information of calculation business object accurately, and then make the cost information of business object adjust not accurate enough, and the problem that efficiency is on the low side.Realize the accounting of finishing service object cost information more accurately, and improve accounting efficiency.
With reference to Fig. 6, described acquisition module 10 also includes acquiring unit 11 and construction unit 12,
Described acquiring unit 11, for obtaining the source relations of distribution of business object in ERP system;
Described construction unit 12, for building Directed Graph Model according to the described source relations of distribution.
Figure indicates that the method for the relation between object and object, ins succession with line between each object, if giving one direction of each edge regulation of figure, then the figure obtained is called directed graph.Such as, A-> B, for directed graph, the direction of expression is from A to B.When the distribution cost information receiving business object generates instruction, or when described Preset Time arrives, obtain the source relations of distribution of business object in ERP system, build Directed Graph Model according to the described source relations of distribution.
Further, with reference to Fig. 7, obtain the source relations of distribution of business object, described judge module 50 in ERP system based on as above, be used for adopting Depth Priority Algorithm to travel through described Directed Graph Model, it may be judged whether there is cycle assignment relation.Depth Priority Algorithm is existing algorithm, and detailed process repeats no more again.
The embodiment of the present invention by being configured to Directed Graph Model by the relations of distribution of business object in ERP system, and travels through described Directed Graph Model based on Depth Priority Algorithm, therefrom quickly determines whether there is cycle assignment relation.Adjust accurately simultaneously at the distribution cost information ensureing business object, further increase accounting efficiency.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every equivalent structure utilizing description of the present invention and accompanying drawing content to make or equivalence flow process conversion; or directly or indirectly it is used in other relevant technical fields, all in like manner include in the scope of patent protection of the present invention.

Claims (12)

1. the acquisition methods of the business object relations of distribution in an ERP system, it is characterised in that comprise the following steps:
Obtain the source relations of distribution of business object in ERP system;
When the described source relations of distribution exist cycle assignment relation, it is determined that the last relations of distribution in described cycle assignment relation, delete the described last relations of distribution and obtain the new relations of distribution;
Determine the acyclic relations of distribution in the relations of distribution of described source, using the described new relations of distribution and the described acyclic relations of distribution as Target Assignment relation.
2. the acquisition methods of the business object relations of distribution in ERP system as claimed in claim 1, it is characterised in that the step of the described last relations of distribution determined in described cycle assignment relation includes:
Determine the distribution time of each the sub-relations of distribution in described cycle assignment relation;
Determine the distribution time the latest in the described distribution time, using the sub-relations of distribution the latest of described distribution time as the last relations of distribution in described cycle assignment relation.
3. the acquisition methods of the business object relations of distribution in ERP system as claimed in claim 1, it is characterised in that the step of the described last relations of distribution determined in described cycle assignment relation includes:
Determine the record information of described cycle assignment relation;
The last relations of distribution in described cycle assignment relation are determined according to described record information.
4. the acquisition methods of the business object relations of distribution in ERP system as claimed in claim 1, it is characterised in that in described acquisition ERP system, the step of the source relations of distribution of business object includes:
Obtain the source relations of distribution of business object in ERP system;
Directed Graph Model is built according to the described source relations of distribution.
5. the acquisition methods of the business object relations of distribution in ERP system as claimed in claim 4, it is characterized in that, the described last relations of distribution determined in described cycle assignment relation, and determine in the relations of distribution of described source before the step of the acyclic relations of distribution, also include:
Depth Priority Algorithm is adopted to travel through described Directed Graph Model, it may be judged whether to there is cycle assignment relation.
6. the acquisition methods of the business object relations of distribution in the ERP system as described in any one of claim 1 to 5, it is characterized in that, the described acyclic relations of distribution determined in the relations of distribution of described source, using the described new relations of distribution and the described acyclic relations of distribution as after the step of Target Assignment relation, also including:
According to described Target Assignment relation, generate the distribution cost information of business object.
7. the acquisition device of the business object relations of distribution in an ERP system, it is characterised in that including:
Acquisition module, for obtaining the source relations of distribution of business object in ERP system;
Determine module, for when the described source relations of distribution exist cycle assignment relation, it is determined that the last relations of distribution in described cycle assignment relation, and determine the acyclic relations of distribution in the relations of distribution of described source;
Processing module, obtains the new relations of distribution for deleting the described last relations of distribution, using the described new relations of distribution and the described acyclic relations of distribution as Target Assignment relation.
8. the acquisition device of the business object relations of distribution in ERP system as claimed in claim 7, it is characterised in that described determine module, is additionally operable to determine in described cycle assignment relation the distribution time of each the sub-relations of distribution;
The distribution time being additionally operable to determine in the described distribution time the latest, using the sub-relations of distribution the latest of described distribution time as the last relations of distribution in described cycle assignment relation.
9. the acquisition device of the business object relations of distribution in ERP system as claimed in claim 7, it is characterised in that described determine module, is additionally operable to determine the record information of described cycle assignment relation;
It is additionally operable to determine the last relations of distribution in described cycle assignment relation according to described record information.
10. the acquisition device of the business object relations of distribution in the ERP system as described in any one of claim 7 to 9, it is characterised in that described acquisition module includes acquiring unit and construction unit,
Described acquiring unit, for obtaining the source relations of distribution of business object in ERP system;
Described construction unit, for building Directed Graph Model according to the described source relations of distribution.
11. the acquisition device of the business object relations of distribution in ERP system as claimed in claim 10, it is characterized in that, in described ERP system, the acquisition device of the business object relations of distribution also includes judge module, for adopting Depth Priority Algorithm to travel through described Directed Graph Model, it may be judged whether there is cycle assignment relation.
12. the acquisition device of the business object relations of distribution in the ERP system as described in any one of claim 7 to 9, it is characterized in that, in described ERP system, the acquisition device of the business object relations of distribution also includes generation module, for according to described Target Assignment relation, generating the distribution cost information of business object.
CN201410789429.3A 2014-12-17 2014-12-17 Method and device for acquiring business object allocation relationship in ERP system Pending CN105760974A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410789429.3A CN105760974A (en) 2014-12-17 2014-12-17 Method and device for acquiring business object allocation relationship in ERP system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410789429.3A CN105760974A (en) 2014-12-17 2014-12-17 Method and device for acquiring business object allocation relationship in ERP system

Publications (1)

Publication Number Publication Date
CN105760974A true CN105760974A (en) 2016-07-13

Family

ID=56340259

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410789429.3A Pending CN105760974A (en) 2014-12-17 2014-12-17 Method and device for acquiring business object allocation relationship in ERP system

Country Status (1)

Country Link
CN (1) CN105760974A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117319A (en) * 2011-01-06 2011-07-06 北京物美商业集团股份有限公司 Method and system for generating delivery order in distribution process
CN102446303A (en) * 2010-09-30 2012-05-09 金蝶软件(中国)有限公司 Distribution method and device of process route subassembly
CN102467693A (en) * 2010-11-16 2012-05-23 金蝶软件(中国)有限公司 Method and system for configuration production of work flow
CN102982415A (en) * 2012-11-22 2013-03-20 用友软件股份有限公司 Task processing system and task processing method
CN103412794A (en) * 2013-08-08 2013-11-27 南京邮电大学 Dynamic dispatching distribution method for stream computing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102446303A (en) * 2010-09-30 2012-05-09 金蝶软件(中国)有限公司 Distribution method and device of process route subassembly
CN102467693A (en) * 2010-11-16 2012-05-23 金蝶软件(中国)有限公司 Method and system for configuration production of work flow
CN102117319A (en) * 2011-01-06 2011-07-06 北京物美商业集团股份有限公司 Method and system for generating delivery order in distribution process
CN102982415A (en) * 2012-11-22 2013-03-20 用友软件股份有限公司 Task processing system and task processing method
CN103412794A (en) * 2013-08-08 2013-11-27 南京邮电大学 Dynamic dispatching distribution method for stream computing

Similar Documents

Publication Publication Date Title
CN105808784B (en) Recommendation method and device
KR102097953B1 (en) Failure risk index estimation device and failure risk index estimation method
CN104599217A (en) Method and device for determining current destination of passenger
Montero et al. Fusing mobile phone data with other data sources to generate input OD matrices for transport models
JP2021064406A (en) Business activity assisting device and business activity assisting method
CN110849384A (en) Navigation route generation method and device, readable storage medium and computer equipment
CN105719111A (en) Method and device for dynamically adjusting transport capacity
EP3514738A1 (en) Demand prediction apparatus, redistribution plan generation apparatus, user model generation apparatus
CN110910054B (en) Track determining method and device and time recommending method and device
CN104616086A (en) Method and equipment used for dynamically setting buffer time of order
CN105550248A (en) User information mining method and apparatus
Lindhard et al. Impact of activity sequencing on reducing variability
WO2019095665A1 (en) Interview method, server and computer-readable storage medium
US20210286780A1 (en) Auto reinforced anomaly detection
CN103809985A (en) Method and system for generating software development program
CN111476550A (en) Engineering cost auditing system
CN109618281B (en) High-speed rail cell identification method and device
US20130117275A1 (en) Index monitoring system, index monitoring method and program
CN104601338A (en) Charging method and device for system
JP2014085774A (en) Regional tendency extraction method in life prediction
CN105760974A (en) Method and device for acquiring business object allocation relationship in ERP system
Juan et al. Simulation-based optimization in transportation and logistics: Comparing sample average approximation with simheuristics
CN103729404A (en) Budget data processing method and system
US20200349527A1 (en) Machine learning risk assessment utilizing calendar data
CN103530190A (en) Load forecasting method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160713

RJ01 Rejection of invention patent application after publication