<?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: Modify dynpro screen at runtime in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynpro-screen-at-runtime/m-p/2006730#M409076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt; You need to execute this code in PBO module not in PAI module. So save your ok_code and then check for that in the PBO module and execute this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Mar 2007 07:22:15 GMT</pubDate>
    <dc:creator>seshatalpasai_madala</dc:creator>
    <dc:date>2007-03-05T07:22:15Z</dc:date>
    <item>
      <title>Modify dynpro screen at runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynpro-screen-at-runtime/m-p/2006729#M409075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;My requirement is to modify the attributes of a screen element (input field) at runtime... I want to enable or disable input based on the a checbox.&lt;/P&gt;&lt;P&gt;I have assigned a function code (OK_CODE) 'LWISE' to checkbox. Whenever user clicks on it it triggers PAI and in the module usercommand I have handled it as follows. SCR1_NPT is the input field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'LWISE'.&lt;/P&gt;&lt;P&gt;      LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;        IF screen-name = 'SCR1_NPT'.&lt;/P&gt;&lt;P&gt;          BREAK-POINT.&lt;/P&gt;&lt;P&gt;          IF scr1_lwisept = 'X'.&lt;/P&gt;&lt;P&gt;            screen-input = 0.&lt;/P&gt;&lt;P&gt;            screen-required = 0.&lt;/P&gt;&lt;P&gt;            MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;          ELSE.&lt;/P&gt;&lt;P&gt;            screen-input = 1.&lt;/P&gt;&lt;P&gt;            screen-required = 1.&lt;/P&gt;&lt;P&gt;            MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above code seems to be fine, it also gets in there, make the necessary changes to the SCREEN itab, modifies... but it doesn't reflect on the screen...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly Help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 07:20:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynpro-screen-at-runtime/m-p/2006729#M409075</guid>
      <dc:creator>aabhas_wilmar</dc:creator>
      <dc:date>2007-03-05T07:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Modify dynpro screen at runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynpro-screen-at-runtime/m-p/2006730#M409076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt; You need to execute this code in PBO module not in PAI module. So save your ok_code and then check for that in the PBO module and execute this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 07:22:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynpro-screen-at-runtime/m-p/2006730#M409076</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-03-05T07:22:15Z</dc:date>
    </item>
  </channel>
</rss>

