Hello Experts,
I had an exsisting RFC where i have added a table to save values of
'user roles' and changed the source code likewise and activate
it.The RFC at R3 is executing fine and giving the desired output.
For dynpro end, i reimported the model after the change in RFC but
am getting the following error :
java.lang.ArrayIndexOutOfBoundsException: -1
Am enclosing the code below :
-
-
IPublicTdc_DataCust.IZsm_Save_Userskill_InputNode saveNode = wdThis
.wdGetTdc_DataCustController()
.wdGetContext()
.nodeZsm_Save_Userskill_Input();
IPublicTdc_DataCust.IZsm_Save_Userskill_InputElement saveEle = null;
IPublicTdc_UICust.ICtx_vn_RoleNode RoleNode = wdContext.nodeCtx_vn_Role()IPublicTdc_UICust.ICtx_vn_RoleElement RoleElement = null;
Zsm_Save_Userskill_Input userSkillIp = new
Zsm_Save_Userskill_Input();
Zsm_Role_User userRole = null;
userRole = new Zsm_Role_User();
if(RoleNode.size()>0)
{
userRole.setUser_Id("283002");
userRole.setUser_Role("QL");
try
{
userSkillIp.addIt_Role_User(userRole)
}
catch(Exception e)
{
wdComponentAPI.getMessageManager().reportException("in catch
for role user :"+ e.toString(),false);
}
}
saveNode.bind(userSkillIp);
wdThis.wdGetTdc_DataCustController().executeZsm_Save_UserSkill_Inpu
t();
-
-
Executing it i get the following error at dynpro end :
in catch for role user :java.lang.ArrayIndexOutOfBoundsException:
-1
Any clues on the same ?