<?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: Reg alv grid  using module pool programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-grid-using-module-pool-programming/m-p/4465540#M1058025</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The field type for that column is of type DMBTR, currency field.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Sep 2008 19:21:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-10T19:21:32Z</dc:date>
    <item>
      <title>Reg alv grid  using module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-grid-using-module-pool-programming/m-p/4465538#M1058023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have a situation where i am using alv grid in module programming where in when i click the total button in the tool bar for any numeric column, the screen goes for a run time error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have giving all conditions such as made the column in the field structure of lvc_field_catalog as do_sum = 'X',&lt;/P&gt;&lt;P&gt;still goes for a dump...can anyone throw some hints to do more or the reason behind this and also have not excluded the function code for this total pushbutton while passing to the method set_table_for_first_display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2008 19:01:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-grid-using-module-pool-programming/m-p/4465538#M1058023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-10T19:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Reg alv grid  using module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-grid-using-module-pool-programming/m-p/4465539#M1058024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ... can you show us the dump, in special the Error analysis, i think that the error is produce because the field is not decimal or integer type&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2008 19:12:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-grid-using-module-pool-programming/m-p/4465539#M1058024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-10T19:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reg alv grid  using module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-grid-using-module-pool-programming/m-p/4465540#M1058025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The field type for that column is of type DMBTR, currency field.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2008 19:21:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-grid-using-module-pool-programming/m-p/4465540#M1058025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-10T19:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Reg alv grid  using module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-grid-using-module-pool-programming/m-p/4465541#M1058026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the error i get...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 894       gs_roid-row_id = rs_row-index * -1.&lt;/P&gt;&lt;P&gt; 895     endif.&lt;/P&gt;&lt;P&gt; 896     gs_roid-sub_row_id = rs_row-rowtype+7(10).&lt;/P&gt;&lt;P&gt; 897     gs_poid-row_id = gs_roid-row_id.&lt;/P&gt;&lt;P&gt; 898     gs_poid-sub_row_id = gs_roid-sub_row_id.&lt;/P&gt;&lt;P&gt; 899     gs_poid-rowtype    = rs_row-rowtype.&lt;/P&gt;&lt;P&gt; 900     gs_poid-index      = rs_row-index.&lt;/P&gt;&lt;P&gt; 901     insert gs_poid into table rt_poid.&lt;/P&gt;&lt;P&gt; 902   endif.&lt;/P&gt;&lt;P&gt; 903   append gs_roid to rt_roid.&lt;/P&gt;&lt;P&gt; 904&lt;/P&gt;&lt;P&gt; 905   loop at rt_fieldcat assigning &amp;lt;ls_fieldcat&amp;gt; where tech ne 'X' and&lt;/P&gt;&lt;P&gt; 906                                                     no_out ne 'X'.&lt;/P&gt;&lt;P&gt; 907&lt;/P&gt;&lt;P&gt; 908     if gflg_invisible = 'X'.&lt;/P&gt;&lt;P&gt; 909       if &amp;lt;ls_fieldcat&amp;gt;-do_sum is initial.&lt;/P&gt;&lt;P&gt; 910         clear gflg_invisible.&lt;/P&gt;&lt;P&gt; 911         continue.&lt;/P&gt;&lt;P&gt; 912       else.&lt;/P&gt;&lt;P&gt; 913         clear g_col_counter.&lt;/P&gt;&lt;P&gt; 914         clear gflg_invisible.&lt;/P&gt;&lt;P&gt; 915       endif.&lt;/P&gt;&lt;P&gt; 916     endif.&lt;/P&gt;&lt;P&gt; 917&lt;/P&gt;&lt;P&gt; 918     clear gs_lvc_data.&lt;/P&gt;&lt;P&gt; 919     clear g_style.&lt;/P&gt;&lt;P&gt; 920&lt;/P&gt;&lt;P&gt; 921     assign component&lt;/P&gt;&lt;P&gt; 922            &amp;lt;ls_fieldcat&amp;gt;-fieldname of structure rt_data to &amp;lt;g_field&amp;gt;.&lt;/P&gt;&lt;P&gt; 923     if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;       message x000(0k).&lt;/P&gt;&lt;P&gt; 925     endif.&lt;/P&gt;&lt;P&gt; 926&lt;/P&gt;&lt;P&gt; 927     g_col_counter = g_col_counter + 1.&lt;/P&gt;&lt;P&gt; 928&lt;/P&gt;&lt;P&gt; 929     gs_lvc_data-row_pos = r_row_counter.&lt;/P&gt;&lt;P&gt; 930     gs_lvc_data-col_pos = g_col_counter.&lt;/P&gt;&lt;P&gt; 931     gs_lvc_data-row_id  = gs_roid-row_id.&lt;/P&gt;&lt;P&gt; 932     gs_lvc_data-sub_row_id = gs_roid-sub_row_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hai developers.... could anyone crack the net out of the shell?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 14:38:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-grid-using-module-pool-programming/m-p/4465541#M1058026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T14:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Reg alv grid  using module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-grid-using-module-pool-programming/m-p/4465542#M1058027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear friends..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on this for two days..can anyone throw some light on this...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 04:38:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-grid-using-module-pool-programming/m-p/4465542#M1058027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T04:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Reg alv grid  using module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-grid-using-module-pool-programming/m-p/4465543#M1058028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   There is a problem with the way you are handling the field symbols, specially the command below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; assign component&lt;/P&gt;&lt;P&gt; &amp;lt;ls_fieldcat&amp;gt;-fieldname of structure rt_data to &amp;lt;g_field&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please avoid field symbols to define a component of a structure, it should be the other way round the structure you are using must be a field symbol and the component you are assigning must be specified with numeric type ( eg: 1 or sy-index ) ot the field name itself, for eg if there is field MATNR in the structure the write as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign component MATNR of..............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this explanation of mine will help you sove your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With best wishes,&lt;/P&gt;&lt;P&gt;Murthy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 04:51:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-grid-using-module-pool-programming/m-p/4465543#M1058028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T04:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Reg alv grid  using module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-grid-using-module-pool-programming/m-p/4465544#M1058029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; check this up&lt;/P&gt;&lt;P&gt;internal tables&lt;/P&gt;&lt;P&gt;DATA: i_tab TYPE TABLE OF zchangereq,&lt;/P&gt;&lt;P&gt;w_tab TYPE zchangereq.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;display field details&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: w_field_cat_wa TYPE lvc_s_fcat. " Field Catalog work area&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;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-020.&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;PARAMETERS: p_outs RADIOBUTTON GROUP g1,&lt;/P&gt;&lt;P&gt;p_comp RADIOBUTTON GROUP g1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&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;*MACROS&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;DEFINE add_field.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;amp;1 = FIELDNAME &amp;amp;2 = HEADING &amp;amp;3 = Key field flag&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;clear w_field_cat_wa.&lt;/P&gt;&lt;P&gt;w_field_cat_wa-fieldname = &amp;amp;1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;lw_field_cat_wa-ref_table = p_ref_table.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;lw_field_cat_wa-inttype = p_inttype.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;lw_field_cat_wa-decimals = p_decimals.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;lw_field_cat_wa-coltext = p_coltext.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;lw_field_cat_wa-seltext = p_seltext.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;lw_field_cat_wa-do_sum = p_do_sum.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;lw_field_cat_wa-no_out = p_no_out.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;lw_field_cat_wa-col_pos = p_col_pos.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;lw_field_cat_wa-reptext = p_coltext.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;lw_field_cat_wa-colddictxt = p_colddictxt.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;w_field_cat_wa-scrtext_m = &amp;amp;2.&lt;/P&gt;&lt;P&gt;w_field_cat_wa-key = &amp;amp;3.&lt;/P&gt;&lt;P&gt;append w_field_cat_wa to i_field_cat.&lt;/P&gt;&lt;P&gt;END-OF-DEFINITION.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ALV specific Declarations...........................................&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ALV specific Internal table declarations.............................&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: i_field_cat TYPE lvc_t_fcat, " Field catalogue&lt;/P&gt;&lt;P&gt;i_alv_sort TYPE lvc_t_sort. " Sort table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ALV variables........................................................&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: w_alv_layout TYPE lvc_s_layo, " ALV Layout&lt;/P&gt;&lt;P&gt;w_alv_save TYPE c, " ALV save&lt;/P&gt;&lt;P&gt;w_alv_variant TYPE disvariant. " ALV Variant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ALV Class definitions................................................&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;P&gt;CLASS lcl_event_handler DEFINITION.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;METHODS: handle_double_click&lt;/P&gt;&lt;P&gt;FOR EVENT double_click OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;IMPORTING e_row e_column.&lt;/P&gt;&lt;P&gt;METHODS: handle_hotspot&lt;/P&gt;&lt;P&gt;FOR EVENT hotspot_click OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;IMPORTING e_row_id e_column_id.&lt;/P&gt;&lt;P&gt;ENDCLASS. " CLASS LCL_EVENT_HANDLER DEF..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ALV Class implementation............................................&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;In the Event of a Double Click drill down to the corresponding CHANGE REQUEST&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;P&gt;CLASS lcl_event_handler IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHOD handle_double_click.&lt;/P&gt;&lt;P&gt;DATA: l_tab LIKE LINE OF i_tab.&lt;/P&gt;&lt;P&gt;CHECK e_row-rowtype(1) EQ space.&lt;/P&gt;&lt;P&gt;READ TABLE i_tab INDEX e_row-index INTO l_tab.&lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'ZTY' FIELD l_tab-ztype.&lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'ZCR' FIELD l_tab-zcref.&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'ZCRT' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;ENDMETHOD. " HANDLE_DOUBLE_CLICK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;not working yet - hotspot seems to stay in the gui!!&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;METHOD handle_hotspot.&lt;/P&gt;&lt;P&gt;DATA: l_tab LIKE LINE OF i_tab.&lt;/P&gt;&lt;P&gt;CHECK e_row_id-rowtype(1) EQ space.&lt;/P&gt;&lt;P&gt;READ TABLE i_tab INDEX e_row_id-index INTO l_tab.&lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'ZTY' FIELD l_tab-ztype.&lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'ZCR' FIELD l_tab-zcref.&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'ZCRT' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;ENDMETHOD. " HANDLE_DOUBLE_CLICK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS. " CLASS LCL_EVENT_HANDLER IMPL...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ALV Grid Control definitions........................................&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ALV Grid Control itself&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;o_grid TYPE REF TO cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Container to hold the ALV Grid Control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;o_custom_container TYPE REF TO cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Event handler (defined in the class above)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;o_event_handler TYPE REF TO lcl_event_handler.&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;INITIALIZATION.&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;PERFORM create_field_catalogue. " Create ALV Field Catalog&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;START-OF-SELECTION.&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;Outstanding requests&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF p_outs = 'X'.&lt;/P&gt;&lt;P&gt;SELECT * FROM zchangereq&lt;/P&gt;&lt;P&gt;INTO TABLE i_tab&lt;/P&gt;&lt;P&gt;WHERE zstatus &amp;lt; 99.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;completed requests&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT * FROM zchangereq&lt;/P&gt;&lt;P&gt;INTO TABLE i_tab&lt;/P&gt;&lt;P&gt;WHERE zstatus = 99.&lt;/P&gt;&lt;P&gt;ENDIF.&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;END-OF-SELECTION.&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;PERFORM list_output_to_alv. " Perform ALV Output operations&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;FORM LIST_OUTPUT_TO_ALV *&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This subroutine is used to call the screen for ALV Output. *&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;There are no interface parameters to be passed to this subroutine. *&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;FORM list_output_to_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SCREEN 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;ENDFORM. " LIST_OUTPUT_TO_ALV&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;Module STATUS_0100 OUTPUT *&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This is the PBO module which will be processed befor displaying the *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ALV Output. *&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_0100 OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PF-STATUS '0100'. " PF Status for ALV Output Screen&lt;/P&gt;&lt;P&gt;IF p_outs = 'X'.&lt;/P&gt;&lt;P&gt;SET TITLEBAR 'STD'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;completed requests&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SET TITLEBAR 'COMP'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT: o_custom_container&lt;/P&gt;&lt;P&gt;EXPORTING container_name = 'SC_GRID',&lt;/P&gt;&lt;P&gt;o_grid&lt;/P&gt;&lt;P&gt;EXPORTING i_parent = o_custom_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM define_alv_layout. " ALV Layout options definitions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM save_alv_layout_options. " save ALV layout options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM call_alv_grid. " Call ALV Grid Control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. " STATUS_0100 OUTPUT&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;Module USER_COMMAND_0100 INPUT *&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This is the PAI module which will be processed when the user performs*&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;any operation from the ALV output. *&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;MODULE user_command_0100 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;WHEN 'EXIT' OR 'BACK' OR 'CANC'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;may need to do this so display is refreshed if other report selected&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL METHOD o_custom_container-&amp;gt;free.&lt;/P&gt;&lt;P&gt;SET SCREEN 0.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. " USER_COMMAND_0100 INPUT&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;FORM DEFINE_ALV_LAYOUT *&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This subroutine is used to Define the ALV layout. *&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;FORM define_alv_layout .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_alv_layout-numc_total = 'X'. " Numc total line&lt;/P&gt;&lt;P&gt;w_alv_layout-cwidth_opt = 'X'. " Optimal column width&lt;/P&gt;&lt;P&gt;w_alv_layout-detailinit = 'X'. " Show values that are initial in&lt;/P&gt;&lt;P&gt;" detail list.&lt;/P&gt;&lt;P&gt;w_alv_layout-sel_mode = 'A'. " Column selection mode&lt;/P&gt;&lt;P&gt;w_alv_layout-no_merging = 'X'. " No merging while sorting columns&lt;/P&gt;&lt;P&gt;w_alv_layout-keyhot = 'X'.&lt;/P&gt;&lt;P&gt;ENDFORM. " DEFINE_ALV_LAYOUT&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;FORM SAVE_ALV_LAYOUT_OPTIONS *&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This subroutine is used to Save the ALV layout options. *&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;FORM save_alv_layout_options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;See the ALV grid control documentation for full list of options&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_alv_save = 'A'.&lt;/P&gt;&lt;P&gt;w_alv_variant-report = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. " SAVE_ALV_LAYOUT_OPTIONS&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;FORM CALL_ALV_GRID *&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This subroutine is used to call ALV Grid control for processing. *&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;FORM call_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD o_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;is_layout = w_alv_layout&lt;/P&gt;&lt;P&gt;i_save = w_alv_save&lt;/P&gt;&lt;P&gt;is_variant = w_alv_variant&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;it_outtab = i_tab[]&lt;/P&gt;&lt;P&gt;it_sort = i_alv_sort&lt;/P&gt;&lt;P&gt;it_fieldcatalog = i_field_cat.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Link used Events and Event Handler Methods&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CREATE OBJECT o_event_handler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set handler o_event_handler-&amp;gt;handle_top_of_page for o_grid.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SET HANDLER o_event_handler-&amp;gt;handle_double_click FOR o_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. " CALL_ALV_GRID&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; Form create_field_catalogue&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;set up field catalogue&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;FORM create_field_catalogue .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fieldname Heading Key?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*eg add_field 'ZTYPE' 'Type' 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. " create_field_catalogue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 05:11:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-grid-using-module-pool-programming/m-p/4465544#M1058029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T05:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Reg alv grid  using module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-grid-using-module-pool-programming/m-p/4465545#M1058030</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;Thank you all for the immedite responses. But i am not using any field symbols, that s a system generated error from the system&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 06:20:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-grid-using-module-pool-programming/m-p/4465545#M1058030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T06:20:55Z</dc:date>
    </item>
  </channel>
</rss>

