<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2608852#M598255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1.I agree Report is there, but it doesnt suffice all your requirement. ALV provides so many facilities to enable user to sort list, sum - subtotal, Variant saving,hide columns, freeze it, colors, emphasize, Layout formattig and so many such thigs easisly and very quickly.&lt;/P&gt;&lt;P&gt;It supports GRID.&lt;/P&gt;&lt;P&gt;It has several functionalitied to enchance view, Also it supports OOPS also.&lt;/P&gt;&lt;P&gt;2. Lets take your material example. like from MARA you will get all lists of material and then you collect it into the internal table and then give it to the ALV function using Layout sets.&lt;/P&gt;&lt;P&gt;like,&lt;/P&gt;&lt;P&gt;  collect material in it_mara and&lt;/P&gt;&lt;P&gt;  build ALV catlog and &lt;/P&gt;&lt;P&gt;  use REUSE_ALV_LIST or GRID&lt;/P&gt;&lt;P&gt;  give both tables to it.&lt;/P&gt;&lt;P&gt;Thats it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this example:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/abap/controls/alvgrid.htm" target="test_blank"&gt;http://www.erpgenie.com/abap/controls/alvgrid.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 29 Jul 2007 04:36:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-29T04:36:09Z</dc:date>
    <item>
      <title>ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2608850#M598253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;i want to learn ALV's.&lt;/P&gt;&lt;P&gt;Can any one tell me&lt;/P&gt;&lt;P&gt;1) why we need ALV's ?( Already heaving Repoerts )&lt;/P&gt;&lt;P&gt;2) And tell me step by step procedures :&lt;/P&gt;&lt;P&gt;How many types of ALV's are ?&lt;/P&gt;&lt;P&gt;And just give the material/links from where ,i can get the material.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jul 2007 04:27:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2608850#M598253</guid>
      <dc:creator>former_member630092</dc:creator>
      <dc:date>2007-07-29T04:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2608851#M598254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ALV (Abap List Viewer)&lt;/P&gt;&lt;P&gt;We can easily implement basic features of reports like Sort, Allign, Filtering, Totals-Subtotals etc... by using ALV. Three types of reports we can do by ALV as 1. Simple Report, 2. Block Reprot and 3. Hierarchical Sequential Report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alv grid types&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) list/ grid &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these are having rows and columns&lt;/P&gt;&lt;P&gt;function modules for this type are&lt;/P&gt;&lt;P&gt;REUSE_ALV_LIST_DISPLAY&lt;/P&gt;&lt;P&gt;REUSE_ALV_GRID_DISPLAY2) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) HIERARCHY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will have header and line items &lt;/P&gt;&lt;P&gt;function module for this type &lt;/P&gt;&lt;P&gt;REUSE_ALV_HIERSEQ_LIST_DISPLAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) tree&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will nodes and child type structure&lt;/P&gt;&lt;P&gt;function module for this type &lt;/P&gt;&lt;P&gt;REUSE_ALV_TREE_DISPLAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) APPEND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this can append all the different types of lists where each list has different number of columns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;events associated with alvs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) top of page&lt;/P&gt;&lt;P&gt;2) end of page&lt;/P&gt;&lt;P&gt;3) top of list&lt;/P&gt;&lt;P&gt;4) end of list&lt;/P&gt;&lt;P&gt;5) on double click&lt;/P&gt;&lt;P&gt;6) on link click&lt;/P&gt;&lt;P&gt;7) on user command &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some useful links:&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;&lt;A href="http://www.sapdevelopment.co.uk/reporting/alvhome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/alvhome.htm&lt;/A&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;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/99/49b844d61911d2b469006094192fe3/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/99/49b844d61911d2b469006094192fe3/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Examples:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT Z_ALV__ITEM .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &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; &lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt; Data&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA : BEGIN OF itab OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE t001.&lt;/P&gt;&lt;P&gt;DATA : flag tyPE c,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;END OF itab.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*DATA: itab like t001 occurs 0 with header line.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA : alvfc TYPE slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;DATA : alvly TYPE slis_layout_alv.&lt;/P&gt;&lt;P&gt;data v_repid like sy-repid.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; Select Data&lt;/P&gt;&lt;P&gt;v_repid = sy-repid.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECT * FROM t001 INTO TABLE itab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*------- Field Catalogue&lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;i_program_name = v_repid&lt;/P&gt;&lt;P&gt;i_internal_tabname = 'ITAB'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_STRUCTURE_NAME =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_CLIENT_NEVER_DISPLAY = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;i_inclname = v_repid&lt;/P&gt;&lt;UL&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_BUFFER_ACTIVE =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;changing&lt;/P&gt;&lt;P&gt;ct_fieldcat = alvfc[] .&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;HR originaltext="---------" /&gt;&lt;P&gt;Display&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;          it_fieldcat             = alvfc[]&lt;/P&gt;&lt;P&gt;          i_callback_program      = v_repid&lt;/P&gt;&lt;P&gt;          is_layout               = alvly&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;&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;In very detail it's not easy, i believe it's better for you to test the function modules to work with ALV :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REUSE_ALV_FIELDCATALOG_MERGE to create the fieldcatalogue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REUSE_ALV_GRID_DISPLAY - to display the ALV in grid format&lt;/P&gt;&lt;P&gt;REUSE_ALV_LIST_DISPLAY - to display the ALV in list format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone, here's one exemple of creating ALV reports :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZALV_SLAS_GDF .&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;Declaração de Dados&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: ZSLA_NIV_SAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;select-options DATA for ZSLA_NIV_SAT-DATA. " Data&lt;/P&gt;&lt;P&gt;select-options LIFNR for ZSLA_NIV_SAT-LIFNR. " Nº de conta fornecedor&lt;/P&gt;&lt;P&gt;select-options WERKS for ZSLA_NIV_SAT-WERKS. " Centro&lt;/P&gt;&lt;P&gt;select-options EBELN for ZSLA_NIV_SAT-EBELN. " Nº contrato&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab1 OCCURS 100.&lt;/P&gt;&lt;P&gt;include structure ZSLA_NIV_SAT.&lt;/P&gt;&lt;P&gt;data: END OF itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;Outros dados necessários:&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Campo para guardar o nome do report&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: i_repid LIKE sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Campo para verificar o tamanho da tabela&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: i_lines LIKE sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;Dados para mostrar o ALV&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TYPE-POOLS: SLIS.&lt;/P&gt;&lt;P&gt;*DATA: int_fcat type SLIS_T_FIELDCAT_ALV with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: int_fcat type SLIS_T_FIELDCAT_ALV.&lt;/P&gt;&lt;P&gt;DATA: l_key TYPE slis_keyinfo_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Ler dados para dentro da tabela imat&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT * FROM ZSLA_NIV_SAT&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE itab1&lt;/P&gt;&lt;P&gt;WHERE data in data&lt;/P&gt;&lt;P&gt;and lifnr in lifnr&lt;/P&gt;&lt;P&gt;and ebeln in ebeln&lt;/P&gt;&lt;P&gt;and werks in werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: i_lines.&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE itab1 LINES i_lines.&lt;/P&gt;&lt;P&gt;IF i_lines lt 1.&lt;/P&gt;&lt;P&gt;WRITE: / 'Não foram seleccionadas entradas.'.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;Agora, começa-se o ALV&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&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;Para usar o ALV, nós precisamos de uma estrutura do dicionário de&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*dados DDIC ou de uma coisa chamada &amp;#147;Fieldcatalogue&amp;#148;.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Existe 2 maneiras de preencher a coisa referida acima:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*Automaticamente e Manualmente&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Como preencher Automaticamente?&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;O fieldcatalouge pode ser gerado pela Função&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*'REUSE_ALV_FIELDCATALOG_MERGE' a partir de uma tabela de qualquer fonte&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Para que se possa utilizar esta função tabela tem que ter campos do&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*dicionário de dados, como é o caso da tabela ITAB1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&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;Guardar o nome do programa&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;i_repid = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create Fieldcatalogue from internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;I_PROGRAM_NAME =&lt;/P&gt;&lt;P&gt;i_repid&lt;/P&gt;&lt;P&gt;I_INTERNAL_TABNAME =&lt;/P&gt;&lt;P&gt;'ITAB1' "LETRAS GRANDES&lt;/P&gt;&lt;P&gt;I_INCLNAME =&lt;/P&gt;&lt;P&gt;i_repid&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;CT_FIELDCAT =&lt;/P&gt;&lt;P&gt;int_fcat[]&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;INCONSISTENT_INTERFACE =&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;PROGRAM_ERROR =&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;OTHERS =&lt;/P&gt;&lt;P&gt;3.&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: / 'Returncode', sy-subrc,&lt;/P&gt;&lt;P&gt;'from FUNCTION REUSE_ALV_FIELDCATALOG_MERGE'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Isto era o Fieldcatalogue&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&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;E agora estamos preparados para executar o ALV&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;Chama o ALV&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 = i_repid&lt;/P&gt;&lt;P&gt;IT_FIELDCAT = int_fcat[]&lt;/P&gt;&lt;P&gt;I_DEFAULT = ' '&lt;/P&gt;&lt;P&gt;I_SAVE = ' ' "'A'&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;BR /&gt;WRITE: /&lt;BR /&gt;'Returncode', sy-subrc, 'from FUNCTION REUSE_ALV_GRID_DISPLAY'.&lt;BR /&gt;ENDIF.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Please reward the helpful entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raman.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jul 2007 04:35:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2608851#M598254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-29T04:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2608852#M598255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1.I agree Report is there, but it doesnt suffice all your requirement. ALV provides so many facilities to enable user to sort list, sum - subtotal, Variant saving,hide columns, freeze it, colors, emphasize, Layout formattig and so many such thigs easisly and very quickly.&lt;/P&gt;&lt;P&gt;It supports GRID.&lt;/P&gt;&lt;P&gt;It has several functionalitied to enchance view, Also it supports OOPS also.&lt;/P&gt;&lt;P&gt;2. Lets take your material example. like from MARA you will get all lists of material and then you collect it into the internal table and then give it to the ALV function using Layout sets.&lt;/P&gt;&lt;P&gt;like,&lt;/P&gt;&lt;P&gt;  collect material in it_mara and&lt;/P&gt;&lt;P&gt;  build ALV catlog and &lt;/P&gt;&lt;P&gt;  use REUSE_ALV_LIST or GRID&lt;/P&gt;&lt;P&gt;  give both tables to it.&lt;/P&gt;&lt;P&gt;Thats it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this example:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/abap/controls/alvgrid.htm" target="test_blank"&gt;http://www.erpgenie.com/abap/controls/alvgrid.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jul 2007 04:36:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2608852#M598255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-29T04:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2608853#M598256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please download this pdf detail expl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.abap4.it/download/ALV.pdf" target="test_blank"&gt;http://www.abap4.it/download/ALV.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jul 2007 07:17:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2608853#M598256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-29T07:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2608854#M598257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 May 2009 16:40:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2608854#M598257</guid>
      <dc:creator>former_member630092</dc:creator>
      <dc:date>2009-05-31T16:40:17Z</dc:date>
    </item>
  </channel>
</rss>

