<?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: UPDATE only INITIAL fields in Table... Anyone know how? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-only-initial-fields-in-table-anyone-know-how/m-p/8844253#M1684524</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 believe that there is not an automated way to do it. But, instead writing if statements for every field why don't you try to create a dynamic piece of coding .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way could be to get the fields of the table ( dd_nametab_get ) and then while looping in each field assigning the table value and check if it it initial or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : fieldname(30).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field symbols : &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at nametab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate : 'ZREQ_ITGOV-' nametab-fieldname into fieldname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign : ( fieldname ) to &amp;lt;fs&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check : sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if &amp;lt;fs&amp;gt; is initial.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the possible errors in coding but it was written very quickly !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2012 16:26:08 GMT</pubDate>
    <dc:creator>laurent_fournier2</dc:creator>
    <dc:date>2012-06-05T16:26:08Z</dc:date>
    <item>
      <title>UPDATE only INITIAL fields in Table... Anyone know how?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-only-initial-fields-in-table-anyone-know-how/m-p/8844249#M1684520</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;Here's my program. (segment)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT REQUEST_NUM FROM ZREQ_ITGOV&lt;/P&gt;&lt;P&gt;INTO pREQ-REQUEST_NUM&lt;/P&gt;&lt;P&gt;WHERE REQUEST_NUM = lREQ-REQUEST_NUM.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF pREQ-REQUEST_NUM = lREQ-REQUEST_NUM.&lt;/P&gt;&lt;P&gt;UPDATE ZREQ_ITGOV from lREQ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(In this part I want to add more... I need to specify to update the initial fields only...)&lt;/P&gt;&lt;P&gt;I do not want the existing fields in the table overwritten when I run the method.&lt;/P&gt;&lt;P&gt;I do not want to specify exactly which fields to update because there are a TON!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So.... is there a way to specify updating only the initial fields within that table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise I need to use Where (and list each field) IS INITIAL&amp;nbsp;&amp;nbsp; - correct? - will be testing while waiting for answers...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;lt;&amp;lt; Moderator message - please do not offer points &amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rob Burbank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 15:19:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-only-initial-fields-in-table-anyone-know-how/m-p/8844249#M1684520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-05T15:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: UPDATE only INITIAL fields in Table... Anyone know how?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-only-initial-fields-in-table-anyone-know-how/m-p/8844250#M1684521</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 don't think there is anything in ABAP SQL where you can update only intial fields or something like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is possible in native SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the beow link:&lt;BR /&gt;&lt;A href="http://social.msdn.microsoft.com/Forums/en/transactsql/thread/619dbb5d-08bc-4bf7-8bdf-9bc473dadf66"&gt;http://social.msdn.microsoft.com/Forums/en/transactsql/thread/619dbb5d-08bc-4bf7-8bdf-9bc473dadf66&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The native SQL query needs to be written inside EXEC SQL and END EXEC in ABAP to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else the good old loop and check is initial &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/777/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how it goes!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 15:52:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-only-initial-fields-in-table-anyone-know-how/m-p/8844250#M1684521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-05T15:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: UPDATE only INITIAL fields in Table... Anyone know how?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-only-initial-fields-in-table-anyone-know-how/m-p/8844251#M1684522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM ZREQ_ITGOV&lt;/P&gt;&lt;P&gt;INTO PREQ&lt;/P&gt;&lt;P&gt;WHERE REQUEST_NUM = lREQ-REQUEST_NUM.&lt;/P&gt;&lt;P&gt;ENDSELECT&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ASSIGN preq TO &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;ASSIGN ireq TO &amp;lt;target&amp;gt;.&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT sy-index OF STRUCTURE &amp;lt;wa&amp;gt; TO &amp;lt;field&amp;gt;.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT sy-index OF STRUCTURE &amp;lt;target&amp;gt; TO &amp;lt;field1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF &amp;lt;field&amp;gt; IS INITIAL and &amp;lt;field1&amp;gt; IS NOT initial.&lt;/P&gt;&lt;P&gt;&amp;lt;field1&amp;gt; = &amp;lt;field&amp;gt;. "Overwrite with original data　　&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN id="mce_marker"&gt;&lt;/SPAN&gt;ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE ZREQ_ITGOV FROM PREQ.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shambu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 16:21:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-only-initial-fields-in-table-anyone-know-how/m-p/8844251#M1684522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-05T16:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: UPDATE only INITIAL fields in Table... Anyone know how?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-only-initial-fields-in-table-anyone-know-how/m-p/8844252#M1684523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"&amp;lt;field1&amp;gt; = &amp;lt;field&amp;gt;. "Overwrite with original data　　"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but, is it me, or is this statement backward?&amp;nbsp; Simple process, really, surprised that someone would suggest native SQL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 16:25:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-only-initial-fields-in-table-anyone-know-how/m-p/8844252#M1684523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-05T16:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: UPDATE only INITIAL fields in Table... Anyone know how?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-only-initial-fields-in-table-anyone-know-how/m-p/8844253#M1684524</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 believe that there is not an automated way to do it. But, instead writing if statements for every field why don't you try to create a dynamic piece of coding .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way could be to get the fields of the table ( dd_nametab_get ) and then while looping in each field assigning the table value and check if it it initial or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : fieldname(30).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field symbols : &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at nametab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate : 'ZREQ_ITGOV-' nametab-fieldname into fieldname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign : ( fieldname ) to &amp;lt;fs&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check : sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if &amp;lt;fs&amp;gt; is initial.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the possible errors in coding but it was written very quickly !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 16:26:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-only-initial-fields-in-table-anyone-know-how/m-p/8844253#M1684524</guid>
      <dc:creator>laurent_fournier2</dc:creator>
      <dc:date>2012-06-05T16:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: UPDATE only INITIAL fields in Table... Anyone know how?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-only-initial-fields-in-table-anyone-know-how/m-p/8844254#M1684525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I think you should check your logic first. You could be SELECTing a number of rows from the Z table, but only attempting to modify the last one taken.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If at least one record is picked, then the condition &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;IF pREQ-REQUEST_NUM = lREQ-REQUEST_NUM.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will always be true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rather you should check sy-subrc after the SELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 16:26:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-only-initial-fields-in-table-anyone-know-how/m-p/8844254#M1684525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-05T16:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: UPDATE only INITIAL fields in Table... Anyone know how?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-only-initial-fields-in-table-anyone-know-how/m-p/8844255#M1684526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, its backward. Thanks Break Point!&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #333333; font-size: 12px;"&gt;SELECT SINGLE * FROM ZREQ_ITGOV&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;INTO PREQ&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;WHERE REQUEST_NUM = lREQ-REQUEST_NUM.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;ENDSELECT&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;ASSIGN preq TO &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;ASSIGN ireq TO &amp;lt;target&amp;gt;.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;DO.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;ASSIGN COMPONENT sy-index OF STRUCTURE &amp;lt;wa&amp;gt; TO &amp;lt;field&amp;gt;.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;exit.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;ENDIF.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;ASSIGN COMPONENT sy-index OF STRUCTURE &amp;lt;target&amp;gt; TO &amp;lt;field1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;IF &amp;lt;field&amp;gt; IS INITIAL and &amp;lt;field1&amp;gt; IS NOT initial.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG&gt;&amp;lt;field&amp;gt; = &amp;lt;field1&amp;gt;. "Overwrite with original data &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;UPDATE ZREQ_ITGOV FROM PREQ.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 16:33:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-only-initial-fields-in-table-anyone-know-how/m-p/8844255#M1684526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-05T16:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: UPDATE only INITIAL fields in Table... Anyone know how?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-only-initial-fields-in-table-anyone-know-how/m-p/8844256#M1684527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for your great suggestions.&amp;nbsp; There is alot for me to look over and read about and learn.&lt;/P&gt;&lt;P&gt;I ended up doing the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selecting the whole line from the table into the WA where my value equals a given value in the line.&lt;/P&gt;&lt;P&gt;Then if it equals I do 12 individual field conditions to check if the fields ( I care about) are initial or not.&amp;nbsp; If it is not initial I move to another work area where all values are collected. &lt;/P&gt;&lt;P&gt;Then I UPDATE with the second work area and it adds the values to the existing record.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 18:28:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-only-initial-fields-in-table-anyone-know-how/m-p/8844256#M1684527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-05T18:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: UPDATE only INITIAL fields in Table... Anyone know how?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-only-initial-fields-in-table-anyone-know-how/m-p/8844257#M1684528</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;Just out of curiosity regarding your statement &lt;STRONG&gt;"really, surprised that someone would suggest native SQL" &lt;/STRONG&gt;should native SQL be avoided? &lt;STRONG&gt;is using native SQL a bad practice?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a lot of queries functionalities that can be executed in SQL but not in ABAP SQL like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: Select * from ztable where x = 'true' and field1 = 'value'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here x is a variable and the query will fetch data only when x is true. such queries are not possible in ABAP SQL. For such an instance i had to write a complicated if..elseif with different query strategies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you suggest anything for such scenarios? I have come across many people who don't like using native SQL a bit info on why it should be avoided would really help me a lot !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my suggestion was solely based on the update query requirement, hence i suggested native SQL rather than a dynamic logic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 04:54:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-only-initial-fields-in-table-anyone-know-how/m-p/8844257#M1684528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-06T04:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: UPDATE only INITIAL fields in Table... Anyone know how?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-only-initial-fields-in-table-anyone-know-how/m-p/8844258#M1684529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem with native SQL is that it is dependent on the database and is trickier to use with internal tables. But if what you want to do is not avaialble in open SQL but can be done in native SQL, go for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But bear in mind that if the code you are writing will be used on different databases, you will have to check the type of database and write different code for each.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 13:28:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-only-initial-fields-in-table-anyone-know-how/m-p/8844258#M1684529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-06T13:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: UPDATE only INITIAL fields in Table... Anyone know how?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-only-initial-fields-in-table-anyone-know-how/m-p/8844259#M1684530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Rob for the information!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 14:56:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-only-initial-fields-in-table-anyone-know-how/m-p/8844259#M1684530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-06T14:56:28Z</dc:date>
    </item>
  </channel>
</rss>

