Skip to Content
0
Former Member
May 26, 2006 at 03:01 AM

Web DynPro application Output objecy mapping

40 Views

Hello,

I am creating Web Dynpro for Java application using Dev studio. I have created the application and the necessary JCO destination/models etc. I have used the BAPI_EMPLOYEE_GETLIST.

This creates 3 proxy classes:

Bapi_Employee_Getlist_Input

Bapi_Employee_Getlist_Output

Bapiemp_Ls

I am having an issue binding the output object to the BAPI.

I have a customcontroller the with the following method:

public void wdDoInit()

{

Bapi_Employee_Getlist_Input input = new Bapi_Employee_Getlist_Input();

wdContext.nodeBapi_Employee_Getlist_Input().bind(input);

//THis is where the problem is!!

input.setEmployee_List(?????);

//@@end

}

The parametr that the set method (?????) takes is AbstractList and not Bapiemp_Ls.

I am searching on the employee name. The field in the browser gets greyed out/disabled too!!

Any clues to resolve this would be REALLY APPRECIATED!!

If you could point me to any Web Dyn pro apps that invoke BAPIs to fecth employee details from R/3 would be helpful too.

Thanks!!!

Navin