<?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: after update, output issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/after-update-output-issue/m-p/4476271#M1060050</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;"the above code is working and updating the table but not displaying output, it remains at selection screen only."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It means your update statement is not working properly and there is no data in wa_pri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there was a data in wa_pri then sy-subrc would have been 0 but that means sy-subrc = 4 so plz check the code in debug mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even check in which part of event u have written the code to display it should be either start-of-selection or end-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even check whether you are dealing with 1 record or number of records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are changing one by one then use the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use workarea for this and update or modify using tis workarea..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify ztable from wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then clear wa and check sy-subrc also then commit if sy-subrc is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are updating internal table as a whole, use the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first of all check that internal table you are using is not initial . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify ztable from table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then check sy-subrc, then commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dhanashri Pawar on Sep 11, 2008 6:51 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Sep 2008 04:51:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-11T04:51:11Z</dc:date>
    <item>
      <title>after update, output issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/after-update-output-issue/m-p/4476266#M1060045</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;following is the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;      APPEND wa_pricing.  &lt;/P&gt;&lt;P&gt;      UPDATE zgps_pri FROM  TABLE wa_pri.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        WRITE:/&lt;/P&gt;&lt;P&gt;        wa_pri-part_nbr,&lt;/P&gt;&lt;P&gt;                 wa_pri-mfgng_duns_nbr,&lt;/P&gt;&lt;P&gt;                 wa_pri-srno,&lt;/P&gt;&lt;P&gt;                 wa_pri-rec_type,&lt;/P&gt;&lt;P&gt;                 text-003.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        WRITE:/ text-004.&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;the above code is working and updating the table but not displaying output, it remains at selection screen only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rocky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 03:59:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/after-update-output-issue/m-p/4476266#M1060045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T03:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: after update, output issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/after-update-output-issue/m-p/4476267#M1060046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;under which event you are doing this update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally it should be under start-of-selection or end-of-selection event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;show the code where you have written that event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 04:04:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/after-update-output-issue/m-p/4476267#M1060046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T04:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: after update, output issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/after-update-output-issue/m-p/4476268#M1060047</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;Check if there is any value in waork area wa_pri.&lt;/P&gt;&lt;P&gt;if there is any value then check with the events.&lt;/P&gt;&lt;P&gt;your append and update should be inside start-of-selection and end-of-selection.&lt;/P&gt;&lt;P&gt;and one more thing, try to run your program with debugger on.&lt;/P&gt;&lt;P&gt;it will surely resolve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Rajesh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 04:17:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/after-update-output-issue/m-p/4476268#M1060047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T04:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: after update, output issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/after-update-output-issue/m-p/4476269#M1060048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont think your if statement is working before the write statement and that would be the reason none of the write statement is giving the desired output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls check the if statement in debug mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 04:32:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/after-update-output-issue/m-p/4476269#M1060048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T04:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: after update, output issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/after-update-output-issue/m-p/4476270#M1060049</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;   You have to be clear that whether you are changing one record at a time or you are updating whole table to ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  If you are changing one by one then use the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check wa is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify ztable from wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check for sy-subrc after that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If you are updating internal table as a whole, use the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check itab is not initial. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify ztable from table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check for sy-subrc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 04:47:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/after-update-output-issue/m-p/4476270#M1060049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T04:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: after update, output issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/after-update-output-issue/m-p/4476271#M1060050</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;"the above code is working and updating the table but not displaying output, it remains at selection screen only."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It means your update statement is not working properly and there is no data in wa_pri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there was a data in wa_pri then sy-subrc would have been 0 but that means sy-subrc = 4 so plz check the code in debug mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even check in which part of event u have written the code to display it should be either start-of-selection or end-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even check whether you are dealing with 1 record or number of records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are changing one by one then use the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use workarea for this and update or modify using tis workarea..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify ztable from wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then clear wa and check sy-subrc also then commit if sy-subrc is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are updating internal table as a whole, use the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first of all check that internal table you are using is not initial . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify ztable from table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then check sy-subrc, then commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dhanashri Pawar on Sep 11, 2008 6:51 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 04:51:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/after-update-output-issue/m-p/4476271#M1060050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T04:51:11Z</dc:date>
    </item>
  </channel>
</rss>

