<?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: Mysterious function module DYNP_VALUES_UPDATE? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/mysterious-function-module-dynp-values-update/m-p/7365098#M1542265</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;Really DYNP_VALUES_UPDATE do not need dyname and dynumb parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tip is that dpovtab[] is a "global" internal table with is recgnized internally by the system and influences in the field values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The information refers every time to the current screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leandro Mengue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Oct 2010 23:03:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-15T23:03:21Z</dc:date>
    <item>
      <title>Mysterious function module DYNP_VALUES_UPDATE?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mysterious-function-module-dynp-values-update/m-p/7365097#M1542264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAP Gurus/Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm very confused about function module DYNP_VALUES_UPDATE in function group SHL2. It'll be nice if you could answer my question below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to call the function module with space passed to both parameter DYNAME and DYNUMB, such as the following, and it successfully updated the selection screen of the calling report. I wonder how it got program/screen information of the calling report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    CALL FUNCTION 'DYNP_VALUES_UPDATE'
      EXPORTING
        dyname     = space
        dynumb     = space
      TABLES
        dynpfields = lt_dynp_fld[]
      EXCEPTIONS
        OTHERS     = 0.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The source code of the function module is shown below. It merely calls a subroutine and simply ignores parameters DYNAME and DYNUMB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FUNCTION dynp_values_update.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"       IMPORTING
*"             VALUE(DYNAME) LIKE  D020S-PROG
*"             VALUE(DYNUMB) LIKE  D020S-DNUM
*"       TABLES
*"              DYNPFIELDS STRUCTURE  DYNPREAD
*"----------------------------------------------------------------------
  PERFORM fill_dpovtab_upd TABLES dynpfields.
ENDFUNCTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The form is shown below. Did the C function DYNP_GET_STATUS link function group SHL2 to the calling report in the background? I guess that field symbol &amp;lt;dpovtab&amp;gt; (linked to global variable dpovtab610 in my test) in the form was mapped to the calling report by the ABAP runtime environment...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM fill_dpovtab_upd TABLES dynpfields STRUCTURE dynpread.

  DATA: hf TYPE i, dp TYPE dpov610, hstepl(3) TYPE n,
        flduseoffs TYPE i, flduselen TYPE i,
        fldnameoffs TYPE i, fldnamelen TYPE i,
        fldinhoffs TYPE i, fldinhlen TYPE i,
        fldinpoffs TYPE i, fldinplen TYPE i.

  FIELD-SYMBOLS: &amp;lt;dpovline&amp;gt; TYPE ANY, &amp;lt;dpovtab&amp;gt; TYPE table,
                 &amp;lt;dfline&amp;gt; TYPE dynpread.


  CALL 'DYNP_GET_STATUS' ID 'FUNCTION' FIELD 16 "kennt der Kern DPOV610?
                         ID 'VALUE' FIELD hf.             "#EC CI_CCALL
  IF sy-subrc NE 0 OR hf EQ 0.                  "sieht wohl nicht so aus
    ASSIGN: dpovtab TO &amp;lt;dpovline&amp;gt;,
            dpovtab[] TO &amp;lt;dpovtab&amp;gt;.
    flduseoffs = 0. flduselen = 1.
    fldnameoffs = 1. fldnamelen = 132.
    fldinhoffs = 133. fldinhlen = 132.
    fldinpoffs = 265. fldinplen = 1.
  ELSE.                                         "DPOV610 ist bekannt
    ASSIGN: dpovtab610 TO &amp;lt;dpovtab&amp;gt;,
            dp TO &amp;lt;dpovline&amp;gt;.
    flduseoffs = 0. flduselen = 1.
    fldnameoffs = 1. fldnamelen = 140.
    fldinpoffs = 141. fldinplen = 1.
    fldinhoffs = 142. fldinhlen = 255.
  ENDIF.

* dynpfields nach dpovtab schaufeln

  CLEAR: &amp;lt;dpovtab&amp;gt;, &amp;lt;dpovline&amp;gt;.

  LOOP AT dynpfields ASSIGNING &amp;lt;dfline&amp;gt;.
    IF &amp;lt;dfline&amp;gt;-stepl GT 0.
      hstepl = &amp;lt;dfline&amp;gt;-stepl.
      CONCATENATE &amp;lt;dfline&amp;gt;-fieldname '(' hstepl ')'
           INTO &amp;lt;dpovline&amp;gt;+fldnameoffs(fldnamelen).
    ELSE.
      &amp;lt;dpovline&amp;gt;+fldnameoffs(fldnamelen) = &amp;lt;dfline&amp;gt;-fieldname.
    ENDIF.
    &amp;lt;dpovline&amp;gt;+flduseoffs(flduselen) = 'E'.
    &amp;lt;dpovline&amp;gt;+fldinhoffs(fldinhlen) = &amp;lt;dfline&amp;gt;-fieldvalue.
    APPEND &amp;lt;dpovline&amp;gt; TO &amp;lt;dpovtab&amp;gt;.
  ENDLOOP.

ENDFORM.                    "fill_dpovtab_upd
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 21:53:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mysterious-function-module-dynp-values-update/m-p/7365097#M1542264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-15T21:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Mysterious function module DYNP_VALUES_UPDATE?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mysterious-function-module-dynp-values-update/m-p/7365098#M1542265</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;Really DYNP_VALUES_UPDATE do not need dyname and dynumb parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tip is that dpovtab[] is a "global" internal table with is recgnized internally by the system and influences in the field values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The information refers every time to the current screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leandro Mengue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 23:03:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mysterious-function-module-dynp-values-update/m-p/7365098#M1542265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-15T23:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Mysterious function module DYNP_VALUES_UPDATE?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mysterious-function-module-dynp-values-update/m-p/7365099#M1542266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leandro, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your quick response. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess your are right. When the called program is done and the program flow returns to the calling report, the ABAP runtime environment may internally check the global fields of the called program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To test your theory, as a copy, I created function group ZSHL2, function module ZDYNP_VALUES_UPDATE and global fields DPOVTAB and DPOVTAB610, but my version didn't work. Shall I assume that the ABAP runtime environment only checks the global fields of certain programs such as function group SHL2? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards, &lt;/P&gt;&lt;P&gt;Bo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 23:21:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mysterious-function-module-dynp-values-update/m-p/7365099#M1542266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-15T23:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Mysterious function module DYNP_VALUES_UPDATE?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mysterious-function-module-dynp-values-update/m-p/7365100#M1542267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In some place, some where, ..., SAP links the dpov table of this function group with your kernel. See:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call 'DYNP_GET_STATUS' id 'FUNCTION' field 16 "kennt der Kern DPOV610?
                       id 'VALUE' field hf.   "#EC CI_CCALL
if sy-subrc ne 0 or hf eq 0.                  "sieht wohl nicht so aus&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This call is a internal function that verify the table in the kernel. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With sure another point of system is linking it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leandro Mengue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Oct 2010 00:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mysterious-function-module-dynp-values-update/m-p/7365100#M1542267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-16T00:05:09Z</dc:date>
    </item>
  </channel>
</rss>

