<?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 values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-values/m-p/3584729#M863121</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;1st method&lt;/P&gt;&lt;P&gt;U can use DEFAULT Addition for every selection  screen element ur using in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd Method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After displaying selection screen set all values to selction screen fields and save it as variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U have to click on save button to save it as variant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Mar 2008 06:45:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-17T06:45:13Z</dc:date>
    <item>
      <title>selection screen values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-values/m-p/3584728#M863120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a requirement, on the selection screen i have to pre-fill the values.....Can somebody tell me how it can be done....&lt;/P&gt;&lt;P&gt;useful solutions will be rewarded&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2008 06:39:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-values/m-p/3584728#M863120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-17T06:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-values/m-p/3584729#M863121</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;1st method&lt;/P&gt;&lt;P&gt;U can use DEFAULT Addition for every selection  screen element ur using in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd Method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After displaying selection screen set all values to selction screen fields and save it as variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U have to click on save button to save it as variant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2008 06:45:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-values/m-p/3584729#M863121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-17T06:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-values/m-p/3584730#M863122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Parameters : &lt;/P&gt;&lt;P&gt;1. By giving default you can fill the values .&lt;/P&gt;&lt;P&gt;2 By initalization also you can fill the selection screen parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example in the selection screen u have a filled to enter date there by default u want to display some default date as todays date then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_date like sy-datum default sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but initialization is a event which triggers even before the selection screen comes so if u want some calculations to be performed then u will write there and get the value and u will display it in selection scren.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;if u want to displays two days back date as default&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters:&lt;/P&gt;&lt;P&gt;p_date like sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initilization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_date = sy-datum - 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards,&lt;/P&gt;&lt;P&gt;Madhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2008 08:49:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-values/m-p/3584730#M863122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-17T08:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-values/m-p/3584731#M863123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The above solutions will work fine if the screen fields are loaded with one specific value every time you enter the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two other options to load selection screen values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION and LOAD-OF-PROGRAM.&lt;/P&gt;&lt;P&gt;In both of these "section" you can write code to fill in any of the fields.&lt;/P&gt;&lt;P&gt;Paramaters being a single value field can be loaded with parmname = &amp;lt;your value&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection-options are ranges and can also be loaded here by filling the range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is an example&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
INITIALIZATION.
  CLEAR: r_cred_action, r_cred_action[].
  CLEAR: r_lot_action,  r_lot_action[].

  r_cred_action = 'IEQ'.
  r_cred_action-low = '02'.
  APPEND r_cred_action.
  r_cred_action-low = '05'.
  APPEND r_cred_action.
  r_cred_action-low = '06'.
  APPEND r_cred_action.

  r_lot_action = 'IEQ'.
  r_lot_action-low = '02'.
  APPEND r_lot_action.
  r_lot_action-low = '03'.
  APPEND r_lot_action.
  r_lot_action-low = '04'.
  APPEND r_lot_action.
  r_lot_action-low = '05'.
  APPEND r_lot_action.
  r_lot_action-low = '06'.
  APPEND r_lot_action.
  r_lot_action-low = '07'.
  APPEND r_lot_action.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2008 10:27:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-values/m-p/3584731#M863123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-17T10:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-values/m-p/3584732#M863124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai  &lt;STRONG&gt;Johny Valitino&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters: p1 type i,
                  p2 type i,
                  p3 type i,
                  p4 type i.

initialization.

p1 = 1.

p2 = 2.

p3 = 3.

p4 = 4. &lt;/CODE&gt;&lt;/PRE&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;then  it will display in screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Eshwar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2008 12:13:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-values/m-p/3584732#M863124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-19T12:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-values/m-p/3584733#M863125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do in the INITIALIZATION event of your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

parameters: p_param1 type i.

INITIALIZATION.
  p_param1 = 25.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do it by using DEFAULT addition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

parameters: p_param1 type i default 25.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Balaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2008 12:24:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-values/m-p/3584733#M863125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-19T12:24:08Z</dc:date>
    </item>
  </channel>
</rss>

