<?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: Error in 'DYNP_VALUES_READ' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-dynp-values-read/m-p/4502916#M1065405</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Durai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had tried with this also. It still had the same error.&lt;/P&gt;&lt;P&gt;Also, while debugging&lt;/P&gt;&lt;P&gt; SY-CPROG = SAPRCK10.&lt;/P&gt;&lt;P&gt;and SY-DYNNR = 1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is different from the Program and screen number of the required field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The technical help of KALA-KADAT in CK40N has&lt;/P&gt;&lt;P&gt;Prog = 'SAPLCKCC02'&lt;/P&gt;&lt;P&gt;and screen = '3120'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Oct 2008 05:08:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-03T05:08:45Z</dc:date>
    <item>
      <title>Error in 'DYNP_VALUES_READ'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-dynp-values-read/m-p/4502914#M1065403</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 have a requirement wherin I need to read the field KALA-KADAT (Costing date from) from CK40N transaction into and Z- function module which is called internally for costing purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To read the value I am using the FM &lt;STRONG&gt;'DYNP_VALUES_READ'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gt_dyfields TYPE STANDARD TABLE OF dynpread,&lt;/P&gt;&lt;P&gt;          gw_dyfields TYPE dynpread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gw_dyfields-fieldname = 'KALA-KADAT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      APPEND gw_dyfields TO gt_dyfields.&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               = 'SAPLCKCC02'&lt;/P&gt;&lt;P&gt;          dynumb               = '3120'&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          dynpfields           = gt_dyfields&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;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF gt_dyfields IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        READ TABLE gt_dyfields INTO gw_dyfields INDEX 1.&lt;/P&gt;&lt;P&gt;        lv_date = gw_dyfields-fieldvalue.&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;Inspite of the prog name and screen number being correct I am getting sy-subrc = 3  i.e invalid_dynproname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody please help me out with this.&lt;/P&gt;&lt;P&gt;The CK40N has several screens and subscreens. Is there any other parameters we need to pass in the FM??&lt;/P&gt;&lt;P&gt;Or is there any other way to read this field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points shall be rewarded for appropriate solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Aarti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2008 04:29:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-dynp-values-read/m-p/4502914#M1065403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-03T04:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'DYNP_VALUES_READ'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-dynp-values-read/m-p/4502915#M1065404</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;&lt;STRONG&gt;DATA : LV_DYNAME  LIKE    D020S-PROG,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;           &lt;STRONG&gt;LV_ DYNUMB  LIKE    D020S-DNUM.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LV_DYNAME  = SY-CPROG.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LV_ DYNUMB = SY-DYNNR.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gt_dyfields TYPE STANDARD TABLE OF dynpread,&lt;/P&gt;&lt;P&gt;gw_dyfields TYPE dynpread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gw_dyfields-fieldname = 'KALA-KADAT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND gw_dyfields TO gt_dyfields.&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;&lt;STRONG&gt;dyname = LV_DYNAME&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dynumb = LV_ DYNUMB&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;dynpfields = gt_dyfields&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;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF gt_dyfields IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE gt_dyfields INTO gw_dyfields INDEX 1.&lt;/P&gt;&lt;P&gt;lv_date = gw_dyfields-fieldvalue.&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;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Durai.V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2008 04:56:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-dynp-values-read/m-p/4502915#M1065404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-03T04:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'DYNP_VALUES_READ'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-dynp-values-read/m-p/4502916#M1065405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Durai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had tried with this also. It still had the same error.&lt;/P&gt;&lt;P&gt;Also, while debugging&lt;/P&gt;&lt;P&gt; SY-CPROG = SAPRCK10.&lt;/P&gt;&lt;P&gt;and SY-DYNNR = 1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is different from the Program and screen number of the required field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The technical help of KALA-KADAT in CK40N has&lt;/P&gt;&lt;P&gt;Prog = 'SAPLCKCC02'&lt;/P&gt;&lt;P&gt;and screen = '3120'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2008 05:08:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-dynp-values-read/m-p/4502916#M1065405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-03T05:08:45Z</dc:date>
    </item>
  </channel>
</rss>

