Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A


Hi Experts,

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 suresh1.Zhr_Empdata_Get_Output.getZp0002(
    at suresh.wdp.IPublicTestAppli$IZp0002Node.doSupplyElements(

can anyone help me ?



Former Member
Former Member replied

Hi Suresh,

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.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question