cancel
Showing results for 
Search instead for 
Did you mean: 

how to insert datas from internal table into databasetable through onclick

Former Member
0 Kudos

how to insert datas from internal table into databasetable through onclick in web dynpro...

send me the coding....

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

Create a context node with cardinality 0..n and the bind it with the table.

To populate a node you need to proceed like follows:


  DATA:
    lt_list TYPE        wd_this->elements_list.
    lr_list TYPE REF TO if_wd_context_node.

  SELECT * FROM zlist INTO lt_list.
  lr_list = wd_context->get_child_node( name = wd_this->wdctx_list ).
  IF lr_list IS NOT INITIAL.
    lr_list->bind_table( lt_list ).
  ENDIF.

This code must be in the action that is associated with button (property onAction ).

Regards.