<?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 please send HR ALV format programs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-send-hr-alv-format-programs/m-p/1555274#M251545</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if any body develop the hr report in alv format pls send the code that wiil be usefull to me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;lakshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Sep 2006 10:05:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-28T10:05:32Z</dc:date>
    <item>
      <title>please send HR ALV format programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-send-hr-alv-format-programs/m-p/1555274#M251545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if any body develop the hr report in alv format pls send the code that wiil be usefull to me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;lakshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 10:05:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-send-hr-alv-format-programs/m-p/1555274#M251545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T10:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: please send HR ALV format programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-send-hr-alv-format-programs/m-p/1555275#M251546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/programs/custom/zp_postcode.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/programs/custom/zp_postcode.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refer the above link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vivek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward points for useful answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 10:08:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-send-hr-alv-format-programs/m-p/1555275#M251546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T10:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: please send HR ALV format programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-send-hr-alv-format-programs/m-p/1555276#M251547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at &lt;A href="http://www.sapdevelopment.co.uk/programs/custom/zp_postcode.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/programs/custom/zp_postcode.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.......................................................................&lt;/P&gt;&lt;P&gt;*: Report:  ZP_POSTCODE                                                :&lt;/P&gt;&lt;P&gt;*:                                                                     :&lt;/P&gt;&lt;P&gt;*: Author:  &lt;A href="https://community.sap.com/www.SAPDev.co.uk" target="test_blank"&gt;www.SAPDev.co.uk&lt;/A&gt;                                           :&lt;/P&gt;&lt;P&gt;*:                                                                     :&lt;/P&gt;&lt;P&gt;*: Date  :  2004                                                       :&lt;/P&gt;&lt;P&gt;*:                                                                     :&lt;/P&gt;&lt;P&gt;*: Description: Displays report of employees by postcode area,         :&lt;/P&gt;&lt;P&gt;*:              includes current travelling allowances (i.e. parking   :&lt;/P&gt;&lt;P&gt;*:              permit or transport card etc..)                        :&lt;/P&gt;&lt;P&gt;*:                                                                     :&lt;/P&gt;&lt;P&gt;*: Use:         Help encourage the use of car sharing and public       :&lt;/P&gt;&lt;P&gt;*:              transport where appropriate.                           :&lt;/P&gt;&lt;P&gt;*:.....................................................................:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zp_postcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-pools: slis.                                      "ALV Declarations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NODES: pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INFOTYPES: 0000, 0001, 0002, 0006, 0008, 0014, 0105, 0121.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK pcode WITH FRAME TITLE text-s01.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: so_pcode FOR p0006-pstlz.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK pcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF t_output,&lt;/P&gt;&lt;P&gt;  pernr       TYPE p0001-pernr,   "personnel name&lt;/P&gt;&lt;P&gt;  anredtxt    TYPE t522t-atext,   "title (based on p0002-anred)&lt;/P&gt;&lt;P&gt;  fname       TYPE p0002-vorna,   "first name&lt;/P&gt;&lt;P&gt;  lname       TYPE p0002-nachn,   "last name&lt;/P&gt;&lt;P&gt;  orgtx       TYPE t527x-orgtx,   "dept&lt;/P&gt;&lt;P&gt;  fte         TYPE p0008-bsgrd,   "fte&lt;/P&gt;&lt;P&gt;  parking(20) TYPE c,&lt;/P&gt;&lt;P&gt;  payslip     TYPE t526-sachn,        "payslip address&lt;/P&gt;&lt;P&gt;  telno       TYPE p0105-usrid_long,  "tel number(p0105-usrty = 0020)&lt;/P&gt;&lt;P&gt;  email       TYPE p0105-usrid_long,  "email (p0105-usrty = MAIL)&lt;/P&gt;&lt;P&gt;  postcode    type p0006-pstlz,&lt;/P&gt;&lt;P&gt; END OF t_output.&lt;/P&gt;&lt;P&gt;DATA: it_output TYPE STANDARD TABLE OF t_output INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;      wa_output TYPE t_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*ALV data declarations&lt;/P&gt;&lt;P&gt;data: fieldcatalog   type slis_t_fieldcat_alv with header line,&lt;/P&gt;&lt;P&gt;      gd_tab_group   type slis_t_sp_group_alv,&lt;/P&gt;&lt;P&gt;      gd_layout      type slis_layout_alv,&lt;/P&gt;&lt;P&gt;      gd_repid       like sy-repid,&lt;/P&gt;&lt;P&gt;      gt_events      type slis_t_event,&lt;/P&gt;&lt;P&gt;      gd_prntparams  type slis_print_alv,&lt;/P&gt;&lt;P&gt;      gd_count(6)    type n,&lt;/P&gt;&lt;P&gt;      gd_outtext(70) type c,&lt;/P&gt;&lt;P&gt;      gd_lines       type i.&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;*START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear: gd_count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET pernr.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Infotype 0121 is used to store multiple contracts for personnel.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Field p0121-hpern contains the personnel number for the main contract.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PROVIDE * from p0121 between pn-begda and pn-endda.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Check if main contract&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    if p0121-pernr ne p0121-hpern.&lt;/P&gt;&lt;P&gt;      reject.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  ENDPROVIDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  add 1 to gd_count.&lt;/P&gt;&lt;P&gt;  concatenate 'Processing personnel data'(m10) gd_count into gd_outtext&lt;/P&gt;&lt;P&gt;            separated by ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Display indicator for employee count&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  perform progress_indicator using gd_outtext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Retrieve datd from infotypes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  rp_provide_from_last p0000 space pn-begda pn-endda.&lt;/P&gt;&lt;P&gt;  rp_provide_from_last p0001 space pn-begda pn-endda.&lt;/P&gt;&lt;P&gt;  rp_provide_from_last p0002 space pn-begda pn-endda.&lt;/P&gt;&lt;P&gt;  rp_provide_from_last p0006 space pn-begda pn-endda.&lt;/P&gt;&lt;P&gt;  rp_provide_from_last p0008 space pn-begda pn-endda.&lt;/P&gt;&lt;P&gt;  rp_provide_from_last p0014 space pn-begda pn-endda.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check post code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CHECK p0006-pstlz IN so_pcode.  "cp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Post code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  wa_output-postcode = p0006-pstlz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Personnel number&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  wa_output-pernr = pernr-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Personnel title&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT SINGLE atext&lt;/P&gt;&lt;P&gt;    FROM t522t&lt;/P&gt;&lt;P&gt;    INTO wa_output-anredtxt&lt;/P&gt;&lt;P&gt;   WHERE sprsl EQ sy-langu AND&lt;/P&gt;&lt;P&gt;         anred EQ p0002-anred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;First name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  wa_output-fname = p0002-vorna.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Last name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  wa_output-lname = p0002-nachn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Organizational Unit text (dept)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT SINGLE orgtx&lt;/P&gt;&lt;P&gt;    FROM t527x&lt;/P&gt;&lt;P&gt;    INTO wa_output-orgtx&lt;/P&gt;&lt;P&gt;   WHERE sprsl EQ sy-langu AND&lt;/P&gt;&lt;P&gt;         orgeh EQ p0001-orgeh AND&lt;/P&gt;&lt;P&gt;         endda GE sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FTE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  wa_output-fte = p0008-bsgrd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Parking / travel deducted?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CASE p0014-lgart.&lt;/P&gt;&lt;P&gt;    WHEN '7180' OR '7181' OR '7182'.&lt;/P&gt;&lt;P&gt;      wa_output-parking = text-002.&lt;/P&gt;&lt;P&gt;    WHEN '7183'.&lt;/P&gt;&lt;P&gt;      wa_output-parking = text-001.&lt;/P&gt;&lt;P&gt;    WHEN '7171' OR '7172' or '7173' or '7174' or&lt;/P&gt;&lt;P&gt;         '7175' or '7176' or '7177' or '7178'.&lt;/P&gt;&lt;P&gt;      wa_output-parking = text-003.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Payslip Address&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT SINGLE sachn&lt;/P&gt;&lt;P&gt;    FROM t526&lt;/P&gt;&lt;P&gt;    INTO wa_output-payslip&lt;/P&gt;&lt;P&gt;   WHERE werks EQ p0001-werks AND&lt;/P&gt;&lt;P&gt;         sachx EQ p0001-sacha.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PROVIDE * from p0105 between pn-begda and pn-endda.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Telephone numbers&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    if p0105-usrty = '0020'.&lt;/P&gt;&lt;P&gt;       wa_output-telno = p0105-usrid_long.&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;  Email address&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    if p0105-usrty = 'MAIL'.&lt;/P&gt;&lt;P&gt;       wa_output-email = p0105-usrid_long.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  ENDPROVIDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  append wa_output to it_output.&lt;/P&gt;&lt;P&gt;  clear: wa_output.&lt;/P&gt;&lt;P&gt;&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; END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table it_output lines gd_lines.&lt;/P&gt;&lt;P&gt;if gd_lines gt 0.&lt;/P&gt;&lt;P&gt;  perform build_fieldcatalog.&lt;/P&gt;&lt;P&gt;  perform build_layout.&lt;/P&gt;&lt;P&gt;  perform display_alv_report.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  message i003(zp) with 'No records found'.&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;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;      Form  PROGRESS_INDICATOR&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Displays progress indicator on SAP screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 progress_indicator using p_text.&lt;/P&gt;&lt;P&gt;  call function 'SAPGUI_PROGRESS_INDICATOR'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        PERCENTAGE = 0&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           text       = p_text.&lt;/P&gt;&lt;P&gt;endform.                    " PROGRESS_INDICATOR&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;      Form  BUILD_FIELDCATALOG&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Build Fieldcatalog for ALV Report&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 build_fieldcatalog.&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'PERNR'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'Personnel No.'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 0.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 10.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; fieldcatalog-emphasize   = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; fieldcatalog-key         = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; fieldcatalog-do_sum      = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; fieldcatalog-no_zero     = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'ANREDTXT'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'Title'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 1.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'FNAME'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'First Name'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 2.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'LNAME'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'Last Name'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 3.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'ORGTX'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'Department'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 4.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'FTE'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'FTE'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 5.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'PARKING'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'Parking/Metrocard'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 6.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'PAYSLIP'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'Payslip Add.'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 7.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'TELNO'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'Telephone'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 8.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'EMAIL'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'E-mail'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 9.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'POSTCODE'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'Post code'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 10.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;endform.                    " BUILD_FIELDCATALOG&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;      Form  BUILD_LAYOUT&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Build layout for ALV grid report&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 build_layout.&lt;/P&gt;&lt;P&gt;  gd_layout-no_input          = 'X'.&lt;/P&gt;&lt;P&gt;  gd_layout-colwidth_optimize = 'X'.&lt;/P&gt;&lt;P&gt;  gd_layout-totals_text       = 'Totals'(201).&lt;/P&gt;&lt;P&gt;  gd_layout-zebra             = 'X'.&lt;/P&gt;&lt;P&gt;endform.                    " BUILD_LAYOUT&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;      Form  DISPLAY_ALV_REPORT&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Display report using ALV grid&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 display_alv_report.&lt;/P&gt;&lt;P&gt;  gd_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      = gd_repid&lt;/P&gt;&lt;P&gt;            is_layout               = gd_layout&lt;/P&gt;&lt;P&gt;            it_fieldcat             = fieldcatalog[]&lt;/P&gt;&lt;P&gt;            i_save                  = 'X'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            t_outtab                = it_output&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;endform.                    " DISPLAY_ALV_REPORT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Plz mark useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 10:10:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-send-hr-alv-format-programs/m-p/1555276#M251547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T10:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: please send HR ALV format programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-send-hr-alv-format-programs/m-p/1555277#M251548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also have a look at &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/sample-hr-reports-allocate-petrol-allowance.htm" target="test_blank"&gt;http://www.sap-img.com/abap/sample-hr-reports-allocate-petrol-allowance.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Plz mark useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 10:12:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-send-hr-alv-format-programs/m-p/1555277#M251548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T10:12:43Z</dc:date>
    </item>
  </channel>
</rss>

