<?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 ztable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1507448#M234305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  You can use this logic...&lt;/P&gt;&lt;P&gt;  update &amp;lt;table name&amp;gt; &lt;/P&gt;&lt;P&gt;     set &amp;lt;field name&amp;gt; = value&lt;/P&gt;&lt;P&gt;     where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ex: to update address1 &amp;amp; address2 fields of zemp table for empid 0001...&lt;/P&gt;&lt;P&gt;      update zemp&lt;/P&gt;&lt;P&gt;         set address1 = 'test'&lt;/P&gt;&lt;P&gt;             address2 = 'test1' &lt;/P&gt;&lt;P&gt;         where empid  = '0001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this should work.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sundar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Aug 2006 15:23:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-18T15:23:53Z</dc:date>
    <item>
      <title>update ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1507446#M234303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i need to update 5 fields from internal table into single ztable field.&lt;/P&gt;&lt;P&gt;i have 10 fields in file comprising 5 month fields(month1 month2 ....). from that i need to update values to single field in ztable of month.&lt;/P&gt;&lt;P&gt;is there any procedure to do so.&lt;/P&gt;&lt;P&gt;thanks and will be rewarded helfull suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2006 15:05:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1507446#M234303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-18T15:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: update ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1507447#M234304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is difficult to understand your requirement can you please explain with example so that the forum can suggest a soln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean that you have 10 fields in the file out of which 5 are month fields and you need to update the 5 month fields into a single ztable field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on how do you wish to store the field in the ztable but you can use CONCATENATE statement two join fields. So in your case it would be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE MONTH1 MONTH2 MONTH3 MONTH4 MONTH5 INTO ZTABLE-FIELD. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note you can use the SEPARATED BY variation if you wish to delimit the above fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Anurag Bankley&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2006 15:07:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1507447#M234304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-18T15:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: update ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1507448#M234305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  You can use this logic...&lt;/P&gt;&lt;P&gt;  update &amp;lt;table name&amp;gt; &lt;/P&gt;&lt;P&gt;     set &amp;lt;field name&amp;gt; = value&lt;/P&gt;&lt;P&gt;     where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ex: to update address1 &amp;amp; address2 fields of zemp table for empid 0001...&lt;/P&gt;&lt;P&gt;      update zemp&lt;/P&gt;&lt;P&gt;         set address1 = 'test'&lt;/P&gt;&lt;P&gt;             address2 = 'test1' &lt;/P&gt;&lt;P&gt;         where empid  = '0001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this should work.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sundar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2006 15:23:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1507448#M234305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-18T15:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: update ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1507449#M234306</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;If you want to add all the months into a single field :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_count = wtab-fiedl1 + wtab-field2 + wtab-field3 + wtab-field4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_new-month = l_count.&lt;/P&gt;&lt;P&gt;append wa_new to it_new.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear : l_count,&lt;/P&gt;&lt;P&gt;        wa_new,&lt;/P&gt;&lt;P&gt;        wtab.&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;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2006 15:24:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1507449#M234306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-18T15:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: update ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1507450#M234307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;scenario is i have file which i have to update to ztable and display.&lt;/P&gt;&lt;P&gt;in th efile i have fields in the manner of&lt;/P&gt;&lt;P&gt;matnr country ....month1 month2 month3 month4 month5.&lt;/P&gt;&lt;P&gt;i have ztable with five fields matnr country...month.&lt;/P&gt;&lt;P&gt;i need to update the values of all month fields from the file to the month filed of ztable.&lt;/P&gt;&lt;P&gt;any sample code is helpul to me.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2006 15:26:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1507450#M234307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-18T15:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: update ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1507451#M234308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;  lmth = month1 + month2 + month3 + month4 + month5.&lt;/P&gt;&lt;P&gt;  update ztable set month = lmth&lt;/P&gt;&lt;P&gt;   where matnr = itab-matnr and &lt;/P&gt;&lt;P&gt;         country = itab-country.&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;--where itab is the internal table having the 10 fields.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2006 15:29:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1507451#M234308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-18T15:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: update ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1507452#M234309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  try this..&lt;/P&gt;&lt;P&gt;  concatenate all month values from file into songle local field in program and then use update logic as specified. i hope you might be having data in z table already. if so this logic works.otherwise you have to use insert&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sundaramj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2006 15:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable/m-p/1507452#M234309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-18T15:32:23Z</dc:date>
    </item>
  </channel>
</rss>

