<?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: loop error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597831#M1275812</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IT IS BCAUSE UR CODE EXCEEDING 15000 CHARACTERS... OTHERWISE ITS CORRECT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 May 2009 11:54:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-20T11:54:11Z</dc:date>
    <item>
      <title>loop error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597810#M1275791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the output of my report showing correct data for one employee.&lt;/P&gt;&lt;P&gt;but, on selecting 2 or more employees it is showing data corresponding to last employee for all of them.&lt;/P&gt;&lt;P&gt;where m i getting wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 09:58:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597810#M1275791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T09:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: loop error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597811#M1275792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hELLO ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Better paste u r code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 10:00:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597811#M1275792</guid>
      <dc:creator>shishupalreddy</dc:creator>
      <dc:date>2009-05-20T10:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: loop error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597812#M1275793</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;Check your code wheather it is overwriting the previous data.&lt;/P&gt;&lt;P&gt;Its better if you give the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Anirban&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 10:09:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597812#M1275793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T10:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: loop error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597813#M1275794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check where you have written the append statement in the loop. if u are using a loop within a loop, the append should be in the 2nd loop and not in the first. but posting ur code here would be of much help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 10:11:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597813#M1275794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T10:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: loop error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597814#M1275795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The possible error may be you would not have cleared the structure and so the last value in the structure will be taken into consideration.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 10:14:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597814#M1275795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T10:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: loop error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597815#M1275796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Used function modules for payroll result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LOOP AT i_pa0001 INTO fs_pa0001.&lt;/P&gt;&lt;P&gt;*&amp;amp; Reading of the Payresult for all the Periods&lt;/P&gt;&lt;P&gt;    REFRESH:&lt;/P&gt;&lt;P&gt;      it_rgdir,&lt;/P&gt;&lt;P&gt;      i_rgdir.&lt;/P&gt;&lt;P&gt;    CLEAR:fs_rgdir.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'CU_READ_RGDIR'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        persnr          = fs_pa0001-pernr&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        in_rgdir        = it_rgdir&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        no_record_found = 1&lt;/P&gt;&lt;P&gt;        OTHERS          = 2.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'PYXX_GET_RELID_FROM_PERNR'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          employee                    = fs_pa0001-pernr&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          relid                       = lv_relid&lt;/P&gt;&lt;P&gt;          molga                       = lv_molga&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          error_reading_infotype_0001 = 1&lt;/P&gt;&lt;P&gt;          error_reading_molga         = 2&lt;/P&gt;&lt;P&gt;          error_reading_relid         = 3&lt;/P&gt;&lt;P&gt;          OTHERS                      = 4.&lt;/P&gt;&lt;P&gt;      IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      SELECT SINGLE typename&lt;/P&gt;&lt;P&gt;               FROM t52relid&lt;/P&gt;&lt;P&gt;               INTO lv_type&lt;/P&gt;&lt;P&gt;              WHERE relid EQ lv_relid&lt;/P&gt;&lt;P&gt;                AND tabname = 'PCL2'.&lt;/P&gt;&lt;P&gt;      IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;        lv_relid = 'IN'.&lt;/P&gt;&lt;P&gt;        lv_type = 'PAYIN_RESULT'.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      lv_typename = lv_type.&lt;/P&gt;&lt;P&gt;     CREATE DATA ref_payresult TYPE (lv_typename).&lt;/P&gt;&lt;P&gt;      ASSIGN ref_payresult-&amp;gt;* TO &amp;lt;payresult&amp;gt;.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     SRTZA--Status Of records.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     SRTZA = 'A' --Current Result.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      DELETE it_rgdir WHERE srtza NE 'A'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PAYTY --&amp;gt; Payment Type ( Regular or Bonus)&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PAYTY =  SPACE --'Regular Payroll'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PAYTY = 'B'   --&amp;gt; 'Bonus'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      LOOP AT it_rgdir INTO fs_rgdir WHERE payty = ''&lt;/P&gt;&lt;P&gt;                                     AND fpbeg GE v_begda&lt;/P&gt;&lt;P&gt;                                     AND fpend LE v_endda.&lt;/P&gt;&lt;P&gt;      APPEND fs_rgdir TO i_rgdir.&lt;/P&gt;&lt;P&gt;      ENDLOOP.                       " LOOP AT it_rgdir&lt;/P&gt;&lt;P&gt;      SORT i_rgdir BY seqnr DESCENDING.&lt;/P&gt;&lt;P&gt;      CLEAR: lv_unpaid,lv_paid.&lt;/P&gt;&lt;P&gt;      LOOP AT i_rgdir INTO fs_rgdir.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            clusterid                    = lv_relid&lt;/P&gt;&lt;P&gt;            employeenumber               = fs_pa0001-pernr&lt;/P&gt;&lt;P&gt;            sequencenumber               = fs_rgdir-seqnr&lt;/P&gt;&lt;P&gt;          CHANGING&lt;/P&gt;&lt;P&gt;            payroll_result               = &amp;lt;payresult&amp;gt;&lt;/P&gt;&lt;P&gt;          EXCEPTIONS&lt;/P&gt;&lt;P&gt;            illegal_isocode_or_clusterid = 1&lt;/P&gt;&lt;P&gt;            error_generating_import      = 2&lt;/P&gt;&lt;P&gt;            import_mismatch_error        = 3&lt;/P&gt;&lt;P&gt;            subpool_dir_full             = 4&lt;/P&gt;&lt;P&gt;            no_read_authority            = 5&lt;/P&gt;&lt;P&gt;            no_record_found              = 6&lt;/P&gt;&lt;P&gt;            versions_do_not_match        = 7&lt;/P&gt;&lt;P&gt;            error_reading_archive        = 8&lt;/P&gt;&lt;P&gt;            error_reading_relid          = 9&lt;/P&gt;&lt;P&gt;            OTHERS                       = 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;           ASSIGN COMPONENT 'INTER-RT' OF STRUCTURE &amp;lt;payresult&amp;gt; TO &amp;lt;li_rt&amp;gt;.&lt;/P&gt;&lt;P&gt;           LOOP AT &amp;lt;li_rt&amp;gt; INTO lfs_rt .&lt;/P&gt;&lt;P&gt;           if lfs_rt-lgart = '/460'.&lt;/P&gt;&lt;P&gt;           fs_pa0001-betrg = lfs_rt-betrg.&lt;/P&gt;&lt;P&gt;           endif.&lt;/P&gt;&lt;P&gt;           if lfs_rt-lgart = '4101'.&lt;/P&gt;&lt;P&gt;           fs_pa0001-betrg1 = lfs_rt-betrg.&lt;/P&gt;&lt;P&gt;           endif.&lt;/P&gt;&lt;P&gt;           ENDLOOP.&lt;/P&gt;&lt;P&gt;           ENDIF.&lt;/P&gt;&lt;P&gt;           ENDLOOP.&lt;/P&gt;&lt;P&gt;           ENDIF.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT TABFINAL INTO W_FINAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; WRITE:/6(8) W_FINAL-PERNR .&lt;/P&gt;&lt;P&gt; WRITE:/100(10) fs_pa0001-betrg .&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;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: AKSHAYA A on May 20, 2009 12:18 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: AKSHAYA A on May 20, 2009 12:20 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: AKSHAYA A on May 20, 2009 12:20 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: AKSHAYA A on May 20, 2009 12:21 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: AKSHAYA A on May 20, 2009 12:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 10:18:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597815#M1275796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T10:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: loop error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597816#M1275797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;i suggest .&lt;/P&gt;&lt;P&gt; first check your internal table contain all the data,in debugg mode....&lt;/P&gt;&lt;P&gt;enter the multiple values and check whether your internal table is filtering the required values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Clear all the workarea you are using inside the loop after appending or displaying.&lt;/P&gt;&lt;P&gt;clear the  internal table before fetching datas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Safel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 10:23:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597816#M1275797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T10:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: loop error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597817#M1275798</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;try clearing lv_relid before calling PYXX_GET_RELID_FROM_PERNR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 10:27:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597817#M1275798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T10:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: loop error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597818#M1275799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: AKSHAYA A on May 20, 2009 12:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 10:30:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597818#M1275799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T10:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: loop error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597819#M1275800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are not appending the records in to internal table that's why you are getting last record in the out put.&lt;/P&gt;&lt;P&gt;chek the inter nal table or select statement. it will work .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 10:36:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597819#M1275800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T10:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: loop error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597820#M1275801</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;Close the thread if solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikhil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 10:37:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597820#M1275801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T10:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: loop error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597821#M1275802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii nikhil,&lt;/P&gt;&lt;P&gt;thanks for your advice but it is not solved yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: AKSHAYA A on May 20, 2009 12:38 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 10:38:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597821#M1275802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T10:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: loop error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597822#M1275803</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;ASSIGN COMPONENT 'INTER-RT' OF STRUCTURE TO . &lt;/P&gt;&lt;P&gt;"here refresh lfs_rt[] and clear lfs_rt.&lt;/P&gt;&lt;P&gt;LOOP AT lfs_rt . &lt;/P&gt;&lt;P&gt;if lfs_rt-lgart = '/460'. &lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 10:53:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597822#M1275803</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2009-05-20T10:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: loop error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597823#M1275804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOOP AT TABFINAL INTO W_FINAL. &lt;/P&gt;&lt;P&gt;WRITE:/6(8) W_FINAL-PERNR .&lt;/P&gt;&lt;P&gt; WRITE:/100(10) fs_pa0001-betrg . &lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write &lt;/P&gt;&lt;P&gt;LOOP AT TABFINAL INTO W_FINAL. &lt;/P&gt;&lt;P&gt;append W_FINAL TO IT_FINAL.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND THEN &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE IT_FINAL-PERNR .&lt;/P&gt;&lt;P&gt;WRITE IT_FINAL-BETRG.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 11:09:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597823#M1275804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T11:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: loop error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597824#M1275805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to use the markup for posting  &lt;STRONG&gt;code&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 11:25:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597824#M1275805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T11:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: loop error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597825#M1275806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="CODE"&gt;
'
'
'
&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE IN SMALL LETTERS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 11:32:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597825#M1275806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T11:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: loop error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597826#M1275807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Akshaya,&lt;/P&gt;&lt;P&gt;Its simple just clear the work area after the data of the first employee is displayed. i.e. clear work area after the end of first loop pass.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 11:34:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597826#M1275807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T11:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: loop error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597827#M1275808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
***********************************************************************
*              Types Declaration                                      *
***********************************************************************
TYPES: BEGIN OF ty_pa0001,
         pernr TYPE pa0001-pernr,
         begda TYPE pa0001-begda,
         orgeh TYPE pa0001-orgeh,
         ename TYPE pa0001-ename,
   betrg TYPE netwr,
          betrg1 TYPE netwr,

       END OF ty_pa0001.
TYPES: BEGIN OF ty_output,
        sno TYPE i,
        orgeh TYPE pa0001-orgeh,
        orgtx TYPE t527x-orgtx,
        pernr TYPE pa0001-pernr,
        ename TYPE pa0001-ename,
        lgart TYPE pa0008-lga01,
        betrg TYPE netwr,
        betrg1 TYPE netwr,
       END OF ty_output.
***********************************************************************
*         Internal Tables Declaration                                 *
***********************************************************************
DATA i_pa0001 TYPE STANDARD TABLE OF ty_pa0001 with header line.
DATA: it_rgdir   TYPE STANDARD TABLE OF pc261.
DATA: i_rgdir    TYPE STANDARD TABLE OF pc261.
DATA i_output TYPE STANDARD TABLE OF ty_output with header line.
*&amp;amp; Header structure declaration
DATA fs_pa0001 TYPE ty_pa0001.
DATA: fs_rgdir    TYPE pc261.
***********************************************************************
*              Variable Declaration                                   *
***********************************************************************
DATA:
  v_begda      TYPE begda,
  v_endda      TYPE endda,
  v_atext      TYPE t549t-atext,
  v_error      TYPE c.
DATA: v_mname(15).
DATA: v_mname2(20).
***********************************************************************
*              Constants Declaration                                  *
***********************************************************************
CONSTANTS:
 c_x TYPE c VALUE 'X'.
***********************************************************************
*              SELECTION SCREEN                                       *
***********************************************************************
**********************************************************************
***********************************************************************
*               START-OF-SELECTION EVENT                              *
***********************************************************************
START-OF-SELECTION.
* Getting the starting and ending date of the period.
  PERFORM get_period.
*&amp;amp; Select the Employees.
  PERFORM get_pernrs.
END-OF-SELECTION.
*&amp;amp;---------------------------------------------------------------------
*&amp;amp;      Form  get_pernrs
*&amp;amp;---------------------------------------------------------------------
* This subroutine is used to get the amount to pay.
*----------------------------------------------------------------------
* There are no interface parameters are there to pass
*----------------------------------------------------------------------

FORM get_period .
  SELECT SINGLE begda
                endda
           INTO (v_begda,
                 v_endda)
           FROM t549q
          WHERE permo = '01'
            AND pabrj = yr
            AND pabrp = mon.
ENDFORM.                               " Get_period

FORM get_pernrs .
  FIELD-SYMBOLS:
      &amp;lt;payresult&amp;gt;     TYPE ANY,
      &amp;lt;lv_payresult&amp;gt;  TYPE h99_clst_s_payresult,
      &amp;lt;lv_versc&amp;gt;      TYPE pc202,
      &amp;lt;li_rt&amp;gt;         TYPE hrpay99_rt,
      &amp;lt;li_ddntk&amp;gt;      TYPE hrpay99_ddntk.
  DATA: lfs_rt        TYPE pc207.
  DATA: lfs_ddntk     TYPE pc23e.
  DATA: lv_relid      TYPE t500l-relid.
  DATA: lv_type       TYPE t52relid-typename.
  DATA: lv_typename   TYPE hrpclx_type.
  DATA: ref_payresult TYPE REF TO data.
  DATA: lv_molga      TYPE molga.
  DATA: lv_type_1     TYPE tadir-obj_name.
  DATA: lv_tadir      TYPE tadir-obj_name.
  DATA: lv_unpaid     TYPE ktsol.
  DATA: lv_paid       TYPE ktsol.
*&amp;amp; Reading all the Personnel Numbers
 SELECT pernr
         begda
         orgeh
         ename
   FROM pa0001
   INTO TABLE i_pa0001
   WHERE endda GE v_begda
     AND begda LE v_endda
     and pernr in per.
*     AND abkrs EQ p_abkrs.

  SORT i_pa0001 BY pernr begda DESCENDING.
  DELETE ADJACENT DUPLICATES FROM i_pa0001 COMPARING pernr.
  SORT i_pa0001 BY orgeh pernr.



  LOOP AT i_pa0001 INTO fs_pa0001.

*&amp;amp; Reading of the Payresult for all the Periods
    REFRESH:
      it_rgdir,
      i_rgdir.
    CLEAR:fs_rgdir.
    CALL FUNCTION 'CU_READ_RGDIR'
      EXPORTING
        persnr          = fs_pa0001-pernr
      TABLES
        in_rgdir        = it_rgdir
      EXCEPTIONS
        no_record_found = 1
        OTHERS          = 2.
    IF sy-subrc = 0.
      CALL FUNCTION 'PYXX_GET_RELID_FROM_PERNR'
        EXPORTING
          employee                    = fs_pa0001-pernr
        IMPORTING
          relid                       = lv_relid
          molga                       = lv_molga
        EXCEPTIONS
          error_reading_infotype_0001 = 1
          error_reading_molga         = 2
          error_reading_relid         = 3
          OTHERS                      = 4.
      IF sy-subrc NE 0.
      ENDIF.
      SELECT SINGLE typename
               FROM t52relid
               INTO lv_type
              WHERE relid EQ lv_relid
                AND tabname = 'PCL2'.
      IF sy-subrc NE 0.
        lv_relid = 'IN'.
        lv_type = 'PAYIN_RESULT'.
      ENDIF.
      lv_typename = lv_type.
     CREATE DATA ref_payresult TYPE (lv_typename).
      ASSIGN ref_payresult-&amp;gt;* TO &amp;lt;payresult&amp;gt;.
*      SRTZA--Status Of records.
*      SRTZA = 'A' --Current Result.
      DELETE it_rgdir WHERE srtza NE 'A'.
* PAYTY --&amp;gt; Payment Type ( Regular or Bonus)
* PAYTY =  SPACE --'Regular Payroll'.
* PAYTY = 'B'   --&amp;gt; 'Bonus'.
      LOOP AT it_rgdir INTO fs_rgdir WHERE payty = ''
                                     AND fpbeg GE v_begda
                                     AND fpend LE v_endda.
      APPEND fs_rgdir TO i_rgdir.
      ENDLOOP.                       " LOOP AT it_rgdir
      SORT i_rgdir BY seqnr DESCENDING.
      CLEAR: lv_unpaid,lv_paid.
      LOOP AT i_rgdir INTO fs_rgdir.
        CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
          EXPORTING
            clusterid                    = lv_relid
            employeenumber               = fs_pa0001-pernr
            sequencenumber               = fs_rgdir-seqnr
          CHANGING
            payroll_result               = &amp;lt;payresult&amp;gt;
          EXCEPTIONS
            illegal_isocode_or_clusterid = 1
            error_generating_import      = 2
            import_mismatch_error        = 3
            subpool_dir_full             = 4
            no_read_authority            = 5
            no_record_found              = 6
            versions_do_not_match        = 7
            error_reading_archive        = 8
            error_reading_relid          = 9
            OTHERS                       = 10.

           IF sy-subrc EQ 0.
           ASSIGN COMPONENT 'INTER-RT' OF STRUCTURE &amp;lt;payresult&amp;gt; TO &amp;lt;li_rt&amp;gt;.
              clear fs_pa0001.
           LOOP AT &amp;lt;li_rt&amp;gt; INTO lfs_rt .
*            refresh lfs_rt[].
*            clear lfs_rt.
           if lfs_rt-lgart = '/460'.
           fs_pa0001-betrg = lfs_rt-betrg.
           endif.
           if lfs_rt-lgart = '4101'.
           fs_pa0001-betrg1 = lfs_rt-betrg.
           endif.
           ENDLOOP.
           ENDIF.
           ENDLOOP.
           ENDIF.
           ENDLOOP.






 LOOP AT TABFINAL INTO W_FINAL.

 WRITE:/6(8) W_FINAL-PERNR ,20(25) W_FINAL-ENAME,

 ENDLOOP.
ENDFORM.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 11:42:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597827#M1275808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T11:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: loop error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597828#M1275809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: BEGIN OF ty_pa0001,
         pernr TYPE pa0001-pernr,
         begda TYPE pa0001-begda,
         orgeh TYPE pa0001-orgeh,
         ename TYPE pa0001-ename,
   betrg TYPE netwr,
          betrg1 TYPE netwr,

       END OF ty_pa0001.
TYPES: BEGIN OF ty_output,
        sno TYPE i,
        orgeh TYPE pa0001-orgeh,
        orgtx TYPE t527x-orgtx,
        pernr TYPE pa0001-pernr,
        ename TYPE pa0001-ename,
        lgart TYPE pa0008-lga01,
        betrg TYPE netwr,
        betrg1 TYPE netwr,
       END OF ty_output.
***********************************************************************
*         Internal Tables Declaration                                 *
***********************************************************************
DATA i_pa0001 TYPE STANDARD TABLE OF ty_pa0001 with header line.
DATA: it_rgdir   TYPE STANDARD TABLE OF pc261.
DATA: i_rgdir    TYPE STANDARD TABLE OF pc261.
DATA i_output TYPE STANDARD TABLE OF ty_output with header line.
*&amp;amp; Header structure declaration
DATA fs_pa0001 TYPE ty_pa0001.
DATA: fs_rgdir    TYPE pc261.
***********************************************************************
*              Variable Declaration                                   *
***********************************************************************
DATA:
  v_begda      TYPE begda,
  v_endda      TYPE endda,
  v_atext      TYPE t549t-atext,
  v_error      TYPE c.
DATA: v_mname(15).
DATA: v_mname2(20).
***********************************************************************
*              Constants Declaration                                  *
***********************************************************************
CONSTANTS:
 c_x TYPE c VALUE 'X'.
***********************************************************************
*              SELECTION SCREEN                                       *
***********************************************************************
**********************************************************************
***********************************************************************
*               START-OF-SELECTION EVENT                              *
***********************************************************************
START-OF-SELECTION.
* Getting the starting and ending date of the period.
  PERFORM get_period.
*&amp;amp; Select the Employees.
  PERFORM get_pernrs.
END-OF-SELECTION.
*&amp;amp;---------------------------------------------------------------------
*&amp;amp;      Form  get_pernrs
*&amp;amp;---------------------------------------------------------------------
* This subroutine is used to get the amount to pay.
*----------------------------------------------------------------------
* There are no interface parameters are there to pass
*----------------------------------------------------------------------

FORM get_period .
  SELECT SINGLE begda
                endda
           INTO (v_begda,
                 v_endda)
           FROM t549q
          WHERE permo = '01'
            AND pabrj = yr
            AND pabrp = mon.
ENDFORM.                               " Get_period

FORM get_pernrs .
  FIELD-SYMBOLS:
      &amp;lt;payresult&amp;gt;     TYPE ANY,
      &amp;lt;lv_payresult&amp;gt;  TYPE h99_clst_s_payresult,
      &amp;lt;lv_versc&amp;gt;      TYPE pc202,
      &amp;lt;li_rt&amp;gt;         TYPE hrpay99_rt,
      &amp;lt;li_ddntk&amp;gt;      TYPE hrpay99_ddntk.
  DATA: lfs_rt        TYPE pc207.
  DATA: lfs_ddntk     TYPE pc23e.
  DATA: lv_relid      TYPE t500l-relid.
  DATA: lv_type       TYPE t52relid-typename.
  DATA: lv_typename   TYPE hrpclx_type.
  DATA: ref_payresult TYPE REF TO data.
  DATA: lv_molga      TYPE molga.
  DATA: lv_type_1     TYPE tadir-obj_name.
  DATA: lv_tadir      TYPE tadir-obj_name.
  DATA: lv_unpaid     TYPE ktsol.
  DATA: lv_paid       TYPE ktsol.
*&amp;amp; Reading all the Personnel Numbers
 SELECT pernr
         begda
         orgeh
         ename
   FROM pa0001
   INTO TABLE i_pa0001
   WHERE endda GE v_begda
     AND begda LE v_endda
     and pernr in per.
*     AND abkrs EQ p_abkrs.

  SORT i_pa0001 BY pernr begda DESCENDING.
  DELETE ADJACENT DUPLICATES FROM i_pa0001 COMPARING pernr.
  SORT i_pa0001 BY orgeh pernr.



  LOOP AT i_pa0001 INTO fs_pa0001.

*&amp;amp; Reading of the Payresult for all the Periods
    REFRESH:
      it_rgdir,
      i_rgdir.
    CLEAR:fs_rgdir.
    CALL FUNCTION 'CU_READ_RGDIR'
      EXPORTING
        persnr          = fs_pa0001-pernr
      TABLES
        in_rgdir        = it_rgdir
      EXCEPTIONS
        no_record_found = 1
        OTHERS          = 2.
    IF sy-subrc = 0.
      CALL FUNCTION 'PYXX_GET_RELID_FROM_PERNR'
        EXPORTING
          employee                    = fs_pa0001-pernr
        IMPORTING
          relid                       = lv_relid
          molga                       = lv_molga
        EXCEPTIONS
          error_reading_infotype_0001 = 1
          error_reading_molga         = 2
          error_reading_relid         = 3
          OTHERS                      = 4.
      IF sy-subrc NE 0.
      ENDIF.
      SELECT SINGLE typename
               FROM t52relid
               INTO lv_type
              WHERE relid EQ lv_relid
                AND tabname = 'PCL2'.
      IF sy-subrc NE 0.
        lv_relid = 'IN'.
        lv_type = 'PAYIN_RESULT'.
      ENDIF.
      lv_typename = lv_type.
     CREATE DATA ref_payresult TYPE (lv_typename).
      ASSIGN ref_payresult-&amp;gt;* TO &amp;lt;payresult&amp;gt;.
*      SRTZA--Status Of records.
*      SRTZA = 'A' --Current Result.
      DELETE it_rgdir WHERE srtza NE 'A'.
* PAYTY --&amp;gt; Payment Type ( Regular or Bonus)
* PAYTY =  SPACE --'Regular Payroll'.
* PAYTY = 'B'   --&amp;gt; 'Bonus'.
      LOOP AT it_rgdir INTO fs_rgdir WHERE payty = ''
                                     AND fpbeg GE v_begda
                                     AND fpend LE v_endda.
      APPEND fs_rgdir TO i_rgdir.
      ENDLOOP.                       " LOOP AT it_rgdir
      SORT i_rgdir BY seqnr DESCENDING.
      CLEAR: lv_unpaid,lv_paid.
      LOOP AT i_rgdir INTO fs_rgdir.
        CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
          EXPORTING
            clusterid                    = lv_relid
            employeenumber               = fs_pa0001-pernr
            sequencenumber               = fs_rgdir-seqnr
          CHANGING
            payroll_result               = &amp;lt;payresult&amp;gt;
          EXCEPTIONS
            illegal_isocode_or_clusterid = 1
            error_generating_import      = 2
            import_mismatch_error        = 3
            subpool_dir_full             = 4
            no_read_authority            = 5
            no_record_found              = 6
            versions_do_not_match        = 7
            error_reading_archive        = 8
            error_reading_relid          = 9
            OTHERS                       = 10.

           IF sy-subrc EQ 0.
           ASSIGN COMPONENT 'INTER-RT' OF STRUCTURE &amp;lt;payresult&amp;gt; TO &amp;lt;li_rt&amp;gt;.
              clear fs_pa0001.
           LOOP AT &amp;lt;li_rt&amp;gt; INTO lfs_rt .
*            refresh lfs_rt[].
*            clear lfs_rt.
           if lfs_rt-lgart = '/460'.
           fs_pa0001-betrg = lfs_rt-betrg.
           endif.
           if lfs_rt-lgart = '4101'.
           fs_pa0001-betrg1 = lfs_rt-betrg.
           endif.
           ENDLOOP.
           ENDIF.
           ENDLOOP.
           ENDIF.
           ENDLOOP.

*           on change of fs_pa0001-pernr.
*           clear : fs_pa0001-betrg , fs_pa0001-betrg1.
*           endon.

*          IF sy-subrc EQ 0.
*          ASSIGN COMPONENT 'INTER-RT' OF STRUCTURE &amp;lt;payresult&amp;gt; TO &amp;lt;li_rt&amp;gt;.
*          write /: fs_pa0001-pernr.

*          LOOP AT &amp;lt;li_rt&amp;gt; INTO lfs_rt.
**         write:/ lfs_rt-lgart,30 lfs_rt-betrg.
*          ENDLOOP.
*        ENDIF.
*      ENDLOOP.
*    ENDIF.
*  ENDLOOP.
*ENDFORM.                    "get_pernrs

*loop at i_rgdir into fs_rgdir.
*  wapay-pernr = fs_pa0001-pernr.
*  wapay-lgart = lfs_rt-lgart.
*  wapay-betrg = lfs_rt-betrg.
*  append wapay to tabpay.
*  endloop.
*&amp;amp;---------------------------------------------------------------------
*&amp;amp;      Form  get_period
*&amp;amp;---------------------------------------------------------------------
* This subroutine is used to calculate the period range
*----------------------------------------------------------------------
* There are no interface parameters are there to pass
*----------------------------------------------------------------------


 format color = 4.
 WRITE:/.
 WRITE:/(28)'Salary Slip Of The Month Of:',W_FINAL-MONAM.
 WRITE:/1(15)'DEPT:',W_FINAL-ORGTX.
 ULINE.
* endif.
 WRITE:/1(5)'S.No',6(6)'Code',20(25)'Name',40(30)'Days   OB EL   OB CL   OB MD'.
 WRITE:/40(30)'Worked EL TKN  CL TKN  MD TKN', 75(10)'L-W/O',85(10)'Net Days',110(10) 'NET SALARY',125(15) 'SIGNATURE'.
 ULINE.

 LOOP AT TABFINAL INTO W_FINAL.

* format color = 4.
 WRITE:/6(8) W_FINAL-PERNR ,20(25) W_FINAL-ENAME, 40(2) W_FINAL-DAYWORK,
 47(4) W_FINAL-OPNEL,55(4) W_FINAL-OPNCL,63(4) W_FINAL-OPNSL.
 WRITE:/47(4) W_FINAL-sel,55(4) W_FINAL-scl,65(2) W_FINAL-sSL,75(3) W_FINAL-sLWP,83(10) W_FINAL-net1.
 uline.
 format color = 2 inverse.
 WRITE:/6(15)'Father/Husband Name',21(1)':',W_FINAL-FAVOR,W_FINAL-FANAM.
 WRITE:/6(15)'Date Of Joining',21(1)':', W_FINAL-BEGDA,53(10)'PF no.',63(20) W_FINAL-EEPFN.
 WRITE:/6(15)'DESIGNATION',21(1)':', W_FINAL-STLTX,53(10)'ESI no.',63(20) W_FINAL-ESINO.
 uline.
* WRITE:/20(20)'STIPEND', 40(10) W_FINAL-ASTP,53(20)'STIPEND DUE',73(10) W_FINAL-STP_d,85(20)'WELFARE FUND',100(10) W_FINAL-welfare.
 WRITE:/20(20)'BASIC',40(10) W_FINAL-ABAS, 53(20)'BASIC DUE',73(10) W_FINAL-bas_d,85(20)'WELFARE FUND',100(10) W_FINAL-welfare.
 WRITE:/20(20)'HRA', 40(10) W_FINAL-AHR, 53(20)'HRA DUE',73(10) W_FINAL-hr_d,85(20)'INCOME',100(10) fs_pa0001-betrg .
 WRITE:/20(20)'CONVEYANCE', 40(10) W_FINAL-ACONY,53(20)'CONVEYANCE DUE',73(10) W_FINAL-CONY_d,85(20)'EMPLOYEE PF',100(10) W_FINAL-PF.
 WRITE:/20(20)'UNIFORM ALWN', 40(10) W_FINAL-AUNIF,53(20)'UNIFORM DUE',73(10) W_FINAL-UNIF_d,85(20)'EMPLOYEE ESI',100(10) W_FINAL-ESI.
 WRITE:/20(20)'SPECIAL ALW',40(10) W_FINAL-ASPEC,53(20)'SPECIAL ALW',73(10) W_FINAL-SPEC_d,85(20)'ADVANCES',100(10) fs_pa0001-betrg1 .
 WRITE:/20(20)'ALW',40(10) W_FINAL-AALWN,53(20)'ALW',73(10) W_FINAL-alwn_d.
 WRITE:/20(20)'MEDICAL ALW',40(10) W_FINAL-AMED,53(20)'MEDICAL ALW',73(10) W_FINAL-med_d,100(20) W_FINAL-NETSAL.
 WRITE:/20(20)'TRANSPORT ALW',40(10) W_FINAL-ATRNP,53(20)'TRANSPORT ALW',73(10) W_FINAL-trnp_d.
 WRITE:/20(20)'HELPER ALW',40(10) W_FINAL-AHEP,53(20)'HELPER ALW',73(10) W_FINAL-hep_d.
 WRITE:/20(20)'CHILD EDU ALW',40(10) W_FINAL-ACHD,53(20)'CHILD EDU ALW',73(10) W_FINAL-chd_d.
 WRITE:/20(20)'CITY COMPENSATORY',40(10) W_FINAL-ACTY,53(20)'CITY COMPENSATORY',73(10) W_FINAL-cty_d.
 WRITE:/20(20)'CHAMBA ALWN', 40(10) W_FINAL-ACHMBA,53(20)'CHAMBA ALWN DUE',73(10) W_FINAL-CHMBA_d.
 WRITE:/20(20)'FOOD ALWN', 40(10) W_FINAL-AFOD,53(20)'FOOD ALWN DUE',73(10) W_FINAL-FOD_d.
 format color = 5 inverse off.
 WRITE:/20(20)'GROSS SALARY',40(10) W_FINAL-GRS,53(20)'SALARY DUE',73(10) W_FINAL-SALARYDUE.
 WRITE:/.
 WRITE:/.
 ENDLOOP.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: AKSHAYA A on May 20, 2009 1:46 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: AKSHAYA A on May 20, 2009 1:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 11:44:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597828#M1275809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T11:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: loop error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597829#M1275810</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;had u tried my previous solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 LOOP AT TABFINAL INTO W_FINAL.

 WRITE:/6(8) W_FINAL-PERNR ,20(25) W_FINAL-ENAME,

 clear w_final .
 ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 11:45:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-error/m-p/5597829#M1275810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T11:45:28Z</dc:date>
    </item>
  </channel>
</rss>

