<?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: Select option data recovery in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-data-recovery/m-p/7315951#M1536207</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a point, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am at least trying to initialize the select option range value, so that the user does not have to type in a value (I am trying to do that for test purpose only):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;selection-screen begin of screen 1 as subscreen.
select-options  S1        for
     VBAP-VGBEL
     modif id  001.
selection-screen end of screen 1 .

INITIALIZATION.

DATA: lv_s1Low TYPE VGBEL,
      lv_s1High TYPE VGBEL.

lv_s1Low = '888'.
lv_s1High = '889'.

MOVE: 'BT' TO  S1,
      lv_s1Low TO S1-LOW,
      lv_s1High TO S1-HIGH.
APPEND S1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When executing the program, nothing happens, the input fields are still empy !!When this will be working, I will be able to get back the previously typed in values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thibault&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Sep 2010 12:46:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-28T12:46:50Z</dc:date>
    <item>
      <title>Select option data recovery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-data-recovery/m-p/7315949#M1536205</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;I have developed a selection screen. There's a button that lauches an action to perform when the selection screen fields are filled. When the user inputs bad data, the program warn the user that the filled entries have an error and clear the screen inputs.&lt;/P&gt;&lt;P&gt;How can I manage to display back the data that was previously filled ? Should I use the INITIALIZATION key word ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thibault&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Sep 2010 16:13:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-data-recovery/m-p/7315949#M1536205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-23T16:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Select option data recovery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-data-recovery/m-p/7315950#M1536206</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;Put your validation code inside  AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Sep 2010 16:21:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-data-recovery/m-p/7315950#M1536206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-23T16:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Select option data recovery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-data-recovery/m-p/7315951#M1536207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a point, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am at least trying to initialize the select option range value, so that the user does not have to type in a value (I am trying to do that for test purpose only):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;selection-screen begin of screen 1 as subscreen.
select-options  S1        for
     VBAP-VGBEL
     modif id  001.
selection-screen end of screen 1 .

INITIALIZATION.

DATA: lv_s1Low TYPE VGBEL,
      lv_s1High TYPE VGBEL.

lv_s1Low = '888'.
lv_s1High = '889'.

MOVE: 'BT' TO  S1,
      lv_s1Low TO S1-LOW,
      lv_s1High TO S1-HIGH.
APPEND S1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When executing the program, nothing happens, the input fields are still empy !!When this will be working, I will be able to get back the previously typed in values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thibault&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 12:46:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-data-recovery/m-p/7315951#M1536207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-28T12:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Select option data recovery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-data-recovery/m-p/7315952#M1536208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I even tried in the PBO with the screen definition above....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN OUTPUT.

INITIALIZATION.

DATA: lv_s1Low TYPE VGBEL,
      lv_s1High TYPE VGBEL.

lv_s1Low = '888'.
lv_s1High = '889'.

MOVE: 'BT' TO  S1,
      lv_s1Low TO S1-LOW,
      lv_s1High TO S1-HIGH.
APPEND S1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 12:51:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-data-recovery/m-p/7315952#M1536208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-28T12:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select option data recovery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-data-recovery/m-p/7315953#M1536209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you forget your 'I'-include ?  IBT888 889&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, why clear the screen inputs?  If you validate the data entered in AT SELECTION-SCREEN event (when SSCRFIELDS-UCOMM eq 'PRIN' or 'ONLI' or 'SJOB, meaning user is executing the program), and isse an Error message, they're not going anywhere until they pass validation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 12:58:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-data-recovery/m-p/7315953#M1536209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-28T12:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Select option data recovery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-data-recovery/m-p/7315954#M1536210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what you talking about.&lt;/P&gt;&lt;P&gt;Why would I need an include ? The syntax control does not return any error.&lt;/P&gt;&lt;P&gt;I am declaring select option, then initializing them, but the result can't be seen when executing the program....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 13:01:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-data-recovery/m-p/7315954#M1536210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-28T13:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Select option data recovery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-data-recovery/m-p/7315955#M1536211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I miss explained the initial problem. If nothing is found, it does not go anywhere.&lt;/P&gt;&lt;P&gt;If it finds something to display, and the user wants to get back to make a new search, then I want the filter parameters to be restored. I hope it sounds clearer now...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 13:06:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-data-recovery/m-p/7315955#M1536211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-28T13:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Select option data recovery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-data-recovery/m-p/7315956#M1536212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your loading of the table should be I, BT, 888, 889....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggestion:  try reading the tables from the selection-options index 1, at the end of processing or during initialization, to put the data values back into the select-options tables header rows.... this might put them back into the fields on the screen, if your using the old select-options statements and not declaring data...type range of ... etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 13:15:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-data-recovery/m-p/7315956#M1536212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-28T13:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Select option data recovery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-data-recovery/m-p/7315957#M1536213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Formal way to pre-populate select-options is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
INITIALIZATION.
  S1-sign = 'I'.
  S1-option = 'BT'.
  S1-low = '888'.
  S1-high = '889'.

  APPEND S1. 

* To avoid extended program check complaint, you might want to do APPEND S1 TO S1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proper way to catch user errors is to wait until they execute the program. Pushing a button to validate the user entries is not a common practice in SAP. First of all, none of the SAP's standard programs do that. Secondly, there is no guarantee that users push that button. I understand that it is some times necessary to catch the errors before they submit a background job. However, according to my past experience, it causes other problems. I don't remember the details, though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 14:33:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-data-recovery/m-p/7315957#M1536213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-28T14:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Select option data recovery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-data-recovery/m-p/7315958#M1536214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for this very helpful answer &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thibault&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 14:35:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-data-recovery/m-p/7315958#M1536214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-28T14:35:38Z</dc:date>
    </item>
  </channel>
</rss>

