<?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 using OOP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-using-oop/m-p/1711235#M311089</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here it is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kathirvel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Nov 2006 13:01:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-24T13:01:18Z</dc:date>
    <item>
      <title>ALV Grid using OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-using-oop/m-p/1711234#M311088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know how to handle the event raised by clicking the hotspot of an ALV grid that is placed over one splitter container.&lt;/P&gt;&lt;P&gt;I am explaining the problem in detail:&lt;/P&gt;&lt;P&gt;(1) I have to display an ALV grid and when any hotspot of that ALV grid is clicked,&lt;/P&gt;&lt;P&gt;     the row-id should be captured and used to fetch corresponding records from   &lt;/P&gt;&lt;P&gt;     child table (primarykey-foreign key relationship) and the resulting grid should be&lt;/P&gt;&lt;P&gt;     displayed on the same screen at the same time and for any further click, the &lt;/P&gt;&lt;P&gt;     child grid is to be refreshed.&lt;/P&gt;&lt;P&gt;(2) For this, I have created one custom container, placed one splitter container   having two rows &amp;amp; one column over  it and placed the ALV grids over that by getting the corresponding containers of the splitter.&lt;/P&gt;&lt;P&gt;(3) Now, when the hotspot is clicked the SY-UCOMM is empty (even it is not entering the PAI block if I do not place the back button). So, I am not able to get the row-id of the clicked row &amp;amp; without that, can't proceed any further.&lt;/P&gt;&lt;P&gt;(4) Rest of the things are working fine and I have tested that also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me out as I am new to this field and started  practicing ABAP just a month back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Aditya P. Srivastava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2006 12:54:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-using-oop/m-p/1711234#M311088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-24T12:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid using OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-using-oop/m-p/1711235#M311089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here it is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kathirvel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2006 13:01:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-using-oop/m-p/1711235#M311089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-24T13:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid using OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-using-oop/m-p/1711236#M311090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aditya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While building the fieldcatalog , use the hotspot property for the field u want the hotspot to be used .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like  ls_fieldcat_0200-hotspot = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that handle the hotspot .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM handle_hotspot_click USING    i_row_id     TYPE lvc_s_row&lt;/P&gt;&lt;P&gt;                                   i_column_id  TYPE lvc_s_col&lt;/P&gt;&lt;P&gt;                                   is_row_no    TYPE lvc_s_roid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: ls_out   TYPE cnv_30350_display,&lt;/P&gt;&lt;P&gt;        lv_total TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF i_column_id-fieldname = 'TABNAME'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    READ TABLE gt_out&lt;/P&gt;&lt;P&gt;         INTO ls_out&lt;/P&gt;&lt;P&gt;         INDEX is_row_no-row_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Put ur code here &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward full marks if this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2006 13:03:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-using-oop/m-p/1711236#M311090</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2006-11-24T13:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid using OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-using-oop/m-p/1711237#M311091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to se38 put BCALV*  and put f4 you ll find good example there related to your example , check them and use accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2006 14:07:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-using-oop/m-p/1711237#M311091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-24T14:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid using OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-using-oop/m-p/1711238#M311092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI, &lt;/P&gt;&lt;P&gt;Once I have implemented something similar, but I used a simple dynpro with two different custom container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the hotspot event of the father I refresh the children alv.&lt;/P&gt;&lt;P&gt;I try to find this code and I will send you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;enzo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2006 15:42:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-using-oop/m-p/1711238#M311092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-24T15:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid using OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-using-oop/m-p/1711239#M311093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aditya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the complete for the same,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Some Prerequisites in terms of screen, custom control &amp;amp; flow logic&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Screen Name: 9000, Custom Container name : CONTAINER.&lt;/P&gt;&lt;P&gt;flow logic in screen 9000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;  MODULE status_9000.&lt;/P&gt;&lt;P&gt;  MODULE init_9000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;  MODULE user_command_9000.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here goes the code,&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zkb_2alv_grids.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: i_t000 TYPE TABLE OF t000,&lt;/P&gt;&lt;P&gt;      w_t000 TYPE t000,&lt;/P&gt;&lt;P&gt;      i_tcurr TYPE TABLE OF tcurr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Declaration for all the objects required&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: o_container        TYPE REF TO cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;      o_splitter         TYPE REF TO cl_gui_easy_splitter_container,&lt;/P&gt;&lt;P&gt;      o_container_top    TYPE REF TO cl_gui_container,&lt;/P&gt;&lt;P&gt;      o_container_bottom TYPE REF TO cl_gui_container,&lt;/P&gt;&lt;P&gt;      o_salv_table1      TYPE REF TO cl_salv_table,&lt;/P&gt;&lt;P&gt;      o_salv_table2      TYPE REF TO cl_salv_table,&lt;/P&gt;&lt;P&gt;      o_salv_columns     TYPE REF TO cl_salv_columns_table,&lt;/P&gt;&lt;P&gt;      o_salv_column      TYPE REF TO cl_salv_column_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: o_events TYPE REF TO cl_salv_events_table.&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 DEFINITION&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;CLASS lcl_handle_events DEFINITION.&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;    METHODS: on_link_click&lt;/P&gt;&lt;P&gt;                FOR EVENT link_click&lt;/P&gt;&lt;P&gt;                    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;CLASS lcl_handle_events IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;  METHOD on_link_click.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    READ TABLE i_t000 INTO w_t000 INDEX row.&lt;/P&gt;&lt;P&gt;    SELECT * FROM tcurr&lt;/P&gt;&lt;P&gt;           INTO TABLE i_tcurr&lt;/P&gt;&lt;P&gt;                WHERE fcurr = w_t000-mwaer.&lt;/P&gt;&lt;P&gt;    o_salv_table2-&amp;gt;refresh( ).&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "lcl_handle_events&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;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: event_handler TYPE REF TO lcl_handle_events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Select Data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT * FROM t000 INTO TABLE i_t000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL SCREEN 9000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  init_9000  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&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;      text&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;MODULE init_9000 OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: lv_cx_salv_msg        TYPE REF TO cx_salv_msg,&lt;/P&gt;&lt;P&gt;        lw_bal_s_msg          TYPE bal_s_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT o_container IS BOUND.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create a Custom Control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CREATE OBJECT o_container&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      container_name              = 'CONTAINER'&lt;/P&gt;&lt;P&gt;      repid                       = sy-repid&lt;/P&gt;&lt;P&gt;      dynnr                       = '9000'&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      cntl_error                  = 1&lt;/P&gt;&lt;P&gt;      cntl_system_error           = 2&lt;/P&gt;&lt;P&gt;      create_error                = 3&lt;/P&gt;&lt;P&gt;      lifetime_error              = 4&lt;/P&gt;&lt;P&gt;      lifetime_dynpro_dynpro_link = 5&lt;/P&gt;&lt;P&gt;      OTHERS                      = 6.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create splitter control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CREATE OBJECT o_splitter&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      parent            = o_container&lt;/P&gt;&lt;P&gt;      orientation       = 0&lt;/P&gt;&lt;P&gt;      sash_position     = 30&lt;/P&gt;&lt;P&gt;      with_border       = 1&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      cntl_error        = 1&lt;/P&gt;&lt;P&gt;      cntl_system_error = 2&lt;/P&gt;&lt;P&gt;      OTHERS            = 3.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Assign the left and right control that were splitted&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    o_container_top  = o_splitter-&amp;gt;top_left_container.&lt;/P&gt;&lt;P&gt;    o_container_bottom = o_splitter-&amp;gt;bottom_right_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF. " IF NOT o_container IS BOUND.&lt;/P&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;          r_container  = o_container_top&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          r_salv_table = o_salv_table1&lt;/P&gt;&lt;P&gt;        CHANGING&lt;/P&gt;&lt;P&gt;          t_table      = i_t000.&lt;/P&gt;&lt;P&gt;    CATCH cx_salv_msg INTO lv_cx_salv_msg.&lt;/P&gt;&lt;P&gt;      lv_cx_salv_msg-&amp;gt;if_alv_message~get_message(&lt;/P&gt;&lt;P&gt;                            RECEIVING&lt;/P&gt;&lt;P&gt;                                r_s_msg = lw_bal_s_msg ).&lt;/P&gt;&lt;P&gt;      MESSAGE ID     lw_bal_s_msg-msgid&lt;/P&gt;&lt;P&gt;              TYPE   lw_bal_s_msg-msgty&lt;/P&gt;&lt;P&gt;              NUMBER lw_bal_s_msg-msgno&lt;/P&gt;&lt;P&gt;              WITH   lw_bal_s_msg-msgv1 lw_bal_s_msg-msgv2&lt;/P&gt;&lt;P&gt;                     lw_bal_s_msg-msgv3 lw_bal_s_msg-msgv4.&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Column Settings&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  o_salv_columns = o_salv_table1-&amp;gt;get_columns( ).&lt;/P&gt;&lt;P&gt;  o_salv_column ?= o_salv_columns-&amp;gt;get_column( 'MWAER' ).&lt;/P&gt;&lt;P&gt;  o_salv_column-&amp;gt;set_cell_type( 5 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  o_events = o_salv_table1-&amp;gt;get_event( ).&lt;/P&gt;&lt;P&gt;  CREATE OBJECT event_handler.&lt;/P&gt;&lt;P&gt;  SET HANDLER event_handler-&amp;gt;on_link_click FOR o_events.&lt;/P&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;          r_container  = o_container_bottom&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          r_salv_table = o_salv_table2&lt;/P&gt;&lt;P&gt;        CHANGING&lt;/P&gt;&lt;P&gt;          t_table      = i_tcurr.&lt;/P&gt;&lt;P&gt;    CATCH cx_salv_msg INTO lv_cx_salv_msg.&lt;/P&gt;&lt;P&gt;      lv_cx_salv_msg-&amp;gt;if_alv_message~get_message(&lt;/P&gt;&lt;P&gt;                            RECEIVING&lt;/P&gt;&lt;P&gt;                                r_s_msg = lw_bal_s_msg ).&lt;/P&gt;&lt;P&gt;      MESSAGE ID     lw_bal_s_msg-msgid&lt;/P&gt;&lt;P&gt;              TYPE   lw_bal_s_msg-msgty&lt;/P&gt;&lt;P&gt;              NUMBER lw_bal_s_msg-msgno&lt;/P&gt;&lt;P&gt;              WITH   lw_bal_s_msg-msgv1 lw_bal_s_msg-msgv2&lt;/P&gt;&lt;P&gt;                     lw_bal_s_msg-msgv3 lw_bal_s_msg-msgv4.&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Display the ALV Grid&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  o_salv_table1-&amp;gt;display( ).&lt;/P&gt;&lt;P&gt;  o_salv_table2-&amp;gt;display( ).&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " init_9000  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  user_command_9000  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&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;      text&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;MODULE user_command_9000 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE  sy-ucomm .&lt;/P&gt;&lt;P&gt;    WHEN 'BACK' OR 'EXIT' OR 'CANC'.&lt;/P&gt;&lt;P&gt;      SET SCREEN 0.&lt;/P&gt;&lt;P&gt;      LEAVE SCREEN.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " user_command_9000  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  status_9000  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&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;      text&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;MODULE status_9000 OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SET PF-STATUS '9000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " status_9000  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kathirvel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2006 19:08:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-using-oop/m-p/1711239#M311093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-24T19:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid using OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-using-oop/m-p/1711240#M311094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kathirvel Balakrishnan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for provided me complete code that implements the logic I was thinking. Honestly speaking, I created the code before seeing you post &amp;amp; that too was very similar to the one posted by you. But you have put efforts in providing me really helpful code and that too very soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's why I am awarding you full points for your help and consideration. Hoping for the same support in future also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aditya P. Srivastava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 11:44:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-using-oop/m-p/1711240#M311094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-30T11:44:19Z</dc:date>
    </item>
  </channel>
</rss>

