<?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 editable alv with oops in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-with-oops/m-p/9179863#M1712979</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;&lt;/P&gt;&lt;P&gt;my requirement is to work with editable alv&lt;/P&gt;&lt;P&gt;like under save i have to write logic for insert and update and delete functionality&lt;/P&gt;&lt;P&gt;and also increase the serial no dynamically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;save has&amp;nbsp; &amp;gt; insert and update and delete&lt;/P&gt;&lt;P&gt;serial no should be increase automatically&lt;/P&gt;&lt;P&gt;while save it should compare whether is any data change or not&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jan 2013 15:33:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-01-17T15:33:42Z</dc:date>
    <item>
      <title>editable alv with oops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-with-oops/m-p/9179863#M1712979</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;&lt;/P&gt;&lt;P&gt;my requirement is to work with editable alv&lt;/P&gt;&lt;P&gt;like under save i have to write logic for insert and update and delete functionality&lt;/P&gt;&lt;P&gt;and also increase the serial no dynamically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;save has&amp;nbsp; &amp;gt; insert and update and delete&lt;/P&gt;&lt;P&gt;serial no should be increase automatically&lt;/P&gt;&lt;P&gt;while save it should compare whether is any data change or not&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 15:33:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-with-oops/m-p/9179863#M1712979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-17T15:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: editable alv with oops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-with-oops/m-p/9179864#M1712980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;If you want to work with oops editable alv then first you have to create a screen and draw a custom control inside the screen , I hope you know this. So, instead of going detail i would like to share the other functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;1. Automatically Serial no increment : I hope you are saving the serial no data somewhere in the database. So, it can be easily done in the PBO of the screen by retrieving the data from the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;If it is multiple row of serial no's&amp;nbsp; then you have to re-arrange the data. &lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Suppose you have created a one row alv list. Now you want to add 2 rows then first create all the row and while saving the data it will regenerate the serial nos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;First retrieve data into internal table. then loop in to that internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Please refer to below code for regeneration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;DATA: lv_item&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE&amp;nbsp; serial_no,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lt_item&amp;nbsp; Standard table of ty_item.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;FIELD-SYMBOLS &lt;/SPAN&gt;&amp;lt;lfs_item&amp;gt; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;ty_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CLEAR &lt;/SPAN&gt;lv_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;LOOP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;lt_item &lt;SPAN class="L0S52"&gt;ASSIGNING &lt;/SPAN&gt;&amp;lt;lfs_item&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_item = lv_item + &lt;SPAN class="L0S32"&gt;1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;lfs_item&amp;gt;-item = lv_item.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ENDLOOP.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;2. Saving data: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;First you keep your old data into an internal table. then when you will insert or update any row in alv then after insert or update your new data will generate in a new internal table of same format. &lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Compare two tables if you found that two tables are not matching then there is a change in alv.&amp;nbsp; so, you can track the changes and save data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;3. Insert, update and delete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;If you are working with editable alv then you have option to add row, delete row or updating the data in the cell as will. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;To achieve this ,there are so many things you need to write in your code.&amp;nbsp; I have just briefed you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Please let me know if you need more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Abhijit &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 12:48:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-with-oops/m-p/9179864#M1712980</guid>
      <dc:creator>Abhijit74</dc:creator>
      <dc:date>2013-01-18T12:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: editable alv with oops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-with-oops/m-p/9179865#M1712981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Requirement Dumping is against Forum Rules.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; background: white; color: #333333; font-size: 10pt;"&gt;Please show what research you have done before posting&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 3pt; background: white;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; background: white; color: #333333; font-size: 10pt;"&gt;Read the&lt;/SPAN&gt; &lt;A _jive_internal="true" href="https://answers.sap.com/docs/DOC-19331"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #3778c7; font-size: 10pt;"&gt;Rules of Engagement&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 06:14:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-with-oops/m-p/9179865#M1712981</guid>
      <dc:creator>Venkat_Sesha</dc:creator>
      <dc:date>2013-01-21T06:14:59Z</dc:date>
    </item>
  </channel>
</rss>

