<?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 Edit data in internal table programatically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-data-in-internal-table-programatically/m-p/4569609#M1078288</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&gt;I have created and populated a custom z table with data. I have also created a custom screen that takes input from the user. Is there a way to edit/update data fields in my table on the basis of what has been input?, Eg. If the table consists of 3 fields, part_number, part_name and description. The user enters a new description for an existing part_number. How to update the description in the table? Example code would be very helpful. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Oct 2008 20:52:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-04T20:52:21Z</dc:date>
    <item>
      <title>Edit data in internal table programatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-data-in-internal-table-programatically/m-p/4569609#M1078288</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&gt;I have created and populated a custom z table with data. I have also created a custom screen that takes input from the user. Is there a way to edit/update data fields in my table on the basis of what has been input?, Eg. If the table consists of 3 fields, part_number, part_name and description. The user enters a new description for an existing part_number. How to update the description in the table? Example code would be very helpful. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Oct 2008 20:52:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-data-in-internal-table-programatically/m-p/4569609#M1078288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-04T20:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Edit data in internal table programatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-data-in-internal-table-programatically/m-p/4569610#M1078289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: 
      BEGIN OF ITAB OCCURS 0,
        F1(12) TYPE C,
      END OF ITAB.

ITAB-F1 = 'MARA'. 
APPEND ITAB.
ITAB-F1 = 'MAKT'. 
APPEND ITAB.
EDITOR-CALL FOR ITAB TITLE 'List the tables'.

LOOP AT ITAB.
  WRITE: / ITAB-F1.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, &lt;/P&gt;&lt;P&gt;1. User can type more. But in each line, for the length of row in our internal table, data are updated back.&lt;/P&gt;&lt;P&gt;2. Old records can be changed.&lt;/P&gt;&lt;P&gt;3. New rows can be created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R.Nagarajan.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt; We can -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Oct 2008 23:10:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-data-in-internal-table-programatically/m-p/4569610#M1078289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-04T23:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Edit data in internal table programatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-data-in-internal-table-programatically/m-p/4569611#M1078290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;First of all take the  values in an internal table,when the user enter new values you can update the internal table using the MODIFY statement .After that delete the values in the custom table and upload the new values into the z-table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Midhun Abraham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Oct 2008 01:06:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-data-in-internal-table-programatically/m-p/4569611#M1078290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-05T01:06:38Z</dc:date>
    </item>
  </channel>
</rss>

