<?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: Default value for Select-option in Module Pool? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-value-for-select-option-in-module-pool/m-p/7182820#M1518757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Faisal!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your answer solved my problem. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I simply forgot an append statement... I normally know this, but I guess I tried to accomplish too many things on a single day yesterday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more comment:&lt;/P&gt;&lt;P&gt;If you are using ABAP objects like me, you will have to declare a local structure similar to type rsdsselopt (don't forget to adjust high/low fields to your field type) in your method. You can then assign values to -low, -high, etc. before you append your structure to your global select-option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Aug 2010 15:56:11 GMT</pubDate>
    <dc:creator>jens_straten2</dc:creator>
    <dc:date>2010-08-26T15:56:11Z</dc:date>
    <item>
      <title>Default value for Select-option in Module Pool?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-value-for-select-option-in-module-pool/m-p/7182816#M1518753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having a problem with assigning a default value to a select-option in a module pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, this works fine for parameters in the PBO, but it simply doesn't work for select-options. From what I can see in debug mode, any default values for select-options are being deleted by the corresponding call subscreen (standard code).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore I tried to set the default value once more after calling the subscreen, but then I have to hit return (screen refresh) to see the actual value as expected. So, this is not a solution either...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a trick? Is it a bug? Did anybody get this to work? Is there a know workaround?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 05:00:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-value-for-select-option-in-module-pool/m-p/7182816#M1518753</guid>
      <dc:creator>jens_straten2</dc:creator>
      <dc:date>2010-08-26T05:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Default value for Select-option in Module Pool?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-value-for-select-option-in-module-pool/m-p/7182817#M1518754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Jens &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you working on &lt;STRONG&gt;Custom or Standard&lt;/STRONG&gt; Screen? If it is a Custom Screen then Write Code in &lt;STRONG&gt;AT SELECTION-SCREEN OUTPUT&lt;/STRONG&gt; like bellow.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN OUTPUT.
  IF sodate[] IS INITIAL.
    sodate-low = sy-datum.
    APPEND sodate.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Faisal Altaf on Aug 26, 2010 10:35 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 05:28:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-value-for-select-option-in-module-pool/m-p/7182817#M1518754</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2010-08-26T05:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Default value for Select-option in Module Pool?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-value-for-select-option-in-module-pool/m-p/7182818#M1518755</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;please go through the link which  will solve your problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/sandbox/Use" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/sandbox/Use&lt;/A&gt;&lt;EM&gt;the&lt;/EM&gt;functionality&lt;EM&gt;of&lt;/EM&gt;select-options&lt;EM&gt;in&lt;/EM&gt;dialog&lt;EM&gt;programming&lt;/EM&gt;(module+pool)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 06:17:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-value-for-select-option-in-module-pool/m-p/7182818#M1518755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-26T06:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Default value for Select-option in Module Pool?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-value-for-select-option-in-module-pool/m-p/7182819#M1518756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen this before, but I don't want to use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will give you some points anyhow since it is a good alternative option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 15:52:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-value-for-select-option-in-module-pool/m-p/7182819#M1518756</guid>
      <dc:creator>jens_straten2</dc:creator>
      <dc:date>2010-08-26T15:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Default value for Select-option in Module Pool?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-value-for-select-option-in-module-pool/m-p/7182820#M1518757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Faisal!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your answer solved my problem. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I simply forgot an append statement... I normally know this, but I guess I tried to accomplish too many things on a single day yesterday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more comment:&lt;/P&gt;&lt;P&gt;If you are using ABAP objects like me, you will have to declare a local structure similar to type rsdsselopt (don't forget to adjust high/low fields to your field type) in your method. You can then assign values to -low, -high, etc. before you append your structure to your global select-option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 15:56:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-value-for-select-option-in-module-pool/m-p/7182820#M1518757</guid>
      <dc:creator>jens_straten2</dc:creator>
      <dc:date>2010-08-26T15:56:11Z</dc:date>
    </item>
  </channel>
</rss>

