<?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 parameter dictionary reference behavior in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameter-dictionary-reference-behavior/m-p/11875828#M1960245</link>
    <description>Hi Matthew .  &lt;P&gt; Thanks a lot for your answer, but my requirement for the parameter is not only fixed two variation, it depends on user selections at selection screen, the smaple code is only objective to explain my issues . do you have any better ideas ?   &lt;/P&gt;</description>
    <pubDate>Mon, 06 May 2019 05:57:08 GMT</pubDate>
    <dc:creator>former_member378471</dc:creator>
    <dc:date>2019-05-06T05:57:08Z</dc:date>
    <item>
      <title>Dynamic parameter dictionary reference behavior</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameter-dictionary-reference-behavior/m-p/11875824#M1960241</link>
      <description>&lt;P&gt;Hi Expert &lt;/P&gt;
  &lt;P&gt;I am using dnynamic parameter dictionary reference to make dynamic selection screen as below .&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;data w_addr type char20 .
data cnt type i .
parameters : p_val like (w_addr).
at SELECTION-SCREEN output .
  cnt = cnt + 1 .
 if cnt mod 2 = 0 .
   w_addr = 'MARA-MATNR'.
 else .
   w_addr = 'KNA1-KUNNR'.
endif .&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;but it is only work once when the screen shows up at first, I had debuged program and checked variance W_ADDR had suceccfully passed value during every times PBO, is there have any way I can make it work? Thanks advance for your helps . &lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;U&gt;&lt;/U&gt;&lt;SUB&gt;&lt;/SUB&gt;&lt;SUP&gt;&lt;/SUP&gt; 
   &lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 03:43:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameter-dictionary-reference-behavior/m-p/11875824#M1960241</guid>
      <dc:creator>former_member378471</dc:creator>
      <dc:date>2019-05-06T03:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic parameter dictionary reference behavior</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameter-dictionary-reference-behavior/m-p/11875825#M1960242</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;could you explain more whe it does not wrok and have u tried this event At Selection Screen?&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 04:24:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameter-dictionary-reference-behavior/m-p/11875825#M1960242</guid>
      <dc:creator>former_member184158</dc:creator>
      <dc:date>2019-05-06T04:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic parameter dictionary reference behavior</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameter-dictionary-reference-behavior/m-p/11875826#M1960243</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;your question is not clear. What you  want to achieve?&lt;/P&gt;&lt;P&gt;CNT is always set to initial value whenever you execute the program.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 05:07:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameter-dictionary-reference-behavior/m-p/11875826#M1960243</guid>
      <dc:creator>former_member564522</dc:creator>
      <dc:date>2019-05-06T05:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic parameter dictionary reference behavior</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameter-dictionary-reference-behavior/m-p/11875827#M1960244</link>
      <description>&lt;P&gt;Create two parameters. One for MATNR, one for KUNNR. Give them a screen group. LOOP AT SCREEN and switch the visibility according to cnt.&lt;/P&gt;&lt;P&gt;Any other way is unnecessarily complicated.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 05:43:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameter-dictionary-reference-behavior/m-p/11875827#M1960244</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2019-05-06T05:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic parameter dictionary reference behavior</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameter-dictionary-reference-behavior/m-p/11875828#M1960245</link>
      <description>Hi Matthew .  &lt;P&gt; Thanks a lot for your answer, but my requirement for the parameter is not only fixed two variation, it depends on user selections at selection screen, the smaple code is only objective to explain my issues . do you have any better ideas ?   &lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 05:57:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameter-dictionary-reference-behavior/m-p/11875828#M1960245</guid>
      <dc:creator>former_member378471</dc:creator>
      <dc:date>2019-05-06T05:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic parameter dictionary reference behavior</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameter-dictionary-reference-behavior/m-p/11875829#M1960246</link>
      <description>&lt;P&gt;For examaple, You can use POPUP_GET_VALUES, for generate popup.&lt;/P&gt;&lt;P&gt;Updated...&lt;/P&gt;&lt;P&gt;Also You can try to use FREE_SELECTIONS_INIT + FREE_SELECTIONS_DIALOG&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 06:22:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameter-dictionary-reference-behavior/m-p/11875829#M1960246</guid>
      <dc:creator>111111E24</dc:creator>
      <dc:date>2019-05-06T06:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic parameter dictionary reference behavior</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameter-dictionary-reference-behavior/m-p/11875830#M1960247</link>
      <description>&lt;P&gt;Hi. &lt;/P&gt;&lt;P&gt;thanks a lot for your comment . &lt;/P&gt;&lt;P&gt;I tried that way before,but it is not work at all, even you get return value from pop up either other function modules, the paramter that you difiend reference would not be changed from first assignment . &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;LJ &lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 11:35:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameter-dictionary-reference-behavior/m-p/11875830#M1960247</guid>
      <dc:creator>former_member378471</dc:creator>
      <dc:date>2019-05-06T11:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic parameter dictionary reference behavior</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameter-dictionary-reference-behavior/m-p/11875831#M1960248</link>
      <description>&lt;P&gt;&lt;A href="https://answers.sap.com/users/533406/95011323.html"&gt;Longjie Jin&lt;/A&gt; Please explain the whole scenario at once, don't add new context each time there is a new answer.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 11:54:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameter-dictionary-reference-behavior/m-p/11875831#M1960248</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-05-06T11:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic parameter dictionary reference behavior</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameter-dictionary-reference-behavior/m-p/11875832#M1960249</link>
      <description>&lt;P&gt;Sorry, may be I did't understand you clear. I mean like that (of course it is not standard sel screen 1000)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report ztesti_mi2.


parameters iv_table type dd02l-tabname obligatory.
parameters iv_field type char30 obligatory.


data: lt_fields type standard table of sval.
data: ls_fields like line of lt_fields.


ls_fields-tabname = iv_table.
ls_fields-fieldname = iv_field.
ls_fields-fieldtext = iv_field.
append ls_fields to lt_fields[].


call function 'POPUP_GET_VALUES'
  exporting
*   NO_VALUE_CHECK        = ' '
    popup_title = '1'
*   START_COLUMN          = '5'
*   START_ROW   = '5'
* IMPORTING
*   RETURNCODE  =
  tables
    fields      = lt_fields
* EXCEPTIONS
*   ERROR_IN_FIELDS       = 1
*   OTHERS      = 2
  .
if sy-subrc &amp;lt;&amp;gt; 0.
* Implement suitable error handling here
endif.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 May 2019 12:41:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameter-dictionary-reference-behavior/m-p/11875832#M1960249</guid>
      <dc:creator>111111E24</dc:creator>
      <dc:date>2019-05-06T12:41:34Z</dc:date>
    </item>
  </channel>
</rss>

