<?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: DYNP_VALUES_READ Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-read-problem/m-p/3962551#M946554</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;Where are you using DYNP_VALUES_READ and how are transfering the screen parameters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U should use a code like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF TB_DYNPFIELDS OCCURS 0.
          INCLUDE STRUCTURE DYNPREAD.
  DATA: END OF TB_DYNPFIELDS.

  DATA: PROGNAME LIKE D020S-PROG.

  MOVE &amp;lt;SCREEN FIELD&amp;gt; TO TB_DYNPFIELDS-FIELDNAME.
  APPEND TB_DYNPFIELDS.

  MOVE SY-CPROG TO PROGNAME.

  CALL FUNCTION 'DYNP_VALUES_READ'
       EXPORTING
            DYNAME     = PROGNAME
            DYNUMB     = SY-DYNNR
       TABLES
            DYNPFIELDS = TB_DYNPFIELDS&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but you make sure the screen is active when u use that fm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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, 19 Jun 2008 10:38:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-19T10:38:26Z</dc:date>
    <item>
      <title>DYNP_VALUES_READ Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-read-problem/m-p/3962550#M946553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing problem in DYNP_VALUES_READ functional module. It is not returning any values in interanal table .  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i am doing is in ME51n ( Create Purchase Requisition ) based on purchase requisition type ( drop down / combo box ) &lt;/P&gt;&lt;P&gt;i want to restrict account assign category search help values.&lt;/P&gt;&lt;P&gt;Here i want to read the values in pur. requistion type using DYNP_VALUES_READ, but it is not returning any values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me.&lt;/P&gt;&lt;P&gt;Points will be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by&lt;/P&gt;&lt;P&gt;GLADIATOR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 10:33:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-read-problem/m-p/3962550#M946553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T10:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: DYNP_VALUES_READ Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-read-problem/m-p/3962551#M946554</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;Where are you using DYNP_VALUES_READ and how are transfering the screen parameters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U should use a code like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF TB_DYNPFIELDS OCCURS 0.
          INCLUDE STRUCTURE DYNPREAD.
  DATA: END OF TB_DYNPFIELDS.

  DATA: PROGNAME LIKE D020S-PROG.

  MOVE &amp;lt;SCREEN FIELD&amp;gt; TO TB_DYNPFIELDS-FIELDNAME.
  APPEND TB_DYNPFIELDS.

  MOVE SY-CPROG TO PROGNAME.

  CALL FUNCTION 'DYNP_VALUES_READ'
       EXPORTING
            DYNAME     = PROGNAME
            DYNUMB     = SY-DYNNR
       TABLES
            DYNPFIELDS = TB_DYNPFIELDS&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but you make sure the screen is active when u use that fm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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, 19 Jun 2008 10:38:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-read-problem/m-p/3962551#M946554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T10:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: DYNP_VALUES_READ Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-read-problem/m-p/3962552#M946555</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 like this..&lt;/P&gt;&lt;P&gt;  wa_dynpro_values-fieldname = Fieldname of te field whose values to be read'.&lt;/P&gt;&lt;P&gt;  APPEND wa_dynpro_values TO i_dynpro_values.&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-repid&lt;/P&gt;&lt;P&gt;      dynumb               = '0402'&lt;/P&gt;&lt;P&gt;      translate_to_upper   = c_x&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      dynpfields           = i_dynpro_values&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;      stepl_not_found      = 10&lt;/P&gt;&lt;P&gt;      OTHERS               = 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajinikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 10:39:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-read-problem/m-p/3962552#M946555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T10:39:31Z</dc:date>
    </item>
  </channel>
</rss>

