Skip to Content
author's profile photo Former Member
Former Member

how to insert datas from internal table into databasetable through onclick

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

send me the coding....

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 11:18 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.