<?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 display settings in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-settings/m-p/1943685#M389260</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other classes available for display settings in ALV other than the below mentioned.The following classes doesn't works in SAP 5.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this belongs to NetWeaver family?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cl_salv_table&lt;/P&gt;&lt;P&gt;cl_salv_functions&lt;/P&gt;&lt;P&gt;cl_salv_display_settings&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one pls help it out to do the same in abap objects?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;User&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Feb 2007 04:12:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-28T04:12:54Z</dc:date>
    <item>
      <title>display settings</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-settings/m-p/1943685#M389260</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other classes available for display settings in ALV other than the below mentioned.The following classes doesn't works in SAP 5.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this belongs to NetWeaver family?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cl_salv_table&lt;/P&gt;&lt;P&gt;cl_salv_functions&lt;/P&gt;&lt;P&gt;cl_salv_display_settings&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one pls help it out to do the same in abap objects?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;User&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 04:12:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-settings/m-p/1943685#M389260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T04:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: display settings</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-settings/m-p/1943686#M389261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Raj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are indeed working on an ECC 5.0 system then I do not see where the problem is. The following sample report &amp;lt;b&amp;gt;ZUS_SDN_CL_SALV_TABLE_DISPLAY&amp;lt;/b&amp;gt; demonstrates how to adjust the layout of the ALV list. In addition, you see the coding for &amp;lt;i&amp;gt;event handling&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;column adjustment&amp;lt;/i&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZUS_SDN_CL_SALV_TABLE_DISPLAY
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

REPORT  zus_sdn_cl_salv_table_display.

TYPE-POOLS: abap.


DATA:
  gt_knb1        TYPE STANDARD TABLE OF knb1.


DATA:
  go_table       TYPE REF TO cl_salv_table,
  go_events      TYPE REF TO cl_salv_events_table,
*
  go_columns     TYPE REF TO cl_salv_columns_table,
  go_column      TYPE REF TO cl_salv_column,
*
  go_display     TYPE REF TO cl_salv_display_settings.


PARAMETERS:
  p_outlen       TYPE lvc_outlen  DEFAULT '20',
  p_title        TYPE lvc_title   DEFAULT 'New Grid Title'.

*---------------------------------------------------------------------*
*       CLASS lcl_eventhandler DEFINITION
*---------------------------------------------------------------------*
*
*---------------------------------------------------------------------*
CLASS lcl_eventhandler DEFINITION.

  PUBLIC SECTION.

    CLASS-METHODS:
      handle_double_click FOR EVENT
          if_salv_events_actions_table~double_click
          OF cl_salv_events_table
          IMPORTING
            row
            column.

ENDCLASS.                    "lcl_eventhandler DEFINITION

*---------------------------------------------------------------------*
*       CLASS lcl_eventhandler IMPLEMENTATION
*---------------------------------------------------------------------*
*
*---------------------------------------------------------------------*
CLASS lcl_eventhandler IMPLEMENTATION.

  METHOD handle_double_click.
*   define local data
    DATA:
      ls_knb1    TYPE knb1.


    READ TABLE gt_knb1 INTO ls_knb1 INDEX row.
    IF ( syst-subrc = 0 ).
      SET PARAMETER ID 'BUK' FIELD ls_knb1-bukrs.
      SET PARAMETER ID 'KUN' FIELD ls_knb1-kunnr.

      CALL TRANSACTION 'XD03' AND SKIP FIRST SCREEN.
    ENDIF.

  ENDMETHOD.                    "handle_double_click

ENDCLASS.                    "lcl_eventhandler IMPLEMENTATION


START-OF-SELECTION.

  SELECT        * FROM  knb1 INTO TABLE gt_knb1
         WHERE  bukrs  = '1000'.


* Create ALV grid instance
  TRY.
      CALL METHOD cl_salv_table=&amp;gt;factory
*    EXPORTING
*      LIST_DISPLAY   = IF_SALV_C_BOOL_SAP=&amp;gt;FALSE
*      R_CONTAINER    =
*      CONTAINER_NAME =
        IMPORTING
          r_salv_table   = go_table
        CHANGING
          t_table        = gt_knb1.
    CATCH cx_salv_msg .
  ENDTRY.

* Create event instance
  go_events = go_table-&amp;gt;get_event( ).

* Set event handler
  SET HANDLER:
    lcl_eventhandler=&amp;gt;handle_double_click FOR go_events.




  PERFORM adjust_column.
  PERFORM adjust_display.

  go_table-&amp;gt;display( ).

END-OF-SELECTION.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  ADJUST_COLUMN
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM adjust_column .


  CHECK ( p_outlen &amp;gt; 0 ).  " In this case use default output length


* Get columns instance
  go_columns = go_table-&amp;gt;get_columns( ).

* Get single column instance
  TRY.
      go_column  = go_columns-&amp;gt;get_column( 'LOEVM' ). " delete flag
      go_column-&amp;gt;set_output_length( p_outlen ).
    CATCH cx_root.
  ENDTRY.


ENDFORM.                    " ADJUST_COLUMN


*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  ADJUST_DISPLAY
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM adjust_display .

  go_display = go_table-&amp;gt;get_display_settings( ).

  go_display-&amp;gt;set_striped_pattern( abap_true ).
  go_display-&amp;gt;set_list_header( p_title ).


ENDFORM.                    " ADJUST_DISPLAY&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>Wed, 28 Feb 2007 09:17:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-settings/m-p/1943686#M389261</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-02-28T09:17:57Z</dc:date>
    </item>
  </channel>
</rss>

