hi,
I have an application where i use a RFC to Zsm_Actual_Allocation_Input to take input values like startDate,endDate, skills
and execute and populate values in a table.While i pass values for 'skills' only and execute the RFC, it runs fine and
populate values in the table .But while i pass the values for startDate,endDate it always throws an exception saying
java.lang.ArrayIndexOutOfBoundsException: -1
Any clue regarding the error??
Am posting my code along with this :
IPublicTdc_DataCust.IZsm_Actual_Allocation_InputNode AllocationInputNode = wdThis
.wdGetTdc_DataCustController()
.wdGetContext()
.nodeZsm_Actual_Allocation_Input();
Zsm_Actual_Allocation_Input input = new Zsm_Actual_Allocation_Input();
for(int i = 0;i<AllocationDetailsNode.size();++i)
{
AllocationDetailsElement = AllocationDetailsNode.getCtx_vn_AllocationDetailsElementAt(i);
Date dt = AllocationDetailsElement.getStartDate();
try
{
input.setR_Skills("X");
input.setFrom_Date(dt);
input.setTo_Date(AllocationDetailsElement.getEndDate());
}
catch(Exception e)
{
wdComponentAPI.getMessageManager().reportException(""+ e.toString(),false);
}
}
AllocationInputNode.bind(input);
NB : AllocationDetailsNode is the node containing the values of Startdate and Enddate entered by the user from the front-end.