<?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: Selection Screen Default Values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-default-values/m-p/3388499#M813628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For Parameter u can use DEFAULT keyword&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg. PARAMETERS: p_matnr TYPE mara-matnr DEFAULT 'B1200'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For select option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As u might be knowing select options creates an intenal table, so if  u want to have some default values then u can use the following code in the INITIALIZATION event:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: v_matnr TYPE mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_matnr FOR v_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_matnr-low = 'BT100'.&lt;/P&gt;&lt;P&gt;s_matnr-high = 'BT900'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give default values in the selection screen for select-options.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Feb 2008 02:25:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-08T02:25:49Z</dc:date>
    <item>
      <title>Selection Screen Default Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-default-values/m-p/3388494#M813623</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 selection screen can have the default values by using the parameter ID. To be the parameter ID value to defaulted we normally add the entry in User Profile&lt;DEL&gt;&amp;gt;Own data&lt;/DEL&gt;&amp;gt;paramters with Parameter ID and the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know is there any other way to achieve the same, it could be parameter or select-options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Azhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 22:27:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-default-values/m-p/3388494#M813623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T22:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Default Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-default-values/m-p/3388495#M813624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please rephrase your question..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 23:42:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-default-values/m-p/3388495#M813624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T23:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Default Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-default-values/m-p/3388496#M813625</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 the value to be defaulted is independant of any conditions, use can use the DEFAULT addition to the selection screen fields decalarations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the value is dependant on certain criteria, &lt;/P&gt;&lt;P&gt;You can use the INITIALIZATION event to derive the values and assign it to parameter or select-option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 01:06:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-default-values/m-p/3388496#M813625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-08T01:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Default Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-default-values/m-p/3388497#M813626</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;Check this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_sel_screen_parameters_spa .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS test(16) TYPE c MEMORY ID rid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 01:30:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-default-values/m-p/3388497#M813626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-08T01:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Default Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-default-values/m-p/3388498#M813627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my experience, it is better not to use the DEFAULT addition for selection screen parameters.  Usually, this will eventually result in a change to the default value when business circumstances change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can aviod this if you simply use a variant to maintain all your default values.&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;Kurt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 01:42:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-default-values/m-p/3388498#M813627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-08T01:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Default Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-default-values/m-p/3388499#M813628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For Parameter u can use DEFAULT keyword&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg. PARAMETERS: p_matnr TYPE mara-matnr DEFAULT 'B1200'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For select option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As u might be knowing select options creates an intenal table, so if  u want to have some default values then u can use the following code in the INITIALIZATION event:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: v_matnr TYPE mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_matnr FOR v_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_matnr-low = 'BT100'.&lt;/P&gt;&lt;P&gt;s_matnr-high = 'BT900'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give default values in the selection screen for select-options.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 02:25:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-default-values/m-p/3388499#M813628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-08T02:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Default Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-default-values/m-p/3388500#M813629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Azhar, another method other than parameter ID, is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a standard option for this. On the Web Application Designer general settings there is an option called "Reset Variables to Default Values" which will achieve what you are after. No code needed in user exits.hope this helps u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Hema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 02:58:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-default-values/m-p/3388500#M813629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-08T02:58:05Z</dc:date>
    </item>
  </channel>
</rss>

