<?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: ALV Grid control width in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-control-width/m-p/1659380#M292375</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so that this will automatically take the column width.&lt;/P&gt;&lt;P&gt;But there is a limit for the total length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_layout-grid_title  = ptitle.&lt;/P&gt;&lt;P&gt;  wa_layout-zebra       = 'X'.&lt;/P&gt;&lt;P&gt;  wa_layout-sel_mode    = 'B'.&lt;/P&gt;&lt;P&gt;  wa_layout-cwidth_opt  = 'X'.&lt;/P&gt;&lt;P&gt;  wa_variant-report     = sy-repid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Oct 2006 14:05:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-20T14:05:36Z</dc:date>
    <item>
      <title>ALV Grid control width</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-control-width/m-p/1659377#M292372</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;Any one please let me know how to expand the width of the ALV grid control , (i.e my report output is coming 50% in the screen) but I want this output screen need to be increased. I am using ABAP Object Oriented Programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pavan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2006 13:56:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-control-width/m-p/1659377#M292372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-20T13:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid control width</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-control-width/m-p/1659378#M292373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to the screen where the container is implemented, and increase the size of the container, you may have to inscreen the size of the screen also in the screen atributes tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2006 14:02:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-control-width/m-p/1659378#M292373</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-10-20T14:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid control width</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-control-width/m-p/1659379#M292374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;increase the size of container.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2006 14:04:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-control-width/m-p/1659379#M292374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-20T14:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid control width</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-control-width/m-p/1659380#M292375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so that this will automatically take the column width.&lt;/P&gt;&lt;P&gt;But there is a limit for the total length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_layout-grid_title  = ptitle.&lt;/P&gt;&lt;P&gt;  wa_layout-zebra       = 'X'.&lt;/P&gt;&lt;P&gt;  wa_layout-sel_mode    = 'B'.&lt;/P&gt;&lt;P&gt;  wa_layout-cwidth_opt  = 'X'.&lt;/P&gt;&lt;P&gt;  wa_variant-report     = sy-repid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2006 14:05:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-control-width/m-p/1659380#M292375</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-20T14:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid control width</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-control-width/m-p/1659381#M292376</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;I changed the container width, even though it is not width not increased. Can u please let me know whether it is possible using coding or using methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pavan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2006 15:21:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-control-width/m-p/1659381#M292376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-20T15:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid control width</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-control-width/m-p/1659382#M292377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You physically went into screen painter and stretched the container to the right and there has been not effect? Make sure to extend the screen if you have to.  Also,  double click on the container, in the attributes dialog, set for horizontal and vertical resizing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2006 15:24:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-control-width/m-p/1659382#M292377</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-10-20T15:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid control width</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-control-width/m-p/1659383#M292378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pavan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your ALV list is the only element on your dynpro then you should not use a custom container on the dynpro. Instead use the following approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZUS_SDN_ALVLIST_FULLSCREEN
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

REPORT  zus_sdn_alvlist_fullscreen.


DATA:
  gt_kna1           TYPE STANDARD TABLE OF kna1.


DATA:
  go_docking        TYPE REF TO cl_gui_docking_container,
  go_alvgrid        TYPE REF TO cl_gui_alv_grid.



START-OF-SELECTION.
* Select some data
  SELECT * FROM  kna1 INTO TABLE gt_kna1.

* Create docking container and dock at left side
  CREATE OBJECT go_docking
    EXPORTING
      parent                      = cl_gui_container=&amp;gt;screen0
*      REPID                       =
*      DYNNR                       =
      side                        =
                  cl_gui_docking_container=&amp;gt;dock_at_left
*      EXTENSION                   = 50
*      STYLE                       =
*      LIFETIME                    = lifetime_default
*      CAPTION                     =
*      METRIC                      = 0
      ratio                       = 90  " 90% of screen
    EXCEPTIONS
      cntl_error                  = 1
      cntl_system_error           = 2
      create_error                = 3
      lifetime_error              = 4
      lifetime_dynpro_dynpro_link = 5
      OTHERS                      = 6.
  IF sy-subrc &amp;lt;&amp;gt; 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

* Set very high extension -&amp;gt; not overruled by screen resizing
  CALL METHOD go_docking-&amp;gt;set_extension
    EXPORTING
      extension  = 99999
    EXCEPTIONS
      CNTL_ERROR = 1
      others     = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.




* Create ALV grid
  CREATE OBJECT go_alvgrid
    EXPORTING
      i_parent          = go_docking
    EXCEPTIONS
      error_cntl_create = 1
      error_cntl_init   = 2
      error_cntl_link   = 3
      error_dp_create   = 4
      OTHERS            = 5.
  IF sy-subrc &amp;lt;&amp;gt; 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.






  CALL METHOD go_alvgrid-&amp;gt;set_table_for_first_display
    EXPORTING
*      I_BUFFER_ACTIVE               =
*      I_BYPASSING_BUFFER            =
*      I_CONSISTENCY_CHECK           =
      i_structure_name              = 'KNA1'
*      IS_VARIANT                    =
*      I_SAVE                        =
*      I_DEFAULT                     = 'X'
*      IS_LAYOUT                     =
*      IS_PRINT                      =
*      IT_SPECIAL_GROUPS             =
*      IT_TOOLBAR_EXCLUDING          =
*      IT_HYPERLINK                  =
*      IT_ALV_GRAPHICS               =
*      IT_EXCEPT_QINFO               =
*      IR_SALV_ADAPTER               =
    CHANGING
      it_outtab                     = gt_kna1
*      IT_FIELDCATALOG               =
*      IT_SORT                       =
*      IT_FILTER                     =
    EXCEPTIONS
      invalid_parameter_combination = 1
      program_error                 = 2
      too_many_lines                = 3
      OTHERS                        = 4.
  IF sy-subrc &amp;lt;&amp;gt; 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

* Empty dynpro without any elements
  CALL SCREEN '0100'.
* NOTE: dynpro flow logic contains only the two modules shown below  


END-OF-SELECTION.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE status_0100 OUTPUT.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.

* Link to current dynpro
  CALL METHOD go_docking-&amp;gt;link
    EXPORTING
      repid                       = syst-cprog
      dynnr                       = syst-dynnr
*      CONTAINER                   =
    EXCEPTIONS
      cntl_error                  = 1
      cntl_system_error           = 2
      lifetime_dynpro_dynpro_link = 3
      OTHERS                      = 4.
  IF sy-subrc &amp;lt;&amp;gt; 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.


ENDMODULE.                 " STATUS_0100  OUTPUT

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  USER_COMMAND_0100  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE user_command_0100 INPUT.
  SET SCREEN 0. LEAVE SCREEN.
ENDMODULE.                 " USER_COMMAND_0100  INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 08:32:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-control-width/m-p/1659383#M292378</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-10-24T08:32:25Z</dc:date>
    </item>
  </channel>
</rss>

