Regarding enterprise service management, optimizing business processes must achieve a balance between several service quality factors such as speed, flexibility, and cost. Recent advances in industrial wireless technology and the Internet of Things (IoT) have brought about a paradigm shift in smart applications, such as manufacturing, predictive maintenance, smart logistics, and energy networks. This has been assisted by smart devices and intelligent machines that aim to leverage flexible smart Enterprise Resource Planning (ERP) regarding all the needs of the company. Many emerging research approaches are still in progress with the view to composing IoT and Cloud services for meeting the expectation of companies. Many of these approaches use ontologies and metaheuristics to optimize service quality of composite IoT and Cloud services. These approaches lack responsiveness to changing customer needs as well as changes in the power capacity of IoT devices. This means that optimization approaches need an effective adaptive strategy that replaces one or more services with another at runtime, which improves system performance and reduces energy consumption. The idea is to have a system that optimizes the selection and composition of services to meet both service quality and energy saving by constantly reacting to context changes. In this paper, we present a semantic dynamic cooperative service selection and composition approach while maximizing customer non-functional needs and quickly selecting the relevant service drive with energy saving. Particularly, we introduce a new QoS energy violation degree with a cooperative energy-saving mechanism to ensure application durability while different IoT devices are run-out of energy. We conduct experiments on a real business process of the company SETIF IRIS using different cooperative strategies. Experimental results showed that the smart ERP system with the proposed approach achieved optimized ERP performance in terms of average service quality and average energy consumption ratio equal to 0.985 and 0.057, respectively, in all simulated configurations compared to ring and maser/slave methods.