cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI Access Problem / Job request

Former Member
0 Kudos

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...

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Kristian,

disabled input fields indicate that they are invalid. This is the case in the following situations:

- no data-binding between the input field?s value-property an a context attribute was declared at designtime or dynamically programmed at runtime.

- no lead-selection is set (leadselection = -1 ) for the context node, containing the value attributes to which the input field is bound.

- empty node element collection (leadselection = -1, too)

For further analyzing your problem you can get more informations about the client-server-interaction by adding the following URL-parameters:

?sap.csf.transmission=3&sap.csf.trace=3.

Regarding the job request - did you try the official way, sending your CV to the HR departement?

Best regards,

Karin