cancel
Showing results for 
Search instead for 
Did you mean: 

Import RFC

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Gulam

Try to create model object

Model model = new Model();

Put that model ref in

Zmi_Visitor_Mgmt_Display_Rfc_Input display = new Zmi_Visitor_Mgmt_Display_Rfc_Input(model);

Regards

Ruturaj

Former Member
0 Kudos

Please check on the following points

1. Is RFC modified after you imported it. If yes then you need to import it again.

2. Is JCO connection working fine.

Former Member
0 Kudos

Has the interface of the RFC been changed?

If so a J2EE server restart will solve the problem.