Method for allocating and transferring material between SAP system and multiple MES systems

A method for allocating and transferring a material between a SAP system and multiple MES systems is disclosed. The method is used to solve mutual interaction of a material allocation and transfer information MES between a upstream factory and a downstream factory. The method is characterized in that: an initiator selects the material which needs to be allocated and transferred from a factory MES system, the main information of the material is transmitted to the downstream factory and the material is placed in a '' on the way '' state; a downstream factory MES system displays the information, after actual logistics arrives, object information and the system information are checked; if the upstream factory receives '' acceptance '' information, a one step cargo moving interface of the SAP system is called and the information is transmitted to the SAP system so as to carry out cargo movement and finance processing; after the SAP system completes the cargo movement, material movement success information of the two upstream and downstream MES systems are returned respectively, complete batch attribute information of the is issued to the MES system, and the MES system updates loading/unloading and the batch attribute of the system according to SAP material movement success information respectively.