<?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: Parameters on selection-screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-selection-screen/m-p/5061734#M1176224</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;make select optin as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options:p_bukrs for sy-datum no-extension no intervals.----&amp;gt;this will be like parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from &amp;lt;table&amp;gt;&lt;/P&gt;&lt;P&gt;into corresponding fields of table itab&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;bukrs in p_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter with obligatory is better&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: pratyush v on Feb 4, 2009 12:09 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Feb 2009 11:04:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-04T11:04:14Z</dc:date>
    <item>
      <title>Parameters on selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-selection-screen/m-p/5061726#M1176216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_bukrs LIKE bseg-bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from &amp;lt;table&amp;gt;&lt;/P&gt;&lt;P&gt;into corresponding fields of table itab&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;bukrs eq p_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I don't fill p_bukrs on the selection screen the selection won't find any data. Why is it? &lt;/P&gt;&lt;P&gt;If p_bukrs is empty it should select all the records no regarding to the bukrs, am I right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 10:54:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-selection-screen/m-p/5061726#M1176216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T10:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters on selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-selection-screen/m-p/5061727#M1176217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not in the case of a parameter, only for select options. So you are not right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Micky Oestreich on Feb 4, 2009 11:59 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 10:58:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-selection-screen/m-p/5061727#M1176217</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-02-04T10:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters on selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-selection-screen/m-p/5061728#M1176218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you don't fill the parameters, there is no match with the query constraint&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 10:58:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-selection-screen/m-p/5061728#M1176218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T10:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters on selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-selection-screen/m-p/5061729#M1176219</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;Choose else condition&lt;/P&gt;&lt;P&gt;that ehen not enter any paremeter than else select query will executed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select * from &amp;lt;table&amp;gt;
into corresponding fields of table itab

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Arun Kayal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 10:59:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-selection-screen/m-p/5061729#M1176219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T10:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters on selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-selection-screen/m-p/5061730#M1176220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mrwhite,&lt;/P&gt;&lt;P&gt;Yes your right, if you dont select any value on the selection screen paramers it will fetch all the records from the table.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 11:01:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-selection-screen/m-p/5061730#M1176220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T11:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters on selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-selection-screen/m-p/5061731#M1176221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please remember the below Points:&lt;/P&gt;&lt;P&gt;Paramters : If no value filled it wont select any data from the database , Even if u want the same functionality u can use Select-options with 'NO-INTERVALS' addition and use IN operator within the select .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select-options will select all the records of the table if u wont give any input. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 11:01:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-selection-screen/m-p/5061731#M1176221</guid>
      <dc:creator>shishupalreddy</dc:creator>
      <dc:date>2009-02-04T11:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters on selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-selection-screen/m-p/5061732#M1176222</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 select all the records then it should not be EQ, it must be "LIKE".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: p_bukrs LIKE bseg-bukrs.

if p_bukrs is initial.
p_bukrs = '%' .
endif.

select * from &amp;lt;table&amp;gt;
into corresponding fields of table itab
where
bukrs like p_bukrs.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swarna Munukoti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 11:02:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-selection-screen/m-p/5061732#M1176222</guid>
      <dc:creator>former_member217544</dc:creator>
      <dc:date>2009-02-04T11:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters on selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-selection-screen/m-p/5061733#M1176223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if I use a parameter, then I should declare it as an obligatory field or with default value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 11:03:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-selection-screen/m-p/5061733#M1176223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T11:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters on selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-selection-screen/m-p/5061734#M1176224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;make select optin as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options:p_bukrs for sy-datum no-extension no intervals.----&amp;gt;this will be like parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from &amp;lt;table&amp;gt;&lt;/P&gt;&lt;P&gt;into corresponding fields of table itab&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;bukrs in p_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter with obligatory is better&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: pratyush v on Feb 4, 2009 12:09 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 11:04:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-selection-screen/m-p/5061734#M1176224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T11:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters on selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-selection-screen/m-p/5061735#M1176225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Mr.White ,&lt;/P&gt;&lt;P&gt;I am just sharing a sample code of SCARR table .&lt;/P&gt;&lt;P&gt;Parameter p_carrid here is not taking all the values but just the value what you give .&lt;/P&gt;&lt;P&gt;check this out n hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES :&lt;/P&gt;&lt;P&gt;  scarr .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS :&lt;/P&gt;&lt;P&gt;  p_carrid LIKE scarr-carrid .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES :&lt;/P&gt;&lt;P&gt;  BEGIN OF type_s_flight ,&lt;/P&gt;&lt;P&gt;    carrid TYPE scarr-carrid ,&lt;/P&gt;&lt;P&gt;  END OF type_s_flight .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :&lt;/P&gt;&lt;P&gt;  fs_flight TYPE type_s_flight .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :&lt;/P&gt;&lt;P&gt;  t_flight LIKE&lt;/P&gt;&lt;P&gt;  STANDARD TABLE&lt;/P&gt;&lt;P&gt;        OF fs_flight .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM scarr&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE t_flight where carrid eq p_carrid  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT t_flight INTO fs_flight .&lt;/P&gt;&lt;P&gt;  WRITE :&lt;/P&gt;&lt;P&gt;    fs_flight-carrid .&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the best!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amuktha .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Amuktha Naraparaju on Feb 4, 2009 12:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 11:10:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-selection-screen/m-p/5061735#M1176225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T11:10:02Z</dc:date>
    </item>
  </channel>
</rss>

