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

Inserting Empty Row into Web Dynpro Table

How do insert a empty row into your Web Dynpro Table?

Moderator Message: Before posting a question in the forum please do a search as this subjet has been covered many times in the past. Thread locked.

Edited by: Neil Gardiner on Oct 8, 2010 12:28 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Oct 08, 2010 at 12:21 AM

    by adding an empty element to to context that is bound to the table.

    Add a comment
    10|10000 characters needed characters exceeded

    • For example with a node called "Details" which is bound to your table. A new line is added at the top of the table.

      data: lo_nd_details type ref to if_wd_context_node,
              ls_details type wd_this->element_details,
              lo_new_element type ref to if_wd_context_element.
      
        lo_nd_details = wd_context->get_child_node( name = wd_this->wdctx_details ).
      
      * append a line to the node
        lo_new_element =  lo_nd_details->bind_structure( new_item = ls_details
                                        set_initial_elements = abap_false
                                        index = 1 ).
      

      I would strongly suggest that you read/view some of the excellent eLearnings that Thomas Jung has put out - they give a good introduction into basic WDA coding such as the above.

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.