Customer Relationship Management Blogs by Members
Find insights on SAP CRM and other customer relationship management products and topics in blog posts from community members and share your own perspective.
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos

Module Interfaces - how to call a module from another module

This is just an example from the existing WCEM Standard Code.

Main module has headerView.xhtml which calls LoginRegisterAnchor using tag <wec:moduleInterface>

<wcf:moduleInterface id= "iSIn" name ="" rendered ="#{cc.vch.userActive}" viewComponent ="mainpageLoginRegisterAnchorView"/>

Also, in the headerView.xhtml, we can see below one calling loginInfo.xhtml

<wcf:moduleInterface id= "iLI" name= "" viewComponent ="mainpageLoginInfoView"/>

For both loginInfo.xhtml and loginRegisterAnchor.xhtml - if you see ui-repository.xml, both point to VCH:

<ViewComponent name="loginRegisterAnchor"             componentHandlerClassName="" />
       <ViewComponent name="loginInfo"
             componentHandlerClassName="" />


Answer from forum:

In your case (headerView.xhtml):

- Main module declares that it wants to use a module interface '' in its metadata.xml

In the main module, sap -> md, you can see metadata.xml has

<interfaceDependency dependencyType="soft"


<interfaceDependency dependencyType="soft"

                   interfaceName="" namespace="sap" />

- User module declares that it implements '' in its interface-definition.xml, and that one view with name 'mainpageLoginInfoView' is exposed


            View Interface for the log on link and status used in the header





      <!-- View Interface for the user name display used in the header  -->




- User module provides the implementation details in its metadata.xml. It states

<uiInclude name="mainpageLoginInfoView"


<!-- VIEW Interface implementations -->




So you need to look for include  user/systemlinks/loginInfo_INC!

- User Module - endter the UIInclude in the ui-repository.xml