<?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: Question for FM 'DYNP_VALUES_READ' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-for-fm-dynp-values-read/m-p/5455648#M1250218</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;This need to be used when you call the F4 help on particular field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exmaple...the requirement is to show F4 help on the particular filed B depending on the value entered in Field A..in this case you will not get the value of field A in the event AT SELECTION-SCREEN ON VALUE-REQUEST/POV . O get the get value of field A you need to use the DYNP_VALUES_READ.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Apr 2009 04:34:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-23T04:34:41Z</dc:date>
    <item>
      <title>Question for FM 'DYNP_VALUES_READ'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-for-fm-dynp-values-read/m-p/5455647#M1250217</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 have a question for FM 'DYNP_VALUES_READ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to use this FM for check input values of several PGM in runtime. &lt;/P&gt;&lt;P&gt;When I tested this FM, An error code returned instead of field values.(INVALID_DYNPRONAME)&lt;/P&gt;&lt;P&gt;The FM was called in Start-Of-Selection of PGM with runtime PGM names , screen fields, dynpread table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To solve this problem I reviewed sample PGMs, and I noticed that this FM used only for F4 help value request and field chain in subscreen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I solve the problem? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pleas help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 04:25:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-for-fm-dynp-values-read/m-p/5455647#M1250217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-23T04:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Question for FM 'DYNP_VALUES_READ'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-for-fm-dynp-values-read/m-p/5455648#M1250218</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;This need to be used when you call the F4 help on particular field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exmaple...the requirement is to show F4 help on the particular filed B depending on the value entered in Field A..in this case you will not get the value of field A in the event AT SELECTION-SCREEN ON VALUE-REQUEST/POV . O get the get value of field A you need to use the DYNP_VALUES_READ.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 04:34:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-for-fm-dynp-values-read/m-p/5455648#M1250218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-23T04:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Question for FM 'DYNP_VALUES_READ'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-for-fm-dynp-values-read/m-p/5455649#M1250219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "DYNP_VALUES_READ" doesn't work when we are at the "START-OF-SELECTION" section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any function that will work like "DYNP_VALUES_READ" but from the "START-OF-SELECTION" section?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need it to be able to use the screen value in a method from a customized class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following code doesn't work. We always obtaining the error invalid_dynproname because the call function "DYNP_VALUES_READ" is inside the "START-OF-SELECTION" section.&lt;/P&gt;&lt;P&gt;I need a function that is working inside the  "START-OF-SELECTION" section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ztest20.

DATA: lt_dynfields TYPE TABLE OF dynpread,
      ls_dynfields LIKE LINE OF lt_dynfields.

PARAMETERS: p_lcf AS CHECKBOX DEFAULT.

START-OF-SELECTION.

  REFRESH lt_dynfields.
  ls_dynfields-fieldname = 'P_LCF'.
  APPEND ls_dynfields TO lt_dynfields.

  CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
      dyname               = 'ZTEST20'
      dynumb               = '1000'
    TABLES
      dynpfields           = lt_dynfields
    EXCEPTIONS
      invalid_abapworkarea = 1
      invalid_dynprofield  = 2
      invalid_dynproname   = 3
      invalid_dynpronummer = 4
      invalid_request      = 5
      no_fielddescription  = 6
      invalid_parameter    = 7
      undefind_error       = 8
      double_conversion    = 9
      stepl_not_found      = 10
      OTHERS               = 11.
  IF sy-subrc &amp;lt;&amp;gt; 0.
  ENDIF.

  WRITE:/ sy-subrc.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;dstj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 20:44:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-for-fm-dynp-values-read/m-p/5455649#M1250219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-16T20:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Question for FM 'DYNP_VALUES_READ'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-for-fm-dynp-values-read/m-p/5455650#M1250220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "DYNP_VALUES_READ" doesn't work when we are at the "START-OF-SELECTION" section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any function that will work like "DYNP_VALUES_READ" but from the "START-OF-SELECTION" section?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need it to be able to use the screen value in a method from a customized class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following code doesn't work. We always obtaining the error invalid_dynproname because the call function "DYNP_VALUES_READ" is inside the "START-OF-SELECTION" section.&lt;/P&gt;&lt;P&gt;I need a function that is working inside the  "START-OF-SELECTION" section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ztest20.

DATA: lt_dynfields TYPE TABLE OF dynpread,
      ls_dynfields LIKE LINE OF lt_dynfields.

PARAMETERS: p_lcf AS CHECKBOX DEFAULT.

START-OF-SELECTION.

  REFRESH lt_dynfields.
  ls_dynfields-fieldname = 'P_LCF'.
  APPEND ls_dynfields TO lt_dynfields.

  CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
      dyname               = 'ZTEST20'
      dynumb               = '1000'
    TABLES
      dynpfields           = lt_dynfields
    EXCEPTIONS
      invalid_abapworkarea = 1
      invalid_dynprofield  = 2
      invalid_dynproname   = 3
      invalid_dynpronummer = 4
      invalid_request      = 5
      no_fielddescription  = 6
      invalid_parameter    = 7
      undefind_error       = 8
      double_conversion    = 9
      stepl_not_found      = 10
      OTHERS               = 11.
  IF sy-subrc &amp;lt;&amp;gt; 0.
  ENDIF.

  WRITE:/ sy-subrc.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;dstj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 20:44:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-for-fm-dynp-values-read/m-p/5455650#M1250220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-16T20:44:56Z</dc:date>
    </item>
  </channel>
</rss>

