<?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 ALV function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-function-module/m-p/1063951#M92726</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can u give detail description on FM &lt;/P&gt;&lt;P&gt;1.REUSE_ALV_BLOCK_LIST_INIT&lt;/P&gt;&lt;P&gt;2.REUSE_ALV_BLOCK_LIST_APPEND&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Dec 2005 11:45:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-02T11:45:35Z</dc:date>
    <item>
      <title>ALV function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-function-module/m-p/1063951#M92726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can u give detail description on FM &lt;/P&gt;&lt;P&gt;1.REUSE_ALV_BLOCK_LIST_INIT&lt;/P&gt;&lt;P&gt;2.REUSE_ALV_BLOCK_LIST_APPEND&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2005 11:45:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-function-module/m-p/1063951#M92726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-02T11:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: ALV function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-function-module/m-p/1063952#M92727</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;Take a look at program BALVBT01. You will understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically INIT fm is to set callbacks for Block lists and APPEND fm is to actually append a list to Block..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Block lists are a technique for combining display of two or more ALV lists with different structures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So general flow is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.  Call to INIT fm to set callbacks&lt;/P&gt;&lt;P&gt;2.  Prepare your data and call APPEND fm for the first ALV list&lt;/P&gt;&lt;P&gt;3.  Prepare your data and call APPEND fm for the second ALV list&lt;/P&gt;&lt;P&gt;4.  .... APPEND (if necessary)&lt;/P&gt;&lt;P&gt;5.  .... APPEND (if necessary)&lt;/P&gt;&lt;P&gt;6.  .... APPEND (if necessary)&lt;/P&gt;&lt;P&gt;7.  Call to REUSE_ALV_BLOCK_LIST_DISPLAY fm to finally display all the ALV lists together.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Pinnamaneni&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Pinnamaneni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2005 11:47:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-function-module/m-p/1063952#M92727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-02T11:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: ALV function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-function-module/m-p/1063953#M92728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;b&amp;gt;First one is for GUI STATUS.&amp;lt;/b&amp;gt;
second one is to append the reports to list..after appending you can call the list display fm
  V_REPID = SY-REPID.
* Set Default GUI status
  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
    EXPORTING
      I_CALLBACK_PROGRAM = V_REPID.

*- To display quantity not in SAP

  IF NOT IT_FINAL1[] IS INITIAL.

    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
      EXPORTING
        IS_LAYOUT                  = X_LAYOUT
        IT_FIELDCAT                = IT_FIELDCAT
        I_TABNAME                  = 'IT_FINAL1'
        IT_EVENTS                  = IT_EVENTS2
      TABLES
        T_OUTTAB                   = IT_FINAL1
      EXCEPTIONS
        PROGRAM_ERROR              = 1
        MAXIMUM_OF_APPENDS_REACHED = 2
        OTHERS                     = 3.
    IF SY-SUBRC &amp;lt;&amp;gt; 0.
      MESSAGE I002 WITH 'Error in REUSE_ALV_BLOCK_LIST_APPEND'(002).
    ENDIF.

  ENDIF.
*- To display records with total = 0 in ZLEGACY_INV_COST
  IF NOT IT_TOTAL[] IS INITIAL.

    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
      EXPORTING
        IS_LAYOUT                  = X_LAYOUT
        IT_FIELDCAT                = IT_FIELDCAT
        I_TABNAME                  = 'IT_TOTAL'
        IT_EVENTS                  = IT_EVENTS1
      TABLES
        T_OUTTAB                   = IT_TOTAL
      EXCEPTIONS
        PROGRAM_ERROR              = 1
        MAXIMUM_OF_APPENDS_REACHED = 2
        OTHERS                     = 3.
    IF SY-SUBRC &amp;lt;&amp;gt; 0.
      MESSAGE I002 WITH 'Error in REUSE_ALV_BLOCK_LIST_APPEND'(002).

    ENDIF.

  ENDIF.

  IF NOT IT_FINAL1[] IS INITIAL OR NOT IT_TOTAL[] IS INITIAL.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
      EXCEPTIONS
        PROGRAM_ERROR = 1
        OTHERS        = 2.
    IF SY-SUBRC &amp;lt;&amp;gt; 0.
      MESSAGE I002 WITH 'Error in REUSE_ALV_BLOCK_LIST_DISPLAY'(003).
    ENDIF.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2005 11:49:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-function-module/m-p/1063953#M92728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-02T11:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: ALV function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-function-module/m-p/1063954#M92729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i am sending you a complete pogram..just run it to have an idea..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reward point  if it helps you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zanid_test MESSAGE-ID zz.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Declarations for BLOCK ALV DISPLAY&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--type pools&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;DATA:x_layout TYPE slis_layout_alv,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_field TYPE slis_t_fieldcat_alv,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--field catalog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_fldcat LIKE LINE OF t_field,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--to hold all the events&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_events TYPE slis_t_event,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_events TYPE slis_alv_event,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_sort TYPE slis_t_sortinfo_alv,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_sort LIKE LINE OF t_sort ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Print Layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_print_layout TYPE slis_print_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----Macro to add field catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*field "text "length "tech "COL_POS "DATATYPE "DDIC_OUTPUTLEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEFINE add_catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear x_fldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_fldcat-fieldname = &amp;amp;1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_m = &amp;amp;2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_fldcat-outputlen = &amp;amp;3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_fldcat-tech = &amp;amp;4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_fldcat-col_pos = &amp;amp;5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_fldcat-no_zero = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_fldcat-ddictxt = 'M'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_fldcat-datatype = &amp;amp;6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_fldcat-ddic_outputlen = &amp;amp;7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if &amp;amp;6 = 'N'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_fldcat-lzero = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--build field catalog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append x_fldcat to t_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----- data declerations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_repid like sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ernam like mara-ernam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;meins like mara-meins,&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; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of jtab occurs 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matnr like makt-matnr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maktx like makt-maktx,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end of jtab.&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;select matnr ernam meins&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;up to 20 rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from mara&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr maktx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;up to 20 rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from makt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into table jtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_repid = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*DISPLAY alv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Initialize Block&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_BLOCK_LIST_INIT'&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;i_callback_program = v_repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Block 1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*INITIALIZE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh t_field. clear t_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh t_events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*field "text "length "tech "COL_POS "DATATYPE "DDIC_OUTPUTLEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add_catalog:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'MATNR' 'Material' '18' '' '1' 'C' '18',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'ERNAM' 'Created By' '12' '' '2' 'C' '12',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'MEINS' 'Unit' '5' '' '3' 'C' '3'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--build table for events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_events-form = 'TOP_OF_LIST1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_events-name = slis_ev_top_of_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append x_events to t_events.&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_BLOCK_LIST_APPEND'&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;is_layout = x_layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_fieldcat = t_field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_tabname = 'ITAB'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_events = t_events&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_sort = t_sort&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_outtab = itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;program_error = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maximum_of_appends_reached = 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;others = 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;&lt;/P&gt;&lt;P&gt;message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&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;*--BLOCK 2(SUMMARY REPORT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*INITIALIZE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh t_field. clear t_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh t_events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*field "text "length "tech "COL_POS "DATATYPE "DDIC_OUTPUTLEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add_catalog:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'MATNR' 'Material' '20' '' '1' 'C' '18',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'MAKTX' 'Description' '40' '' '2' 'C' '40'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--build table for events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_events-form = 'TOP_OF_LIST2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_events-name = slis_ev_top_of_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append x_events to t_events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Append table block.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_BLOCK_LIST_APPEND'&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;is_layout = x_layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_fieldcat = t_field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_tabname = 'JTAB'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_events = t_events&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_outtab = jtab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;program_error = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maximum_of_appends_reached = 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;others = 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;&lt;/P&gt;&lt;P&gt;message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&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 FM TO DISPLAY THE BLOCK REPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_BLOCK_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;exporting&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;is_print = x_print_layout&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;program_error = 1&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&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;form top_of_list1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;skip 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: 10 'List 1',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/5 '----&lt;/P&gt;&lt;HR originaltext="---------------" /&gt;&lt;P&gt;'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;skip 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form top_of_list2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;skip 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: 10 'List 2',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/5 '----&lt;/P&gt;&lt;HR originaltext="---------------" /&gt;&lt;P&gt;'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;skip 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2005 12:00:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-function-module/m-p/1063954#M92729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-02T12:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: ALV function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-function-module/m-p/1063955#M92730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayasree,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you Understand what for the FMs are used..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plese close the thread if your problem solves..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2005 12:08:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-function-module/m-p/1063955#M92730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-02T12:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: ALV function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-function-module/m-p/1063956#M92731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayshree,&lt;/P&gt;&lt;P&gt;Function module REUSE_ALV_BLOCK_LIST_INIT is used for:&lt;/P&gt;&lt;P&gt;This function module is used to set the default GUI status etc.&lt;/P&gt;&lt;P&gt;Function module REUSE_ALV_BLOCK_LIST_APPEND is used for:&lt;/P&gt;&lt;P&gt;This function module adds the data to the block.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2005 12:24:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-function-module/m-p/1063956#M92731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-02T12:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: ALV function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-function-module/m-p/1063957#M92732</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;REUSE_ALV_BLOCK_INIT function module is used to set the default GUI status.&lt;/P&gt;&lt;P&gt;REUSE_ALV_BLOCK_LIST_INIT&lt;/P&gt;&lt;P&gt;      Parameters:&lt;/P&gt;&lt;P&gt;         a.  I_CALLBACK_PROGRAM&lt;/P&gt;&lt;P&gt;         b.  I_CALLBACK_PF_STATUS_SET&lt;/P&gt;&lt;P&gt;         c.  I_CALLBACK_USER_COMMAND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REUSE_ALV_BLOCK_LIST_APPEND function module is used to adds the data to the block.&lt;/P&gt;&lt;P&gt;REUSE_ALV_BLOCK_LIST_APPEND&lt;/P&gt;&lt;P&gt;Export :&lt;/P&gt;&lt;P&gt;        a. IS_LAYOUT    :  layout settings for block&lt;/P&gt;&lt;P&gt;        b. IT_FIELDCAT :  field catalog&lt;/P&gt;&lt;P&gt;        c. I_TABNAME   : Internal table name of the output data&lt;/P&gt;&lt;P&gt;       d.  IT_EVENTS     : internal table name with all        	                     			 possible events&lt;/P&gt;&lt;P&gt;Tables : &lt;/P&gt;&lt;P&gt;       a.  T_OUTTAB     : internal table with output data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2005 12:53:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-function-module/m-p/1063957#M92732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-02T12:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: ALV function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-function-module/m-p/1063958#M92733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Friends ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any limitation here to append as I am getting error after I append 21st list, this is in standard program RV13KNAA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prashant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 18:56:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-function-module/m-p/1063958#M92733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T18:56:58Z</dc:date>
    </item>
  </channel>
</rss>

