And also make sure to use the @DynamicComponentDependency annotation in your code whenever you have referred an object belongs to another component to avoid any deployment or runtime issues.
copied this section from above link to pay your attention.
Developer Studio usages of Conditional Compilation
If you want an entire PL/SQL method to be excluded or included depending on another component, use the @DynamicComponentDependency annotation. You may also use a static Boolean expression of your own to get the same result, by using the @DynamicDependency annotation.
Technically you have to use @DynamicDependency annotation in your code and add module reference CONFIG=DYNAMIC in your modules deploy.ini file Connection section.
There is a point that the view you are trying to use in your code is a custom lu view. It is not recommended to use “configuration layer objects” in “customization layer”. In case you need to use those entities in your code, they have to be modeled and developed by developer studio and placed in your project structure.
IFS’s technical approach is making adaptions on highest layer as possible, upper layers can use lower layers objects but lower levels should not use upper level objects. In cases that rule is not omitted changes in configuration layer creates lots of invalid database objects and creates risks esp. for production environments.