<?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 Regarding modify. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-modify/m-p/1789199#M339620</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a r/3 table roosourcet .&lt;/P&gt;&lt;P&gt;In this table we have fields like version , oltpsource , langu ,TXT etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to modify 3 items for field TXT  based on slection OLTPSOURCE = 2LIS_13_VDHDR ,version = 'A' and langu = 'EN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do it ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Dec 2006 12:42:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-28T12:42:09Z</dc:date>
    <item>
      <title>Regarding modify.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-modify/m-p/1789199#M339620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a r/3 table roosourcet .&lt;/P&gt;&lt;P&gt;In this table we have fields like version , oltpsource , langu ,TXT etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to modify 3 items for field TXT  based on slection OLTPSOURCE = 2LIS_13_VDHDR ,version = 'A' and langu = 'EN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do it ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 12:42:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-modify/m-p/1789199#M339620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T12:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding modify.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-modify/m-p/1789200#M339621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi akash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Direct updation of standard sap table is not recommended.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. however, to do it, we can do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.  select * from roosourcet&lt;/P&gt;&lt;P&gt;    into table itab&lt;/P&gt;&lt;P&gt;    where (conditions.... ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   data : tabix like sy-tabix.&lt;/P&gt;&lt;P&gt;   LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ITAB-field = 'xyz'.&lt;/P&gt;&lt;P&gt;   modify rooourcet from itab.&lt;/P&gt;&lt;P&gt;   endloop.&lt;/P&gt;&lt;P&gt;&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 12:47:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-modify/m-p/1789200#M339621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T12:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding modify.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-modify/m-p/1789201#M339622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit thanks for ur reply,&lt;/P&gt;&lt;P&gt; But itab-field  = 'a'  , how will it going to modify according to my field oltpsource = '2lis......'&lt;/P&gt;&lt;P&gt; That is I want to modify files for only a particular value of the field oltpsource.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 12:51:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-modify/m-p/1789201#M339622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T12:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding modify.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-modify/m-p/1789202#M339623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select * from roosourcet&lt;/P&gt;&lt;P&gt;into table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : tabix like sy-tabix.&lt;/P&gt;&lt;P&gt;LOOP AT ITAB where &amp;lt;condition&amp;gt;.&lt;/P&gt;&lt;P&gt;ITAB-field = 'xyz'.&lt;/P&gt;&lt;P&gt;modify rooourcet from itab index sy-tabix.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 13:01:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-modify/m-p/1789202#M339623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T13:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding modify.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-modify/m-p/1789203#M339624</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;I hope the following code will helpful for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select * 
   from roosourcet 
   into table lt_roosourcet
 where OLTPSOURCE = '2LIS_13_VDHDR'
    and version = 'A' 
    and langu   = 'EN'.
if sy-subrc eq 0.
loop at lt_roosourcet into wa_roosourcet.
* give modification field list like 
 wa_roosourcet-txt = 'Testing'.
modify lt_roosourcet from wa_roosourcet transporting TXT.
endloop.

* Please lock all entries using ENQUEUE
modify roosourcet from table lt_roosourcet.
if sy-subrc eq 0.
* Please unlock all entries using DEQUEUE
endif.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the following code also as if SELECT and ENDSELECT allowed in your project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select * 
  from roosourcet 
 where OLTPSOURCE = '2LIS_13_VDHDR'
   and version = 'A' 
   and langu   = 'EN'.
  rooosourcet-TXT = 'Sample test'.
  Modify roosourcet.
endselect.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bhupal Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 13:03:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-modify/m-p/1789203#M339624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T13:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding modify.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-modify/m-p/1789204#M339625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. First select all the records corresponding to where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Then while looping,&lt;/P&gt;&lt;P&gt;     change the field in itab, which u want to change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Then just use the MODIFY statement as in my previous reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  This will change the actual database table.&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 13:06:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-modify/m-p/1789204#M339625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T13:06:55Z</dc:date>
    </item>
  </channel>
</rss>

