<?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: ABAP Basics: FUNCTION 'DYNP_VALUES_UPDATE' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-basics-function-dynp-values-update/m-p/1717561#M313512</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, the event is only fired when you use the extension USER-COMMAND because the action of selecting the radiobutton now triggers a round trip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To help with your real problem, I would have to see the entire coding, can you post this or send to my email address on my BC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Nov 2006 18:34:28 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-11-07T18:34:28Z</dc:date>
    <item>
      <title>ABAP Basics: FUNCTION 'DYNP_VALUES_UPDATE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-basics-function-dynp-values-update/m-p/1717560#M313511</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;in a selection-screen-event (AT SELECTION-SCREEN ON RADIOBUTTON GROUP dest.) I want to modify another screen field depending on the input for the 2 radiobutton fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The exit is only processed after I declared the first parameter with addition "USER-COMMAND dest". I don't understand why, but it's OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now comes the dilemma:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When changing the radiobutton first, the event is processed and the value on the selection screen replaced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do it again, the event is processed, but the replament does not work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using DYNP_VALUES_UPDATE as shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;pre&amp;gt;&lt;/P&gt;&lt;P&gt;FORM dynp_values_update  USING    pv_field TYPE fieldname&lt;/P&gt;&lt;P&gt;                                  pv_value TYPE any.&lt;/P&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;    lv_dyname TYPE  d020s-prog,&lt;/P&gt;&lt;P&gt;    lv_dynumb TYPE   d020s-dnum,&lt;/P&gt;&lt;P&gt;    lt_dynpfields TYPE STANDARD TABLE OF dynpread WITH DEFAULT KEY,&lt;/P&gt;&lt;P&gt;    ls_dynpfields TYPE dynpread.&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS:&lt;/P&gt;&lt;P&gt;    &amp;lt;dynpfields&amp;gt; TYPE dynpread.&lt;/P&gt;&lt;P&gt;  lv_dyname = sy-repid.&lt;/P&gt;&lt;P&gt;  lv_dynumb = sy-dynnr.&lt;/P&gt;&lt;P&gt;  ls_dynpfields-fieldname = pv_field.&lt;/P&gt;&lt;P&gt;  ls_dynpfields-fieldvalue = pv_value.&lt;/P&gt;&lt;P&gt;  APPEND ls_dynpfields TO lt_dynpfields.&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               = lv_dyname&lt;/P&gt;&lt;P&gt;      dynumb               = lv_dynumb&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      dynpfields           = lt_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;      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.                    " dynp_values_update&lt;/P&gt;&lt;P&gt;&amp;lt;/pre&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sy-Subrc is zero - what's wrong? Obviously the update takes place only if the screen field is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me, thank you.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 18:23:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-basics-function-dynp-values-update/m-p/1717560#M313511</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-11-07T18:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Basics: FUNCTION 'DYNP_VALUES_UPDATE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-basics-function-dynp-values-update/m-p/1717561#M313512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, the event is only fired when you use the extension USER-COMMAND because the action of selecting the radiobutton now triggers a round trip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To help with your real problem, I would have to see the entire coding, can you post this or send to my email address on my BC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 18:34:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-basics-function-dynp-values-update/m-p/1717561#M313512</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-07T18:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Basics: FUNCTION 'DYNP_VALUES_UPDATE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-basics-function-dynp-values-update/m-p/1717562#M313513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check this sample program,  here there is no need to use the DYNPRO_VALUE_UPDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001 .

parameters: p_rad1 radiobutton group dest user-command chk,
            p_rad2 radiobutton group dest,
            p_file type localfile.

&amp;lt;b&amp;gt;
* Comment out this event
*at selection-screen on radiobutton group dest.&amp;lt;/b&amp;gt;

&amp;lt;b&amp;gt;at selection-screen output.
  if p_rad1 = 'X'.
    p_file =  'C:/TestFile1.txt'.
  elseif p_rad2 = 'X'.
    p_file =  'C:/TestFile2.txt'.
  endif.&amp;lt;/b&amp;gt;


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 18:44:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-basics-function-dynp-values-update/m-p/1717562#M313513</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-07T18:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Basics: FUNCTION 'DYNP_VALUES_UPDATE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-basics-function-dynp-values-update/m-p/1717563#M313514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a&lt;/P&gt;&lt;P&gt;selection-screen begin of block ...&lt;/P&gt;&lt;P&gt;and end of block... araound my parameters&lt;/P&gt;&lt;P&gt;and use at selection-screen on block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it works fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 11:30:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-basics-function-dynp-values-update/m-p/1717563#M313514</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-11-17T11:30:11Z</dc:date>
    </item>
  </channel>
</rss>

