<?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 Get runtime screen field value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-runtime-screen-field-value/m-p/1979138#M400769</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;I need to get a screen field value at runtime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use LOOP AT SCREEN statement, but i have only the name, groups, input/output, ... attributes of screen fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i saw some post in this forum, their suggest some FM like F4IF_INT_TABLE_VALUE_REQUEST and FC_SET_DYNPRO_GET_VALUES, but does not work for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I can get the value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Feb 2007 17:24:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-13T17:24:40Z</dc:date>
    <item>
      <title>Get runtime screen field value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-runtime-screen-field-value/m-p/1979138#M400769</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;I need to get a screen field value at runtime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use LOOP AT SCREEN statement, but i have only the name, groups, input/output, ... attributes of screen fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i saw some post in this forum, their suggest some FM like F4IF_INT_TABLE_VALUE_REQUEST and FC_SET_DYNPRO_GET_VALUES, but does not work for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I can get the value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 17:24:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-runtime-screen-field-value/m-p/1979138#M400769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T17:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get runtime screen field value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-runtime-screen-field-value/m-p/1979139#M400770</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;Try using the FM DYNP_VALUES_READ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 18:04:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-runtime-screen-field-value/m-p/1979139#M400770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T18:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get runtime screen field value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-runtime-screen-field-value/m-p/1979140#M400771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In the AT selection screen event you need to use this code, if you are working with screens then use it in PAI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'DYNP_VALUES_READ'
       EXPORTING
            dyname             = progname
            dynumb             = dynnum
            translate_to_upper = 'X'
       TABLES
            dynpfields         = dynpro_values.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 18:39:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-runtime-screen-field-value/m-p/1979140#M400771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T18:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get runtime screen field value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-runtime-screen-field-value/m-p/1979141#M400772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Local internal table for screen fields&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  data: begin of i_dynpfields occurs 0.&lt;/P&gt;&lt;P&gt;          include structure dynpread.&lt;/P&gt;&lt;P&gt;  data: end of i_dynpfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear   i_dynpfields.&lt;/P&gt;&lt;P&gt;  refresh i_dynpfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i_dynpfields-fieldname = 'RD_ASERV'.&lt;/P&gt;&lt;P&gt;  append i_dynpfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      dyname               = sy-cprog&lt;/P&gt;&lt;P&gt;      dynumb               = sy-dynnr&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      dynpfields           = i_dynpfields&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      invalid_abapworkarea = 1&lt;/P&gt;&lt;P&gt;      invalid_dynprofield  = 2&lt;/P&gt;&lt;P&gt;      invalid_dynproname   = 3&lt;/P&gt;&lt;P&gt;      invalid_dynpronummer = 4&lt;/P&gt;&lt;P&gt;      invalid_request      = 5&lt;/P&gt;&lt;P&gt;      no_fielddescription  = 6&lt;/P&gt;&lt;P&gt;      invalid_parameter    = 7&lt;/P&gt;&lt;P&gt;      undefind_error       = 8&lt;/P&gt;&lt;P&gt;      double_conversion    = 9&lt;/P&gt;&lt;P&gt;      others               = 10.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message i398  with 'Unable to read the selection screen values'(003).&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    read table i_dynpfields index 1.&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      move i_dynpfields-fieldvalue to rd_aserv.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award points if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 18:39:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-runtime-screen-field-value/m-p/1979141#M400772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T18:39:16Z</dc:date>
    </item>
  </channel>
</rss>

