<?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: Problem with DYNP_UPDATE_FIELDS in PBO in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynp-update-fields-in-pbo/m-p/12381688#M1994207</link>
    <description>&lt;P&gt;DYNP_VALUES_READ and DYNP_VALUES_UPDATE are meant for help and value requests (POH/POV).&lt;/P&gt;&lt;P&gt;For PBO/PAI use the global variables (or "persistent" object attributes) linked to dynpro fields.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Mar 2021 16:11:23 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2021-03-01T16:11:23Z</dc:date>
    <item>
      <title>Problem with DYNP_UPDATE_FIELDS in PBO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynp-update-fields-in-pbo/m-p/12381687#M1994206</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;
  &lt;P&gt;I want to create a MVC Framework for Reports.&lt;/P&gt;
  &lt;P&gt;This means that reading and writing of the data on the dynpro-screen should be controlled via a global controller class. For this I use the FM DYNP_UPDATE_FIELDS and DYNP_VALUES_READ within the class. That works generally well. The FM’s are called during ucomm processing in the PAI.&lt;/P&gt;
  &lt;P&gt;Now I have the following problem: The dynpro with data that I read from the DB is initially to be called from the selection screen. Since the FM DYNP_UPDATE_FIELDS only works for the current Dynpro Number, which is still 1000 (selection screen) in the PAI at this time, I wanted to call the FM in the PBO. Apparently, the FM does not work in the PBO!? Unfortunately, I have not found any information on this.&lt;/P&gt;
  &lt;P&gt;Oh, one more Info: I don’t want to update the dynpro-fields hard coded in PBO like global_structure = go_ctrl-&amp;gt;get_data( ).&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;My questions&lt;/STRONG&gt;:&lt;/P&gt;
  &lt;UL&gt;
   &lt;LI&gt;Is there a possibility to use the FM DYNP_UPDATE_FIELDS in the PBO? &lt;/LI&gt;
   &lt;LI&gt;Is there an alternative FM? DYNP_VALUES_UPDATE probably doesn't work here either.&lt;/LI&gt;
   &lt;LI&gt;Is there another way of setting the data on the screen via a controller class?&lt;/LI&gt;
  &lt;/UL&gt;
  &lt;P&gt;Any help is very welcome!&lt;/P&gt;
  &lt;P&gt;Thanks and regards,&lt;/P&gt;
  &lt;P&gt;Sebastian&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 13:47:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynp-update-fields-in-pbo/m-p/12381687#M1994206</guid>
      <dc:creator>sebastian_wilhelm1</dc:creator>
      <dc:date>2021-03-01T13:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with DYNP_UPDATE_FIELDS in PBO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynp-update-fields-in-pbo/m-p/12381688#M1994207</link>
      <description>&lt;P&gt;DYNP_VALUES_READ and DYNP_VALUES_UPDATE are meant for help and value requests (POH/POV).&lt;/P&gt;&lt;P&gt;For PBO/PAI use the global variables (or "persistent" object attributes) linked to dynpro fields.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 16:11:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynp-update-fields-in-pbo/m-p/12381688#M1994207</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-03-01T16:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with DYNP_UPDATE_FIELDS in PBO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynp-update-fields-in-pbo/m-p/12381689#M1994208</link>
      <description>&lt;P&gt;Hi Sandra! Thanks for your quick answer. &lt;/P&gt;&lt;P&gt;But this is exactly what I don't want, as I want to build a Framework where only the Controller-Class stores and updates the data for all ALVs and Dynpro-Fields. If I cannot trigger dynpro-data read and update within the Controller, than I cannot implement a MVC Concept :(. &lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 16:40:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynp-update-fields-in-pbo/m-p/12381689#M1994208</guid>
      <dc:creator>sebastian_wilhelm1</dc:creator>
      <dc:date>2021-03-01T16:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with DYNP_UPDATE_FIELDS in PBO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynp-update-fields-in-pbo/m-p/12381690#M1994209</link>
      <description>&lt;P&gt;You may at least use the "dirty assign" instead, in read/write:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ASSIGN ('(programname)globalvariablename') TO &amp;lt;field&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Mar 2021 17:16:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynp-update-fields-in-pbo/m-p/12381690#M1994209</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-03-01T17:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with DYNP_UPDATE_FIELDS in PBO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynp-update-fields-in-pbo/m-p/12381691#M1994210</link>
      <description>&lt;P&gt;I would use this Option (even if it's dirty), but I need the data directly from the dynpro and not from the global variables. I'll make an example why (makes it easier to explain):&lt;/P&gt;&lt;P&gt;A user enters a value in a dynpro-fields, presses tab-key (unfortunately doesn't trigger anything), Cursor jumps into ALV Table, user enters a value in ALV Table and presses tab-key. Now, a roundtrip is triggered. The Problem is now, that the global variable in the report hasn't been updated until now. When I need this value for e.g. a db-select, how can I get it?&lt;BR /&gt;I tried triggering a roundtrip via cl_gui_cfw=&amp;gt;set_new_ok_code, but this worked just once during a roundtrip from ALV Table. I would need this twice - one for reading dynpro-data and one for updating them after ALV-event-handling.&lt;/P&gt;&lt;P&gt;I'm really wondering how other developers solved this Problem!? Any Ideas? A User Manual with a highlighted Warning: Please press enter after entering a value into the dynpro-field would be a bankruptcy by SAP.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 18:05:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynp-update-fields-in-pbo/m-p/12381691#M1994210</guid>
      <dc:creator>sebastian_wilhelm1</dc:creator>
      <dc:date>2021-03-01T18:05:17Z</dc:date>
    </item>
  </channel>
</rss>

