<?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: dout in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dout/m-p/3665294#M882814</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;its validation of the werks fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;he is checking whtether the werks entered is in the t001w table or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Apr 2008 06:33:21 GMT</pubDate>
    <dc:creator>prasanth_kasturi</dc:creator>
    <dc:date>2008-04-21T06:33:21Z</dc:date>
    <item>
      <title>dout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dout/m-p/3665288#M882808</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;what does the below statement do exactly&lt;/P&gt;&lt;P&gt;"SELECT SINGLE WERKS INTO T001W-WERKS FROM T001W&lt;/P&gt;&lt;P&gt;                                          WHERE WERKS = WERKS.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE S398 WITH 'Plant ' WERKS ' not exists'.&lt;/P&gt;&lt;P&gt;    STOP.&lt;/P&gt;&lt;P&gt;  ENDIF."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 06:05:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dout/m-p/3665288#M882808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T06:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: dout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dout/m-p/3665289#M882809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Shilpa-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below code indicates validation of WERKS.In detail if the user enters any wrong data on the selection screen in return the system should dispay an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE WERKS INTO T001W-WERKS FROM T001W&lt;/P&gt;&lt;P&gt;WHERE WERKS = WERKS.&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;The above code pulls all the plant exisiting in the t table and compares with the data entered on selction-&lt;/STRONG&gt;*screen.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;**If unsuccessful sy-subrc fails &lt;/P&gt;&lt;P&gt;MESSAGE S398 WITH 'Plant ' WERKS ' not exists'.&lt;/P&gt;&lt;P&gt;The above message suppose to be &lt;STRONG&gt;E&lt;/STRONG&gt; not S.&lt;/P&gt;&lt;P&gt;STOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 06:12:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dout/m-p/3665289#M882809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T06:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: dout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dout/m-p/3665290#M882810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but here it says "SELECT SINGLE WERKS INTO T001W-WERKS FROM T001W" &lt;/P&gt;&lt;P&gt;it is selecting the plant (WERKS) into T001W-WERKS what does this mean.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 06:18:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dout/m-p/3665290#M882810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T06:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: dout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dout/m-p/3665291#M882811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    The select query selects the value of werks from T001W table into T001W-WERKS  if the value equals the user entered value, WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If no value is selected (SY-SUBRC NE 0), then, it means the entered plant value is not valid as it is not there in the table T001W.&lt;/P&gt;&lt;P&gt;STOP statement takes u out of that check and skips further execution. But, it is obsolete in ECC6.0.&lt;/P&gt;&lt;P&gt;So, better set flags.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 06:24:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dout/m-p/3665291#M882811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T06:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: dout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dout/m-p/3665292#M882812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this code we are checking a &lt;STRONG&gt;Plant&lt;/STRONG&gt; is valid as per  &lt;STRONG&gt;Plants/Branches&lt;/STRONG&gt;  table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so we will check the plant(WERKS) is present in  T001W (Plants/Branches table) .&lt;/P&gt;&lt;P&gt;is sy-subrc is not equal to zero means no entry is present in the table.&lt;/P&gt;&lt;P&gt;then the code will populate a message &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ef the plant is present over there then , the program will continue its execution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select singele will select only one record at a time from the table . &lt;/P&gt;&lt;P&gt;WERKS INTO T001W-WERKS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here &lt;/P&gt;&lt;P&gt;plant is stored in to   T001W-WERKS.&lt;/P&gt;&lt;P&gt;this is only doing for checking the existence.&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;Sarath&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sarath p on Apr 21, 2008 8:26 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 06:25:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dout/m-p/3665292#M882812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T06:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: dout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dout/m-p/3665293#M882813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shilpa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below code indicates validation of WERKS.In detail if the user enters any wrong data on the selection screen in return the system should dispay an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE S398 WITH 'Plant ' WERKS ' not exists'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward If Helpfull,&lt;/P&gt;&lt;P&gt;Naresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 06:33:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dout/m-p/3665293#M882813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T06:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: dout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dout/m-p/3665294#M882814</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;its validation of the werks fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;he is checking whtether the werks entered is in the t001w table or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 06:33:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dout/m-p/3665294#M882814</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-04-21T06:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: dout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dout/m-p/3665295#M882815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi shilpa &lt;/P&gt;&lt;P&gt;  here only single record is geting fetched  and if table t001 contins only werks as an primary key than is ok but if primary key consist of any other field alng with werks than only the frist record will be get fetched always even if contain more thsan 1 record for it this is becoz in select single if we want exact record we have to supply full  prrimary key &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;so this validation is apropiat only if ther is werks as primary key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in massage we r pasiing the valueto placeholder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 06:43:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dout/m-p/3665295#M882815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T06:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: dout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dout/m-p/3665296#M882816</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;This statement is used to check whether the value entered in the selection screen by the user for WERKS is a correct value or not. In case , its not a correct value, a message is thrown "Werks does not exist...".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What this select statement does is, it compares the value of werks entered in the selection screen with all the values of werks present in the table T001W.	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case , if the value entered in selection screen matches with the value of any of werks present in the table T001W, the werks value is stored in T001W-werks, and this sets the value of sy-subrc to 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sy-subrc = 0 means, that the select has been successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other value of sy-subrc indicates error, and if the select fails { which will happen if the value of werks entered is not present in T001W table}, then sy-subrc is not equal to 0 and thus an error message is thrown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 07:13:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dout/m-p/3665296#M882816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T07:13:38Z</dc:date>
    </item>
  </channel>
</rss>

