You have to make the hook at "KOMFlmLin" to be able to compile within the Project Manager. Same as in SI2S7. At commissioning the Simatic Manager project is either on the Server (\KOM\_engineeringpublicplcS7) or on the Remote Station (\KOMRMTSimaticManager)