cancel
Showing results for 
Search instead for 
Did you mean: 

updating database table

Former Member
0 Kudos
84

Hello All,

I am trying to update a database table, the new values for the table will come from input fields from a table.

I created a value node...and created three attributes to it...let say name, age, current date. the node structure looks like this:

node:person

-


>name

-


>age

-


>currdate

to begin with i just enable two first rows of the table to input data....now I am trying to copy this input data to the model table...coming from BAPI....

model node structure looks like this:

node: Zbapi

-


Output

-


outtab <---this is the table i want to pass my data

but I am not able to do so...

I also tried to bind the bapi table(outtab) directly to the UI elements...so that the data can go directly to the bapi and i donot need to copy my value node to the model table....but the input fields are grayed out i can not input any data to it...i could not add the elements to this model table....

can anyone pls tell me how can i bind my outtab to the UI element for user to input data....

Thanks....

View Entire Topic
Former Member
0 Kudos

Hi,

you have to initialize your model node..


public void wdDoInit()
  {
Bapi_Flight_Getlist_Input input = new Bapi_Flight_Getlist_Input();
    wdContext.nodeBapi_Flight_Getlist_Input().bind(input);
    input.setDestination_From(new Bapisfldst());
    input.setDestination_To(new Bapisfldst());
}

It will enable your input fields.

Thanks

Abhilasha

Edited by: Abhilasha Dahare on Sep 15, 2008 7:19 AM