I am developing an application and asked ABAP guy to write the BAPI's for my application. In the BAPI , he has used some structures. When I execute them in R/3 System they are working fine.
but ! when I use them in my application I am getting the following error. I don't why it is happening .
java.lang.ArrayIndexOutOfBoundsException: -1 at com.sap.mw.jco.JCO$MetaData.getType(JCO.java:10161) at com.sap.aii.proxy.framework.core.JcoBaseTypeData.getElementValue(JcoBaseTypeData.java:503) at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.getRelatedModelObject(DynamicRFCModelClass.java:738) at suresh1.Zhr_Empdata_Get_Output.getZp0002(Zhr_Empdata_Get_Output.java:194) at suresh.wdp.IPublicTestAppli$IZp0002Node.doSupplyElements(IPublicTestAppli.java:535)
can anyone help me ?
R S R K V PRASAD replied
You are not getting the data from BAPI in WD application. So first check , are you passing all the necessary parameters to BAPI before executing it?
You told that that you can execute the BAPI successfully in R/3.
Are you passing any parameters' values there?
If you are passing the mandatory parameters before calling the BAPI, try to print their values in execute BAPI method.
And comment the statements that are using any output data for testing purpose.