Skip to Content
0
Former Member
May 10, 2013 at 05:59 AM

Error on executing a BAPI - Must not add role listener with role null

49 Views

Hi all,

I have created a web dynpro application which starts a backend workflow. The workflow item is shown in the UWL. On click of the workitem a BAPI is executed. When i open the workitem this is the error i get:

com.sap.tc.cm.base.exception.BaseModelRuntimeException: Must not add role listener with role null

at com.sap.tc.cm.base.model.BaseGenericModelClass.registerRoleListener(BaseGenericModelClass.java:905)

at com.sap.tc.cm.arfc2.gci.ARFC2TypedModelClass.registerRoleListener(ARFC2TypedModelClass.java:241)

at com.sap.tc.webdynpro.progmodel.context.RelationElementList.<init>(ElementList.java:2135)

at com.sap.tc.webdynpro.progmodel.context.DataNode.createRelationElementList(DataNode.java:271)

at com.sap.tc.webdynpro.progmodel.context.DataNode.setElements(DataNode.java:243)

When i directly access the iview, the data is populated. But when i open the workitem, i get the error. Please help me with this.

Note: I re-imported a model after a structural change. If a restart of the J2EE engine could solve the issue, how is that when i access the iview the BAPI is executed.

Thanks.

Manoj