The objective of our thesis is to apply affiliate marketing to timber production under the SAP program. With which we can optimize production processes. With that we combine affiliate marketing and industry 4.0 into a single automated unit, based on the theoretical as well as practical experience contained in the thesis. This thesis contains five parts in which we highlight the theoretical basis and we handle the issues. It’s based on predetermined goals of work. The most important part of this work is the knowledge that we acquired by reading professional literature which we applied in the practical part. A substantial part of the work are suggestions and recommendations, where we emphasize concrete points to accomplish the solutions suggested by us in the practical part. The final point of this work is the conclusion in which we evaluate the results of our thesis.