<?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>topic Re: Insert row in ALV grid in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-row-in-alv-grid/m-p/3048105#M721582</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;       First ask the user to select the row and click on insert button.&lt;/P&gt;&lt;P&gt;Ask option whether he wants to insert before or after current row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can find the index of the current selected row. based up on the option he selects, insert the row into the GRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_index = sy-index +1 (or -1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  INSERT  &lt;/P&gt;&lt;P&gt;         INTO it_tab INDEX l_index&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Niyaz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2007 10:34:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-29T10:34:11Z</dc:date>
    <item>
      <title>Insert row in ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-row-in-alv-grid/m-p/3048104#M721581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts!!&lt;/P&gt;&lt;P&gt;i am working on ALv using OO.I have to insert the datas in the grid for which i have a Insert Button.&lt;/P&gt;&lt;P&gt;when i insert the row i am geetting the values in the ITAB from which i am modifying my DB table. but when i  insert anew row its getting modifed in the existing top row insted of ineserting a new row.&lt;/P&gt;&lt;P&gt;plz guide me wats wrong with teh same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plzzz replye me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 10:28:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-row-in-alv-grid/m-p/3048104#M721581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T10:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Insert row in ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-row-in-alv-grid/m-p/3048105#M721582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;       First ask the user to select the row and click on insert button.&lt;/P&gt;&lt;P&gt;Ask option whether he wants to insert before or after current row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can find the index of the current selected row. based up on the option he selects, insert the row into the GRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_index = sy-index +1 (or -1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  INSERT  &lt;/P&gt;&lt;P&gt;         INTO it_tab INDEX l_index&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Niyaz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 10:34:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-row-in-alv-grid/m-p/3048105#M721582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T10:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Insert row in ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-row-in-alv-grid/m-p/3048106#M721583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how u r inserting into ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try Appending to ITAB and then SORT...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 10:35:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-row-in-alv-grid/m-p/3048106#M721583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T10:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Insert row in ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-row-in-alv-grid/m-p/3048107#M721584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii thankx..&lt;/P&gt;&lt;P&gt;i have used Get_selected_row and after inserting a row and preseing 'save button also its not updating the DB table as new row but updating in same row..&lt;/P&gt;&lt;P&gt;but in ITAb i used index like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_index = l_row-index.&lt;/P&gt;&lt;P&gt;read table pt_102[]  into lt_102 index l_index .&lt;/P&gt;&lt;P&gt;modify y4arc_res_period from lt_102  .&lt;/P&gt;&lt;P&gt;please help me..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 10:38:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-row-in-alv-grid/m-p/3048107#M721584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T10:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Insert row in ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-row-in-alv-grid/m-p/3048108#M721585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii thankx..&lt;/P&gt;&lt;P&gt;i have used Get_selected_row and after inserting a row and preseing 'save button also its not updating the DB table as new row but updating in same row..&lt;/P&gt;&lt;P&gt;but in ITAb i used index like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_index = l_row-index.&lt;/P&gt;&lt;P&gt;read table pt_102[] into lt_102 index l_index .&lt;/P&gt;&lt;P&gt;modify y4arc_res_period from lt_102 .&lt;/P&gt;&lt;P&gt;please help me..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 10:38:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-row-in-alv-grid/m-p/3048108#M721585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T10:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Insert row in ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-row-in-alv-grid/m-p/3048109#M721586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use the following.&lt;/P&gt;&lt;P&gt;data: itab1 like itab(ur internal table used in prog) occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data: l_index like sy-index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read current line.&lt;/P&gt;&lt;P&gt;l_index = line + 1. &lt;/P&gt;&lt;P&gt;OR &lt;/P&gt;&lt;P&gt;l_index = line - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT &lt;/P&gt;&lt;P&gt;INTO itab1 INDEX l_index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srimanta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 10:43:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-row-in-alv-grid/m-p/3048109#M721586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T10:43:29Z</dc:date>
    </item>
  </channel>
</rss>

