<?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: display one more ALV using OOPs. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691794#M303889</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to debug the program. Check if the internal table is getting populated with data to be sent to ALV Grid. If possible , can you just give the code so that we can analyse where the problem lies..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Nov 2006 20:00:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-09T20:00:49Z</dc:date>
    <item>
      <title>display one more ALV using OOPs.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691784#M303879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am displaying one ALV and on the basis of rows selected and user command, I need to display another ALV.&lt;/P&gt;&lt;P&gt;I am using method 'set_table_for_first_display' to call the second ALV.&lt;/P&gt;&lt;P&gt;But rather then displaying second ALV, it is coming out of the execution mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 18:48:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691784#M303879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T18:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: display one more ALV using OOPs.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691785#M303880</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;U should call a new screen where you display the second ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 18:52:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691785#M303880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T18:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: display one more ALV using OOPs.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691786#M303881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I see your code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 18:54:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691786#M303881</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-09T18:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: display one more ALV using OOPs.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691787#M303882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For first ALV&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;*******&lt;/P&gt;&lt;P&gt;MODULE create_objects OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE OBJECT g_alv_container&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;       container_name              = 'YVASS_GRID'."screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE OBJECT g_alv_grid&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_parent          = g_alv_container .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " CREATE_OBJECTS  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE call_grid_object OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ALV control: Layout structure&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA: gs_layout TYPE lvc_s_layo.&lt;/P&gt;&lt;P&gt;  gs_layout-sel_mode = 'A'.&lt;/P&gt;&lt;P&gt;  CALL METHOD g_alv_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      is_layout                     = gs_layout&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      it_outtab                     = t_itab[]&lt;/P&gt;&lt;P&gt;      it_fieldcatalog               = structure_report&lt;/P&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;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " CALL_GRID_OBJECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******&lt;/P&gt;&lt;P&gt;FOR SECOND ALV&lt;/P&gt;&lt;P&gt;*******&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM error_alv_display .&lt;/P&gt;&lt;P&gt;  DATA: gs_layout_err TYPE lvc_s_layo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CALL METHOD g_alv_grid-&amp;gt;FREE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     CNTL_ERROR        = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     CNTL_SYSTEM_ERROR = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     OTHERS            = 3.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CLEAR: g_alv_grid.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM get_field_catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  gs_layout_err-sel_mode = 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD g_alv_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      is_layout                     = gs_layout_err&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      it_outtab                     = t_yvasstk_err_desc_all[]&lt;/P&gt;&lt;P&gt;      it_fieldcatalog               = structure_report_all&lt;/P&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;ENDFORM.                    " Error_ALV_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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use method &amp;lt;Free&amp;gt; then it is giving me a dump.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 19:01:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691787#M303882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T19:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: display one more ALV using OOPs.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691788#M303883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ashish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already developed several reports containing multiple ALV lists that have to communicate with each other.&lt;/P&gt;&lt;P&gt;You should apply the following logic:&lt;/P&gt;&lt;P&gt;(1) Use a splitter container having two cells (for the two ALV lists)&lt;/P&gt;&lt;P&gt;(2) Use the first cell (e.g. the top cell) as parent for your main ALV list (first list).&lt;/P&gt;&lt;P&gt;(3) Use the second cell (e.g. the bottom cell) as parent for your detail ALV list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you link both ALV lists together? When the user has selected a row in the main ALV list and pushes, for example, button "Display Details" then you use the values of the selected entry as filter for the detailed ALV list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use the grid method SET_FILTER_CRITERIA. After setting the new filter criteria you must refresh (method &amp;lt;detail ALV grid&amp;gt;-REFRESH_TABLE_DISPLAY) the ALV list.&lt;/P&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>Thu, 09 Nov 2006 19:04:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691788#M303883</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-11-09T19:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: display one more ALV using OOPs.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691789#M303884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you really want to reuse the original ALV grid?  I think you may want to use a totaly seperate instance of the grid as well container, maybe even a totally seperate screen, this way, the user can come back to the 1st ALV from the second?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 19:05:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691789#M303884</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-09T19:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: display one more ALV using OOPs.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691790#M303885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using single container for both the ALVs..? I think you should use separate containers for both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using FREE method, then it will free the object and the reference variable will be null as there is nothing which it can point to.That is why it is giving you dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use two containers and I think it should not cause any problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 19:08:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691790#M303885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T19:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: display one more ALV using OOPs.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691791#M303886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my problem is still not fully solved. I have created a new screen with new container and grid object. But when i am calling method 'set_table_for_first_display' with new grid object, it is not displaying any data. But the layout is correct (catalogue is showing new fields.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 19:46:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691791#M303886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T19:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: display one more ALV using OOPs.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691792#M303887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you passing the data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 19:52:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691792#M303887</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-09T19:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: display one more ALV using OOPs.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691793#M303888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I have the data in internal table which I am passing in method 'set_table_for_first_display'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 19:57:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691793#M303888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T19:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: display one more ALV using OOPs.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691794#M303889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to debug the program. Check if the internal table is getting populated with data to be sent to ALV Grid. If possible , can you just give the code so that we can analyse where the problem lies..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 20:00:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691794#M303889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T20:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: display one more ALV using OOPs.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691795#M303890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you are getting an empty ALV grid, but the column headings are there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 20:00:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691795#M303890</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-09T20:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: display one more ALV using OOPs.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691796#M303891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rich: you are right I am getting blank ALV with correct field headings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SP: Here is the code for second ALV..&lt;/P&gt;&lt;P&gt;FORM error_alv_display .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ALV control: Layout structure&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA: gs_layout_err TYPE lvc_s_layo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CALL METHOD g_alv_grid-&amp;gt;FREE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     CNTL_ERROR        = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     CNTL_SYSTEM_ERROR = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     OTHERS            = 3.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CLEAR: g_alv_grid.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM get_field_catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  gs_layout_err-sel_mode = 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD g_alv_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      is_layout                     = gs_layout_err&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      it_outtab                     = t_yvasstk_err_desc_all[]&lt;/P&gt;&lt;P&gt;      it_fieldcatalog               = structure_report_all&lt;/P&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CREATE OBJECT event_receiver_err.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET HANDLER event_receiver_err-&amp;gt;handle_top_of_page FOR g_alv_grid.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET HANDLER event_receiver_err-&amp;gt;handle_end_of_list FOR g_alv_grid.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDFORM.                    " Error_ALV_display&lt;/P&gt;&lt;P&gt;*&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;      Form  get_field_catalog&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;FORM get_field_catalog .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM add_row USING 'ycorpcust' 'yvasstk_err_desc' 'ycorpcust'.&lt;/P&gt;&lt;P&gt;  PERFORM add_row USING 'yfilenmbr' 'yvasstk_err_desc' 'yfilenmbr'.&lt;/P&gt;&lt;P&gt;  PERFORM add_row USING 'yrecnmbr' 'yvasstk_err_desc' 'yrecnmbr'.&lt;/P&gt;&lt;P&gt;  PERFORM add_row USING 'yrecsub' 'yvasstk_err_desc' 'yrecsub'.&lt;/P&gt;&lt;P&gt;  PERFORM add_row USING 'yconsnmbr' 'yvasstk_err_desc' 'yconsnmbr'.&lt;/P&gt;&lt;P&gt;  PERFORM add_row USING 'yerror' 'yvasstk_err_desc' 'yerror'.&lt;/P&gt;&lt;P&gt;  PERFORM add_row USING 'yerrorline' 'yvasstk_err_desc' 'yerrorline'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " get_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;**&amp;amp;      Form  ADD_ROW&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;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;      Filling a catalog by passing a value of field table-name&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;      and fieldname&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 add_row USING    p_ref_field&lt;/P&gt;&lt;P&gt;                      p_ref_table&lt;/P&gt;&lt;P&gt;                      p_fieldname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR wa_structure_report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_structure_report-ref_field = p_ref_field.&lt;/P&gt;&lt;P&gt;  wa_structure_report-ref_table = p_ref_table.&lt;/P&gt;&lt;P&gt;  wa_structure_report-fieldname = p_fieldname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND wa_structure_report TO structure_report_all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.           " add_row&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 20:03:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691796#M303891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T20:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: display one more ALV using OOPs.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691797#M303892</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;But g_alv_grid is the grid for the first ALV, isn't it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U should use a new object g_alv_grid_2 for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 20:06:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691797#M303892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T20:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: display one more ALV using OOPs.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691798#M303893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I can find out from your program is in the field catalog, you are using lower case values to the field names and other fields. Try giving it in upper case, always.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I assume that you have created two reference variables for the containers and using as per that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg: &lt;/P&gt;&lt;P&gt;data: container_name1 type ref to cl_gui_custom_container, " for first ALV&lt;/P&gt;&lt;P&gt;      container_name2 type ref to cl_gui_custom_container. " for second ALV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 20:13:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691798#M303893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T20:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: display one more ALV using OOPs.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691799#M303894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max is right, if you have created another instance of the grid and container, you should be using those references, plus, I still don't see where you are filling the internal table which is passed to the 2nd alv grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 20:13:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691799#M303894</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-09T20:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: display one more ALV using OOPs.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691800#M303895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ashish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a simple report demonstrating the communication between a "header" and a corresponding "position" ALV list.&lt;/P&gt;&lt;P&gt;The dynpro '0100' does not contain any elements and has the following flow logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
  MODULE STATUS_0100.
*
PROCESS AFTER INPUT.
  MODULE USER_COMMAND_0100.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here is the report. The first ALV list displays all customers of a company code. If you select one customer and push the button 'DETAIL' then the sales areas of the customer are displayed in the second ALV list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZUS_SDN_TWO_ALV_GRIDS
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

REPORT  zus_sdn_two_alv_grids.









DATA:
  gd_okcode        TYPE ui_func,
*
  go_docking       TYPE REF TO cl_gui_docking_container,
  go_splitter      TYPE REF TO cl_gui_splitter_container,
  go_cell_top      TYPE REF TO cl_gui_container,
  go_cell_bottom   TYPE REF TO cl_gui_container,
  go_grid1         TYPE REF TO cl_gui_alv_grid,
  go_grid2         TYPE REF TO cl_gui_alv_grid.


DATA:
  gt_knb1          TYPE STANDARD TABLE OF knb1,
  gt_knvv          TYPE STANDARD TABLE OF knvv.




START-OF-SELECTION.

  SELECT        * FROM  knb1 INTO TABLE gt_knb1
         WHERE  bukrs  = '1000'.


* Create docking container
  CREATE OBJECT go_docking
    EXPORTING
      parent                      = cl_gui_container=&amp;gt;screen0
      ratio                       = 90
    EXCEPTIONS
      OTHERS                      = 6.
  IF sy-subrc &amp;lt;&amp;gt; 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.


* Create splitter container
  CREATE OBJECT go_splitter
    EXPORTING
      parent            = go_docking
      rows              = 2
      columns           = 1
*      NO_AUTODEF_PROGID_DYNNR =
*      NAME              =
    EXCEPTIONS
      cntl_error        = 1
      cntl_system_error = 2
      OTHERS            = 3.
  IF sy-subrc &amp;lt;&amp;gt; 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

* Get cell container
  CALL METHOD go_splitter-&amp;gt;get_container
    EXPORTING
      row       = 1
      column    = 1
    RECEIVING
      container = go_cell_top.
  CALL METHOD go_splitter-&amp;gt;get_container
    EXPORTING
      row       = 2
      column    = 1
    RECEIVING
      container = go_cell_bottom.

* Create ALV grids
  CREATE OBJECT go_grid1
    EXPORTING
      i_parent          = go_cell_top
    EXCEPTIONS
      OTHERS            = 5.
  IF sy-subrc &amp;lt;&amp;gt; 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

  CREATE OBJECT go_grid2
    EXPORTING
      i_parent          = go_cell_bottom
    EXCEPTIONS
      OTHERS            = 5.
  IF sy-subrc &amp;lt;&amp;gt; 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.


&amp;lt;b&amp;gt;* Display data&amp;lt;/b&amp;gt;
  CALL METHOD go_grid1-&amp;gt;set_table_for_first_display
    EXPORTING
      i_structure_name = 'KNB1'
    CHANGING
      it_outtab        = gt_knb1
    EXCEPTIONS
      OTHERS           = 4.
  IF sy-subrc &amp;lt;&amp;gt; 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

  CALL METHOD go_grid2-&amp;gt;set_table_for_first_display
    EXPORTING
      i_structure_name = 'KNVV'
    CHANGING
      it_outtab        = gt_knvv  " empty !!!
    EXCEPTIONS
      OTHERS           = 4.
  IF sy-subrc &amp;lt;&amp;gt; 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.


&amp;lt;b&amp;gt;* Link the docking container to the target dynpro&amp;lt;/b&amp;gt;
  CALL METHOD go_docking-&amp;gt;link
    EXPORTING
      repid                       = syst-repid
      dynnr                       = '0100'
*      CONTAINER                   =
    EXCEPTIONS
      OTHERS                      = 4.
  IF sy-subrc &amp;lt;&amp;gt; 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.


  CALL SCREEN '0100'.




END-OF-SELECTION.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE status_0100 OUTPUT.
  SET PF-STATUS 'STATUS_0100'.
*  SET TITLEBAR 'xxx'.


&amp;lt;b&amp;gt;* Refresh display of detail ALV list&amp;lt;/b&amp;gt;
  CALL METHOD go_grid2-&amp;gt;refresh_table_display
*    EXPORTING
*      IS_STABLE      =
*      I_SOFT_REFRESH =
    EXCEPTIONS
      others         = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.


ENDMODULE.                 " STATUS_0100  OUTPUT

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  USER_COMMAND_0100  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE user_command_0100 INPUT.

  CASE gd_okcode.
    WHEN 'BACK' OR
         'END'  OR
         'CANC'.
      SET SCREEN 0. LEAVE SCREEN.

&amp;lt;b&amp;gt;*   User has pushed button "Display Details"&amp;lt;/b&amp;gt;
    WHEN 'DETAIL'.
      PERFORM entry_show_details.

    WHEN OTHERS.
  ENDCASE.

  CLEAR: gd_okcode.

ENDMODULE.                 " USER_COMMAND_0100  INPUT

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  ENTRY_SHOW_DETAILS
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM entry_show_details .
* define local data
  DATA:
    ld_row      TYPE i,
    ls_knb1     TYPE knb1.

  CALL METHOD go_grid1-&amp;gt;get_current_cell
    IMPORTING
      e_row = ld_row.

  READ TABLE gt_knb1 INTO ls_knb1 INDEX ld_row.
  CHECK ( syst-subrc = 0 ).

  SELECT        * FROM  knvv INTO TABLE gt_knvv
         WHERE  kunnr  = ls_knb1-kunnr.



ENDFORM.                    " ENTRY_SHOW_DETAILS&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>Thu, 09 Nov 2006 21:28:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-one-more-alv-using-oops/m-p/1691800#M303895</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-11-09T21:28:38Z</dc:date>
    </item>
  </channel>
</rss>

