<?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: Get dynpro width / height in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-dynpro-width-height/m-p/5556035#M1268091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Torben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though it sound a bit wird to me to set docking container to entire screen width/height, it is still feasible and if this is the requirement...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get ratio of docking container to its residing screen. Then multiply it accordingly and set new extension:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: r_dock TYPE REF TO cl_gui_docking_container.

CALL SCREEN 100.

MODULE pbo OUTPUT.
  DATA: perc TYPE i,
        extension TYPE i VALUE 100.


  CREATE OBJECT r_dock
    EXPORTING
      side                        = cl_gui_docking_container=&amp;gt;dock_at_left
      extension                   = extension.

  r_dock-&amp;gt;get_ratio( IMPORTING ratio = perc ).
  extension = 100 * extension / perc.
  r_dock-&amp;gt;set_extension( extension ).  "entire width of the screen

ENDMODULE.                    "pbo OUTPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 May 2009 15:44:14 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2009-05-01T15:44:14Z</dc:date>
    <item>
      <title>Get dynpro width / height</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-dynpro-width-height/m-p/5556034#M1268090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whats that crap with specifing the width / height of a dynpro in lines and columns?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to find a value for the "extension" parameter of cl_gui_docking_container constructor.&lt;/P&gt;&lt;P&gt;What I want to achieve is that this parameter is filled with the current dynpro width (or height if I dock the container on top). But all I have is the current number of columns from sy-scols (or lines from sy-srows). The extension parameter can use millimeters or pixels but not columns or lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me how to convert columns (rows) to millimeters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for all answers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Torben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2009 15:00:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-dynpro-width-height/m-p/5556034#M1268090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-01T15:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Get dynpro width / height</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-dynpro-width-height/m-p/5556035#M1268091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Torben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though it sound a bit wird to me to set docking container to entire screen width/height, it is still feasible and if this is the requirement...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get ratio of docking container to its residing screen. Then multiply it accordingly and set new extension:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: r_dock TYPE REF TO cl_gui_docking_container.

CALL SCREEN 100.

MODULE pbo OUTPUT.
  DATA: perc TYPE i,
        extension TYPE i VALUE 100.


  CREATE OBJECT r_dock
    EXPORTING
      side                        = cl_gui_docking_container=&amp;gt;dock_at_left
      extension                   = extension.

  r_dock-&amp;gt;get_ratio( IMPORTING ratio = perc ).
  extension = 100 * extension / perc.
  r_dock-&amp;gt;set_extension( extension ).  "entire width of the screen

ENDMODULE.                    "pbo OUTPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2009 15:44:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-dynpro-width-height/m-p/5556035#M1268091</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-05-01T15:44:14Z</dc:date>
    </item>
  </channel>
</rss>

