Skip to Content
0
Former Member
Aug 05, 2009 at 07:01 AM

Import RFC

25 Views

Hi,

I am getting following error when I do model binding:

Model Classes:

Zmi_Visitor_Mgmt

Zmi_Visitor_Mgmt_Rfc_Input

Output

Total_Visitors

Zmi_Visitor_Mgmt_Rfc_Output

Total_Visitors

code:

Zmi_Visitor_Mgmt_Display_Rfc_Input display = new Zmi_Visitor_Mgmt_Display_Rfc_Input();

wdContext.nodeZmi_Visitor_Mgmt_Display_Rfc_Input().bind(display);

Zmi_Visitor_Mgmt visitor = new Zmi_Visitor_Mgmt();

display.addTotal_Visitors(visitor);

display.setVisitor_Name(wdContext.currentZmi_Visitor_Mgmt_Display_Rfc_InputElement().getVisitor_Name());

Error:

java.lang.ArrayIndexOutOfBoundsException: -1

at com.sap.mw.jco.JCO$MetaData.getType(JCO.java:10210)

at com.sap.aii.proxy.framework.core.JcoBaseTypeData.getElementValue(JcoBaseTypeData.java:503)

at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.getRelatedModelObjects(DynamicRFCModelClass.java:787)

at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.addRelatedModelObject(DynamicRFCModelClass.java:821)

at com.osi.practice.visitor.model.Zmi_Visitor_Mgmt_Display_Rfc_Input.addTotal_Visitors(Zmi_Visitor_Mgmt_Display_Rfc_Input.java:170)

Regards,

Imtiyaz