<?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 getting data from cluster table RT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-from-cluster-table-rt/m-p/2390430#M531478</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a simple problem.&lt;/P&gt;&lt;P&gt;I would like to get data (rt-lgart, rt-betrg, rt-anzhl) from table RT in cluster pcl2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know PERNR and FPPER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to write all the code myself.&lt;/P&gt;&lt;P&gt;I DONT WANT TO INCLUDE ANYTHING!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do I do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        cd-key-pernr = pernr-pernr.&lt;/P&gt;&lt;P&gt;        cd-key-fpper = pn-begda(6).&lt;/P&gt;&lt;P&gt;        cd-key-srtza = 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        import rt to it-rt from database pcl2(rt) id cd-key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it dosn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jun 2007 09:12:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-12T09:12:14Z</dc:date>
    <item>
      <title>getting data from cluster table RT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-from-cluster-table-rt/m-p/2390430#M531478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a simple problem.&lt;/P&gt;&lt;P&gt;I would like to get data (rt-lgart, rt-betrg, rt-anzhl) from table RT in cluster pcl2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know PERNR and FPPER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to write all the code myself.&lt;/P&gt;&lt;P&gt;I DONT WANT TO INCLUDE ANYTHING!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do I do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        cd-key-pernr = pernr-pernr.&lt;/P&gt;&lt;P&gt;        cd-key-fpper = pn-begda(6).&lt;/P&gt;&lt;P&gt;        cd-key-srtza = 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        import rt to it-rt from database pcl2(rt) id cd-key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it dosn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 09:12:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-from-cluster-table-rt/m-p/2390430#M531478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T09:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: getting data from cluster table RT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-from-cluster-table-rt/m-p/2390431#M531479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This is a spcial cluster which is related to HR payroll&lt;/P&gt;&lt;P&gt;This is unlike other cluster tables like KONV or BSEG.&lt;/P&gt;&lt;P&gt;Payroll processing is different from other ABAP.&lt;/P&gt;&lt;P&gt;See an example report code, how to handle the RT cluster.&lt;/P&gt;&lt;P&gt;Only after cluster imports it has to be used.&lt;/P&gt;&lt;P&gt;report zovertime&lt;/P&gt;&lt;P&gt;line-size 252&lt;/P&gt;&lt;P&gt;line-count 60(1)&lt;/P&gt;&lt;P&gt;no standard page heading&lt;/P&gt;&lt;P&gt;message-id zndc.&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;Database Tables &amp;amp; Infotypes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: pcl1, " HR Cluster1&lt;/P&gt;&lt;P&gt;pcl2, " HR Cluster1&lt;/P&gt;&lt;P&gt;pa0003, " Master data - Payroll Status&lt;/P&gt;&lt;P&gt;cskt, " Cost Center Texts&lt;/P&gt;&lt;P&gt;t528t, " Positions Texts&lt;/P&gt;&lt;P&gt;t513s, " Job Titles&lt;/P&gt;&lt;P&gt;pernr, " Logical PNP&lt;/P&gt;&lt;P&gt;t001p, " Personnel Subarea&lt;/P&gt;&lt;P&gt;t500p, " Personnel Area&lt;/P&gt;&lt;P&gt;t501, " Employee Group&lt;/P&gt;&lt;P&gt;t503k, " Employee Subgroup&lt;/P&gt;&lt;P&gt;csks. " Cost Center&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;infotypes:0000,0001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*include rpclst00.&lt;/P&gt;&lt;P&gt;include rpc2rx00.&lt;/P&gt;&lt;P&gt;include rpc2rxx0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include rpc2cd00.&lt;/P&gt;&lt;P&gt;*include rpc2ps00.&lt;/P&gt;&lt;P&gt;*include rpc2pt00.&lt;/P&gt;&lt;P&gt;*include rpcfvp00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*include rpcfdc10.&lt;/P&gt;&lt;P&gt;*include rpcfdc00.&lt;/P&gt;&lt;P&gt;include rpppxd00.&lt;/P&gt;&lt;P&gt;include rpppxd10.&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;Declaration of Internal Tables&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;Internal Table for Output Data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: begin of rep_tab occurs 0,&lt;/P&gt;&lt;P&gt;kostl like pa0001-kostl, " Cost Center&lt;/P&gt;&lt;P&gt;pernr like pa0001-pernr, " Personal Number&lt;/P&gt;&lt;P&gt;ename like pa0001-ename, " Employee Name&lt;/P&gt;&lt;P&gt;ctext like cskt-ltext, " Cost Center Text&lt;/P&gt;&lt;P&gt;ptext like t528t-plstx, " Position Text&lt;/P&gt;&lt;P&gt;ot1 type p decimals 2, " Jan OT Amount&lt;/P&gt;&lt;P&gt;ot2 type p decimals 2, " Feb OT Amount&lt;/P&gt;&lt;P&gt;ot3 type p decimals 2, " Mar OT Amount&lt;/P&gt;&lt;P&gt;ot4 type p decimals 2, " Apr OT Amount&lt;/P&gt;&lt;P&gt;ot5 type p decimals 2, " May OT Amount&lt;/P&gt;&lt;P&gt;ot6 type p decimals 2, " Jun OT Amount&lt;/P&gt;&lt;P&gt;ot7 type p decimals 2, " Jul OT Amount&lt;/P&gt;&lt;P&gt;ot8 type p decimals 2, " Aug OT Amount&lt;/P&gt;&lt;P&gt;ot9 type p decimals 2, " Sep OT Amount&lt;/P&gt;&lt;P&gt;ot10 type p decimals 2, " Oct OT Amount&lt;/P&gt;&lt;P&gt;ot11 type p decimals 2, " Nov OT Amount&lt;/P&gt;&lt;P&gt;ot12 type p decimals 2, " Dec OT Amount&lt;/P&gt;&lt;P&gt;ott type p decimals 2, " Total OT Amount&lt;/P&gt;&lt;P&gt;end of rep_tab.&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;Declaration of Variables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;data: v_mon(2) type n, " Month&lt;/P&gt;&lt;P&gt;v_no type i, " Data Lines&lt;/P&gt;&lt;P&gt;v_year(4) type c, " Year&lt;/P&gt;&lt;P&gt;v_date like sy-datum, " Date&lt;/P&gt;&lt;P&gt;v_date1 like sy-datum, " Date&lt;/P&gt;&lt;P&gt;v_seqnr like pc261-seqnr. " Sequence No.&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;Declaration of Constants&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;data: c_type like hrp1001-otype value 'S', " Object Type&lt;/P&gt;&lt;P&gt;c_kokrs like cskt-kokrs value '1000', " Controlling Area&lt;/P&gt;&lt;P&gt;c_date1 like sy-datum value '18000101', " Date&lt;/P&gt;&lt;P&gt;c_date2 like sy-datum value '99991231', " Date&lt;/P&gt;&lt;P&gt;c_x type c value 'X', " Sign&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;c_mon(2) type c value '01', " Month&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;c_val1(2) type c value '31', " Date&lt;/P&gt;&lt;P&gt;c_val2(2) type c value '12', " Month Type&lt;/P&gt;&lt;P&gt;c_val like p0041-dar01 value '01', " Date Type&lt;/P&gt;&lt;P&gt;c_lgart1 like p0008-lga01 value '0722', " Wage Type&lt;/P&gt;&lt;P&gt;c_lgart2 like p0008-lga01 value '0723', " Wage Type&lt;/P&gt;&lt;P&gt;c_1(2) type n value '01', " Month1&lt;/P&gt;&lt;P&gt;c_2(2) type n value '02', " Month2&lt;/P&gt;&lt;P&gt;c_3(2) type n value '03', " Month3&lt;/P&gt;&lt;P&gt;c_4(2) type n value '04', " Month4&lt;/P&gt;&lt;P&gt;c_5(2) type n value '05', " Month5&lt;/P&gt;&lt;P&gt;c_6(2) type n value '06', " Month6&lt;/P&gt;&lt;P&gt;c_7(2) type n value '07', " Month7&lt;/P&gt;&lt;P&gt;c_8(2) type n value '08', " Month8&lt;/P&gt;&lt;P&gt;c_9(2) type n value '09', " Month9&lt;/P&gt;&lt;P&gt;c_10(2) type n value '10', " Month10&lt;/P&gt;&lt;P&gt;c_11(2) type n value '11', " Month11&lt;/P&gt;&lt;P&gt;c_12(2) type n value '12'. " Month12&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;Selection-screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;parameters:&lt;/P&gt;&lt;P&gt;p_year like pc2b0-pabrj obligatory. " Payroll Year&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;At selection-screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validate the Selection Screen fields&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;perform validate_screen.&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&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Selection of Period&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;perform get_period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get PERNR from LDB&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;get pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the Master data from infotype 0001&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;perform get_master_data.&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;Top-of-page&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;top-of-page.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Write the Report and Column Headings&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;perform top_of_page.&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;End-of-Page&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;end-of-page.&lt;/P&gt;&lt;P&gt;write /1(252) sy-uline.&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;End-of-Selection&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;end-of-selection.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Display the Output Report.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;perform display_report.&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;Form-Routines&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 validate_screen&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;Validation of selection Screen fields&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 validate_screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validation of Cost Center&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;clear csks.&lt;/P&gt;&lt;P&gt;if not pnpkostl[] is initial.&lt;/P&gt;&lt;P&gt;select single kostl&lt;/P&gt;&lt;P&gt;into csks-kostl&lt;/P&gt;&lt;P&gt;from csks&lt;/P&gt;&lt;P&gt;where kostl in pnpkostl.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message e999 with 'Invalid Cost Center'(003).&lt;/P&gt;&lt;P&gt;endif.&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;Validation of Personnel Number&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;clear pa0003.&lt;/P&gt;&lt;P&gt;if not pnppernr[] is initial.&lt;/P&gt;&lt;P&gt;select pernr&lt;/P&gt;&lt;P&gt;from pa0003 up to 1 rows&lt;/P&gt;&lt;P&gt;into pa0003-pernr&lt;/P&gt;&lt;P&gt;where pernr in pnppernr.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message e999 with 'Incorrect Personal Number Entered'(002).&lt;/P&gt;&lt;P&gt;endif.&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;Validation of Personnel Area&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;clear t500p.&lt;/P&gt;&lt;P&gt;if not pnpwerks[] is initial.&lt;/P&gt;&lt;P&gt;select persa&lt;/P&gt;&lt;P&gt;from t500p up to 1 rows&lt;/P&gt;&lt;P&gt;into t500p-persa&lt;/P&gt;&lt;P&gt;where persa in pnpwerks.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message e999 with 'Incorrect Personnel Area Entered'(001).&lt;/P&gt;&lt;P&gt;endif.&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;Validation of Personnel Sub Area&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;clear t001p.&lt;/P&gt;&lt;P&gt;if not pnpbtrtl[] is initial.&lt;/P&gt;&lt;P&gt;select btrtl&lt;/P&gt;&lt;P&gt;from t001p up to 1 rows&lt;/P&gt;&lt;P&gt;into t001p-btrtl&lt;/P&gt;&lt;P&gt;where btrtl in pnpbtrtl.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message e999 with 'Incorrect Personnel Sub Area Entered'(037).&lt;/P&gt;&lt;P&gt;endif.&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;Validation of Employee Group&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;clear t501.&lt;/P&gt;&lt;P&gt;if not pnppersg[] is initial.&lt;/P&gt;&lt;P&gt;select persg&lt;/P&gt;&lt;P&gt;from t501 up to 1 rows&lt;/P&gt;&lt;P&gt;into t501-persg&lt;/P&gt;&lt;P&gt;where persg in pnppersg.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message e999 with 'Incorrect Employee Group Entered'(038).&lt;/P&gt;&lt;P&gt;endif.&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;Validation of Employee Sub Group&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;clear t503k.&lt;/P&gt;&lt;P&gt;if not pnppersk[] is initial.&lt;/P&gt;&lt;P&gt;select persk&lt;/P&gt;&lt;P&gt;from t503k up to 1 rows&lt;/P&gt;&lt;P&gt;into t503k-persk&lt;/P&gt;&lt;P&gt;where persk in pnppersk.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message e999 with 'Incorrect Employee Sub Group Entered'(039).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform. "validate_screen&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 get_period&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;Get the Correct Period based on Selection screen selection&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 get_period.&lt;/P&gt;&lt;P&gt;clear: v_year,v_mon, v_date, v_date1.&lt;/P&gt;&lt;P&gt;v_year = sy-datum+0(4).&lt;/P&gt;&lt;P&gt;v_mon = sy-datum+4(2).&lt;/P&gt;&lt;P&gt;if pnptimr1 = c_x. " Current Date&lt;/P&gt;&lt;P&gt;pnpbegda = sy-datum.&lt;/P&gt;&lt;P&gt;pnpendda = sy-datum.&lt;/P&gt;&lt;P&gt;elseif pnptimr2 = c_x. " Current Month&lt;/P&gt;&lt;P&gt;concatenate v_year v_mon c_val into v_date.&lt;/P&gt;&lt;P&gt;concatenate v_year v_mon c_val1 into v_date1.&lt;/P&gt;&lt;P&gt;pnpbegda = v_date.&lt;/P&gt;&lt;P&gt;pnpendda = v_date1.&lt;/P&gt;&lt;P&gt;elseif pnptimr3 = c_x. " Current Year&lt;/P&gt;&lt;P&gt;concatenate v_year c_val c_val into v_date.&lt;/P&gt;&lt;P&gt;concatenate v_year c_val2 c_val1 into v_date1.&lt;/P&gt;&lt;P&gt;pnpbegda = v_date.&lt;/P&gt;&lt;P&gt;pnpendda = v_date1.&lt;/P&gt;&lt;P&gt;elseif pnptimr4 = c_x. " Upto Today&lt;/P&gt;&lt;P&gt;pnpbegda = c_date1.&lt;/P&gt;&lt;P&gt;pnpendda = sy-datum.&lt;/P&gt;&lt;P&gt;elseif pnptimr5 = c_x. " From Today&lt;/P&gt;&lt;P&gt;pnpbegda = sy-datum.&lt;/P&gt;&lt;P&gt;pnpendda = c_date2.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;if ( pnpbegda is initial and pnpendda is initial ).&lt;/P&gt;&lt;P&gt;pnpbegda = c_date1.&lt;/P&gt;&lt;P&gt;pnpendda = c_date2.&lt;/P&gt;&lt;P&gt;elseif pnpbegda is initial and not pnpendda is initial.&lt;/P&gt;&lt;P&gt;pnpbegda = c_date1.&lt;/P&gt;&lt;P&gt;pnpendda = pnpendda.&lt;/P&gt;&lt;P&gt;elseif not ( pnpbegda is initial and pnpendda is initial ).&lt;/P&gt;&lt;P&gt;pnpbegda = pnpbegda.&lt;/P&gt;&lt;P&gt;pnpendda = pnpendda.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endform. "get_period&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 get_master_data&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;Get the Master Data from Database Tables PA0001,0002,0003&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;form get_master_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get data from Respective Infotypes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;rp_provide_from_last p0001 space pnpbegda pnpendda.&lt;/P&gt;&lt;P&gt;if p0001-kostl in pnpkostl.&lt;/P&gt;&lt;P&gt;rep_tab-kostl = p0001-kostl.&lt;/P&gt;&lt;P&gt;rep_tab-pernr = p0001-pernr.&lt;/P&gt;&lt;P&gt;rep_tab-ename = p0001-ename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the Position Text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;clear t528t-plstx.&lt;/P&gt;&lt;P&gt;select single plstx into t528t-plstx from t528t&lt;/P&gt;&lt;P&gt;where plans = p0001-plans and&lt;/P&gt;&lt;P&gt;otype = c_type and&lt;/P&gt;&lt;P&gt;sprsl = sy-langu.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;rep_tab-ptext = t528t-plstx.&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;Get the Cost Center Text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;clear cskt-ltext.&lt;/P&gt;&lt;P&gt;select single ltext into cskt-ltext from cskt&lt;/P&gt;&lt;P&gt;where spras = sy-langu and&lt;/P&gt;&lt;P&gt;kokrs = c_kokrs and&lt;/P&gt;&lt;P&gt;kostl = p0001-kostl.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;rep_tab-ctext = cskt-ltext.&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;Get the Overtime Payment Data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;perform get_ot_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rep_tab-ott = rep_tab-ot1 + rep_tab-ot2 + rep_tab-ot3 +&lt;/P&gt;&lt;P&gt;rep_tab-ot4 + rep_tab-ot5 + rep_tab-ot6 +&lt;/P&gt;&lt;P&gt;rep_tab-ot7 + rep_tab-ot8 + rep_tab-ot9 +&lt;/P&gt;&lt;P&gt;rep_tab-ot10 + rep_tab-ot11 + rep_tab-ot12.&lt;/P&gt;&lt;P&gt;append rep_tab.&lt;/P&gt;&lt;P&gt;clear rep_tab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;sort rep_tab by kostl pernr.&lt;/P&gt;&lt;P&gt;delete rep_tab where kostl = ' '.&lt;/P&gt;&lt;P&gt;delete rep_tab where ott = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform. "get_master_data&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 get_ot_data&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;Get the Overtime Payment Data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;form get_ot_data.&lt;/P&gt;&lt;P&gt;cd-key = pernr-pernr.&lt;/P&gt;&lt;P&gt;rp-imp-c2-cd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort rgdir by seqnr.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To get sequence number for the payroll period&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;loop at rgdir where void is initial&lt;/P&gt;&lt;P&gt;and reversal is initial&lt;/P&gt;&lt;P&gt;and outofseq is initial&lt;/P&gt;&lt;P&gt;and srtza eq 'A'.&lt;/P&gt;&lt;P&gt;if rgdir-fpper+0(4) = p_year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To consider offcycle run data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if not rgdir-ocrsn is initial.&lt;/P&gt;&lt;P&gt;v_seqnr = rgdir-seqnr.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;v_seqnr = rgdir-seqnr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if not v_seqnr is initial.&lt;/P&gt;&lt;P&gt;perform import_rx.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;perform process_wagetypes.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endform. "get_ot_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include rpppxm00.&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 Import_rx&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;Import the RX data from Clusters&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 import_rx.&lt;/P&gt;&lt;P&gt;rx-key-pernr = cd-key-pernr.&lt;/P&gt;&lt;P&gt;rx-key-seqno = v_seqnr.&lt;/P&gt;&lt;P&gt;rp-init-buffer.&lt;/P&gt;&lt;P&gt;rp-imp-c2-rx.&lt;/P&gt;&lt;P&gt;endform. " Import_rx&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 Process_wagetypes&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;Calculate the Overtime Amount based on Wage types&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 process_wagetypes.&lt;/P&gt;&lt;P&gt;loop at rt.&lt;/P&gt;&lt;P&gt;if rt-lgart = c_lgart1 or rt-lgart = c_lgart2.&lt;/P&gt;&lt;P&gt;if rgdir-fpper+0(4) = p_year.&lt;/P&gt;&lt;P&gt;v_mon = rgdir-fpper+4(2).&lt;/P&gt;&lt;P&gt;case v_mon .&lt;/P&gt;&lt;P&gt;when c_1.&lt;/P&gt;&lt;P&gt;rep_tab-ot1 = rep_tab-ot1 + rt-betrg.&lt;/P&gt;&lt;P&gt;when c_2.&lt;/P&gt;&lt;P&gt;rep_tab-ot2 = rep_tab-ot2 + rt-betrg.&lt;/P&gt;&lt;P&gt;when c_3.&lt;/P&gt;&lt;P&gt;rep_tab-ot3 = rep_tab-ot3 + rt-betrg.&lt;/P&gt;&lt;P&gt;when c_4.&lt;/P&gt;&lt;P&gt;rep_tab-ot4 = rep_tab-ot4 + rt-betrg.&lt;/P&gt;&lt;P&gt;when c_5.&lt;/P&gt;&lt;P&gt;rep_tab-ot5 = rep_tab-ot5 + rt-betrg.&lt;/P&gt;&lt;P&gt;when c_6.&lt;/P&gt;&lt;P&gt;rep_tab-ot6 = rep_tab-ot6 + rt-betrg.&lt;/P&gt;&lt;P&gt;when c_7.&lt;/P&gt;&lt;P&gt;rep_tab-ot7 = rep_tab-ot7 + rt-betrg.&lt;/P&gt;&lt;P&gt;when c_8.&lt;/P&gt;&lt;P&gt;rep_tab-ot8 = rep_tab-ot8 + rt-betrg.&lt;/P&gt;&lt;P&gt;when c_9.&lt;/P&gt;&lt;P&gt;rep_tab-ot9 = rep_tab-ot9 + rt-betrg.&lt;/P&gt;&lt;P&gt;when c_10.&lt;/P&gt;&lt;P&gt;rep_tab-ot10 = rep_tab-ot10 + rt-betrg.&lt;/P&gt;&lt;P&gt;when c_11.&lt;/P&gt;&lt;P&gt;rep_tab-ot11 = rep_tab-ot11 + rt-betrg.&lt;/P&gt;&lt;P&gt;when c_12.&lt;/P&gt;&lt;P&gt;rep_tab-ot12 = rep_tab-ot12 + rt-betrg.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endform. "process_wagetypes&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 top_of_page&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;Write the Report and Column Headings&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 top_of_page.&lt;/P&gt;&lt;P&gt;format color col_heading on.&lt;/P&gt;&lt;P&gt;write: /1(252) 'NATIONAL DRILLING COMPANY'(010) centered,&lt;/P&gt;&lt;P&gt;/1(252) 'Overtime Payments Details'(011) centered.&lt;/P&gt;&lt;P&gt;format color off.&lt;/P&gt;&lt;P&gt;if pnptimr1 = c_x. " Current Date&lt;/P&gt;&lt;P&gt;write: /2 'Period From :'(036), sy-datum, 'To:'(006), sy-datum.&lt;/P&gt;&lt;P&gt;elseif pnptimr2 = c_x. " Current Month&lt;/P&gt;&lt;P&gt;write: /2 'Period From :'(036), v_date, 'To:'(006), v_date1.&lt;/P&gt;&lt;P&gt;elseif pnptimr3 = c_x. " Current Year&lt;/P&gt;&lt;P&gt;write: /2 'Period From :'(036), v_date, 'To:'(006), v_date1.&lt;/P&gt;&lt;P&gt;elseif pnptimr4 = c_x. " Upto Today&lt;/P&gt;&lt;P&gt;write: /2 'Period From :'(036), c_date1, 'To:'(006), sy-datum.&lt;/P&gt;&lt;P&gt;elseif pnptimr5 = c_x. " From Today&lt;/P&gt;&lt;P&gt;write: /2 'Period From :'(036), sy-datum, 'To:'(006), c_date2.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;if ( pnpbegda is initial and pnpendda is initial ).&lt;/P&gt;&lt;P&gt;write: /2 'Period From :'(036), c_date1, 'To:'(006), c_date2.&lt;/P&gt;&lt;P&gt;elseif pnpbegda is initial and not pnpendda is initial.&lt;/P&gt;&lt;P&gt;write: /2 'Period From :'(036), c_date1, 'To:'(006), pnpendda.&lt;/P&gt;&lt;P&gt;elseif not ( pnpbegda is initial and pnpendda is initial ).&lt;/P&gt;&lt;P&gt;write: /2 'Period From :'(036), pnpbegda,&lt;/P&gt;&lt;P&gt;'To:'(006), pnpendda.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;write: 219 'Report Run Date:'(018), sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not pnpkostl[] is initial.&lt;/P&gt;&lt;P&gt;if pnpkostl-high is initial.&lt;/P&gt;&lt;P&gt;write: /2 'Cost Center :'(004), pnpkostl-low,&lt;/P&gt;&lt;P&gt;219 'Time :'(020), sy-uzeit.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;write: /2 'Cost Center From:'(005), pnpkostl-low+7(3),&lt;/P&gt;&lt;P&gt;'To:'(006), pnpkostl-high,&lt;/P&gt;&lt;P&gt;219 'Time :'(020), sy-uzeit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;write: /219 'Time :'(020), sy-uzeit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not pnppernr[] is initial.&lt;/P&gt;&lt;P&gt;if pnppernr-high is initial.&lt;/P&gt;&lt;P&gt;write: /2 'Personal Number :'(007), pnppernr-low,&lt;/P&gt;&lt;P&gt;219 'User :'(021), sy-uname.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;write: /2 'Personal No.From:'(008), pnppernr-low,&lt;/P&gt;&lt;P&gt;'To:'(006), pnppernr-high,&lt;/P&gt;&lt;P&gt;219 'User :'(021), sy-uname.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;write: /219 'User :'(021), sy-uname.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;write: /219 'Page No :'(022), sy-pagno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format color col_heading.&lt;/P&gt;&lt;P&gt;write /1(252) sy-uline.&lt;/P&gt;&lt;P&gt;write:/1 sy-vline, 10 sy-vline,&lt;/P&gt;&lt;P&gt;41 sy-vline,&lt;/P&gt;&lt;P&gt;67 sy-vline, 68(167) 'Overtime Payments(Dirhams)'(013) centered,&lt;/P&gt;&lt;P&gt;235 sy-vline,252 sy-vline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format color col_heading.&lt;/P&gt;&lt;P&gt;write:/1 sy-vline, 2(8) 'Emp #'(019) centered,&lt;/P&gt;&lt;P&gt;10 sy-vline, 11(30) 'Employee Name'(012) centered,&lt;/P&gt;&lt;P&gt;41 sy-vline, 42(25) 'Position'(014) centered,&lt;/P&gt;&lt;P&gt;67 sy-vline, 68(167) sy-uline,&lt;/P&gt;&lt;P&gt;235 sy-vline,236(16) 'Total'(017) centered,&lt;/P&gt;&lt;P&gt;252 sy-vline.&lt;/P&gt;&lt;P&gt;write:/1 sy-vline, 10 sy-vline,&lt;/P&gt;&lt;P&gt;41 sy-vline,&lt;/P&gt;&lt;P&gt;67 sy-vline, 68(13) 'JANUARY'(024) centered,&lt;/P&gt;&lt;P&gt;81 sy-vline, 82(13) 'FEBRUARY'(025) centered,&lt;/P&gt;&lt;P&gt;95 sy-vline, 96(13) 'MARCH'(026) centered,&lt;/P&gt;&lt;P&gt;109 sy-vline,110(13) 'APRIL'(027) centered,&lt;/P&gt;&lt;P&gt;123 sy-vline,124(13) 'MAY'(028) centered,&lt;/P&gt;&lt;P&gt;137 sy-vline,138(13) 'JUNE'(029) centered,&lt;/P&gt;&lt;P&gt;151 sy-vline,152(13) 'JULY'(030) centered,&lt;/P&gt;&lt;P&gt;165 sy-vline,166(13) 'AUGUST'(031) centered,&lt;/P&gt;&lt;P&gt;179 sy-vline,180(13) 'SEPTEMBER'(032) centered,&lt;/P&gt;&lt;P&gt;193 sy-vline,194(13) 'OCTOBER'(033) centered,&lt;/P&gt;&lt;P&gt;207 sy-vline,208(13) 'NOVEMBER'(034) centered,&lt;/P&gt;&lt;P&gt;221 sy-vline,222(13) 'DECEMBER'(035) centered,&lt;/P&gt;&lt;P&gt;235 sy-vline,252 sy-vline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format color off.&lt;/P&gt;&lt;P&gt;write /1(252) sy-uline.&lt;/P&gt;&lt;P&gt;endform. "top_of_page&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_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;Write the Report Output&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_report.&lt;/P&gt;&lt;P&gt;clear v_no.&lt;/P&gt;&lt;P&gt;describe table rep_tab lines v_no.&lt;/P&gt;&lt;P&gt;if v_no = 0.&lt;/P&gt;&lt;P&gt;message i999 with&lt;/P&gt;&lt;P&gt;'No Data found for the entered Selection'(015).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;loop at rep_tab.&lt;/P&gt;&lt;P&gt;format color 3.&lt;/P&gt;&lt;P&gt;at new kostl.&lt;/P&gt;&lt;P&gt;read table rep_tab index sy-tabix.&lt;/P&gt;&lt;P&gt;write:/1 sy-vline, 2(12) 'Cost Center:'(009),&lt;/P&gt;&lt;P&gt;14(10) rep_tab-kostl,&lt;/P&gt;&lt;P&gt;25(30) rep_tab-ctext,&lt;/P&gt;&lt;P&gt;252 sy-vline.&lt;/P&gt;&lt;P&gt;format color off.&lt;/P&gt;&lt;P&gt;write /1(252) sy-uline.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;format color col_normal.&lt;/P&gt;&lt;P&gt;write: /1 sy-vline, 2(8) rep_tab-pernr,&lt;/P&gt;&lt;P&gt;10 sy-vline, 11(30) rep_tab-ename,&lt;/P&gt;&lt;P&gt;41 sy-vline, 42(25) rep_tab-ptext,&lt;/P&gt;&lt;P&gt;67 sy-vline, 68(13) rep_tab-ot1 no-zero,&lt;/P&gt;&lt;P&gt;81 sy-vline, 82(13) rep_tab-ot2 no-zero,&lt;/P&gt;&lt;P&gt;95 sy-vline, 96(13) rep_tab-ot3 no-zero,&lt;/P&gt;&lt;P&gt;109 sy-vline,110(13) rep_tab-ot4 no-zero,&lt;/P&gt;&lt;P&gt;123 sy-vline,124(13) rep_tab-ot5 no-zero,&lt;/P&gt;&lt;P&gt;137 sy-vline,138(13) rep_tab-ot6 no-zero,&lt;/P&gt;&lt;P&gt;151 sy-vline,152(13) rep_tab-ot7 no-zero,&lt;/P&gt;&lt;P&gt;165 sy-vline,166(13) rep_tab-ot8 no-zero,&lt;/P&gt;&lt;P&gt;179 sy-vline,180(13) rep_tab-ot9 no-zero,&lt;/P&gt;&lt;P&gt;193 sy-vline,194(13) rep_tab-ot10 no-zero,&lt;/P&gt;&lt;P&gt;207 sy-vline,208(13) rep_tab-ot11 no-zero,&lt;/P&gt;&lt;P&gt;221 sy-vline,222(13) rep_tab-ot12 no-zero,&lt;/P&gt;&lt;P&gt;235 sy-vline,236(16) rep_tab-ott no-zero,&lt;/P&gt;&lt;P&gt;252 sy-vline.&lt;/P&gt;&lt;P&gt;at end of kostl.&lt;/P&gt;&lt;P&gt;write /1(252) sy-uline.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;format color off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at last.&lt;/P&gt;&lt;P&gt;sum.&lt;/P&gt;&lt;P&gt;format color 1.&lt;/P&gt;&lt;P&gt;write: /1 sy-vline,&lt;/P&gt;&lt;P&gt;10 sy-vline, 11(30) 'Total'(017) centered,&lt;/P&gt;&lt;P&gt;41 sy-vline,&lt;/P&gt;&lt;P&gt;67 sy-vline, 68(13) rep_tab-ot1 no-zero,&lt;/P&gt;&lt;P&gt;81 sy-vline, 82(13) rep_tab-ot2 no-zero,&lt;/P&gt;&lt;P&gt;95 sy-vline, 96(13) rep_tab-ot3 no-zero,&lt;/P&gt;&lt;P&gt;109 sy-vline,110(13) rep_tab-ot4 no-zero,&lt;/P&gt;&lt;P&gt;123 sy-vline,124(13) rep_tab-ot5 no-zero,&lt;/P&gt;&lt;P&gt;137 sy-vline,138(13) rep_tab-ot6 no-zero,&lt;/P&gt;&lt;P&gt;151 sy-vline,152(13) rep_tab-ot7 no-zero,&lt;/P&gt;&lt;P&gt;165 sy-vline,166(13) rep_tab-ot8 no-zero,&lt;/P&gt;&lt;P&gt;179 sy-vline,180(13) rep_tab-ot9 no-zero,&lt;/P&gt;&lt;P&gt;193 sy-vline,194(13) rep_tab-ot10 no-zero,&lt;/P&gt;&lt;P&gt;207 sy-vline,208(13) rep_tab-ot11 no-zero,&lt;/P&gt;&lt;P&gt;221 sy-vline,222(13) rep_tab-ot12 no-zero,&lt;/P&gt;&lt;P&gt;235 sy-vline,236(16) rep_tab-ott no-zero,&lt;/P&gt;&lt;P&gt;252 sy-vline.&lt;/P&gt;&lt;P&gt;write /1(252) sy-uline.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;format color off.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endform. "display_report&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, 12 Jun 2007 09:21:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-from-cluster-table-rt/m-p/2390431#M531479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T09:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: getting data from cluster table RT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-from-cluster-table-rt/m-p/2390432#M531480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but as I wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I DON'T WANT TO INCLUDE ANYTHING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 10:10:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-from-cluster-table-rt/m-p/2390432#M531480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T10:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: getting data from cluster table RT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-from-cluster-table-rt/m-p/2390433#M531481</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;i dont have the code but i can tell u the process:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example u have to extract data for RT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the Function Module - 'CU_READ_RGDIR_NEW'.&lt;/P&gt;&lt;P&gt;Enter the Employee Number.&lt;/P&gt;&lt;P&gt;Store the Tables parameter 'IN_RGDIR' data in internal table of type 'PC261'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the retrieved records  in 'IN_RGDIR' u can read those which match your dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So from that final record u can extract the SEQNR and use the PERNR and SEQNR as importing parameters in the Function Module : 'PYXX_READ_PAYROLL_RESULT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store the Tables parameter  'PAYROLL_RESULT' in an internal table of type 'PAY99_RESULT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example : RESULT TYPE PAY99_RESULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The INTER parameter of the structure PAY99_RESULT will contain the type RT and also others (BT, WPBP etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to the Component type of the RT and the line type is PC207. &lt;/P&gt;&lt;P&gt;So at the start of the program u will have to make an Internal table with the type PC207.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Award points if it's useful. This way you dont have to include any files or use any macros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vaibhav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 16:40:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-from-cluster-table-rt/m-p/2390433#M531481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-08T16:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: getting data from cluster table RT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-from-cluster-table-rt/m-p/2390434#M531482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u pls send me the sample code regarding this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 12:11:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-from-cluster-table-rt/m-p/2390434#M531482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T12:11:01Z</dc:date>
    </item>
  </channel>
</rss>

