<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: how to add an empty row in a table ? in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766344#M3110908</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi fareez and chengalarayulu... thanks for ur valuable reply..&lt;/P&gt;&lt;P&gt;im not getting how to add a row for a table having data ie... my output is a table initially displayed a data ..&lt;/P&gt;&lt;P&gt;when i clicked on a button(filter) an empty row will append ..&lt;/P&gt;&lt;P&gt;then i can type a field record name (fert ) below it will show all records related to that name..&lt;/P&gt;&lt;P&gt;this is my actual requirement..&lt;/P&gt;&lt;P&gt;fareez : what is the insert command to insert arow ..at starting ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2012 05:24:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-05-08T05:24:51Z</dc:date>
    <item>
      <title>how to add an empty row in a table ?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaq-p/8766338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii, i want to add a row at top of table in which already data is diaplayed....&lt;/P&gt;&lt;P&gt;the scenario is ..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; first I displayed some records in table ..&lt;/P&gt;&lt;P&gt;&amp;nbsp; then when i pressed a button like filter , a row is added as first record which is empty where i can add some data...&lt;/P&gt;&lt;P&gt;(this is not in alv i want it in normal table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance ..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOKESH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 04:51:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaq-p/8766338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-08T04:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to add an empty row in a table ?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766339#M3110903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lokeshwar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you say you want to enter data, use TextEdit element to show the data. Now on the action of the button do as follows,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. get the data on the table using get_static_attributes_table from the context node.&lt;/P&gt;&lt;P&gt;2. now add an empty row at the top using insert command&lt;/P&gt;&lt;P&gt;3. Now bind the table to the context node&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will make a new row appear on the table and you can enter data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fareez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 05:01:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766339#M3110903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-08T05:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to add an empty row in a table ?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766340#M3110904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lokesh, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can do like below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;DATA lo_nd_table &lt;SPAN class="L1S52"&gt;TYPE&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;REF&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;TO&lt;/SPAN&gt; if_wd_context_node.&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L1S52"&gt;DATA&lt;/SPAN&gt; lo_el_table &lt;SPAN class="L1S52"&gt;TYPE&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;REF&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;TO&lt;/SPAN&gt; if_wd_context_element.&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L1S52"&gt;DATA&lt;/SPAN&gt; ls_table &lt;SPAN class="L1S52"&gt;TYPE&lt;/SPAN&gt; wd_this-&amp;gt;element_table.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L1S31"&gt;* navigate from &amp;lt;CONTEXT&amp;gt; to &amp;lt;TABLE&amp;gt; via lead selection&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; lo_nd_table = wd_context-&amp;gt;get_child_node( name = wd_this-&amp;gt;wdctx_table ).&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L1S52"&gt;CALL&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;METHOD&lt;/SPAN&gt; lo_nd_table-&amp;gt;bind_structure&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new_item&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = ls_table&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set_initial_elements = abap_false&lt;BR /&gt;&lt;SPAN class="L1S31"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp; index&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 05:12:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766340#M3110904</guid>
      <dc:creator>chengalarayulu</dc:creator>
      <dc:date>2012-05-08T05:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to add an empty row in a table ?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766341#M3110905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chengalarayulu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code does create a new row at the end of the table, but i think you did not notice that the requirement is for adding a line at the top of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fareez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 05:19:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766341#M3110905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-08T05:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to add an empty row in a table ?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766342#M3110906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we can provide INDEX also, it is already there in called method(BIND_STRUCTURE). it inserts wherevre we want in the table. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 05:24:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766342#M3110906</guid>
      <dc:creator>chengalarayulu</dc:creator>
      <dc:date>2012-05-08T05:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to add an empty row in a table ?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766343#M3110907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we can provide INDEX also, it is already there in called method(BIND_STRUCTURE). it inserts wherevre we want in the table. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 05:24:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766343#M3110907</guid>
      <dc:creator>chengalarayulu</dc:creator>
      <dc:date>2012-05-08T05:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to add an empty row in a table ?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766344#M3110908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi fareez and chengalarayulu... thanks for ur valuable reply..&lt;/P&gt;&lt;P&gt;im not getting how to add a row for a table having data ie... my output is a table initially displayed a data ..&lt;/P&gt;&lt;P&gt;when i clicked on a button(filter) an empty row will append ..&lt;/P&gt;&lt;P&gt;then i can type a field record name (fert ) below it will show all records related to that name..&lt;/P&gt;&lt;P&gt;this is my actual requirement..&lt;/P&gt;&lt;P&gt;fareez : what is the insert command to insert arow ..at starting ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 05:24:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766344#M3110908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-08T05:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to add an empty row in a table ?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766345#M3110909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , chengalarayulu im not getting can brief this point of adding index..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 05:30:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766345#M3110909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-08T05:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to add an empty row in a table ?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766346#M3110910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi lokesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As chengalarayulu says, bind_structure or bind_element will insert a new row to an existing table without affecting the data already present in the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use any of these methods then no need to use the insert command to insert on an itab and then doing bind_table. Just do as chengalarayulu said and don't forget to give the index as 1 to make the row appear on the top.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fareez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 05:31:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766346#M3110910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-08T05:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to add an empty row in a table ?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766347#M3110911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi thanks for ur reply...&lt;/P&gt;&lt;P&gt;but for adding a row im creating a button as filter ..&lt;/P&gt;&lt;P&gt;when i click on it a new row will be added ...then in the action method of button what can i write im not getting pls help me..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 05:47:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766347#M3110911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-08T05:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to add an empty row in a table ?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766348#M3110912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi chengalarayulu urs is right by keeping index value we it allows to add a row ..&lt;/P&gt;&lt;P&gt;but for adding i need to do some action ,in the action method what can we&amp;nbsp; write ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 05:49:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766348#M3110912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-08T05:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to add an empty row in a table ?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766349#M3110913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lokesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;DATA lo_nd_table &lt;SPAN class="L1S52"&gt;TYPE&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;REF&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;TO&lt;/SPAN&gt; if_wd_context_node.&lt;BR /&gt; &lt;SPAN class="L1S52"&gt;DATA&lt;/SPAN&gt; lo_el_table &lt;SPAN class="L1S52"&gt;TYPE&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;REF&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;TO&lt;/SPAN&gt; if_wd_context_element.&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L1S52"&gt;DATA&lt;/SPAN&gt; stru &lt;SPAN class="L1S52"&gt;TYPE&lt;/SPAN&gt; wd_this-&amp;gt;element_NODE_NAME.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; lo_nd_table = wd_context-&amp;gt;get_child_node( name = 'NODE_NAME' ).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L1S52"&gt;CALL&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;METHOD&lt;/SPAN&gt; lo_nd_table-&amp;gt;bind_structure&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new_item&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = stru&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set_initial_elements = abap_false&lt;BR /&gt;&lt;SPAN class="L1S31"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; index&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 1.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;SPAN class="L1S31"&gt;Just write this code and run. Change the NODE_NAME with the name of the node you bound for the table.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;SPAN class="L1S31"&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;SPAN class="L1S31"&gt;Fareez&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 06:00:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766349#M3110913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-08T06:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to add an empty row in a table ?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766350#M3110914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot fareez ... but it is not not editing i want to write in the empty row how can i edit?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 06:15:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766350#M3110914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-08T06:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to add an empty row in a table ?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766351#M3110915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While binding the table make the Element used for each column as TextEdit. By default it will be in TextView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fareez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 06:38:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-add-an-empty-row-in-a-table/qaa-p/8766351#M3110915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-08T06:38:02Z</dc:date>
    </item>
  </channel>
</rss>

