<?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: PARAMETER with MEMORY ID not refreshed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-with-memory-id-not-refreshed/m-p/8978997#M1696328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: book antiqua,palatino;"&gt;Even though INITIALIZATION event will execute before displaying the selection screen again, this event will can be used to initialize the selection-screen parameters only once, just after LOAD-OF-PROGRAM ( &lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9a2135c111d1829f0000e829fbfe/frameset.htm" title="http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9a2135c111d1829f0000e829fbfe/frameset.htm"&gt;Initialization&lt;/A&gt; ).&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: book antiqua,palatino;"&gt;If generated Purchase order number to be displayed explicitly for each selection screen call, event AT SELECTION-SCREEN OUTPUT should be used.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: book antiqua,palatino;"&gt;Regards, Vinod&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Sep 2012 05:50:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-09-20T05:50:14Z</dc:date>
    <item>
      <title>PARAMETER with MEMORY ID not refreshed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-with-memory-id-not-refreshed/m-p/8978993#M1696324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Expert,&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;I have only 1 parameter in my selection screen, connected to ID EBS (PO number)&lt;/P&gt;&lt;P&gt;In the code, I increment the PO number by 1 and set the parameter.&lt;/P&gt;&lt;P&gt;However, after the program completes and I press "BACK", the parameter still shows the old PO number.&lt;/P&gt;&lt;P&gt;Only when I quit the program and execute it again, it will show the new PO number in the selection screen.&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;Is there any way to show the new PO number after I press "BACK"?&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;PARAMETERS: P_EBELN LIKE EKKO-EBELN MEMORY ID EBS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;START-OF-SELECTION.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; P_EBELN = P_EBELN + 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; SET PARAMETER ID 'EBS' FIELD P_EBELN.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; WRITE: / P_EBELN.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;TY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 04:39:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-with-memory-id-not-refreshed/m-p/8978993#M1696324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-20T04:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: PARAMETER with MEMORY ID not refreshed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-with-memory-id-not-refreshed/m-p/8978994#M1696325</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;the memory id for purchase order is BES not EBS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 05:07:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-with-memory-id-not-refreshed/m-p/8978994#M1696325</guid>
      <dc:creator>former_member218125</dc:creator>
      <dc:date>2012-09-20T05:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: PARAMETER with MEMORY ID not refreshed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-with-memory-id-not-refreshed/m-p/8978995#M1696326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the typo, it's BES, but still doesn't work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 05:25:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-with-memory-id-not-refreshed/m-p/8978995#M1696326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-20T05:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: PARAMETER with MEMORY ID not refreshed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-with-memory-id-not-refreshed/m-p/8978996#M1696327</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;Affer backing to selection-screen all the&amp;nbsp; system always restores the old selection data, this is a standard behavior and you can't prevent it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system re-fill the selection-screen with old data just after the event INITIALIZATION, you can try to check this simple code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;PARAMETERS&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;P_EBELN &lt;SPAN class="L0S52"&gt;LIKE &lt;/SPAN&gt;EKKO&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;EBELN&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;INITIALIZATION&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;GET &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;PARAMETER &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ID &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'EBS' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FIELD &lt;/SPAN&gt;P_EBELN&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;BREAK-POINT&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;START-OF-SELECTION&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; P_EBELN &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;P_EBELN + &lt;SPAN class="L0S32"&gt;1&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SET &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;PARAMETER &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ID &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'EBS' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FIELD &lt;/SPAN&gt;P_EBELN&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;/ P_EBELN&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;It's just like your code, but I use the event INITIALIZATION to get the value from PARAMETER ID: at the break-point you can see the value is got correctly, but in the selection-screen it'll be shown the old value.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;The old data are stored in a memory and the system refreshs it after leaving the program: that explains behavior you see&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Max&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 05:31:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-with-memory-id-not-refreshed/m-p/8978996#M1696327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-20T05:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: PARAMETER with MEMORY ID not refreshed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-with-memory-id-not-refreshed/m-p/8978997#M1696328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: book antiqua,palatino;"&gt;Even though INITIALIZATION event will execute before displaying the selection screen again, this event will can be used to initialize the selection-screen parameters only once, just after LOAD-OF-PROGRAM ( &lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9a2135c111d1829f0000e829fbfe/frameset.htm" title="http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9a2135c111d1829f0000e829fbfe/frameset.htm"&gt;Initialization&lt;/A&gt; ).&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: book antiqua,palatino;"&gt;If generated Purchase order number to be displayed explicitly for each selection screen call, event AT SELECTION-SCREEN OUTPUT should be used.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: book antiqua,palatino;"&gt;Regards, Vinod&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 05:50:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-with-memory-id-not-refreshed/m-p/8978997#M1696328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-20T05:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: PARAMETER with MEMORY ID not refreshed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-with-memory-id-not-refreshed/m-p/8978998#M1696329</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;Mine is just only an example in order to explain the behavior is corret, so it's not an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes he should use AT SELECTION-CREEN OUTPUT event, but then he need to solve others issue, because this event is called as soon as an action is done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm waiting a response from TY in order to know what he really needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 06:13:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-with-memory-id-not-refreshed/m-p/8978998#M1696329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-20T06:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: PARAMETER with MEMORY ID not refreshed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-with-memory-id-not-refreshed/m-p/8978999#M1696330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Max and Vinod &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/996/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I understand it is standard behaviour, and I can refresh the parameter as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;PARAMETERS: P_EBELN LIKE EKKO-EBELN MEMORY ID EBS.&lt;/SPAN&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new, courier;"&gt;AT SELECTION-SCREEN OUTPUT.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new, courier;"&gt;&amp;nbsp; GET PARAMETER ID 'BES' FIELD P_EBELN.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;START-OF-SELECTION.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;&amp;nbsp; P_EBELN = P_EBELN + 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;&amp;nbsp; SET PARAMETER ID 'EBS' FIELD P_EBELN.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;&amp;nbsp; WRITE: / P_EBELN.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I call this program with SUBMIT, the input PO number will always be overwritten by the "AT SELECTION-SCREEN OUTPUT" statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;SUBMIT ZPROG01 WITH P_EBELN = '12345'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although I input PO number = 12345, if the original BES parameter stored "1000", &lt;/P&gt;&lt;P&gt;the program will still shows 1001 instead of 12346.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this can be solved by calling SET PARAMETER before I call SUBMIT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 06:28:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-with-memory-id-not-refreshed/m-p/8978999#M1696330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-20T06:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: PARAMETER with MEMORY ID not refreshed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-with-memory-id-not-refreshed/m-p/8979000#M1696331</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;yes your're right the event wi'll always overwrite the value, this is the other issue I've spoken before and this is the why I didn't suggest it at the beginning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 06:43:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-with-memory-id-not-refreshed/m-p/8979000#M1696331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-20T06:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: PARAMETER with MEMORY ID not refreshed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-with-memory-id-not-refreshed/m-p/8979001#M1696332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see, thank you very much, Max &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" height="1" src="https://community.sap.com/996/images/emoticons/happy.gif" width="1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 09:36:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-with-memory-id-not-refreshed/m-p/8979001#M1696332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-20T09:36:05Z</dc:date>
    </item>
  </channel>
</rss>

