<?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: Function DYNP_VALUES_UPDATE not working in PBO in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-dynp-values-update-not-working-in-pbo/m-p/4763939#M1116883</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, if this is not the program, please suggest an alternative program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Nov 2008 00:45:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-07T00:45:17Z</dc:date>
    <item>
      <title>Function DYNP_VALUES_UPDATE not working in PBO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-dynp-values-update-not-working-in-pbo/m-p/4763937#M1116881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field 'Risk Category' whose value I need to change upon an action. The action is controlled through a button on the screen. For e.g: if the action is 'Update Credit Info', when the user chooses this action, it takes him to another location where he makes changes to the Credit parameters. When he returns back to the original screen, he needs to see the new value for 'Risk Category'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have controlled this in the PBO...I read the table containing the risk category and then call the function DYNP_VALUES_UPDATE. However, the value of the field does not change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find my code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE status_1100 OUTPUT.&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt; IF screen-name = 'KNKK-CTLPC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF lt_dynpfld IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;        LOOP AT lt_dynpfld INTO ls_dynpfld.&lt;/P&gt;&lt;P&gt;          DELETE TABLE lt_dynpfld FROM ls_dynpfld.&lt;/P&gt;&lt;P&gt;        ENDLOOP.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT SINGLE ctlpc FROM knkk&lt;/P&gt;&lt;P&gt;      INTO ls_dynpfld-fieldvalue&lt;/P&gt;&lt;P&gt;      WHERE kunnr = knkk-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ls_dynpfld-fieldname = 'KNKK-CTLPC'.&lt;/P&gt;&lt;P&gt;      APPEND ls_dynpfld TO lt_dynpfld.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLEAR: ls_dynpfld.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT SINGLE rtext FROM t691t&lt;/P&gt;&lt;P&gt;      INTO ls_dynpfld-fieldvalue&lt;/P&gt;&lt;P&gt;      WHERE ctlpc = ls_dynpfld-fieldvalue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ls_dynpfld-fieldname = 'T691T-RTEXT'.&lt;/P&gt;&lt;P&gt;      APPEND ls_dynpfld TO lt_dynpfld.&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               = '1100'&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          dynpfields           = lt_dynpfld&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;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;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDMODULE.                             " STATUS_1100  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************************************&lt;/P&gt;&lt;P&gt;The flow logic for the screen 1100 is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;  MODULE STATUS_1100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;*******************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if there is something wrong with this code or if something is missing.&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;Rugmani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2008 00:09:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-dynp-values-update-not-working-in-pbo/m-p/4763937#M1116881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-07T00:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Function DYNP_VALUES_UPDATE not working in PBO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-dynp-values-update-not-working-in-pbo/m-p/4763938#M1116882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you read first line from FM documentation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2008 00:15:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-dynp-values-update-not-working-in-pbo/m-p/4763938#M1116882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-07T00:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Function DYNP_VALUES_UPDATE not working in PBO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-dynp-values-update-not-working-in-pbo/m-p/4763939#M1116883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, if this is not the program, please suggest an alternative program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2008 00:45:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-dynp-values-update-not-working-in-pbo/m-p/4763939#M1116883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-07T00:45:17Z</dc:date>
    </item>
  </channel>
</rss>

