<?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: Program is exiting after warning message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-is-exiting-after-warning-message/m-p/5034825#M1170979</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 u want to use it as it is better to use Information message than changing the events to at selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;information message allows to proceed .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and one more point .&lt;/P&gt;&lt;P&gt;see the exit at the top and and also keep a break point before warning message and check it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reg&lt;/P&gt;&lt;P&gt;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jan 2009 09:05:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-06T09:05:45Z</dc:date>
    <item>
      <title>Program is exiting after warning message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-is-exiting-after-warning-message/m-p/5034821#M1170975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;A warning message is displayed if the select query fails as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;READ DATASET dataset INTO record.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0. EXIT. ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT kunnr parvw FROM knvp INTO TABLE lt_knvp&lt;/P&gt;&lt;P&gt;      WHERE kunnr = p_record-sold_to_party&lt;/P&gt;&lt;P&gt;       AND vkorg = p_record-sales_org&lt;/P&gt;&lt;P&gt;        AND vtweg = p_record-dist_channel&lt;/P&gt;&lt;P&gt;         AND spart = p_record-division.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE w000(zz) WITH&lt;/P&gt;&lt;P&gt;      'No p.f. exist for:' p_record-sold_to_party&lt;/P&gt;&lt;P&gt;      'Partner functions will default from customer master.'.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as per my understanding if a warning message is displayed it should not exit the program but it should continoue with processing the next record. In my case it is exiting from the program. Kindly suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neslin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 08:49:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-is-exiting-after-warning-message/m-p/5034821#M1170975</guid>
      <dc:creator>Neslinn</dc:creator>
      <dc:date>2009-01-06T08:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Program is exiting after warning message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-is-exiting-after-warning-message/m-p/5034822#M1170976</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;As per ur code its executing the program even after the warning message. u just put a break point at the read data set. and check the sy-subrc. if it equals to zero then it will be exit from the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 08:54:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-is-exiting-after-warning-message/m-p/5034822#M1170976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T08:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Program is exiting after warning message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-is-exiting-after-warning-message/m-p/5034823#M1170977</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;try this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here write the warning message in the selection screen &lt;/P&gt;&lt;P&gt;then it will not leave the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when you write the same in start-of-selection it will leave the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab like mara occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: it(10) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;do 10 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  refresh: itab.&lt;/P&gt;&lt;P&gt;  select mandt matnr from mara into table itab up to 10 rows.&lt;/P&gt;&lt;P&gt;  message w000 with 'NO data'.&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;regards,&lt;/P&gt;&lt;P&gt;Venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 08:59:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-is-exiting-after-warning-message/m-p/5034823#M1170977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T08:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Program is exiting after warning message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-is-exiting-after-warning-message/m-p/5034824#M1170978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neslin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thing The control is coming out of the program becasue of the &lt;STRONG&gt;EXIT&lt;/STRONG&gt; at the top.&lt;/P&gt;&lt;P&gt;please look into the debugging mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 09:03:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-is-exiting-after-warning-message/m-p/5034824#M1170978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T09:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Program is exiting after warning message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-is-exiting-after-warning-message/m-p/5034825#M1170979</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 u want to use it as it is better to use Information message than changing the events to at selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;information message allows to proceed .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and one more point .&lt;/P&gt;&lt;P&gt;see the exit at the top and and also keep a break point before warning message and check it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reg&lt;/P&gt;&lt;P&gt;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 09:05:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-is-exiting-after-warning-message/m-p/5034825#M1170979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T09:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Program is exiting after warning message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-is-exiting-after-warning-message/m-p/5034826#M1170980</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 cantry the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;READ DATASET dataset INTO record.&lt;/P&gt;&lt;P&gt;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt; EXIT. &lt;/P&gt;&lt;P&gt;Else .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT kunnr parvw FROM knvp INTO TABLE lt_knvp&lt;/P&gt;&lt;P&gt;WHERE kunnr = p_record-sold_to_party&lt;/P&gt;&lt;P&gt;AND vkorg = p_record-sales_org&lt;/P&gt;&lt;P&gt;AND vtweg = p_record-dist_channel&lt;/P&gt;&lt;P&gt;AND spart = p_record-division.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;MESSAGE w000(zz) WITH&lt;/P&gt;&lt;P&gt;'No p.f. exist for:' p_record-sold_to_party&lt;/P&gt;&lt;P&gt;'Partner functions will default from customer master.'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 09:07:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-is-exiting-after-warning-message/m-p/5034826#M1170980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T09:07:59Z</dc:date>
    </item>
  </channel>
</rss>

