<?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: Report: ALV with example in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-alv-with-example/m-p/4374416#M1040791</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gordon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All you need to know about OO-based ALV (at least the basics) can be found in the excellent tutorial&lt;/P&gt;&lt;P&gt;[An Easy Reference For ALV Grid Control|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For simplified ALV reports you may search the SDN for my sample reports (all of which begin with &lt;STRONG&gt;ZUS_SDN_...&lt;/STRONG&gt; ).&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>Fri, 15 Aug 2008 08:18:29 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2008-08-15T08:18:29Z</dc:date>
    <item>
      <title>Report: ALV with example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-alv-with-example/m-p/4374415#M1040790</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;do you have some samplecode for report with ALV Output ? &lt;/P&gt;&lt;P&gt;do you have some information hot wo use ALV ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx.&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2008 07:57:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-alv-with-example/m-p/4374415#M1040790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-15T07:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Report: ALV with example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-alv-with-example/m-p/4374416#M1040791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gordon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All you need to know about OO-based ALV (at least the basics) can be found in the excellent tutorial&lt;/P&gt;&lt;P&gt;[An Easy Reference For ALV Grid Control|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For simplified ALV reports you may search the SDN for my sample reports (all of which begin with &lt;STRONG&gt;ZUS_SDN_...&lt;/STRONG&gt; ).&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>Fri, 15 Aug 2008 08:18:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-alv-with-example/m-p/4374416#M1040791</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-08-15T08:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Report: ALV with example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-alv-with-example/m-p/4374417#M1040792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2008 08:23:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-alv-with-example/m-p/4374417#M1040792</guid>
      <dc:creator>former_member206439</dc:creator>
      <dc:date>2008-08-15T08:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Report: ALV with example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-alv-with-example/m-p/4374418#M1040793</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;  You can referece the sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPE-POOLS: slis.

TYPES:
  BEGIN OF ty_test,
    name TYPE syuname,
    start_date TYPE sydate,
    end_date TYPE sydate,
  END OF ty_test.

TYPES:
  ty_tb_test TYPE STANDARD TABLE OF ty_test.

DATA:
  i_test TYPE ty_tb_test,
  w_test TYPE ty_test,

  i_fieldcat TYPE slis_t_fieldcat_alv,
  w_fieldcat TYPE LINE OF    slis_t_fieldcat_alv,

  i_header TYPE slis_t_listheader,
  w_header TYPE LINE OF slis_t_listheader.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
  PARAMETERS: name TYPE syuname,
              start TYPE sydate,
              end TYPE sydate.
SELECTION-SCREEN END OF BLOCK b1.

START-OF-SELECTION.
  PERFORM fill_data.
  PERFORM field_define.
  PERFORM display_alv.

FORM fill_data.
  w_test-name = 'MBOORE'.
  w_test-start_date = '20080701'.
  w_test-end_date = '20080731'.
  APPEND w_test to i_test.
  CLEAR w_test.

  w_test-name = 'JDUFFY'.
  w_test-start_date = '20080715'.
  w_test-end_date = '20080810'.
  APPEND w_test to i_test.
  CLEAR w_test.

  w_test-name = 'JVNSOLD'.
  w_test-start_date = '20080601'.
  w_test-end_date = '20080720'.
  APPEND w_test to i_test.
  CLEAR w_test.
ENDFORM.

FORM field_define.
  w_fieldcat-fieldname = 'NAME'.
  w_fieldcat-seltext_l = 'name'.
  APPEND w_fieldcat TO i_fieldcat.
  CLEAR w_fieldcat.

  w_fieldcat-fieldname = 'START_DATE'.
  w_fieldcat-seltext_l = 'start_date'.
  APPEND w_fieldcat TO i_fieldcat.
  CLEAR w_fieldcat.

  w_fieldcat-fieldname = 'END_DATE'.
  w_fieldcat-seltext_l = 'end_date'.
  APPEND w_fieldcat TO i_fieldcat.
  CLEAR w_fieldcat.
ENDFORM.

FORM display_alv.
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program                = sy-repid
      i_callback_top_of_page            = 'DISPLAY_HEADER'
      IT_FIELDCAT                       = i_fieldcat
    TABLES
      t_outtab                          = i_test
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      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.

ENDFORM.

FORM display_header.
  w_header-typ = 'H'.
  w_header-info = 'This test case has been passed'.
  APPEND w_header TO i_header.
  CLEAR w_header.

  w_header-typ = 'S'.
  CONCATENATE 'Where User Name - ' name INTO w_header-info.
  APPEND w_header TO i_header.
  CLEAR w_header.

  w_header-typ = 'S'.
  CONCATENATE 'Start Date - ' start INTO w_header-info.
  APPEND w_header TO i_header.
  CLEAR w_header.

  w_header-typ = 'S'.
  CONCATENATE 'End Date - ' end INTO w_header-info.
  APPEND w_header TO i_header.
  CLEAR w_header.

  CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
      it_list_commentary       = i_header
*     I_LOGO                   =
*     I_END_OF_LIST_GRID       =
*     I_ALV_FORM               =
            .

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2008 08:30:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-alv-with-example/m-p/4374418#M1040793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-15T08:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Report: ALV with example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-alv-with-example/m-p/4374419#M1040794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for yourhelp.&lt;/P&gt;&lt;P&gt;Do you habe samplecode for ALVtree, too ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need an ALV splitting. left frame = tree, right frame = alvgrid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2008 11:15:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-alv-with-example/m-p/4374419#M1040794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-15T11:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Report: ALV with example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-alv-with-example/m-p/4374420#M1040795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using CL_GUI_LIST_TREE you can get that. check the demo program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SAPTLIST_TREE_CONTROL_DEMO&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2008 11:30:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-alv-with-example/m-p/4374420#M1040795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-15T11:30:09Z</dc:date>
    </item>
  </channel>
</rss>

