<?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_UPDATE not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-update-not-working/m-p/1402920#M194676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answer to the reply post of Sreenivasulu Ponnadi  &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------" /&gt;&lt;P&gt;Your answer is about updating F4 help values and there is a on-value request event which updates the screen values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a picture class and there is no way to F4 it. &lt;/P&gt;&lt;P&gt;Also classes does not triger PAI so PBO is also not processed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a class or FM to update screen values when a class event called. No PAI no PBO!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Fuat Ulugay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Jul 2006 07:42:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-07T07:42:07Z</dc:date>
    <item>
      <title>DYNP_VALUES_UPDATE not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-update-not-working/m-p/1402912#M194668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use a screen which has two cl_gui_picture classes.&lt;/P&gt;&lt;P&gt;And when the pictures are clicked a event is trigerred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this event I want to change the values of two radiobuttons which are at the same group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The names of the radiobuttons are G_SIRKET01 and G_SIRKET02.&lt;/P&gt;&lt;P&gt;The code is as follows. But even it returns no errors, nothing happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  sub_picture_click&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_picture_click USING p_x p_y p_sender.&lt;/P&gt;&lt;P&gt;  DATA pos_x(5) TYPE c.&lt;/P&gt;&lt;P&gt;  DATA pos_y(5) TYPE c.&lt;/P&gt;&lt;P&gt;  DATA l_dynnr LIKE syst-dynnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA it_fields LIKE dynpread OCCURS 1 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  pos_x = p_x.&lt;/P&gt;&lt;P&gt;  pos_y = p_y.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF p_sender = g_grph_elmatas.&lt;/P&gt;&lt;P&gt;    g_sirket01 = 'X'.&lt;/P&gt;&lt;P&gt;    g_sirket02 = ' '.&lt;/P&gt;&lt;P&gt;  ELSEIF p_sender = g_grph_elmasu.&lt;/P&gt;&lt;P&gt;    g_sirket01 = ' '.&lt;/P&gt;&lt;P&gt;    g_sirket02 = 'X'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  it_fields-fieldname  = 'G_SIRKET01'.&lt;/P&gt;&lt;P&gt;  it_fields-fieldvalue = g_sirket01.&lt;/P&gt;&lt;P&gt;  APPEND it_fields.&lt;/P&gt;&lt;P&gt;  it_fields-fieldname  = 'G_SIRKET02'.&lt;/P&gt;&lt;P&gt;  it_fields-fieldvalue = g_sirket02.&lt;/P&gt;&lt;P&gt;  APPEND it_fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_dynnr = '0002'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DYNP_VALUES_UPDATE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      dyname               = sy-repid&lt;/P&gt;&lt;P&gt;      dynumb               = l_dynnr&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      dynpfields           = it_fields&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;      undefind_error       = 7&lt;/P&gt;&lt;P&gt;      OTHERS               = 8.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " sub_picture_click&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 14:31:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-update-not-working/m-p/1402912#M194668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-05T14:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: DYNP_VALUES_UPDATE not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-update-not-working/m-p/1402913#M194669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible that it is not working becaue I use in an event of a class? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 14:57:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-update-not-working/m-p/1402913#M194669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-05T14:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: DYNP_VALUES_UPDATE not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-update-not-working/m-p/1402914#M194670</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;Check the screen names (G_SIRKET01 and G_SIRKET02) in &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP at Screen.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whether these screen fields are coming under same screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laxman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 14:58:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-update-not-working/m-p/1402914#M194670</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-07-05T14:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: DYNP_VALUES_UPDATE not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-update-not-working/m-p/1402915#M194671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; Check whether the parameters are passed as per this &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/fmodules/fms_dynp.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/fmodules/fms_dynp.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 15:00:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-update-not-working/m-p/1402915#M194671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-05T15:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: DYNP_VALUES_UPDATE not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-update-not-working/m-p/1402916#M194672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the value of the program name you are passing to the DYNP_UPDATE function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Documentation&lt;/P&gt;&lt;P&gt;DYNAME: Program name (of the calling screen)&lt;/P&gt;&lt;P&gt;Meaning:   Name of the program from which the function&lt;/P&gt;&lt;P&gt;module is called. Set sy-prog here, rather than&lt;/P&gt;&lt;P&gt;sy-repid. Reason: the value of sy-repid is the main program of the help processor function group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kiran&lt;/P&gt;&lt;P&gt;*Please reward useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 15:02:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-update-not-working/m-p/1402916#M194672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-05T15:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: DYNP_VALUES_UPDATE not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-update-not-working/m-p/1402917#M194673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Fuat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Better to use the F.M 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of using 'DYNP_VALUES_UPDATE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the following Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : MARD.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF IT_MARD OCCURS 0,&lt;/P&gt;&lt;P&gt;WERKS LIKE MARD-WERKS,&lt;/P&gt;&lt;P&gt;END OF IT_MARD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : T_RETURN TYPE STANDARD TABLE OF DDSHRETVAL WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;parameters : P_WERKS LIKE MARD-WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT WERKS FROM MARD UP TO 10 ROWS INTO table IT_MARD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;RETFIELD = 'WERKS'&lt;/P&gt;&lt;P&gt;DYNPPROG = SY-REPID&lt;/P&gt;&lt;P&gt;DYNPNR = '1000'&lt;/P&gt;&lt;P&gt;DYNPROFIELD = 'P_WERKS'&lt;/P&gt;&lt;P&gt;VALUE_ORG = 'S'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;VALUE_TAB = IT_MARD&lt;/P&gt;&lt;P&gt;RETURN_TAB = T_RETURN&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;PARAMETER_ERROR = 1&lt;/P&gt;&lt;P&gt;NO_VALUES_FOUND = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Sreenivasulu P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sreenivasulu Ponnadi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 15:03:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-update-not-working/m-p/1402917#M194673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-05T15:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: DYNP_VALUES_UPDATE not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-update-not-working/m-p/1402918#M194674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it is not done at the appropriate place. When this event is raised, you will be in PAI of the screen and any modifications to the screen will not work in PAI. Try to set the values in PAI, but call the function module in the PBO of the screen 0002. Also, instead of using sy-repid, use a variable that is assigned the report name and pass it to the function module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 16:07:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-update-not-working/m-p/1402918#M194674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-05T16:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: DYNP_VALUES_UPDATE not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-update-not-working/m-p/1402919#M194675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the event is raised it is irrelevant of PAI and PBO. Only the class event is raised and processed. So I need a function which updates the screen values w/o PBO or PAI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 07:01:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-update-not-working/m-p/1402919#M194675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-07T07:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: DYNP_VALUES_UPDATE not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-update-not-working/m-p/1402920#M194676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answer to the reply post of Sreenivasulu Ponnadi  &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------" /&gt;&lt;P&gt;Your answer is about updating F4 help values and there is a on-value request event which updates the screen values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a picture class and there is no way to F4 it. &lt;/P&gt;&lt;P&gt;Also classes does not triger PAI so PBO is also not processed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a class or FM to update screen values when a class event called. No PAI no PBO!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Fuat Ulugay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 07:42:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-update-not-working/m-p/1402920#M194676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-07T07:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: DYNP_VALUES_UPDATE not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-update-not-working/m-p/1402921#M194677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I found the solution myself and I tell it here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem was that: "When an object raises an event from a screen the values cannot be updated from that event because no PAI was called.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution:&lt;/P&gt;&lt;P&gt;1.When you register the events, make appl_event 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Register the events&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  event_tab_line-eventid = cl_gui_picture=&amp;gt;eventid_picture_click.&lt;/P&gt;&lt;P&gt;  event_tab_line-appl_event = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND event_tab_line TO event_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Call the dsipatch method of control framework object from the related screen's PAI. The dispatch method will raise the event from PAI and the screen will be updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE save_code.&lt;/P&gt;&lt;P&gt;  WHEN 'BACK' OR '%EX' OR 'CANC'.&lt;/P&gt;&lt;P&gt;  ....&lt;/P&gt;&lt;P&gt;  WHEN OTHERS.&lt;/P&gt;&lt;P&gt;    CALL METHOD cl_gui_cfw=&amp;gt;dispatch.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2006 08:28:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynp-values-update-not-working/m-p/1402921#M194677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-11T08:28:46Z</dc:date>
    </item>
  </channel>
</rss>

