<?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 How to refresh screen data ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-screen-data/m-p/3966045#M947252</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I write a report . And before execute this report, I will check if user has authorization for  the selection criteria data. &lt;/P&gt;&lt;P&gt;If not , I wish refresh the screen and  assign new values to selection criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope some can tell me how to refresh the screen and assign new vales into the selection criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jun 2008 15:26:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-20T15:26:25Z</dc:date>
    <item>
      <title>How to refresh screen data ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-screen-data/m-p/3966045#M947252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I write a report . And before execute this report, I will check if user has authorization for  the selection criteria data. &lt;/P&gt;&lt;P&gt;If not , I wish refresh the screen and  assign new values to selection criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope some can tell me how to refresh the screen and assign new vales into the selection criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 15:26:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-screen-data/m-p/3966045#M947252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T15:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh screen data ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-screen-data/m-p/3966046#M947253</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;You can use refresh, clear stements to clear the selectio-screen values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. if s_matnr is the selection variable, you can clear the values using refresh s_matnr[], clear s_matnr. In the same way you can clear the parameters using clear key word. (clear p_test).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 15:32:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-screen-data/m-p/3966046#M947253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T15:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh screen data ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-screen-data/m-p/3966047#M947254</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;ucan frist check the authorization of that user in &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;event &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection screen output &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if user have authorization it can go ahead and if not &lt;/P&gt;&lt;P&gt;loop at screen and provide the value that u want to apper on screen &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz Reward If usefull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers &lt;/P&gt;&lt;P&gt;Snehi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 15:34:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-screen-data/m-p/3966047#M947254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T15:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh screen data ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-screen-data/m-p/3966048#M947255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use AT SELECTION-SCREEN OUTPUT event to clear the select-options field values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 15:39:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-screen-data/m-p/3966048#M947255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T15:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh screen data ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-screen-data/m-p/3966049#M947256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gary,&lt;/P&gt;&lt;P&gt;Put an Authorisation code in the Initailization Event. It will resolve your problem.If you want to refresh or change  the value in the selection criteria then what you need to do is just enter the value in the event " AT SELECTION SCREEN OUTPUT".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;***************&lt;STRONG&gt;Reward Point if helpful&lt;/STRONG&gt;***************&amp;amp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 18:22:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-screen-data/m-p/3966049#M947256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T18:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh screen data ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-screen-data/m-p/3966050#M947257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can follow the below steps:&lt;/P&gt;&lt;P&gt;1. Use function module DYNP_VALUES_READ  to read the current values of the fields on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Then change the values after your check and...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Use function moudule DYNP_VALUES_UPDATE to update the changed field values on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used these to update the current screen values. Let me know if you need more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 22:31:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-screen-data/m-p/3966050#M947257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T22:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh screen data ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-screen-data/m-p/3966051#M947258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am interested in using DYNP_VALUES_READ and DYNP_VALUES_UPDATE . Can you show me the detail &lt;/P&gt;&lt;P&gt;about these two functions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 01:13:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-screen-data/m-p/3966051#M947258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T01:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh screen data ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-screen-data/m-p/3966052#M947259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DYNP_VALUES_READ Read the values from a dynpro. This function can be used to read the values from a report's selection screen too&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DYNP_VALUES_UPDATE Similar to DYNP_VALUES_READ, this function will allow the updating of fields on a dynpro. Very useful when you want to change a field based on the value entered for another field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following code shows the syntax of the FM 'DYNP_VALUES_UPDATE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*Internal table to store dy dynpro fields and values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: dynpfields  LIKE dynpread OCCURS 5 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: l_stepl     LIKE  sy-stepl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH dynpfields.&lt;/P&gt;&lt;P&gt;CLEAR   dynpfields.&lt;/P&gt;&lt;P&gt;dynpfields-fieldname  = 'SCREENFIELD1-COL1'. "Screen field name&lt;/P&gt;&lt;P&gt;dynpfields-fieldvalue = 10.                  "New value&lt;/P&gt;&lt;P&gt;dynpfields-stepl      = l_stepl.             "Step loop for table controls&lt;/P&gt;&lt;P&gt;APPEND dynpfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DYNP_VALUES_UPDATE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    dyname     = 'SAPLBDT_GMGR'   "Program name&lt;/P&gt;&lt;P&gt;    dynumb     = '0270'           "Screen number&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    dynpfields = dynpfields&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    OTHERS     = 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 01:19:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-screen-data/m-p/3966052#M947259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T01:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh screen data ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-screen-data/m-p/3966053#M947260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gary,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can put the authority check in at selection-scree event and before that event put an intialization event also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM authority_check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Checking Whether the User has authorization for the Plant.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  AUTHORITY-CHECK OBJECT 'ZMMD_PROD' ID 'WERKS' FIELD pa_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; NO AUTHORIZATION FOR PLANT.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MESSAGE e167&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Mohinder Singh Chauhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 04:52:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-screen-data/m-p/3966053#M947260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T04:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh screen data ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-screen-data/m-p/3966054#M947261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for everyone's help.&lt;/P&gt;&lt;P&gt;below is my program code.&lt;/P&gt;&lt;P&gt;***************************************&lt;/P&gt;&lt;P&gt;at selection-screen on radiobutton group RB1 .&lt;/P&gt;&lt;P&gt;***r3 and r4 are radiobutton&lt;/P&gt;&lt;P&gt;   if r3 = 'X' or r4 = 'X'.&lt;/P&gt;&lt;P&gt;    AUTHORITY-CHECK OBJECT 'S_TCODE'&lt;/P&gt;&lt;P&gt;            ID 'TCD' FIELD 'ME28' .&lt;/P&gt;&lt;P&gt;     IF SY-SUBRC NE 0 .&lt;/P&gt;&lt;P&gt;        message W000 with 'No authorization for purchase release'.&lt;/P&gt;&lt;P&gt;        R3 = ''.&lt;/P&gt;&lt;P&gt;        R4 = ''.&lt;/P&gt;&lt;P&gt;        R1 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 14:47:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-screen-data/m-p/3966054#M947261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T14:47:35Z</dc:date>
    </item>
  </channel>
</rss>

