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

Inserting multiple records to table in web dynpro

I am inserted single record in table created in web

dynpro view. If i insert the second record then the

first record has been overwritten. How to display

all rows that i was inserted without overwritting..

Can any one send me the coding???

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 02:25 PM

    Hi,

    You really should show us how you have done your code so far.

    But in general I would say that you need to use the parameter SET_INITIAL_ELEMENTS of the method that you are using. That has value abap_true by default.

    Regards,

    Karri

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Set_attribute will just add one row.

      you can use bind_table to add multiple rows. add all the rows in internal table and then bind the table

       data:lo_nd_table           type ref to If_Wd_Context_Node,
              ls_table           type wd_This->Elements_Comp,
      
      ls_table will be the internal table.
      
      
      lo_nd_table->Bind_Table(
            New_Items =  ls_table  
            Set_Initial_Elements = Abap_True ).
      
      

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 02:23 PM

    Post the code how you are inserting the rows.

    is your Table control just showing one row?

    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.