<?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 FUNCTION 'DYNP_VALUES_READ' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-dynp-values-read/m-p/1302487#M158947</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I'm using this function to get the plant from VL32N but I got invalid_dynproname = 3 (EXCEPTION).&lt;/P&gt;&lt;P&gt;What could be the reason? THANKS&lt;/P&gt;&lt;P&gt;The code is:&lt;/P&gt;&lt;P&gt;DATA:    BEGIN OF dynpfields OCCURS 1.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE dynpread.&lt;/P&gt;&lt;P&gt;DATA:    END   OF dynpfields.&lt;/P&gt;&lt;P&gt;***&lt;/P&gt;&lt;P&gt;CLEAR   dynpfields.&lt;/P&gt;&lt;P&gt;REFRESH dynpfields.&lt;/P&gt;&lt;P&gt;dynpfields-fieldname = 'LIPS-WERKS'.&lt;/P&gt;&lt;P&gt;APPEND dynpfields.&lt;/P&gt;&lt;P&gt;&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                   = 'SAPMV50A'   "my_prog&lt;/P&gt;&lt;P&gt;    dynumb                   = '1202'  "my_dnum&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;    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;&amp;gt;&amp;gt;&amp;gt;&amp;gt;****HERE SY-SUBRC = 3????????????&lt;/P&gt;&lt;P&gt;CHECK sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;READ TABLE dynpfields INDEX 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Jun 2006 08:38:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-04T08:38:22Z</dc:date>
    <item>
      <title>FUNCTION 'DYNP_VALUES_READ'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-dynp-values-read/m-p/1302487#M158947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I'm using this function to get the plant from VL32N but I got invalid_dynproname = 3 (EXCEPTION).&lt;/P&gt;&lt;P&gt;What could be the reason? THANKS&lt;/P&gt;&lt;P&gt;The code is:&lt;/P&gt;&lt;P&gt;DATA:    BEGIN OF dynpfields OCCURS 1.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE dynpread.&lt;/P&gt;&lt;P&gt;DATA:    END   OF dynpfields.&lt;/P&gt;&lt;P&gt;***&lt;/P&gt;&lt;P&gt;CLEAR   dynpfields.&lt;/P&gt;&lt;P&gt;REFRESH dynpfields.&lt;/P&gt;&lt;P&gt;dynpfields-fieldname = 'LIPS-WERKS'.&lt;/P&gt;&lt;P&gt;APPEND dynpfields.&lt;/P&gt;&lt;P&gt;&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                   = 'SAPMV50A'   "my_prog&lt;/P&gt;&lt;P&gt;    dynumb                   = '1202'  "my_dnum&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;    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;&amp;gt;&amp;gt;&amp;gt;&amp;gt;****HERE SY-SUBRC = 3????????????&lt;/P&gt;&lt;P&gt;CHECK sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;READ TABLE dynpfields INDEX 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2006 08:38:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-dynp-values-read/m-p/1302487#M158947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-04T08:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION 'DYNP_VALUES_READ'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-dynp-values-read/m-p/1302488#M158948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think we need to send screen program name. Could you check whether this ia screen program name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2006 08:47:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-dynp-values-read/m-p/1302488#M158948</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2006-06-04T08:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION 'DYNP_VALUES_READ'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-dynp-values-read/m-p/1302489#M158949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did. It is. So I don't understand why??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2006 08:49:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-dynp-values-read/m-p/1302489#M158949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-04T08:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION 'DYNP_VALUES_READ'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-dynp-values-read/m-p/1302490#M158950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where have you placed your code .. ?You can read the screen values of the program in which you have called this.If you are trying to execute a stand alone pgm then the FM will throw error cos it will not identify the external screen-name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Nishanth Bhandar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2006 08:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-dynp-values-read/m-p/1302490#M158950</guid>
      <dc:creator>nishanthbhandar</dc:creator>
      <dc:date>2006-06-04T08:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION 'DYNP_VALUES_READ'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-dynp-values-read/m-p/1302491#M158951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nishanth Bhandar ,&lt;/P&gt;&lt;P&gt;My code is in the IQSM0008 Enhancement. I run VL32N first&lt;/P&gt;&lt;P&gt;and when I enter a serial number the IQSM0008 runs.&lt;/P&gt;&lt;P&gt;I just checked that the 'DYNP_VALUES_READ' returns the Inbound deliv. number but not the plant. I think it because the plant is in Items Data Level and the Inbound deliv. number is in Header Data. So the FM can't read it? &lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;DIANA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2006 09:02:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-dynp-values-read/m-p/1302491#M158951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-04T09:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION 'DYNP_VALUES_READ'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-dynp-values-read/m-p/1302492#M158952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just placed the same code in IQSM0008.Seems like everythin is OK.If you are want the plant level data  then press F1 on that field and specify the screen number of this screen to your FM.The read will then return the plant value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2006 09:16:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-dynp-values-read/m-p/1302492#M158952</guid>
      <dc:creator>nishanthbhandar</dc:creator>
      <dc:date>2006-06-04T09:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION 'DYNP_VALUES_READ'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-dynp-values-read/m-p/1302493#M158953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nishanth Bhandar ,&lt;/P&gt;&lt;P&gt;Thats what I did but I got the EXCEPTION.&lt;/P&gt;&lt;P&gt;Did you put the same code?? Did you see the value of the plant: dynpfields-fieldvalue= ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2006 09:43:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-dynp-values-read/m-p/1302493#M158953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-04T09:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION 'DYNP_VALUES_READ'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-dynp-values-read/m-p/1302494#M158954</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 this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF X_LIPS.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE LIPSVB.&lt;/P&gt;&lt;P&gt;DATA: END OF T_LIPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;T_LISPS&amp;gt; TYPE TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: FIELD_DYNPRO(20) VALUE '(SAPMV045A)XLIPS[]'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN (FIEL_DYNPRO) TO &amp;lt;T_LIPS&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT &amp;lt;T_LIPS&amp;gt; INTO X_LIPS.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2006 10:11:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-dynp-values-read/m-p/1302494#M158954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-04T10:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION 'DYNP_VALUES_READ'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-dynp-values-read/m-p/1302495#M158955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Diana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      Please try the code which Max has posted in his message.I guess the problem is that inside the exit the screen is not getting identified.But the value is present in the SAP memory.SO if you use field symbols and assign the memory location of the field then it should work.Give it a try and hope it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2006 12:20:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-dynp-values-read/m-p/1302495#M158955</guid>
      <dc:creator>nishanthbhandar</dc:creator>
      <dc:date>2006-06-04T12:20:37Z</dc:date>
    </item>
  </channel>
</rss>

