<?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 reports in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-reports/m-p/2776693#M647217</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at a sample at the end of this thread : &amp;lt;a href="http://www.sapfans.com/forums/viewtopic.php?t=16629"&amp;gt;Writing select-option values on top-of-page&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Sep 2007 06:47:46 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2007-09-18T06:47:46Z</dc:date>
    <item>
      <title>alv reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-reports/m-p/2776691#M647215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;using function modules in alv reports how applay the top of page and end of page ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 06:36:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-reports/m-p/2776691#M647215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-18T06:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: alv reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-reports/m-p/2776692#M647216</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;See the example bcalv_grid_01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) create a local class&lt;/P&gt;&lt;P&gt;2) Create the object&lt;/P&gt;&lt;P&gt;3) Add after the method&lt;/P&gt;&lt;P&gt;set_table_for_first_display&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;-&amp;gt;Create Object to receive events and link them to handler methods.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;When the ALV Control raises the event for the specified instance&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;the corresponding method is automatically called.&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;§ 4. Link used print events and event handler methods.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CREATE OBJECT EVENT_RECEIVER.&lt;/P&gt;&lt;P&gt;SET HANDLER EVENT_RECEIVER-&amp;gt;HANDLE_TOP_OF_LIST FOR GRID1.&lt;/P&gt;&lt;P&gt;SET HANDLER EVENT_RECEIVER-&amp;gt;HANDLE_TOP_OF_PAGE FOR GRID1.&lt;/P&gt;&lt;P&gt;SET HANDLER EVENT_RECEIVER-&amp;gt;HANDLE_END_OF_LIST FOR GRID1.&lt;/P&gt;&lt;P&gt;SET HANDLER EVENT_RECEIVER-&amp;gt;HANDLE_END_OF_PAGE FOR GRID1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also see this......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot use sy-pagno because Grid does not use those variables system. You have to catch the event of creation of page of the class. It is what demonstrates the example bcalv_grid_01. Decide where you want to put the number of page finds the event to connect, in this case it is at the end of the page, then makes a conter in this method which you make show the number of page. In bcalv_grid_01 the method ANDLE_END_OF_PAGE was called at end of page event is thus logical to tell to put a conter which will indicate the number of page, because it will be call each time a new page is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO first create a local class&lt;/P&gt;&lt;P&gt;CLASS LCL_EVENT_RECEIVER DEFINITIOn.&lt;/P&gt;&lt;P&gt;PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;HANDLE_END_OF_PAGE&lt;/P&gt;&lt;P&gt;FOR EVENT PRINT_END_OF_PAGE OF CL_GUI_ALV_GRID.&lt;/P&gt;&lt;P&gt;PRIVATE SECTION.&lt;/P&gt;&lt;P&gt;DATA: PAGENUM TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;CLASS LCL_EVENT_RECEIVER IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;METHOD HANDLE_END_OF_PAGE.&lt;/P&gt;&lt;P&gt;DATA: TABLENAME(30) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADD 1 TO PAGENUM.&lt;/P&gt;&lt;P&gt;WRITE: /,'Event: PRINT_END_OF_PAGE'(003),&lt;/P&gt;&lt;P&gt;'Number of pages so far: '(004), PAGENUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMETHOD. "handle_end_of_page&lt;/P&gt;&lt;P&gt;Endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your report&lt;/P&gt;&lt;P&gt;Put some where&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT EVENT_RECEIVER.&lt;/P&gt;&lt;P&gt;SET HANDLER EVENT_RECEIVER-&amp;gt;HANDLE_END_OF_PAGE FOR GRID1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then it will display the number of page at each end-of page but dont forgette to reserve space for the end of page when you creat your grid.&lt;/P&gt;&lt;P&gt;GS_PRINT-RESERVELNS = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD GRID1-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY&lt;/P&gt;&lt;P&gt;EXPORTING I_STRUCTURE_NAME = 'SFLIGHT'&lt;/P&gt;&lt;P&gt;IS_PRINT = GS_PRINT&lt;/P&gt;&lt;P&gt;IS_LAYOUT = GS_LAYOUT&lt;/P&gt;&lt;P&gt;CHANGING IT_OUTTAB = GT_SFLIGHT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sankar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 06:47:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-reports/m-p/2776692#M647216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-18T06:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: alv reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-reports/m-p/2776693#M647217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at a sample at the end of this thread : &amp;lt;a href="http://www.sapfans.com/forums/viewtopic.php?t=16629"&amp;gt;Writing select-option values on top-of-page&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 06:47:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-reports/m-p/2776693#M647217</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-09-18T06:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: alv reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-reports/m-p/2776694#M647218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi by using &lt;/P&gt;&lt;P&gt;TYPE POOL : SLIS&lt;/P&gt;&lt;P&gt;u can provide top of page &amp;amp; end of page events in alvs&lt;/P&gt;&lt;P&gt;reward for use ful points&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Nagesh.Paruchuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 06:52:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-reports/m-p/2776694#M647218</guid>
      <dc:creator>paruchuri_nagesh</dc:creator>
      <dc:date>2007-09-18T06:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: alv reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-reports/m-p/2776695#M647219</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;&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  ZPROGRAM&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  ZPROGRAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;table declaration.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;tables : zemployee, zdepartment,zproject.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*type-pools declaration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-pools : slis , icon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;type specification&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_emp,&lt;/P&gt;&lt;P&gt;        empid type zempid,&lt;/P&gt;&lt;P&gt;        empname type zempname,&lt;/P&gt;&lt;P&gt;        empaddress type zempaddress,&lt;/P&gt;&lt;P&gt;        city type zcity,&lt;/P&gt;&lt;P&gt;        ponumber type zponumber,&lt;/P&gt;&lt;P&gt;        detid type zdeptid,&lt;/P&gt;&lt;P&gt;        salary type zsalary,&lt;/P&gt;&lt;P&gt;        end of ty_emp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_dept,&lt;/P&gt;&lt;P&gt;        detid type zdeptid,&lt;/P&gt;&lt;P&gt;        deptname type zdeptname,&lt;/P&gt;&lt;P&gt;        designation type zdesignation,&lt;/P&gt;&lt;P&gt;        projectid type zprojectid,&lt;/P&gt;&lt;P&gt;        end of ty_dept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_project,&lt;/P&gt;&lt;P&gt;        projectid type zprojectid,&lt;/P&gt;&lt;P&gt;        technology type ztechnology,&lt;/P&gt;&lt;P&gt;        clientname type zclientname,&lt;/P&gt;&lt;P&gt;        end of ty_project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_final,&lt;/P&gt;&lt;P&gt;        empid type zempid,&lt;/P&gt;&lt;P&gt;        empname type zempname,&lt;/P&gt;&lt;P&gt;        empaddress type zempaddress,&lt;/P&gt;&lt;P&gt;        city type zcity,&lt;/P&gt;&lt;P&gt;        ponumber type zponumber,&lt;/P&gt;&lt;P&gt;        detid type zdeptid,&lt;/P&gt;&lt;P&gt;        deptname type zdeptname,&lt;/P&gt;&lt;P&gt;        designation type zdesignation,&lt;/P&gt;&lt;P&gt;        projectid type zprojectid,&lt;/P&gt;&lt;P&gt;        technology type ztechnology,&lt;/P&gt;&lt;P&gt;        clientname type zclientname,&lt;/P&gt;&lt;P&gt;         salary type zsalary,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       average type p decimals 2,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        end of ty_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;table type specification.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : tt_emp type standard table of ty_emp,&lt;/P&gt;&lt;P&gt;        tt_dept type standard table of ty_dept,&lt;/P&gt;&lt;P&gt;        tt_project type standard table of ty_project,&lt;/P&gt;&lt;P&gt;        tt_final type standard table of ty_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;work area creation.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : wa_emp type ty_emp,&lt;/P&gt;&lt;P&gt;       wa_dept type ty_dept,&lt;/P&gt;&lt;P&gt;       wa_project type ty_project,&lt;/P&gt;&lt;P&gt;       wa_final type ty_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;internal table declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; data : itab_emp type tt_emp,&lt;/P&gt;&lt;P&gt;        itab_dept type tt_dept,&lt;/P&gt;&lt;P&gt;        itab_project type tt_project,&lt;/P&gt;&lt;P&gt;        itab_final type tt_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;layout declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data : gd_layout type slis_layout_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;assigning current program name.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data : gd_repid like sy-repid.&lt;/P&gt;&lt;P&gt;         gd_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;fieldcatalog declaration.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data : d_fieldcat type slis_t_fieldcat_alv,&lt;/P&gt;&lt;P&gt;         d_fieldcat_wa 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;header declaration.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data : t_header type slis_t_listheader,&lt;/P&gt;&lt;P&gt;         wa_header type slis_listheader,&lt;/P&gt;&lt;P&gt;         linecount(10) type c,&lt;/P&gt;&lt;P&gt;         line(10) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;selection-screen.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;&lt;/P&gt;&lt;P&gt; select-options : s_empid for zemployee-empid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; parameters : p_dname like zdepartment-deptname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; parameters : p_name like zemployee-empname matchcode object ZSEARCH_EMP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen : begin of line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; parameters : p_rad1 radiobutton group r1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; selection-screen comment 3(10) text-002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; parameters : p_rad2 radiobutton group r1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; selection-screen comment 16(10) text-003.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; selection-screen : end of line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; parameters : chk1 as checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; selection-screen : end of block blk1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;end of selection screen.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select empid empname empaddress city salary ponumber detid from zemployee into corresponding fields of table itab_emp where empid in s_empid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if not itab_emp is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select detid deptname designation projectid from zdepartment into corresponding fields of table itab_dept for all entries in itab_emp where detid = itab_emp-detid .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if not itab_dept is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select projectid technology clientname from zproject into corresponding fields of table itab_project for all entries in itab_dept where projectid = itab_dept-projectid.&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; endif.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;populating data into itab_final from itab_emp.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at itab_emp into wa_emp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; wa_final-empid = wa_emp-empid.&lt;/P&gt;&lt;P&gt; wa_final-empname = wa_emp-empname.&lt;/P&gt;&lt;P&gt; wa_final-empaddress = wa_emp-empaddress.&lt;/P&gt;&lt;P&gt; wa_final-ponumber = wa_emp-ponumber.&lt;/P&gt;&lt;P&gt; wa_final-city = wa_emp-city.&lt;/P&gt;&lt;P&gt; wa_final-salary = wa_emp-salary.&lt;/P&gt;&lt;P&gt; wa_final-detid = wa_emp-detid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append wa_final to itab_final.&lt;/P&gt;&lt;P&gt; clear wa_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*populating data into itab_final from itab_dept and itab_project&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at itab_final into wa_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; read table itab_dept into wa_dept with key detid = wa_final-detid.&lt;/P&gt;&lt;P&gt; if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; wa_final-deptname = wa_dept-deptname.&lt;/P&gt;&lt;P&gt; wa_final-designation = wa_dept-designation.&lt;/P&gt;&lt;P&gt; wa_final-projectid = wa_dept-projectid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; modify itab_final from wa_final transporting deptname designation projectid .&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; read table itab_project into wa_project with key projectid = wa_final-projectid.&lt;/P&gt;&lt;P&gt; if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; wa_final-technology = wa_project-technology.&lt;/P&gt;&lt;P&gt; wa_final-clientname = wa_project-clientname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify itab_final from wa_final transporting technology clientname.&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;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if p_rad1 = 'X' or chk1 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-fieldname = 'EMPID'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-seltext_l = 'Employee Id'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-emphasize = 'X'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-col_pos = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append d_fieldcat_wa to d_fieldcat.&lt;/P&gt;&lt;P&gt; clear d_fieldcat_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-fieldname = 'EMPNAME'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-seltext_l = 'Employee Name'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-emphasize = 'C710'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-col_pos = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append d_fieldcat_wa to d_fieldcat.&lt;/P&gt;&lt;P&gt; clear d_fieldcat_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d_fieldcat_wa-fieldname = 'EMPADDRESS'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-seltext_l = 'Employee Address'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-emphasize = 'C710'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-col_pos = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append d_fieldcat_wa to d_fieldcat.&lt;/P&gt;&lt;P&gt; clear d_fieldcat_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d_fieldcat_wa-fieldname = 'CITY'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-seltext_l = 'City'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-emphasize = 'C710'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-col_pos = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append d_fieldcat_wa to d_fieldcat.&lt;/P&gt;&lt;P&gt; clear d_fieldcat_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d_fieldcat_wa-fieldname = 'PONUMBER'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-seltext_l = 'Postal Number'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-emphasize = 'C710'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-col_pos = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append d_fieldcat_wa to d_fieldcat.&lt;/P&gt;&lt;P&gt; clear d_fieldcat_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d_fieldcat_wa-fieldname = 'DETID'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-seltext_l = 'Department Id'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-emphasize = 'X'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-col_pos = 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append d_fieldcat_wa to d_fieldcat.&lt;/P&gt;&lt;P&gt; clear d_fieldcat_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d_fieldcat_wa-fieldname = 'DEPTNAME'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-seltext_l = 'Department Name'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-emphasize = 'C710'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-col_pos = 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append d_fieldcat_wa to d_fieldcat.&lt;/P&gt;&lt;P&gt; clear d_fieldcat_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d_fieldcat_wa-fieldname = 'DESIGNATION'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-seltext_l = 'Designation'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-emphasize = 'C710'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-col_pos = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append d_fieldcat_wa to d_fieldcat.&lt;/P&gt;&lt;P&gt; clear d_fieldcat_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-fieldname = 'PROJECTID'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-seltext_l = 'Project Id'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-emphasize = 'X'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-col_pos = 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append d_fieldcat_wa to d_fieldcat.&lt;/P&gt;&lt;P&gt; clear d_fieldcat_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-fieldname = 'TECHNOLOGY'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-seltext_l = 'technology'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-emphasize = 'C710'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-col_pos = 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append d_fieldcat_wa to d_fieldcat.&lt;/P&gt;&lt;P&gt; clear d_fieldcat_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-fieldname = 'CLIENTNAME'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-seltext_l = 'Client Name'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-emphasize = 'C710'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-col_pos = 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append d_fieldcat_wa to d_fieldcat.&lt;/P&gt;&lt;P&gt; clear d_fieldcat_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d_fieldcat_wa-fieldname = 'SALARY'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-seltext_l = 'Employee Salary'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-do_sum = 'X'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-emphasize = 'C710'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-col_pos = 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append d_fieldcat_wa to d_fieldcat.&lt;/P&gt;&lt;P&gt; clear d_fieldcat_wa.&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; if p_rad2 = 'X' or chk1 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; refresh itab_emp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-fieldname = 'DETID'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-seltext_l = 'Department Id'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-emphasize = 'C710'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-col_pos = 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append d_fieldcat_wa to d_fieldcat.&lt;/P&gt;&lt;P&gt; clear d_fieldcat_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d_fieldcat_wa-fieldname = 'DEPTNAME'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-seltext_l = 'Department Name'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-emphasize = 'C710'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-col_pos = 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append d_fieldcat_wa to d_fieldcat.&lt;/P&gt;&lt;P&gt; clear d_fieldcat_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d_fieldcat_wa-fieldname = 'DESIGNATION'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-seltext_l = 'Designation'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-emphasize = 'C710'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-col_pos = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append d_fieldcat_wa to d_fieldcat.&lt;/P&gt;&lt;P&gt; clear d_fieldcat_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-fieldname = 'PROJECTID'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-seltext_l = 'Project Id'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-emphasize = 'C710'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-col_pos = 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append d_fieldcat_wa to d_fieldcat.&lt;/P&gt;&lt;P&gt; clear d_fieldcat_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-fieldname = 'TECHNOLOGY'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-seltext_l = 'technology'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-emphasize = 'C710'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-col_pos = 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append d_fieldcat_wa to d_fieldcat.&lt;/P&gt;&lt;P&gt; clear d_fieldcat_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-fieldname = 'CLIENTNAME'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-seltext_l = 'Client Name'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-emphasize = 'C710'.&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-col_pos = 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append d_fieldcat_wa to d_fieldcat.&lt;/P&gt;&lt;P&gt; clear d_fieldcat_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Grid display function module&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_INTERFACE_CHECK                 = ' '&lt;/P&gt;&lt;/LI&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;    I_CALLBACK_PROGRAM                = gd_repid&lt;/P&gt;&lt;P&gt;    I_CALLBACK_PF_STATUS_SET          = 'SET_PF_STATUS'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_CALLBACK_USER_COMMAND           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    I_CALLBACK_TOP_OF_PAGE            = 'TOP_OF_PAGE '&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_CALLBACK_HTML_TOP_OF_PAGE       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_CALLBACK_HTML_END_OF_LIST       = ' '&lt;/P&gt;&lt;/LI&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_BACKGROUND_ID                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    I_GRID_TITLE                      = 'EMPLOYEE DETAILS'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_GRID_SETTINGS                   =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IS_LAYOUT                         = gd_layout&lt;/P&gt;&lt;P&gt;    IT_FIELDCAT                       = d_fieldcat&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IT_EXCLUDING                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IT_SPECIAL_GROUPS                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IT_SORT                           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IT_FILTER                         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IS_SEL_HIDE                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_DEFAULT                         = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_SAVE                            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IS_VARIANT                        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IT_EVENTS                         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IT_EVENT_EXIT                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IS_PRINT                          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IS_REPREP_ID                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_SCREEN_START_COLUMN             = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_SCREEN_START_LINE               = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_SCREEN_END_COLUMN               = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_SCREEN_END_LINE                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_HTML_HEIGHT_TOP                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_HTML_HEIGHT_END                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IT_ALV_GRAPHICS                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IT_HYPERLINK                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IT_ADD_FIELDCAT                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IT_EXCEPT_QINFO                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IR_SALV_FULLSCREEN_ADAPTER        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   E_EXIT_CAUSED_BY_CALLER           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ES_EXIT_CAUSED_BY_USER            =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;     T_OUTTAB                          = itab_final&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;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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set pf_status for creating client specified icons.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;&lt;/P&gt;&lt;P&gt; set pf-status 'NEWSTATUS'.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;populating data into header using top_of_page&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; form top_of_page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; wa_header-typ = 'H'.&lt;/P&gt;&lt;P&gt; wa_header-info = 'ALV REPORT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append wa_header to t_header.&lt;/P&gt;&lt;P&gt; clear wa_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; wa_header-typ = 'S'.&lt;/P&gt;&lt;P&gt; wa_header-key = 'Date :'.&lt;/P&gt;&lt;P&gt; Concatenate sy-datum+6(2) '.'&lt;/P&gt;&lt;P&gt;             sy-datum+4(2) '.'&lt;/P&gt;&lt;P&gt;             sy-datum(4) into wa_header-info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  append wa_header to t_header.&lt;/P&gt;&lt;P&gt;  clear wa_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_header-typ = 'S'.&lt;/P&gt;&lt;P&gt; wa_header-key = 'Time :'.&lt;/P&gt;&lt;P&gt; Concatenate sy-Uzeit(2) '.'&lt;/P&gt;&lt;P&gt;             sy-datum+2(2) '.'&lt;/P&gt;&lt;P&gt;             sy-datum+4(2) into wa_header-info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  append wa_header to t_header.&lt;/P&gt;&lt;P&gt;  clear wa_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  describe table itab_final lines line.&lt;/P&gt;&lt;P&gt;  wa_header-typ = 'A'.&lt;/P&gt;&lt;P&gt;  linecount = line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Concatenate 'Total number of records :' linecount into wa_header-info separated by space.&lt;/P&gt;&lt;P&gt;  append wa_header to t_header.&lt;/P&gt;&lt;P&gt;  clear wa_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      IT_LIST_COMMENTARY       = t_header&lt;/P&gt;&lt;P&gt;      I_LOGO                   ='VMCADMIN'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    I_END_OF_LIST_GRID       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    I_ALV_FORM               =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*designing layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  form gd_layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  gd_layout-zebra = 'X'.&lt;/P&gt;&lt;P&gt;  gd_layout-edit = 'X'.&lt;/P&gt;&lt;P&gt;  gd_layout-no_hotspot = ''.&lt;/P&gt;&lt;P&gt;  gd_layout-no_colhead = ''.&lt;/P&gt;&lt;P&gt;  gd_layout-colwidth_optimize = 'X'.&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;Reward with points if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 07:02:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-reports/m-p/2776695#M647219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-18T07:02:21Z</dc:date>
    </item>
  </channel>
</rss>

