<?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: Change selection-screen parameter in runtime in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-selection-screen-parameter-in-runtime/m-p/11838767#M1957194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe easy solution could be storing previous value of your parameter in a variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA gv_ppes TYPE string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then &lt;SPAN style="font-size: 10pt;"&gt;AT SELECTION-SCREEN you could try to determine if the change actually happened and if so change value of the other parameters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF gv_ppes &amp;lt;&amp;gt; ppes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gv_ppes = ppes. "Store previous value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "change happend - do what you like&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually you can disable executing your logic when report is being executed - when you press F8 (or click Execute button) value of SY-UCOMM is changed to 'ONLI'. You can restrict your value substitution to SY-UCOMM &amp;lt;&amp;gt; 'ONLI'. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Sep 2016 10:50:19 GMT</pubDate>
    <dc:creator>ziolkowskib</dc:creator>
    <dc:date>2016-09-05T10:50:19Z</dc:date>
    <item>
      <title>Change selection-screen parameter in runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-selection-screen-parameter-in-runtime/m-p/11838761#M1957188</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;can anybody tell me how to change selection-screen parameter in runtime?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I've this two parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: pidi LIKE t002-spras OBLIGATORY.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;PARAMETERS: ppes TYPE int4.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;and "pidi" should change of value depending "ppes" value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 07:21:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-selection-screen-parameter-in-runtime/m-p/11838761#M1957188</guid>
      <dc:creator>former_member254358</dc:creator>
      <dc:date>2016-09-05T07:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Change selection-screen parameter in runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-selection-screen-parameter-in-runtime/m-p/11838762#M1957189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use AT SELECTION SCREEN. In the below example it will be called after pressing ENTER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b01.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; PARAMETERS pa_one TYPE string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; PARAMETERS pa_two TYPE string.&lt;/P&gt;
&lt;P&gt;SELECTION-SCREEN END OF BLOCK b01.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; IF pa_one = 'TEST'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pa_two = 'asd'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ENDIF.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 07:38:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-selection-screen-parameter-in-runtime/m-p/11838762#M1957189</guid>
      <dc:creator>ziolkowskib</dc:creator>
      <dc:date>2016-09-05T07:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Change selection-screen parameter in runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-selection-screen-parameter-in-runtime/m-p/11838763#M1957190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/1029483" width="450" /&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 08:06:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-selection-screen-parameter-in-runtime/m-p/11838763#M1957190</guid>
      <dc:creator>vicky_upadhyay</dc:creator>
      <dc:date>2016-09-05T08:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Change selection-screen parameter in runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-selection-screen-parameter-in-runtime/m-p/11838764#M1957191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If pa_one is equal to 'TEST' then pa_two is equal to 'asd' when I press intro but, what happens in case I wanted to change pa_two to 'XYZ', for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value in pa_two keep on being 'asd' and I'd like that this would be only a propoposal but I should be able to change this value ultimately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 08:27:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-selection-screen-parameter-in-runtime/m-p/11838764#M1957191</guid>
      <dc:creator>former_member254358</dc:creator>
      <dc:date>2016-09-05T08:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Change selection-screen parameter in runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-selection-screen-parameter-in-runtime/m-p/11838765#M1957192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand correctly you could set value of PA_TWO only in case it is initial - then it would be your proposal. In other cases you would not change it in order not to overwrite value provided by user.&lt;/P&gt;&lt;P&gt;If this does not answer your question please elaborate on your requirement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b01.&lt;/P&gt;
&lt;P&gt;PARAMETERS pa_one TYPE string MODIF ID p01.&lt;/P&gt;
&lt;P&gt;PARAMETERS pa_two TYPE string.&lt;/P&gt;
&lt;P&gt;SELECTION-SCREEN END OF BLOCK b01.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; IF pa_one = 'TEST'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF pa_two IS INITIAL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pa_two = 'value'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ELSEIF pa_one = 'TEST2'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF pa_two IS INITIAL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pa_two = 'other value'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ENDIF.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 08:46:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-selection-screen-parameter-in-runtime/m-p/11838765#M1957192</guid>
      <dc:creator>ziolkowskib</dc:creator>
      <dc:date>2016-09-05T08:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Change selection-screen parameter in runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-selection-screen-parameter-in-runtime/m-p/11838766#M1957193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've a GUI with some parameters and two of them are PPES and PIDI. Once I've have all the parameters filled I run (F8) the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ppes=8&lt;SPAN style="font-size: 10pt;"&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "KGS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pidi='EN'.&amp;nbsp;&amp;nbsp; "LANGUAGE ENGLISH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;it means that if I put 8 KGS then the PIDI parameter is ENGLISH, until here it's correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;But this is a proposed LANGUAGE and I would like to be able to change the LANGUAGE. In fact I can change this in the parameters and choose for example ZH (CHINESE) but when I push F8, PIDI keep on been EN and not ZH.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;This is my problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 10:24:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-selection-screen-parameter-in-runtime/m-p/11838766#M1957193</guid>
      <dc:creator>former_member254358</dc:creator>
      <dc:date>2016-09-05T10:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Change selection-screen parameter in runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-selection-screen-parameter-in-runtime/m-p/11838767#M1957194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe easy solution could be storing previous value of your parameter in a variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA gv_ppes TYPE string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then &lt;SPAN style="font-size: 10pt;"&gt;AT SELECTION-SCREEN you could try to determine if the change actually happened and if so change value of the other parameters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF gv_ppes &amp;lt;&amp;gt; ppes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gv_ppes = ppes. "Store previous value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "change happend - do what you like&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually you can disable executing your logic when report is being executed - when you press F8 (or click Execute button) value of SY-UCOMM is changed to 'ONLI'. You can restrict your value substitution to SY-UCOMM &amp;lt;&amp;gt; 'ONLI'. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 10:50:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-selection-screen-parameter-in-runtime/m-p/11838767#M1957194</guid>
      <dc:creator>ziolkowskib</dc:creator>
      <dc:date>2016-09-05T10:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Change selection-screen parameter in runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-selection-screen-parameter-in-runtime/m-p/11838768#M1957195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vichy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've two parameters &lt;/P&gt;&lt;P&gt;PPES and PIDI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case PPES has 8 then PIDI would be ES. But I need to have the option to change this value in PIDI despite PPES would be 8 and, for example, select ZH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 10:53:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-selection-screen-parameter-in-runtime/m-p/11838768#M1957195</guid>
      <dc:creator>former_member254358</dc:creator>
      <dc:date>2016-09-05T10:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Change selection-screen parameter in runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-selection-screen-parameter-in-runtime/m-p/11838769#M1957196</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;&lt;/P&gt;&lt;P&gt;Control the field properties based on the value of field under AT SELECTION-SCREEN Event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 11:01:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-selection-screen-parameter-in-runtime/m-p/11838769#M1957196</guid>
      <dc:creator>Chintu6august</dc:creator>
      <dc:date>2016-09-05T11:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Change selection-screen parameter in runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-selection-screen-parameter-in-runtime/m-p/11838770#M1957197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot, using SY-UCOMM fix the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 15:06:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-selection-screen-parameter-in-runtime/m-p/11838770#M1957197</guid>
      <dc:creator>former_member254358</dc:creator>
      <dc:date>2016-09-05T15:06:54Z</dc:date>
    </item>
  </channel>
</rss>

