<?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: script in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/1778963#M335794</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;1.how to load multiple forms into scripts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u shud use the FM's&lt;/P&gt;&lt;P&gt;OPEN_FORM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START_FORM&lt;/P&gt;&lt;P&gt;END_FORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START_FORM&lt;/P&gt;&lt;P&gt;END_FORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START_FORM&lt;/P&gt;&lt;P&gt;END_FORM&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;CLOSE_FORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 .what is the diff b/w select single and select upto 1 row? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check these threads...&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="225621"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="233296"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="159458"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="61326"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;do reward if it helps,&lt;/P&gt;&lt;P&gt;priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Dec 2006 13:13:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-04T13:13:38Z</dc:date>
    <item>
      <title>script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/1778958#M335789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.how to load multiple forms into scripts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 .what is the diff b/w select single and select upto 1 row?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 12:29:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/1778958#M335789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T12:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/1778959#M335790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. by using start_form multiple times.&lt;/P&gt;&lt;P&gt;   in the first start_form call one layout&lt;/P&gt;&lt;P&gt;  if u want call on more layout use one more start_form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. SELECT SINGLE is a construct designed to read database records with primary key&lt;/P&gt;&lt;P&gt;using select single you can at most select one record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select up to 1 rows is used for non key fields&lt;/P&gt;&lt;P&gt;using select up to is having capability of selecting more than one row ,but we are selecting only 1 row&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 12:40:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/1778959#M335790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T12:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/1778960#M335791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select single, in this where clause should have keys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select upto 1 row will select the first record, there is no constraint of primary key in the where clause.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 12:55:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/1778960#M335791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T12:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/1778961#M335792</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;1. To upload multiple forms into scripts by using FM's OPEN_FORM,STAT_FORM,END_FROM and CLOSE_FORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The functionality wise both will give same result. It varies in performance only&lt;/P&gt;&lt;P&gt;     SELECT...SINGLE query is used to if you are using full key of a table.&lt;/P&gt;&lt;P&gt;     If not, USE SELECT ...UPTO 1 ROW (Paritial key fields in where clause)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bhupal Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 13:01:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/1778961#M335792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T13:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/1778962#M335793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2. According to SAP Performance course the SELECT UP TO 1 ROWS is faster than SELECT SINGLE because you are not using all the primary key fields. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;select single is a construct designed to read database records with primary key. In the absence of the primary key, it might end up doing a sequential search, whereas the select up to 1 rows may assume that there is no primary key supplied and will try to find most suitable index. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;The best way to find out is through sql trace or runtime analysis. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Use "select up to 1 rows" only if you are sure that all the records returned will have the same value for the field(s) you are interested in. If not, you will be reading only the first record which matches the criteria, but may be the second or the third record has the value you are looking for. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;The System test result showed that the variant Single * takes less time than Up to 1 rows as there is an additional level for COUNT STOP KEY for SELECT ENDSELECT UP TO 1 ROWS. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;The 'SELECT SINGLE' statement selects the first row in the database that it finds that fulfils the 'WHERE' clause If this results in multiple records then only the first one will be returned and therefore may not be unique. &lt;/P&gt;&lt;P&gt;Mainly:  to read data from &lt;/P&gt;&lt;P&gt;The 'SELECT .... UP TO 1 ROWS' statement is subtly different. The database selects all of the relevant records that are defined by the WHERE clause, applies any aggregate, ordering or grouping functions to them and then returns the first record of the result set. &lt;/P&gt;&lt;P&gt;Mainly: to check if entries exist. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 13:12:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/1778962#M335793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T13:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/1778963#M335794</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;1.how to load multiple forms into scripts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u shud use the FM's&lt;/P&gt;&lt;P&gt;OPEN_FORM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START_FORM&lt;/P&gt;&lt;P&gt;END_FORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START_FORM&lt;/P&gt;&lt;P&gt;END_FORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START_FORM&lt;/P&gt;&lt;P&gt;END_FORM&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;CLOSE_FORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 .what is the diff b/w select single and select upto 1 row? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check these threads...&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="225621"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="233296"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="159458"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="61326"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;do reward if it helps,&lt;/P&gt;&lt;P&gt;priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 13:13:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/1778963#M335794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T13:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/1778964#M335795</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;1.how to load multiple forms into scripts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To load multiple forms into scripts we use the following function modules:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN_FORM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START_FORM&lt;/P&gt;&lt;P&gt;END_FORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START_FORM&lt;/P&gt;&lt;P&gt;END_FORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START_FORM&lt;/P&gt;&lt;P&gt;END_FORM&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;CLOSE_FORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here we can include many start forms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 .what is the diff b/w select single and select upto 1 row?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  1.select single is a construct designed to read database records with primary key. In the absence of the primary key, it might end up doing a sequential search, whereas the select up to 1 rows may assume that there is no primary key supplied and will try to find most suitable index. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  2.The 'SELECT SINGLE' statement selects the first row in the database that it finds that fulfils the 'WHERE' clause If this results in multiple records then only the first one will be returned and therefore may not be unique. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  3.SELECT is mainly  to read data from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  4.SELECT .... UP TO 1 ROWS mainly  to check if entries exist. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  5.Select single * requires WHERE condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  6.Select upto 1 row does not require any WHERE condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please go through this link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1788182"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="233296"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gunasree.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 08:33:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/1778964#M335795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-13T08:33:34Z</dc:date>
    </item>
  </channel>
</rss>

