<?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 / LIST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-list/m-p/2822597#M660289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;alv grid looks like a database table in se11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alv  list and the print out of alv grid look similar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Oct 2007 09:41:25 GMT</pubDate>
    <dc:creator>hymavathi_oruganti</dc:creator>
    <dc:date>2007-10-04T09:41:25Z</dc:date>
    <item>
      <title>ALV GRID / LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-list/m-p/2822588#M660280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is alv grid programmin ? or alv list programmin ? Can any one tell me full form of alv ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 09:02:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-list/m-p/2822588#M660280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T09:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID / LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-list/m-p/2822589#M660281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ALV full form            =    s(A)p (L)ist (V)iewer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To know more about ALV &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/bc/e5eb40c4f8712ae10000000a155106/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/bc/e5eb40c4f8712ae10000000a155106/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 09:07:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-list/m-p/2822589#M660281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T09:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID / LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-list/m-p/2822590#M660282</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;&lt;/P&gt;&lt;P&gt;ALV is ABAP LIST VIEWER&lt;/P&gt;&lt;P&gt;Goto SE38 transaction &amp;amp; type BCALV* and click F4.&lt;/P&gt;&lt;P&gt;You will get a list of sample ALV programs. Execute them to check the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/what-is-alv-programming.htm" target="test_blank"&gt;http://www.sap-img.com/abap/what-is-alv-programming.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 09:08:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-list/m-p/2822590#M660282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T09:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID / LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-list/m-p/2822591#M660283</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;ALV meand ABAP List Viewer.&lt;/P&gt;&lt;P&gt;It using for outputing data in table form (means in column and row).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am giving u example for GRID ALV.&lt;/P&gt;&lt;P&gt;LIST and GRID almost same but with GRID u can make ur output editable.&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; Report  ZALV_DS&lt;/P&gt;&lt;P&gt;*&amp;amp;&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;&lt;/P&gt;&lt;P&gt;*&amp;amp;&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;&lt;/P&gt;&lt;P&gt;REPORT  zalv_ds LINE-SIZE 35.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS:slis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES:mara,&lt;/P&gt;&lt;P&gt;       makt,&lt;/P&gt;&lt;P&gt;       marc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;      matnr LIKE mara-matnr,&lt;/P&gt;&lt;P&gt;      maktx LIKE makt-maktx,&lt;/P&gt;&lt;P&gt;      werks LIKE marc-werks,&lt;/P&gt;&lt;P&gt;      mtart LIKE mara-mtart,&lt;/P&gt;&lt;P&gt;      matkl LIKE mara-matkl,&lt;/P&gt;&lt;P&gt;      meins LIKE mara-meins,&lt;/P&gt;&lt;P&gt;      ntgew LIKE mara-ntgew,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     rowcolor(4) TYPE c,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      cellcolors TYPE lvc_t_scol,&lt;/P&gt;&lt;P&gt;     END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:t_fcat TYPE slis_t_fieldcat_alv,&lt;/P&gt;&lt;P&gt;     t_eve TYPE slis_t_event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : st_layout TYPE slis_layout_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN:BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS:mat FOR mara-matnr.  " no intervals no-extension.&lt;/P&gt;&lt;P&gt;*PARAMETERS:mat LIKE mara-matnr.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN:END OF BLOCK blk1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;  PERFORM build_cata USING t_fcat.&lt;/P&gt;&lt;P&gt;  PERFORM build_event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  PERFORM data_retrieval.&lt;/P&gt;&lt;P&gt;  PERFORM display_data.&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  build_cata&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;TEMP_FCAT  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;FORM build_cata USING temp_fcat TYPE slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  sy-tvar0 = sy-uname.&lt;/P&gt;&lt;P&gt;  WRITE sy-datum TO sy-tvar1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA:wa_fcat TYPE slis_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_fcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;  wa_fcat-fieldname = 'MATNR'.&lt;/P&gt;&lt;P&gt;  wa_fcat-seltext_m = 'Material'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; wa_fcat-key = ''.                                  "To color e column&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  APPEND wa_fcat TO temp_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_fcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;  wa_fcat-fieldname = 'MAKTX'.&lt;/P&gt;&lt;P&gt;  wa_fcat-seltext_m = 'Description'.&lt;/P&gt;&lt;P&gt;  wa_fcat-fix_column = 'x'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; wa_fcat-key = ''.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  APPEND wa_fcat TO temp_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_fcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;  wa_fcat-fieldname = 'WERKS'.&lt;/P&gt;&lt;P&gt;  wa_fcat-seltext_m = 'Plant'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; wa_fcat-fix_column = 'x'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  APPEND wa_fcat TO temp_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_fcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;  wa_fcat-fieldname = 'MTART'.&lt;/P&gt;&lt;P&gt;  wa_fcat-seltext_m = 'Type'.&lt;/P&gt;&lt;P&gt;  APPEND wa_fcat TO temp_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_fcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;  wa_fcat-fieldname = 'MATKL'.&lt;/P&gt;&lt;P&gt;  wa_fcat-seltext_m = 'Group'.&lt;/P&gt;&lt;P&gt;  APPEND wa_fcat TO temp_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_fcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;  wa_fcat-fieldname = 'MEINS'.&lt;/P&gt;&lt;P&gt;  wa_fcat-seltext_m = 'Measurement Unit'.&lt;/P&gt;&lt;P&gt;  APPEND wa_fcat TO temp_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_fcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;  wa_fcat-fieldname = 'NTGEW'.&lt;/P&gt;&lt;P&gt;  wa_fcat-seltext_m = 'Net Value'.&lt;/P&gt;&lt;P&gt;  APPEND wa_fcat TO temp_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "build_cata&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  build_event&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;FORM build_event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_EVENTS_GET'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_list_type     = 0&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      et_events       = t_eve&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      list_type_wrong = 1&lt;/P&gt;&lt;P&gt;      OTHERS          = 2.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" 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="1" 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;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "build_event&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  data_retrieval&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;FORM data_retrieval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT mara&lt;SUB&gt;matnr  mara&lt;/SUB&gt;mtart mara&lt;SUB&gt;matkl mara&lt;/SUB&gt;meins mara~ntgew&lt;/P&gt;&lt;P&gt;   makt&lt;SUB&gt;maktx  marc&lt;/SUB&gt;werks&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF TABLE itab&lt;/P&gt;&lt;P&gt;  FROM mara INNER JOIN makt ON&lt;/P&gt;&lt;P&gt;  mara&lt;SUB&gt;matnr = makt&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;  INNER JOIN marc ON&lt;/P&gt;&lt;P&gt;  mara&lt;SUB&gt;matnr = marc&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;  WHERE mara~matnr IN mat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SORT itab BY matnr.&lt;/P&gt;&lt;P&gt;  DELETE ADJACENT DUPLICATES FROM itab.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "data_retrieval&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  display_data&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;FORM display_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_callback_program = 'ZALV_DS'&lt;/P&gt;&lt;P&gt;      i_save             = 'A'&lt;/P&gt;&lt;P&gt;      it_fieldcat        = t_fcat&lt;/P&gt;&lt;P&gt;      it_events          = t_eve&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_outtab           = itab&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      program_error      = 1&lt;/P&gt;&lt;P&gt;      OTHERS             = 2.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" 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="1" 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;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "display_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ALV List u need to call REUSE_ALV_LIST_DISPLAY instead of REUSE_ALV_GRID_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will b useful.&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 09:09:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-list/m-p/2822591#M660283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T09:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID / LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-list/m-p/2822592#M660284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The ALV Grid Control (ALV = SAP List Viewer) is a flexible tool for displaying lists. The tool provides common list operations as generic functions and can be enhanced by self-defined options. This allows you to use the ALV Grid Control in a large range of application programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SAP development projects, the ALV Grid Control is also used as a tool for changing and creating tables. However, this functionality is currently only used in pilot projects and has not yet been released for customers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following graphic shows a list displayed with the ALV Grid Control in a dialog box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the user sees it, the ALV Grid Control consists of a toolbar, a title and the output table displayed in a grid control. If required, the user can hide the title and the standard functions of the toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Implementation Considerations&lt;/P&gt;&lt;P&gt;ALV Object Model&lt;/P&gt;&lt;P&gt;The ALV family consists of three ALV tools: the simple, two-dimensional table (including the Grid Control variant), the hierarchical-sequential list and the tree structure. For all of those you can now use thenew, unified, object-oriented API. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The old API can still be used, however we recommend using the new, unified ALV object model for programming all of your ALV applications. So, even if you plan to use the ALV Grid Control, you can now use the simplified new API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALV Grid Control&lt;/P&gt;&lt;P&gt;The ALV Grid Control uses controls technology to achieve state-of-the-art on-screen display. Like all control wrappers, the ALV Grid Control offers methods through a global class in the system which can be used to affect its behavior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP does not guarantee that the methods, events and attributes of this class that are not public will remain unchanged or will be available in future releases. This is why you should not derive the class to access protected objects of the class. Using these objects makes it more difficult to upgrade to subsequent releases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a result of using ABAP Objects, lists are displayed through an ALV instance, and programmers make use of the event management of ABAP Objects. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Integration&lt;/P&gt;&lt;P&gt;Controls are software components that are installed on the local PC. In order to communicate with these components, all control wrappers use methods of the Control Framework. In this context, the ALV Grid Control is a special case as it uses a control that is already wrapped: the grid control. For the programmer, this can eliminate certain steps in the process of event management for controls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ALV Grid Control uses the SAP context menu to integrate standard functions. This menu can be customized to meet individual requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This documentation focuses on using the ALV Grid Control in the SAP GUI for the WindowsäEnvironment or the SAP GUI for the Javaä Environment. It is also possible to display the ALV Grid Control in the Web.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Features&lt;/P&gt;&lt;P&gt;This is an overview of the functions provided by the ALV Grid Control. You can:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Display non-hierarchical lists consistently with a modern design&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Use typical list functions - such as sorting and filtering - without extra programming effort&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Adapt predefined list functions and their enhancements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Program responses to user actions (such as double-clicking a line) individually&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Connect to the report/report interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For practical examples of the ALV Grid Control, see development class SLIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Constraints&lt;/P&gt;&lt;P&gt;The ALV Grid Control does not allow you to display block or hierarchical lists. Currently, simple lists can be displayed in single-line format only. However, users can define multiple-line format in the print preview and print the list as such. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment, you cannot use tables that have object references. Similarly, the only deep structures that can be used are those described in the documentation covering the extended functionality of the ALV Grid Control (such as, structures for drag-and-drop).&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;SAP List Viewer (ALV): Classic :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAP List Viewer unifies and simplifies the use of lists in the R/3 System. A uniform user interface and list format is available for all lists. This prevents redundant functions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAP List Viewer can be used to view both single-level lists and multilevel sequential lists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Single-level lists contain any number of lines that have no hierarchical relationship to each other. &lt;/P&gt;&lt;P&gt;Multilevel sequential lists consist of any number of lines that have two hierarchical levels. Multilevel lists have header rows and item rows; the item rows are subordinate to the header rows. For each header row there can be any number of subordinate item rows.&lt;/P&gt;&lt;P&gt;You can view subtotals and totals rows in both single-level lists and multilevel sequential lists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAP List Viewer is used in Controlling for reports such as the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reports from cost centers and business processes&lt;/P&gt;&lt;P&gt;Actual line item reports from cost centers and business processes&lt;/P&gt;&lt;P&gt;Commitment line item reports&lt;/P&gt;&lt;P&gt;Plan line item reports from cost centers, orders, business processes, cost objects&lt;/P&gt;&lt;P&gt;Budget reports&lt;/P&gt;&lt;P&gt;Cycle reports&lt;/P&gt;&lt;P&gt;Order selection (CO-PC) &lt;/P&gt;&lt;P&gt;Flexible itemization (CO-PC)&lt;/P&gt;&lt;P&gt;Features&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not all lists in the SAP R/3 components use the full range of functions available in the SAP List Viewer. Some lists in the R/3 System components offer special functions that extend beyond the normal range of the SAP List Viewer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This documentation covers all the functions of the SAP List Viewer. The description of the lists in the applications includes all of the functions available in the SAP List Viewer as well as the additional functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Navigation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAP List Viewer unifies and simplifies the use of lists in the R/3 System. A uniform user interface and list format is available for all lists. This prevents redundant functions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAP List Viewer can be used to view both single-level lists and multilevel sequential lists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Single-level lists contain any number of lines that have no hierarchical relationship to each other. &lt;/P&gt;&lt;P&gt;Multilevel sequential lists consist of any number of lines that have two hierarchical levels. Multilevel lists have header rows and item rows; the item rows are subordinate to the header rows. For each header row there can be any number of subordinate item rows.&lt;/P&gt;&lt;P&gt;You can view subtotals and totals rows in both single-level lists and multilevel sequential lists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAP List Viewer is used in Controlling for reports such as the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reports from cost centers and business processes&lt;/P&gt;&lt;P&gt;Actual line item reports from cost centers and business processes&lt;/P&gt;&lt;P&gt;Commitment line item reports&lt;/P&gt;&lt;P&gt;Plan line item reports from cost centers, orders, business processes, cost objects&lt;/P&gt;&lt;P&gt;Budget reports&lt;/P&gt;&lt;P&gt;Cycle reports&lt;/P&gt;&lt;P&gt;Order selection (CO-PC) &lt;/P&gt;&lt;P&gt;Flexible itemization (CO-PC)&lt;/P&gt;&lt;P&gt;Features&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not all lists in the SAP R/3 components use the full range of functions available in the SAP List Viewer. Some lists in the R/3 System components offer special functions that extend beyond the normal range of the SAP List Viewer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This documentation covers all the functions of the SAP List Viewer. The description of the lists in the applications includes all of the functions available in the SAP List Viewer as well as the additional functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Navigation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Navigating Within the List&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Detail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choosing Detail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorting in Ascending/Descending Order &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABC Analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selecting and Deselecting Rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Defining Exceptions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setting and Deleting Filters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Totaling&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Displaying and Deleting Sums&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating Subtotals&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choosing Summation Levels&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Defining the Breakdown of the Summation Levels&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Status Display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Displaying the List Status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Columns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Optimizing the Column Width&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Freezing to Columns and Unfreezing Columns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Layouts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choosing Layouts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing Layouts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saving Layouts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Layout Management&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic List&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Displaying the Basic List&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finding Terms&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Print&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Printing Lists&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sending&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sending the List as a Document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exporting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Spreadsheet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Text Processing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transferring a List to a Local File&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;reward points if helpful................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 09:12:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-list/m-p/2822592#M660284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T09:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID / LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-list/m-p/2822593#M660285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dipankar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Simpe list programming u must have noticed that u had to do the formatting of the list etc explicitly in  the programming  by specifying the positions, use write statements etc.Alv makes the creation of lists a lot more simpler. For u to explore more on this..please send me ur mail id to this id silentstring@gmail.com I will send some good docs on both alv list and grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Simy Abraham.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 09:12:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-list/m-p/2822593#M660285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T09:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID / LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-list/m-p/2822594#M660286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dipankar,&lt;/P&gt;&lt;P&gt;                  ALV is application list viewer.When u want data from a table to be displayed acc. to your needs like no of columns,headings of each column ,that is done through ALV.Below is simple code of ALV which will make you understand it better.Just go through it.Run it on your system and you will understand it.&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZHALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:ekpo.&lt;/P&gt;&lt;P&gt;data itab_ekpo type ekpo occurs 100 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of itab_new,&lt;/P&gt;&lt;P&gt;       ebeln type ekpo-ebeln,&lt;/P&gt;&lt;P&gt;       matnr type ekpo-matnr,&lt;/P&gt;&lt;P&gt;       netpr type ekpo-netpr,&lt;/P&gt;&lt;P&gt;       end of itab_new.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data itab1 TYPE STANDARD TABLE OF itab_new initial size 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-pools: slis.&lt;/P&gt;&lt;P&gt;DATA:  l_layout TYPE slis_layout_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : l_sort     TYPE slis_t_sortinfo_alv,&lt;/P&gt;&lt;P&gt;       w_sort     TYPE slis_sortinfo_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lt_fieldcat TYPE slis_t_fieldcat_alv, lf_fieldcat TYPE slis_fieldcat_alv.&lt;/P&gt;&lt;P&gt;DATA:    ws_repid TYPE sy-repid VALUE 'ZHALV'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen Begin of block block1 with frame title text-111.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : S_EBELN for EKPO-EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen end of block block1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&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;  select ebeln matnr netpr from ekpo into table itab1 up to 10 rows WHERE EBELN IN S_EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM build_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM build_layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM GET_DETAILS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM sort_layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end-of-selection.&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  build_fieldcatalog&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;FORM build_fieldcatalog .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PURCHASING DOCUMENT NUMBER&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR lf_fieldcat.&lt;/P&gt;&lt;P&gt;  lf_fieldcat-fieldname = 'EBELN'.&lt;/P&gt;&lt;P&gt;  lf_fieldcat-ref_tabname = 'EKKO'.&lt;/P&gt;&lt;P&gt;  lf_fieldcat-ref_fieldname = 'EBELN'.&lt;/P&gt;&lt;P&gt;  APPEND lf_fieldcat TO lt_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MATERIAL NUMBER&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR lf_fieldcat.&lt;/P&gt;&lt;P&gt;  lf_fieldcat-fieldname = 'MATNR'.&lt;/P&gt;&lt;P&gt;  lf_fieldcat-ref_tabname = 'EKPO'.&lt;/P&gt;&lt;P&gt;  lf_fieldcat-ref_fieldname = 'MATNR'.&lt;/P&gt;&lt;P&gt;  APPEND lf_fieldcat TO lt_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NET PRICE IN PURCHASING DOCUMENT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR lf_fieldcat.&lt;/P&gt;&lt;P&gt;  lf_fieldcat-fieldname = 'NETPR'.&lt;/P&gt;&lt;P&gt;  lf_fieldcat-ref_tabname = 'EKPO'.&lt;/P&gt;&lt;P&gt;  lf_fieldcat-ref_fieldname = 'NETPR'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; lf_fieldcat-cfieldname = 'WAERS'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  lf_fieldcat-do_sum = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND lf_fieldcat TO lt_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " build_fieldcatalog&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;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_DETAILS&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;FORM GET_DETAILS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      I_CALLBACK_PROGRAM = ws_repid&lt;/P&gt;&lt;P&gt;      IT_FIELDCAT        = lt_fieldcat&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      T_OUTTAB           = itab1&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      PROGRAM_ERROR      = 1&lt;/P&gt;&lt;P&gt;      OTHERS             = 2.&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;    WRITE: 'SY-SUBRC: ', SY-SUBRC .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "GET_DETAILS&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;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  build_layout&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;FORM build_layout .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_layout-colwidth_optimize = 'X'.&lt;/P&gt;&lt;P&gt;  l_layout-zebra = 'X'.&lt;/P&gt;&lt;P&gt;  l_layout-box_fieldname = 'CHK'.&lt;/P&gt;&lt;P&gt;  l_layout-box_tabname = 'ITAB1' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " build_layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sort_layout .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR w_sort.&lt;/P&gt;&lt;P&gt;  w_sort-fieldname = 'EBELN'.&lt;/P&gt;&lt;P&gt;  w_sort-tabname = 'ITAB1'.&lt;/P&gt;&lt;P&gt;  w_sort-spos = 1.&lt;/P&gt;&lt;P&gt;  w_sort-up = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  w_sort-subtot = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND w_sort TO l_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR w_sort.&lt;/P&gt;&lt;P&gt;  w_sort-fieldname = 'EBELN'.&lt;/P&gt;&lt;P&gt;  w_sort-tabname = 'ITAB1'.&lt;/P&gt;&lt;P&gt;  w_sort-spos = 1.&lt;/P&gt;&lt;P&gt;  w_sort-up = 'X'.&lt;/P&gt;&lt;P&gt;  w_sort-subtot = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND w_sort TO l_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " sort_layout&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 09:12:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-list/m-p/2822594#M660286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T09:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID / LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-list/m-p/2822595#M660287</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;&amp;lt;b&amp;gt;ALV (ABAP LIST VIEWER)&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP LIST VIEWER (ALV) IS A SIMPLE , USER FRIENDLY AND BETTER LOOKING REPORTING TOOL AS COMPARED TO THE USAGE OF WRITE STSTEMENT IN A CONVENTIONAL / INTERACTIVE REPORT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP PROVIDED A SET OF ALV ( ABAP LIST VIEWER ) FUNCTION MODULES , WHICH CAN BE PUT INTO USE TO EMBEILISH THE OUTPUT OF A REPORT , THIS SET OF ALV FUNCTIONS IS USED TO ENHANCE THE READABILITY AND FUNCTIONALITY OF ANY REPORT OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ADAVANTAGES OF ALV&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOKS BETTER &lt;/P&gt;&lt;P&gt;USER FRIENDLY &lt;/P&gt;&lt;P&gt;   FILTERING / SORTING &lt;/P&gt;&lt;P&gt;   LAYOUT CHANGE / SAVE&lt;/P&gt;&lt;P&gt;   SUMMATION DOWNLOAD TO EXCEL , E-Mail&lt;/P&gt;&lt;P&gt;   DATA CAN BE OPEN FOR INPUT / CHANGE ETC..&lt;/P&gt;&lt;P&gt;BETTER EVENT HANDLING &lt;/P&gt;&lt;P&gt;WIDTH OF MORE THAN 256 CHARACTERS POSSIBLE&lt;/P&gt;&lt;P&gt;PROGRAMING OVERHEAD OF MENTIONING EXACT POSITIONS INWRITE STATEMENT IS NOT NEEDED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIST DISPLAY IS NORMAL REPORT DISPLAY &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GRID REPORT DISPLAY ID DISPLAYED IN THE FORM OF GRIDS (BOXES)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;REWARD IF USEFULL&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 09:16:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-list/m-p/2822595#M660287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T09:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID / LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-list/m-p/2822596#M660288</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;&amp;lt;b&amp;gt;ALV-Abap List Viewer/Application List Viewer/Advanced List Viewer/sAp List Viewer&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For all practical purposes, they are the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Some differences:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) from abap coding point of view,&lt;/P&gt;&lt;P&gt;alv list is done with Function modules,&lt;/P&gt;&lt;P&gt;alv gris can also be done with FM,&lt;/P&gt;&lt;P&gt;but can also be done using OO concepts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) Alv grid (using oo concept) requires&lt;/P&gt;&lt;P&gt;designing the screen layout .&lt;/P&gt;&lt;P&gt;Hence, in one screen, we can show more&lt;/P&gt;&lt;P&gt;then one alv grid &lt;/P&gt;&lt;P&gt;(we cannot show more than&lt;/P&gt;&lt;P&gt;one alv list on one screen)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c) ALV grid uses ActiveX controls&lt;/P&gt;&lt;P&gt;present on the Presentation Server.&lt;/P&gt;&lt;P&gt;Hence, it consumes More Memory&lt;/P&gt;&lt;P&gt;on the presentation server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d) ALV LIST is Display Only.&lt;/P&gt;&lt;P&gt;Whereas&lt;/P&gt;&lt;P&gt;ALV Grid Can Be made EDITABLE for entry purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e) In alv grid, these options are possible,&lt;/P&gt;&lt;P&gt;but not in alv list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;without horizontal lines&lt;/P&gt;&lt;P&gt;without vertical lines&lt;/P&gt;&lt;P&gt;without cell merging during sorts&lt;/P&gt;&lt;P&gt;display total lines above the entries &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALV LIST Can be coded using only FMs &lt;/P&gt;&lt;P&gt;ALV GRID Can be coded using FMs and object oriented concepts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALV LIST Can be displayed hieraicharlly &lt;/P&gt;&lt;P&gt;ALV GRID cannot be displayed hierarichally&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for help in alv programming see this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/what-is-alv-programming.htm" target="test_blank"&gt;http://www.sap-img.com/abap/what-is-alv-programming.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdev.co.uk/reporting/alvhome.htm" target="test_blank"&gt;http://www.sapdev.co.uk/reporting/alvhome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 09:38:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-list/m-p/2822596#M660288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T09:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID / LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-list/m-p/2822597#M660289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;alv grid looks like a database table in se11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alv  list and the print out of alv grid look similar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 09:41:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-list/m-p/2822597#M660289</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2007-10-04T09:41:25Z</dc:date>
    </item>
  </channel>
</rss>

