<?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: OO syntax problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-syntax-problem/m-p/2602501#M596268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in your event handler&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS LCL_HANDLE_EVENTS DEFINITION.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This returns row and column when a cell is double clicked&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Other events are available but we only want this one in this application.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;    METHODS:&lt;/P&gt;&lt;P&gt;      ON_DOUBLE_CLICK FOR EVENT DOUBLE_CLICK OF CL_SALV_EVENTS_TABLE&lt;/P&gt;&lt;P&gt;          IMPORTING ROW COLUMN.&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "lcl_handle_events DEFINITION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      CLASS lcl_handle_events IMPLEMENTATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS LCL_HANDLE_EVENTS IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;On Double click display factuur, Proforma, or Order (not batch)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD  ON_DOUBLE_CLICK.&lt;/P&gt;&lt;P&gt;    PERFORM  DISPLAY_DOCUMENT USING ROW COLUMN.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.         "on_double_click&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "lcl_handle_events IMPLEMENTATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create the Grid object and then access methods within sub / superclasses of the cl_salv_table class.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The Object instance is returned in variable gr_table. This is then used as the Instance reference&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;for accessing attributes and calling methods within the cl_salv_table class.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;      CALL METHOD CL_SALV_TABLE=&amp;gt;FACTORY&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          LIST_DISPLAY = GR_LISTORALV     "ALV or classic list&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          R_SALV_TABLE = GR_TABLE         "ALV object instantiated&lt;/P&gt;&lt;P&gt;        CHANGING&lt;/P&gt;&lt;P&gt;          T_TABLE      = TA_LIST.         "Data table display (internal table)&lt;/P&gt;&lt;P&gt;    CATCH CX_SALV_MSG.                    "If error in Object Instantiation&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set Grid Layout options&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  GR_FUNC = GR_TABLE-&amp;gt;GET_FUNCTIONS( ).            "Enable Grid standard functions (and user if they exist)&lt;/P&gt;&lt;P&gt;  GR_FUNC-&amp;gt;SET_ALL( ABAP_TRUE ).                   "Show and enable standard Toolbar. (ALV)&lt;/P&gt;&lt;P&gt;  GR_DISPLAY = GR_TABLE-&amp;gt;GET_DISPLAY_SETTINGS( ).  "Enable limited programmable layout setting changes&lt;/P&gt;&lt;P&gt;  GR_DISPLAY-&amp;gt;SET_HORIZONTAL_LINES( VALUE = ' ' ). "Switch off Horizontal lines&lt;/P&gt;&lt;P&gt;  GR_DISPLAY-&amp;gt;SET_VERTICAL_LINES( VALUE = ' '  ).  "Switch off Vertical lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  GR_TABLE-&amp;gt;DISPLAY( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM DISPLAY_DOCUMENT USING I_ROW    TYPE I&lt;/P&gt;&lt;P&gt;                            I_COLUMN TYPE LVC_FNAME.&lt;/P&gt;&lt;P&gt;  READ TABLE TA_LIST  INDEX I_ROW INTO VR_LIST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jimbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2007 10:16:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-25T10:16:33Z</dc:date>
    <item>
      <title>OO syntax problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-syntax-problem/m-p/2602500#M596267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from an object of the class cl_salv_table I got another object of type cl_salv_columns_table, let's name it as lo_columns.&lt;/P&gt;&lt;P&gt;In debug mode, when I double click this object I find in the attributes column other classes.&lt;/P&gt;&lt;P&gt;My question is, how do I access to those attributes from other classes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My example:&lt;/P&gt;&lt;P&gt;for lo_columns object I have&lt;/P&gt;&lt;P&gt;CL_SALV_COLUMNS_LIST and I need the private attribute CELL_TYPE_COLUMN.&lt;/P&gt;&lt;P&gt;There is no method in cl_salv_columns that returns an object of this kind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;André Costa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 10:06:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-syntax-problem/m-p/2602500#M596267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T10:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: OO syntax problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-syntax-problem/m-p/2602501#M596268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in your event handler&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS LCL_HANDLE_EVENTS DEFINITION.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This returns row and column when a cell is double clicked&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Other events are available but we only want this one in this application.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;    METHODS:&lt;/P&gt;&lt;P&gt;      ON_DOUBLE_CLICK FOR EVENT DOUBLE_CLICK OF CL_SALV_EVENTS_TABLE&lt;/P&gt;&lt;P&gt;          IMPORTING ROW COLUMN.&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "lcl_handle_events DEFINITION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      CLASS lcl_handle_events IMPLEMENTATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS LCL_HANDLE_EVENTS IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;On Double click display factuur, Proforma, or Order (not batch)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD  ON_DOUBLE_CLICK.&lt;/P&gt;&lt;P&gt;    PERFORM  DISPLAY_DOCUMENT USING ROW COLUMN.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.         "on_double_click&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "lcl_handle_events IMPLEMENTATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create the Grid object and then access methods within sub / superclasses of the cl_salv_table class.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The Object instance is returned in variable gr_table. This is then used as the Instance reference&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;for accessing attributes and calling methods within the cl_salv_table class.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;      CALL METHOD CL_SALV_TABLE=&amp;gt;FACTORY&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          LIST_DISPLAY = GR_LISTORALV     "ALV or classic list&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          R_SALV_TABLE = GR_TABLE         "ALV object instantiated&lt;/P&gt;&lt;P&gt;        CHANGING&lt;/P&gt;&lt;P&gt;          T_TABLE      = TA_LIST.         "Data table display (internal table)&lt;/P&gt;&lt;P&gt;    CATCH CX_SALV_MSG.                    "If error in Object Instantiation&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set Grid Layout options&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  GR_FUNC = GR_TABLE-&amp;gt;GET_FUNCTIONS( ).            "Enable Grid standard functions (and user if they exist)&lt;/P&gt;&lt;P&gt;  GR_FUNC-&amp;gt;SET_ALL( ABAP_TRUE ).                   "Show and enable standard Toolbar. (ALV)&lt;/P&gt;&lt;P&gt;  GR_DISPLAY = GR_TABLE-&amp;gt;GET_DISPLAY_SETTINGS( ).  "Enable limited programmable layout setting changes&lt;/P&gt;&lt;P&gt;  GR_DISPLAY-&amp;gt;SET_HORIZONTAL_LINES( VALUE = ' ' ). "Switch off Horizontal lines&lt;/P&gt;&lt;P&gt;  GR_DISPLAY-&amp;gt;SET_VERTICAL_LINES( VALUE = ' '  ).  "Switch off Vertical lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  GR_TABLE-&amp;gt;DISPLAY( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM DISPLAY_DOCUMENT USING I_ROW    TYPE I&lt;/P&gt;&lt;P&gt;                            I_COLUMN TYPE LVC_FNAME.&lt;/P&gt;&lt;P&gt;  READ TABLE TA_LIST  INDEX I_ROW INTO VR_LIST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jimbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 10:16:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-syntax-problem/m-p/2602501#M596268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T10:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: OO syntax problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-syntax-problem/m-p/2602502#M596269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry Jimbo, couldn't get your point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the type of vr_list? CL_SALV_COLUMN_LIST?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to set a column as a checkbox... Maybe I'm understanding this all wrong #-/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;André Costa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 10:26:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-syntax-problem/m-p/2602502#M596269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T10:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: OO syntax problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-syntax-problem/m-p/2602503#M596270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi your original question wasn't clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However to get a selection box on this type of grid look at SAP program &lt;/P&gt;&lt;P&gt;SALV_DEMO_TABLE_SELECTIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note in the SALV functions you don't have any editing capability although you do have event handling. You can only put your cursor on the  selection boxes - single, block or multiple selections allowed.&lt;/P&gt;&lt;P&gt;Tthere's no INPUT capability to put an X in the box etc. however.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to CHANGE data via user input to the grid you'll have to use the class cl_gui_alv_grid instead which is a bit more complex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jimbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 11:38:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-syntax-problem/m-p/2602503#M596270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T11:38:14Z</dc:date>
    </item>
  </channel>
</rss>

