<?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 report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/2573508#M587868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to generate the alv report in following format.Please guide me.&lt;/P&gt;&lt;P&gt;How can i display the particulars horizontally?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Particulars	Current         Year	  1st Previous Year	       2nd Previous Year&lt;/P&gt;&lt;P&gt;1. Land &amp;amp; Building			&lt;/P&gt;&lt;P&gt;2. Plant &amp;amp; Machinery			&lt;/P&gt;&lt;P&gt;3. Staff quarters and colony			&lt;/P&gt;&lt;P&gt;4. Others			&lt;/P&gt;&lt;P&gt;5. Total Amount	  =SUM(Above)	=SUM(Above)	=SUM(Above)&lt;/P&gt;&lt;P&gt;6. Amount capitalized / deferred during the year	NIL	NIL	NIL&lt;/P&gt;&lt;P&gt;7. Net Amount (5-6)			&lt;/P&gt;&lt;P&gt;8. Deferred amount of earlier years, if any	NIL	NIL	NIL&lt;/P&gt;&lt;P&gt;9. Total amount provided in the cost records (7+8)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Aug 2007 05:04:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-02T05:04:00Z</dc:date>
    <item>
      <title>Alv report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/2573508#M587868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to generate the alv report in following format.Please guide me.&lt;/P&gt;&lt;P&gt;How can i display the particulars horizontally?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Particulars	Current         Year	  1st Previous Year	       2nd Previous Year&lt;/P&gt;&lt;P&gt;1. Land &amp;amp; Building			&lt;/P&gt;&lt;P&gt;2. Plant &amp;amp; Machinery			&lt;/P&gt;&lt;P&gt;3. Staff quarters and colony			&lt;/P&gt;&lt;P&gt;4. Others			&lt;/P&gt;&lt;P&gt;5. Total Amount	  =SUM(Above)	=SUM(Above)	=SUM(Above)&lt;/P&gt;&lt;P&gt;6. Amount capitalized / deferred during the year	NIL	NIL	NIL&lt;/P&gt;&lt;P&gt;7. Net Amount (5-6)			&lt;/P&gt;&lt;P&gt;8. Deferred amount of earlier years, if any	NIL	NIL	NIL&lt;/P&gt;&lt;P&gt;9. Total amount provided in the cost records (7+8)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 05:04:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/2573508#M587868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T05:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Alv report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/2573509#M587869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TYPE-POOLS: slis.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: i_qmel LIKE qmel OCCURS 0.&lt;/P&gt;&lt;P&gt;data v_repid type repid.&lt;/P&gt;&lt;P&gt;SELECT * FROM qmel INTO TABLE i_qmel.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;v_repid = sy-repid.&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 = v_repid&lt;/P&gt;&lt;P&gt;I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'&lt;/P&gt;&lt;P&gt;I_CALLBACK_USER_COMMAND = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;i_structure_name = 'QMEL'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;t_outtab = i_qmel&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;form set_pf_status using rt_extab type slis_t_extab.&lt;/P&gt;&lt;P&gt;set pf-status 'TEST'.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;FORM user_command USING ucomm LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;data lv_ucomm type sy-ucomm.&lt;/P&gt;&lt;P&gt;lv_ucomm&lt;/P&gt;&lt;P&gt;= sy-ucomm.&lt;/P&gt;&lt;P&gt;CASE lv_ucomm.&lt;/P&gt;&lt;P&gt;WHEN 'BUTTON'. "Double Click line Item&lt;/P&gt;&lt;P&gt;**Write ur functinality here&lt;/P&gt;&lt;P&gt;endcase.&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;Also have a look at below links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-basis-abap.com/abap/add-button-to-alv-toolbar-with-reuse-alv-list-display.htm" target="test_blank"&gt;http://www.sap-basis-abap.com/abap/add-button-to-alv-toolbar-with-reuse-alv-list-display.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="220764"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 05:12:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/2573509#M587869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T05:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Alv report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/2573510#M587870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Vishal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Try this part of code ..it might give you some idea..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****************************************************************************&lt;/P&gt;&lt;P&gt;     data: gt_list_top_of_page type slis_t_listheader. " Top of page text.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initialization.  &lt;/P&gt;&lt;P&gt;perform comment_build using gt_list_top_of_page[].  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;form top_of_page.  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Note to self: the gif must be loaded into transaction OAOR with  &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;classname 'PICTURES' AND TYPE 'OT' to work with ALV GRID Functions.  &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I Loaded NOVALOGO2 into system.  &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; call function 'REUSE_ALV_COMMENTARY_WRITE'  &lt;/P&gt;&lt;P&gt;     exporting  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_LOGO = 'NOVALOGO2'  &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;i_logo = 'ENJOYSAP_LOGO'  &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         it_list_commentary = gt_list_top_of_page.  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endform. " TOP_OF_PAGE  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;form comment_build using e04_lt_top_of_page type slis_t_listheader.  &lt;/P&gt;&lt;P&gt;data: ls_line type slis_listheader.  &lt;/P&gt;&lt;P&gt;      clear ls_line.  &lt;/P&gt;&lt;P&gt;      ls_line-typ = 'A'.  &lt;/P&gt;&lt;P&gt;      ls_line-info = 'Special'(001).  &lt;/P&gt;&lt;P&gt;      fgrant = xgrant.  &lt;/P&gt;&lt;P&gt;      concatenate ls_line-info fgrant  &lt;/P&gt;&lt;P&gt;      'Stock Option Report to the board'(002)  &lt;/P&gt;&lt;P&gt;             into ls_line-info separated by space.  &lt;/P&gt;&lt;P&gt;                    condense ls_line-info.  &lt;/P&gt;&lt;P&gt;      append ls_line to e04_lt_top_of_page.  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endform. " COMMENT_BUILD&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;Use following syntex for footer print in alv: &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;For End of Page &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;form END_OF_PAGE. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  data: listwidth type i, &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;        ld_pagepos(10) type c, &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;        ld_page(10)    type c. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  write: sy-uline(50). &lt;/P&gt;&lt;P&gt;  skip. &lt;/P&gt;&lt;P&gt;  write:/40 'Page:', sy-pagno . &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endform. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; For End of Report &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;form END_OF_LIST. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  data: listwidth type i, &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;        ld_pagepos(10) type c, &lt;/P&gt;&lt;P&gt;        ld_page(10)    type c. &lt;/P&gt;&lt;P&gt;  skip. &lt;/P&gt;&lt;P&gt;  write:/40 'Page:', sy-pagno . &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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Sample Code 2.&amp;lt;/b&amp;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;Type-pools&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TYPE-POOLS: slis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Data declarations.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: BEGIN OF t_vbak OCCURS 0,&lt;/P&gt;&lt;P&gt;vbeln TYPE vbeln,&lt;/P&gt;&lt;P&gt;bstnk TYPE vbak-bstnk,&lt;/P&gt;&lt;P&gt;erdat TYPE vbak-erdat,&lt;/P&gt;&lt;P&gt;kunnr TYPE vbak-kunnr,&lt;/P&gt;&lt;P&gt;END OF t_vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF t_vbap OCCURS 0,&lt;/P&gt;&lt;P&gt;vbeln TYPE vbeln,&lt;/P&gt;&lt;P&gt;matnr TYPE vbap-matnr,&lt;/P&gt;&lt;P&gt;netpr TYPE vbap-netpr,&lt;/P&gt;&lt;P&gt;waerk TYPE vbap-waerk,&lt;/P&gt;&lt;P&gt;kwmeng TYPE vbap-kwmeng,&lt;/P&gt;&lt;P&gt;meins TYPE vbap-meins,&lt;/P&gt;&lt;P&gt;END OF t_vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: t_fieldcatalog1 TYPE slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;DATA: t_fieldcatalog2 TYPE slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;DATA: v_repid TYPE syrepid.&lt;/P&gt;&lt;P&gt;DATA: s_layout TYPE slis_layout_alv.&lt;/P&gt;&lt;P&gt;DATA: v_tabname TYPE slis_tabname.&lt;/P&gt;&lt;P&gt;DATA: t_events TYPE slis_t_event.&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;start-of-selection event.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;START-OF-SELECTION.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the fieldcatalog for the first block&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;PERFORM get_fieldcat1 CHANGING t_fieldcatalog1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the fieldcatalog for the second block&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;PERFORM get_fieldcat2 CHANGING t_fieldcatalog2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the data for the first block&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT vbeln bstnk erdat kunnr UP TO 10 ROWS&lt;/P&gt;&lt;P&gt;INTO TABLE t_vbak&lt;/P&gt;&lt;P&gt;FROM vbak WHERE vbeln &amp;gt; '0060000100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the data for the second block&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT vbeln matnr netpr waerk kwmeng meins UP TO 10&lt;/P&gt;&lt;P&gt;ROWS&lt;/P&gt;&lt;P&gt;INTO TABLE t_vbap&lt;/P&gt;&lt;P&gt;FROM vbap WHERE vbeln &amp;gt; '0060000100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;init&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_callback_program = v_repid.&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;First block&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;v_tabname = 'ITAB1'.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;is_layout = s_layout&lt;/P&gt;&lt;P&gt;it_fieldcat = t_fieldcatalog1&lt;/P&gt;&lt;P&gt;i_tabname = v_tabname&lt;/P&gt;&lt;P&gt;it_events = t_events&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;t_outtab = t_vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Second block&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;v_tabname = 'ITAB2'.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;is_layout = s_layout&lt;/P&gt;&lt;P&gt;it_fieldcat = t_fieldcatalog2&lt;/P&gt;&lt;P&gt;i_tabname = v_tabname&lt;/P&gt;&lt;P&gt;it_events = t_events&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;t_outtab = t_vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Display&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FORM GET_FIELDCAT1&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the field catalog for the first block&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;FORM get_fieldcat1 CHANGING lt_fieldcatalog TYPE&lt;/P&gt;&lt;P&gt;slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: s_fieldcatalog TYPE slis_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Order number&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;s_fieldcatalog-col_pos = '1'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-fieldname = 'VBELN'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-tabname = 'T_VBAK'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-ref_tabname = 'VBAK'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-ref_fieldname = 'VBELN'.&lt;/P&gt;&lt;P&gt;APPEND s_fieldcatalog TO lt_fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR s_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Customer purchase order.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;s_fieldcatalog-col_pos = '2'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-fieldname = 'BSTNK'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-tabname = 'T_VBAK'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-ref_tabname = 'VBAK'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-ref_fieldname = 'BSTNK'.&lt;/P&gt;&lt;P&gt;APPEND s_fieldcatalog TO lt_fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR s_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Creation date.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;s_fieldcatalog-col_pos = '3'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-fieldname = 'ERDAT'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-tabname = 'T_VBAK'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-ref_tabname = 'VBAK'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-ref_fieldname = 'ERDAT'.&lt;/P&gt;&lt;P&gt;APPEND s_fieldcatalog TO lt_fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR s_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Customer&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;s_fieldcatalog-col_pos = '4'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-fieldname = 'KUNNR'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-tabname = 'T_VBAK'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-ref_tabname = 'VBAK'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-ref_fieldname = 'KUNNR'.&lt;/P&gt;&lt;P&gt;APPEND s_fieldcatalog TO lt_fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR s_fieldcatalog.&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;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;FORM GET_FIELDCAT2&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the field catalog for the second block&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;FORM get_fieldcat2 CHANGING lt_fieldcatalog TYPE&lt;/P&gt;&lt;P&gt;slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: s_fieldcatalog TYPE slis_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Order number&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;s_fieldcatalog-col_pos = '1'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-fieldname = 'VBELN'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-tabname = 'T_VBAP'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-ref_tabname = 'VBAP'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-ref_fieldname = 'VBELN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND s_fieldcatalog TO lt_fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR s_fieldcatalog.&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;s_fieldcatalog-col_pos = '2'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-fieldname = 'MATNR'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-tabname = 'T_VBAP'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-ref_tabname = 'VBAP'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-ref_fieldname = 'MATNR'.&lt;/P&gt;&lt;P&gt;APPEND s_fieldcatalog TO lt_fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR s_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Net price&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;s_fieldcatalog-col_pos = '3'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-fieldname = 'NETPR'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-tabname = 'T_VBAP'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-ref_tabname = 'VBAP'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-ref_fieldname = 'NETPR'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-cfieldname = 'WAERK'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-ctabname = 'T_VBAP'.&lt;/P&gt;&lt;P&gt;APPEND s_fieldcatalog TO lt_fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR s_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Currency.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;s_fieldcatalog-col_pos = '4'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-fieldname = 'WAERK'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-tabname = 'T_VBAP'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-ref_tabname = 'VBAP'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-ref_fieldname = 'WAERK'.&lt;/P&gt;&lt;P&gt;APPEND s_fieldcatalog TO lt_fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR s_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Quantity&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;s_fieldcatalog-col_pos = '5'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-fieldname = 'KWMENG'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-tabname = 'T_VBAP'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-ref_tabname = 'VBAP'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-ref_fieldname = 'KWMENG'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-qfieldname = 'MEINS'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-qtabname = 'T_VBAP'.&lt;/P&gt;&lt;P&gt;APPEND s_fieldcatalog TO lt_fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR s_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;UOM&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;s_fieldcatalog-col_pos = '6'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-fieldname = 'MEINS'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-tabname = 'T_VBAP'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-ref_tabname = 'VBAP'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-ref_fieldname = 'MEINS'.&lt;/P&gt;&lt;P&gt;APPEND s_fieldcatalog TO lt_fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR s_fieldcatalog.&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;Plz reward ponits if answer is useful...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 05:45:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/2573510#M587870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T05:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Alv report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/2573511#M587871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;t&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 06:20:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/2573511#M587871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T06:20:35Z</dc:date>
    </item>
  </channel>
</rss>

