<?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 whats wrong with my alv code ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-my-alv-code/m-p/7681692#M1576056</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello friends, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing ALV display, and dont know what I am doing wrong.. please suggest:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: o_alv_grid    TYPE REF TO cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;  DATA: o_gui_cont    TYPE REF TO cl_gui_container.&lt;/P&gt;&lt;P&gt;  DATA: lt_field_cat  TYPE        lvc_t_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF o_gui_cont IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CREATE OBJECT o_gui_cont&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        clsid                          = space&lt;/P&gt;&lt;P&gt;        container_name                 = 'ALV_GRID'&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;        lifetime_dynpro_illegal_parent = 6&lt;/P&gt;&lt;P&gt;        OTHERS                         = 7.&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;   PERFORM set_field_catalog TABLES lt_field_cat.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CREATE OBJECT o_alv_grid&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_parent          = o_gui_cont&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        error_cntl_create = 1&lt;/P&gt;&lt;P&gt;        error_cntl_init   = 2&lt;/P&gt;&lt;P&gt;        error_cntl_link   = 3&lt;/P&gt;&lt;P&gt;        error_dp_create   = 4&lt;/P&gt;&lt;P&gt;        OTHERS            = 5.&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;   DATA: w_layo          TYPE        lvc_s_layo.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  * layout design&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   w_layo-no_toolbar = ''.&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  not to allow totaling feature&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   w_layo-no_totline = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;report title&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   w_layo-grid_title = text-004.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   w_layo-grid_title = 'TEST'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   w_layo-zebra      = 'X'.    "Alternating line color (striped)&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   w_layo-cwidth_opt = 'X'.    "Optimize column width&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   w_layo-sel_mode   = 'A'.    "Selection Mode&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;name of the color field&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   w_layo-info_fname = 'LINE_COLOR'."For row color&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD o_alv_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   i_buffer_active               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   i_bypassing_buffer            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   i_consistency_check           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      i_structure_name              = 'ZFI_ALV_STR'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   is_variant                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      i_save                        = 'A'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   i_default                     = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     is_layout                     = w_layo&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   is_print                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   it_special_groups             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   it_toolbar_excluding          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   it_hyperlink                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   it_alv_graphics               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   it_except_qinfo               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ir_salv_adapter               =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        it_outtab                    = lt_error_msg&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   it_fieldcatalog                = lt_field_cat&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   it_sort                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   it_filter                     =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        invalid_parameter_combination = 1&lt;/P&gt;&lt;P&gt;        program_error                 = 2&lt;/P&gt;&lt;P&gt;        too_many_lines                = 3&lt;/P&gt;&lt;P&gt;        OTHERS                        = 4&lt;/P&gt;&lt;P&gt;            .&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Feb 2011 23:40:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-21T23:40:56Z</dc:date>
    <item>
      <title>whats wrong with my alv code ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-my-alv-code/m-p/7681692#M1576056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello friends, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing ALV display, and dont know what I am doing wrong.. please suggest:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: o_alv_grid    TYPE REF TO cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;  DATA: o_gui_cont    TYPE REF TO cl_gui_container.&lt;/P&gt;&lt;P&gt;  DATA: lt_field_cat  TYPE        lvc_t_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF o_gui_cont IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CREATE OBJECT o_gui_cont&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        clsid                          = space&lt;/P&gt;&lt;P&gt;        container_name                 = 'ALV_GRID'&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;        lifetime_dynpro_illegal_parent = 6&lt;/P&gt;&lt;P&gt;        OTHERS                         = 7.&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;   PERFORM set_field_catalog TABLES lt_field_cat.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CREATE OBJECT o_alv_grid&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_parent          = o_gui_cont&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        error_cntl_create = 1&lt;/P&gt;&lt;P&gt;        error_cntl_init   = 2&lt;/P&gt;&lt;P&gt;        error_cntl_link   = 3&lt;/P&gt;&lt;P&gt;        error_dp_create   = 4&lt;/P&gt;&lt;P&gt;        OTHERS            = 5.&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;   DATA: w_layo          TYPE        lvc_s_layo.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  * layout design&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   w_layo-no_toolbar = ''.&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  not to allow totaling feature&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   w_layo-no_totline = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;report title&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   w_layo-grid_title = text-004.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   w_layo-grid_title = 'TEST'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   w_layo-zebra      = 'X'.    "Alternating line color (striped)&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   w_layo-cwidth_opt = 'X'.    "Optimize column width&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   w_layo-sel_mode   = 'A'.    "Selection Mode&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;name of the color field&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   w_layo-info_fname = 'LINE_COLOR'."For row color&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD o_alv_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   i_buffer_active               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   i_bypassing_buffer            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   i_consistency_check           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      i_structure_name              = 'ZFI_ALV_STR'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   is_variant                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      i_save                        = 'A'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   i_default                     = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     is_layout                     = w_layo&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   is_print                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   it_special_groups             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   it_toolbar_excluding          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   it_hyperlink                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   it_alv_graphics               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   it_except_qinfo               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ir_salv_adapter               =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        it_outtab                    = lt_error_msg&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   it_fieldcatalog                = lt_field_cat&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   it_sort                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   it_filter                     =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        invalid_parameter_combination = 1&lt;/P&gt;&lt;P&gt;        program_error                 = 2&lt;/P&gt;&lt;P&gt;        too_many_lines                = 3&lt;/P&gt;&lt;P&gt;        OTHERS                        = 4&lt;/P&gt;&lt;P&gt;            .&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 23:40:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-my-alv-code/m-p/7681692#M1576056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-21T23:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong with my alv code ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-my-alv-code/m-p/7681693#M1576057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do i need to have screen and pbo and pai in oder to display alv ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest, I am getting confused...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 00:41:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-my-alv-code/m-p/7681693#M1576057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-22T00:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong with my alv code ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-my-alv-code/m-p/7681694#M1576058</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;No, you actually don't need a PBO or PAI  to display ALV, unless you have a requirement of additional push buttons on screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the code given, you have commented the IS_LAYOUT parameter and changing table IT_FIELDCATALOG , but you need these to arrange the ALV, so pass proper values in IS_LAYOUT (according to your requirement) and manually fill the fieldcatalog or do it with the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this answers your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-MBD2186&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 02:12:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-my-alv-code/m-p/7681694#M1576058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-22T02:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong with my alv code ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-my-alv-code/m-p/7681695#M1576059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No it is not compulsory to write code in PBO and PAI events.&lt;/P&gt;&lt;P&gt;Though, you should call the "SET_TABLE_FOR_FIRST_DISPLAY" module in the PBO event to make sure that the table gets refreshed everytime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also,&lt;/P&gt;&lt;P&gt;In you code you have not called a screen which is used to display the ALV.&lt;/P&gt;&lt;P&gt;See program &lt;STRONG&gt;BCALV_GRID_DEMO&lt;/STRONG&gt; to have a better idea.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Line 13 : CALL SCREEN 100.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Double click on 100 in the code to see how the screen is defined incase you do not already know it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jovito.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 02:29:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-my-alv-code/m-p/7681695#M1576059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-22T02:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong with my alv code ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-my-alv-code/m-p/7681696#M1576060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shah H.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Few Changes need to be incurred:&lt;/P&gt;&lt;P&gt;1. Did you created a Container on Screen where you want to Display your ALV.&lt;/P&gt;&lt;P&gt;2. Code doesnt contain CALL SCREEN.&lt;/P&gt;&lt;P&gt;3. lt_error_msg is not populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct Soln: &lt;/P&gt;&lt;P&gt;1. Call a screen and add Custom Container.&lt;/P&gt;&lt;P&gt;2. Create Object of Class: CL_GUI_CUSTOM_CONTAINER.&lt;/P&gt;&lt;P&gt;3. Create ALV Grid instance.&lt;/P&gt;&lt;P&gt;4. Build a Field Catalog.(Optional)&lt;/P&gt;&lt;P&gt;5. Build Layout(Optional)&lt;/P&gt;&lt;P&gt;6. Display Using Method: SET_TABLE_FOR_FIRST_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope its Clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Code: Check Program &lt;STRONG&gt;BCALV_GRID_DEMO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 05:27:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-my-alv-code/m-p/7681696#M1576060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-22T05:27:56Z</dc:date>
    </item>
  </channel>
</rss>

