Skip to Content
0
Former Member
Jan 18, 2004 at 02:38 PM

BAPI Access Problem / Job request

32 Views

Hi,

I am trying to access a BAPI (BAPI_MATERIAL_GETLIST). The problem is that the input fields in the first View are disabled when I run the web dynpro application. Maybe the cause is wrong initialization of the "input objects":

A code example from a WAS6.30 tutorial shows the following initialisation in the wdDoInit method of the custom controller (based on the SAP flight app for training purposes):

-

-


/** Hook method called to initialize controller. */

public void wdDoInit() {

//@@begin wdDoInit()

// Creates the input elements

Bapi_Flight_Getlist_Input input = new Bapi_Flight_Getlist_Input();

wdContext.nodeBapi_Flight_Getlist_Input().bind(input);

Bapisfldst bapisfldstFrom = new Bapisfldst();

input.setDestination_From(bapisfldstFrom);

Bapisfldst bapisfldstTo = new Bapisfldst();

input.setDestination_To(bapisfldstTo);

...

-

-


Analogical in my case the initialization would be:

-

-


/** Hook method called to initialize controller. */

public void wdDoInit() {

//@@begin wdDoInit()

// Creates the input elements

Bapi_Material_Getlist_Input input = new Bapi_Material_Getlist_Input();

wdContext.nodeBapi_Material_Getlist_Input().bind(input);

// Bapimatras matshortdescsel = new Bapimatras();

// input.setMaterialshortdescsel(matshortdescsel) ;

...

-

-


Maybe here is the problem: in the last line the input.setMaterialshortdescsel does not accept the type Bapimatras, but the type com.sap.tc.webdynpro.modelimpl.rfcadapter.RFCAdapterClassList. How can I properly initialize and could this be the cause for the disabled input fields?

Kind regards,

Kristian Weissmann

ps.: sorry for being off-topic in the follwoing concern, but it´s important:

in two months my studies (business computing ) is finally over so I am searching for a job. I am very interested in the new SAP technologies (WAS, Webdynpro, XI) and particularly in the topic Enterprise Portals (with SAP!). Maybe someone has a hint for me where to apply. I do prefer the geographical region in and around Munich (Germany) since come from here, but if the line of action is very interesting, the geographical preference is less important. Any tipps? Thanks in advance and sorry again for being of-topic in this thread...