Hi All,
I am trying to pass List(java.util.List) as input to RFC which takes input of type AbstractList. While setting input I am casting it to Abstract as below:
public java.lang.String executeRFC( boolean executeflag, java.util.List orderlist)
{
modelinput inputElement =new modelinput();
inputElement.setIt_exec(executeflag);
inputElement.setIt_orders((AbstractList) orderlist); //casting Llist to AbstractList.
//...and binding the inputs and execute RFC code.... //
}
Above code shows no compile time errors. But when I run the app I am getting the below error. Any help would be greatfull.
java.lang.ClassCastException: Cannot cast class java.util.ArrayList to class com.sap.aii.proxy.framework.core.AbstractList
thanks,
Nooruddin