<?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: Positioning the screen fields Dynamically in a Module Pool. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/positioning-the-screen-fields-dynamically-in-a-module-pool/m-p/3989562#M953153</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;the elements can not be placed dynamically what i think so.&lt;/P&gt;&lt;P&gt;But you can do one thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose you have place 4 pushbutton on screen. say Button1,Button2,Button3,Button4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your screen PBO you can write a module.&lt;/P&gt;&lt;P&gt;in which depending on the condition you can hide and display button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for e.g. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if flag = 'X'.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name = 'BUTTON1' .&lt;/P&gt;&lt;P&gt;screen-active = '0'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;screen-active = '1'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;mdify screen.&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;By this piece of code you can hide or display the button accordingly.and the box will automatically change its size .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will help you out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jun 2008 09:13:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-16T09:13:03Z</dc:date>
    <item>
      <title>Positioning the screen fields Dynamically in a Module Pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/positioning-the-screen-fields-dynamically-in-a-module-pool/m-p/3989561#M953152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I position the push buttons dynamically in the module pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose I have 4 push buttons within in a box on the screen. For particular condition I want third push button to disappear and the 4th Push button should be moved to the place of third push button and also the size of the box should be adjusted based on the number of buttons in the box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be rewarded for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kishore.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 09:00:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/positioning-the-screen-fields-dynamically-in-a-module-pool/m-p/3989561#M953152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T09:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Positioning the screen fields Dynamically in a Module Pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/positioning-the-screen-fields-dynamically-in-a-module-pool/m-p/3989562#M953153</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;the elements can not be placed dynamically what i think so.&lt;/P&gt;&lt;P&gt;But you can do one thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose you have place 4 pushbutton on screen. say Button1,Button2,Button3,Button4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your screen PBO you can write a module.&lt;/P&gt;&lt;P&gt;in which depending on the condition you can hide and display button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for e.g. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if flag = 'X'.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name = 'BUTTON1' .&lt;/P&gt;&lt;P&gt;screen-active = '0'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;screen-active = '1'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;mdify screen.&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;By this piece of code you can hide or display the button accordingly.and the box will automatically change its size .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will help you out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 09:13:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/positioning-the-screen-fields-dynamically-in-a-module-pool/m-p/3989562#M953153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T09:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Positioning the screen fields Dynamically in a Module Pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/positioning-the-screen-fields-dynamically-in-a-module-pool/m-p/3989563#M953154</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;We can enable / disable the buttons in PBO of the screen. But i don't think we can resixe the button. code for enable / disable the buttons is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

LOOP AT SCREEN.
    CASE screen-name.
      WHEN 'BUTTON3'.
          screen-active = 0.
     ENDCASE.
    MODIFY SCREEN.
  ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siva.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 09:19:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/positioning-the-screen-fields-dynamically-in-a-module-pool/m-p/3989563#M953154</guid>
      <dc:creator>sivasatyaprasad_yerra</dc:creator>
      <dc:date>2008-06-16T09:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Positioning the screen fields Dynamically in a Module Pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/positioning-the-screen-fields-dynamically-in-a-module-pool/m-p/3989564#M953155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;there is structure by name 'FELD' where there all attributes that can fully define &lt;/P&gt;&lt;P&gt;your button. but i don't know how to use it.&lt;/P&gt;&lt;P&gt; i think, it is easy to hide 4-th button than hide 3-rd button and move 4-th button on place of 3-rd button. if you will make, as i said,  in program you will only analyze whether 4-th button is hidden or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 09:21:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/positioning-the-screen-fields-dynamically-in-a-module-pool/m-p/3989564#M953155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T09:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Positioning the screen fields Dynamically in a Module Pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/positioning-the-screen-fields-dynamically-in-a-module-pool/m-p/3989565#M953156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use subscreens to do what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example subscreen 1 holds 1 button, subscreen 2 holds 2 buttons.  Depending on the setting of your ok_code, display either subscreen 1 or 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 10:57:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/positioning-the-screen-fields-dynamically-in-a-module-pool/m-p/3989565#M953156</guid>
      <dc:creator>christine_evans</dc:creator>
      <dc:date>2008-06-16T10:57:34Z</dc:date>
    </item>
  </channel>
</rss>

