<?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: Dynamic variables: SELECTION-SCREEN PUSHBUTTON in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-variables-selection-screen-pushbutton/m-p/10287217#M1832497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="almost_half_cell"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Hi,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;thanks for replying&lt;/SPAN&gt;, I &lt;SPAN class="hps"&gt;do&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;not work&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;with&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;macros&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;as&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;well&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="atn hps"&gt;selection-&lt;/SPAN&gt;screen &lt;SPAN class="hps"&gt;tries to create&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the new variable&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and gives&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;me error&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;any other ideas?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt; &lt;/DIV&gt;&lt;DIV dir="ltr"&gt; &lt;/DIV&gt;&lt;DIV dir="ltr"&gt;Example:&lt;/DIV&gt;&lt;DIV dir="ltr"&gt; &lt;/DIV&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S52"&gt;DEFINE CREATEB&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;a&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;2&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;C&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; a &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'a1'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SELECTION-SCREEN &lt;/SPAN&gt;PUSHBUTTON &lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;4&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&amp;nbsp; &lt;/SPAN&gt;a&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;USER-COMMAND &lt;/SPAN&gt;but1&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;END-OF-DEFINITION&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="L0S52"&gt;SELECTION-SCREEN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;BEGIN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;LINE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; CREATEB&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;SELECTION-SCREEN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;END &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;LINE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN class="L0S52"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Apr 2014 18:16:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-04-25T18:16:24Z</dc:date>
    <item>
      <title>Dynamic variables: SELECTION-SCREEN PUSHBUTTON</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-variables-selection-screen-pushbutton/m-p/10287214#M1832494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;hi, how&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I can&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;create&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;100&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;buttons on a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;cycle&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;so&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;dynamic&lt;/SPAN&gt;? &lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;example:&lt;/SPAN&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;SELECTION-SCREEN &lt;SPAN class="L0S52"&gt;BEGIN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;LINE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SELECTION-SCREEN &lt;/SPAN&gt;PUSHBUTTON &lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;4&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TEXT&lt;/SPAN&gt;&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;001&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;USER-COMMAND &lt;/SPAN&gt;but1&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SELECTION-SCREEN &lt;/SPAN&gt;PUSHBUTTON &lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;4&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TEXT&lt;/SPAN&gt;&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;002&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;USER-COMMAND &lt;/SPAN&gt;but2&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SELECTION-SCREEN &lt;/SPAN&gt;PUSHBUTTON &lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;4&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TEXT&lt;/SPAN&gt;&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;003&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;USER-COMMAND &lt;/SPAN&gt;but3&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SELECTION-SCREEN &lt;/SPAN&gt;PUSHBUTTON &lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;4&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TEXT&lt;/SPAN&gt;&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;004&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;USER-COMMAND &lt;/SPAN&gt;but4&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;SELECTION-SCREEN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;END &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;LINE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;.....must be&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;dynamic&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;they can&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;be&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;100&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;just 10&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;thanks in advance&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;goudden.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 14:35:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-variables-selection-screen-pushbutton/m-p/10287214#M1832494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-25T14:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic variables: SELECTION-SCREEN PUSHBUTTON</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-variables-selection-screen-pushbutton/m-p/10287215#M1832495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Define macro&amp;nbsp; for creation of selection-screen lines. Then you can do it dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Łukasz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 14:41:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-variables-selection-screen-pushbutton/m-p/10287215#M1832495</guid>
      <dc:creator>LukaszPegiel</dc:creator>
      <dc:date>2014-04-25T14:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic variables: SELECTION-SCREEN PUSHBUTTON</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-variables-selection-screen-pushbutton/m-p/10287216#M1832496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and what is the condition that drives the dynamism...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i can think of a couple of ways&lt;/P&gt;&lt;P&gt;you could have 100 buttons defined as in your question and then have a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen processsing...&lt;/P&gt;&lt;P&gt;loop at screen &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ...apply an inactive status for the field after a certain number is reached so they are suppressed when dynpro is displayed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use of if statements around each pushbutton but that would be long handed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the previous suggestion to also use a macro would keep coding tidy for whichever solution you go with as 100 buttons is a lot...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unusual requirement - why do you want this - whats the end goal?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 14:43:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-variables-selection-screen-pushbutton/m-p/10287216#M1832496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-25T14:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic variables: SELECTION-SCREEN PUSHBUTTON</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-variables-selection-screen-pushbutton/m-p/10287217#M1832497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="almost_half_cell"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Hi,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;thanks for replying&lt;/SPAN&gt;, I &lt;SPAN class="hps"&gt;do&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;not work&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;with&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;macros&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;as&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;well&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="atn hps"&gt;selection-&lt;/SPAN&gt;screen &lt;SPAN class="hps"&gt;tries to create&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the new variable&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and gives&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;me error&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;any other ideas?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt; &lt;/DIV&gt;&lt;DIV dir="ltr"&gt; &lt;/DIV&gt;&lt;DIV dir="ltr"&gt;Example:&lt;/DIV&gt;&lt;DIV dir="ltr"&gt; &lt;/DIV&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S52"&gt;DEFINE CREATEB&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;a&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;2&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;C&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; a &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'a1'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SELECTION-SCREEN &lt;/SPAN&gt;PUSHBUTTON &lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;4&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&amp;nbsp; &lt;/SPAN&gt;a&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;USER-COMMAND &lt;/SPAN&gt;but1&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;END-OF-DEFINITION&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="L0S52"&gt;SELECTION-SCREEN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;BEGIN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;LINE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; CREATEB&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;SELECTION-SCREEN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;END &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;LINE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN class="L0S52"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 18:16:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-variables-selection-screen-pushbutton/m-p/10287217#M1832497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-25T18:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic variables: SELECTION-SCREEN PUSHBUTTON</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-variables-selection-screen-pushbutton/m-p/10287218#M1832498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN class="ita-kd-inputtools-div"&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="almost_half_cell"&gt;&lt;/P&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;thanks for replying&lt;/SPAN&gt;, &lt;SPAN class="hps"&gt;it is actually a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;banal&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;case,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I need to create&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;multiple buttons&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;with images&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;that depend on a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;parameter&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;if they are&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;10 or 30&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;or 100&lt;/SPAN&gt;, an array of &lt;SPAN class="hps"&gt;buttons&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;as&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;variables&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;calculator&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;buttons.&lt;/SPAN&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;In the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;debugger&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I see&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;work&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;screnn&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;only see&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a structure.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 18:24:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-variables-selection-screen-pushbutton/m-p/10287218#M1832498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-25T18:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic variables: SELECTION-SCREEN PUSHBUTTON</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-variables-selection-screen-pushbutton/m-p/10287219#M1832499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It gives you an error cause the macro is wrong. Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define create_line.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;SELECTION-SCREEN &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333;"&gt;BEGIN &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333;"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333;"&gt;LINE&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333;"&gt;SELECTION-SCREEN &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;PUSHBUTTON &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32" style="font-size: 12px; color: #333333;"&gt;4&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333;"&gt;TEXT&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="font-size: 12px; color: #333333;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S32" style="font-size: 12px; color: #333333;"&gt;&amp;amp;1&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333;"&gt;USER-COMMAND &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;b&amp;amp;1&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333;"&gt;SELECTION-SCREEN &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;PUSHBUTTON &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32" style="font-size: 12px; color: #333333;"&gt;4&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333;"&gt;TEXT&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="font-size: 12px; color: #333333;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S32" style="font-size: 12px; color: #333333;"&gt;&amp;amp;2&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333;"&gt;USER-COMMAND &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;b&amp;amp;2&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333;"&gt;SELECTION-SCREEN &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;PUSHBUTTON &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32" style="font-size: 12px; color: #333333;"&gt;4&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333;"&gt;TEXT&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="font-size: 12px; color: #333333;"&gt;-&amp;amp;3&lt;/SPAN&gt;&lt;SPAN class="L0S32" style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333;"&gt;USER-COMMAND &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;b&amp;amp;3&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333;"&gt;SELECTION-SCREEN &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;PUSHBUTTON &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32" style="font-size: 12px; color: #333333;"&gt;4&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333;"&gt;TEXT&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="font-size: 12px; color: #333333;"&gt;-&amp;amp;4&lt;/SPAN&gt;&lt;SPAN class="L0S32" style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333;"&gt;USER-COMMAND &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;b&amp;amp;4&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333;"&gt;SELECTION-SCREEN &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333;"&gt;END &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333;"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333;"&gt;LINE&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;end-of-definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b01.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create_line: 001 002 003 004, 005 006 007 008.&lt;/P&gt;&lt;P&gt;selection-screen end of block b01.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 19:17:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-variables-selection-screen-pushbutton/m-p/10287219#M1832499</guid>
      <dc:creator>LukaszPegiel</dc:creator>
      <dc:date>2014-04-25T19:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic variables: SELECTION-SCREEN PUSHBUTTON</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-variables-selection-screen-pushbutton/m-p/10287220#M1832500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I am aware, you cannot dynamically create selection screens, except via dynamic generation of an ABAP program. Where I've had a similar requirement, I've created the maximum, and used LOOP AT SCREEN to hide the ones I didn't need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, develop it in Web Dynpro (which can run in SAPGui - see transaction SOAMANAGER to see how it can be done), and use the WDR_SELECT_OPTIONS component, which does allow fully dynamic select options. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Apr 2014 04:00:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-variables-selection-screen-pushbutton/m-p/10287220#M1832500</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2014-04-26T04:00:11Z</dc:date>
    </item>
  </channel>
</rss>

