<?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: Automatically filled out the parameter based on Select Option in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193594#M1981032</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;IF s_plant-high IS NOT INITIAL.
" show error message
ENDIF.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Mateusz</description>
    <pubDate>Mon, 20 Jul 2020 08:37:52 GMT</pubDate>
    <dc:creator>MateuszAdamus</dc:creator>
    <dc:date>2020-07-20T08:37:52Z</dc:date>
    <item>
      <title>Automatically filled out the parameter based on Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193582#M1981020</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I want my parameter to copy the value in the select option low. for example, I have a hidden parameter that will appear and replaced the select option if a certain radio button is ticked. If I input a single value in the select option before ticking the radio button, I want my parameter to have the same value as in the select option without re-entering it.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 12:02:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193582#M1981020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-05-20T12:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically filled out the parameter based on Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193583#M1981021</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;catienza11&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Below is the code for your requirement:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
  gv_per TYPE i.

PARAMETERS: p_per TYPE i DEFAULT 5.
SELECT-OPTIONS: s_per FOR gv_per.
SELECTION-SCREEN SKIP.
PARAMETERS: p_chk TYPE flag USER-COMMAND chk.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-name CS 'P_PER'.
      screen-active = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

AT SELECTION-SCREEN.
  CASE sy-ucomm.
    WHEN 'CHK'.
      CHECK p_chk = abap_true.
      IF s_per[] IS INITIAL.
        s_per-low = p_per.
        APPEND s_per.
      ELSE.
        p_per = s_per[ 1 ]-low.
      ENDIF.
    WHEN OTHERS.
      " do nothing.
  ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Your parameter's value will be update only if the user selects the checkbox.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mateusz&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 12:13:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193583#M1981021</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2020-05-20T12:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically filled out the parameter based on Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193584#M1981022</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;catienza11&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Am afraid that this functionality can cause several other issues in your program, there is no harm in requesting the user to enter the value again.&lt;/P&gt;&lt;P&gt;How would you expect the program to behave when there are multiple values entered or range of values entered?&lt;/P&gt;&lt;P&gt;Not sure why this is needed!&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 13:15:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193584#M1981022</guid>
      <dc:creator>former_member1716</dc:creator>
      <dc:date>2020-05-20T13:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically filled out the parameter based on Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193585#M1981023</link>
      <description>&lt;P&gt;Hi Sir,&lt;/P&gt;&lt;P&gt;Good Day!&lt;/P&gt;&lt;P&gt;My program is if I tick the radio button the select option field will be hidden and the parameter will appear which I already did. now will this help that if I input a value in the select option and I tick the radio button the parameter will copy the value in the select option low field?&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 13:46:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193585#M1981023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-05-20T13:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically filled out the parameter based on Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193586#M1981024</link>
      <description>&lt;P&gt;Hi Gerard,&lt;/P&gt;&lt;P&gt;Yes, it should work, because there is an event after the user selects the checkbox.&lt;/P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mateusz</description>
      <pubDate>Wed, 20 May 2020 13:51:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193586#M1981024</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2020-05-20T13:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically filled out the parameter based on Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193587#M1981025</link>
      <description>&lt;P&gt;hi!&lt;/P&gt;&lt;P&gt;as per my understanding, it is copying the value of the parameter into the select option field. Is there any way can I do it the other way around? I will be just needing the first value or one value that the user enters in the select option field and copy it into the parameter field.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 12:31:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193587#M1981025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-05-21T12:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically filled out the parameter based on Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193588#M1981026</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;This part of the code copies the SELECT-OPTIONS LOW value to the PARAMETER field.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;p_per = s_per[ 1 ]-low.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;Regards,&lt;BR /&gt;Mateusz</description>
      <pubDate>Thu, 21 May 2020 12:37:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193588#M1981026</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2020-05-21T12:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically filled out the parameter based on Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193589#M1981027</link>
      <description>&lt;P&gt;Hi Mateusz,&lt;/P&gt;&lt;P&gt;Good Day!&lt;/P&gt;&lt;P&gt;I want to add a warning message that if the user enters multiple plants it will prompt, where do I insert this code? I am glad that you were able to help me, I am fairly new to ABAP.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Gerard.&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 11:03:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193589#M1981027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-05-27T11:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically filled out the parameter based on Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193590#M1981028</link>
      <description>&lt;P&gt;Hello Gerard&lt;/P&gt;&lt;P&gt;I don't know what is the Plant parameter. But have a look at this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF lines( s_plant[] ) &amp;gt; 1.&lt;BR /&gt;" show error message&lt;BR /&gt;ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;Kind regards,&lt;BR /&gt;Mateusz</description>
      <pubDate>Wed, 27 May 2020 11:13:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193590#M1981028</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2020-05-27T11:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically filled out the parameter based on Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193591#M1981029</link>
      <description>&lt;P&gt;Hi Mateusz,&lt;/P&gt;&lt;P&gt;Good Day!&lt;/P&gt;&lt;P&gt;related to my last question, I want to know what logic should I add in the code above if the second select option field has values.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1827580-ss.png" /&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 08:18:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193591#M1981029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-07-20T08:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically filled out the parameter based on Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193592#M1981030</link>
      <description>&lt;P&gt;Hello &lt;A href="https://answers.sap.com/users/794988/catienza11.html"&gt;Gerard A&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It depends on the logic you want to have there. Do you know how the report should behave if the second select option field has values?&lt;/P&gt;Kind regards,&lt;BR /&gt;Mateusz</description>
      <pubDate>Mon, 20 Jul 2020 08:29:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193592#M1981030</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2020-07-20T08:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically filled out the parameter based on Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193593#M1981031</link>
      <description>&lt;P&gt;Hi Mateusz,&lt;/P&gt;&lt;P&gt;Good Day!&lt;/P&gt;&lt;P&gt;Same as before, it will display a system message.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 08:34:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193593#M1981031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-07-20T08:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically filled out the parameter based on Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193594#M1981032</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;IF s_plant-high IS NOT INITIAL.
" show error message
ENDIF.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Mateusz</description>
      <pubDate>Mon, 20 Jul 2020 08:37:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filled-out-the-parameter-based-on-select-option/m-p/12193594#M1981032</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2020-07-20T08:37:52Z</dc:date>
    </item>
  </channel>
</rss>

