<?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: retrieving data through RT_ in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-data-through-rt/m-p/7124083#M1511510</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      employeenumber               = p0001-pernr&lt;/P&gt;&lt;P&gt;      sequencenumber               = v_seqnr&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      payroll_result               = wa_payresult&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 = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;move payroll results to Internal tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MOVE wa_payresult-inter-rt[] TO it_rt[] . "&lt;/P&gt;&lt;P&gt;    MOVE wa_payresult-nat-bal[] TO it_bal[].  "&lt;/P&gt;&lt;P&gt;    MOVE wa_payresult-nat-unb[] TO it_unbal[]."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort the table by date and Read them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jul 2010 21:36:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-20T21:36:09Z</dc:date>
    <item>
      <title>retrieving data through RT_</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-data-through-rt/m-p/7124082#M1511509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi every body,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                     I have come across a problem I have access the data of RT using &lt;/P&gt;&lt;P&gt;for other period&lt;/P&gt;&lt;P&gt;&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   = p0001-pernr&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      molga = lv_molga&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      in_rgdir = gs_rgdir.&lt;/P&gt;&lt;P&gt;  sort gs_rgdir by seqnr.&lt;/P&gt;&lt;P&gt;CONCATENATE PNPPABRJ PNPPABRP  into varfppr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE GS_rgdir into gs_rgdir WITH key  fpper = varfppr.&lt;/P&gt;&lt;P&gt;SELECT SINGLE relid FROM t500l&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTO lv_relid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE molga = lv_molga.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&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          = p0001-pernr&lt;/P&gt;&lt;P&gt;        sequencenumber          = gs_rgDIR-SEQNR&lt;/P&gt;&lt;P&gt;        read_only_international = 'X'&lt;/P&gt;&lt;P&gt;      changing&lt;/P&gt;&lt;P&gt;        payroll_result          = result.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt; Now I have got all the required data in the RT but I need the  most recent salary from the RT for the given month can some body tell me  how to retrieve the data of the most recent salary through it. I have been using the other period option in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ZAHID HAMEED on Jul 21, 2010 12:12 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 19:00:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-data-through-rt/m-p/7124082#M1511509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-20T19:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving data through RT_</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-data-through-rt/m-p/7124083#M1511510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      employeenumber               = p0001-pernr&lt;/P&gt;&lt;P&gt;      sequencenumber               = v_seqnr&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      payroll_result               = wa_payresult&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 = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;move payroll results to Internal tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MOVE wa_payresult-inter-rt[] TO it_rt[] . "&lt;/P&gt;&lt;P&gt;    MOVE wa_payresult-nat-bal[] TO it_bal[].  "&lt;/P&gt;&lt;P&gt;    MOVE wa_payresult-nat-unb[] TO it_unbal[]."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort the table by date and Read them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 21:36:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-data-through-rt/m-p/7124083#M1511510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-20T21:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving data through RT_</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-data-through-rt/m-p/7124084#M1511511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi krk,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                You have been using three different internal tables for fetching the data through result RT. &lt;/P&gt;&lt;P&gt;There is no date exist in the wa_result-inter-rt so by using three different tables how will I get the data from it by checking the dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Zahid Hameed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 05:18:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-data-through-rt/m-p/7124084#M1511511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-21T05:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving data through RT_</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-data-through-rt/m-p/7124085#M1511512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                         My problem has been solved there is a field in the RT with the name apznr which contain the number of  the recent values which are always lies with the max no. So I have retrieved  the data to another internal table and then I sort the the internal table and get my required apznr values this value should be first in the new internal table. You will get your desired result in it.&lt;/P&gt;&lt;P&gt;&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   = p0001-pernr&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      molga = lv_molga&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      in_rgdir = gs_rgdir.&lt;/P&gt;&lt;P&gt;  sort gs_rgdir by seqnr.&lt;/P&gt;&lt;P&gt;concatenate pnppabrj pnppabrp  into varfppr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table gs_rgdir into gs_rgdir with key  fpper = varfppr.&lt;/P&gt;&lt;P&gt;select single relid from t500l&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into lv_relid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where molga = lv_molga.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&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          = p0001-pernr&lt;/P&gt;&lt;P&gt;        sequencenumber          = gs_rgdir-seqnr&lt;/P&gt;&lt;P&gt;        read_only_international = 'X'&lt;/P&gt;&lt;P&gt;      changing&lt;/P&gt;&lt;P&gt;        payroll_result          = result.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  loop at  result-inter-rt into wa_rt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move wa_rt-apznr to it_rt-apznr.&lt;/P&gt;&lt;P&gt;move wa_rt-lgart to it_rt-lgart.&lt;/P&gt;&lt;P&gt;move wa_rt-anzhl to it_rt-anzhl.&lt;/P&gt;&lt;P&gt;move wa_rt-betrg to it_rt-betrg.&lt;/P&gt;&lt;P&gt;append  it_rt.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;sort it_rt by apznr ascending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table it_rt into wa_rt2 index 1.&lt;/P&gt;&lt;P&gt;*read table will return u the recent no of apznr to get the gross salrary from it.&lt;/P&gt;&lt;P&gt;read table it_rt into line_pssal-grosssalary where apznr = wa_rt2.&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;Then get the required result by checking the lgart from the RT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ZAHID HAMEED on Jul 21, 2010 9:47 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ZAHID HAMEED on Jul 22, 2010 2:17 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ZAHID HAMEED on Jul 22, 2010 2:21 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 16:44:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-data-through-rt/m-p/7124085#M1511512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-21T16:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving data through RT_</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-data-through-rt/m-p/7124086#M1511513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;closed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 08:36:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-data-through-rt/m-p/7124086#M1511513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-13T08:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving data through RT_</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-data-through-rt/m-p/7124087#M1511514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;closed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 08:36:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-data-through-rt/m-p/7124087#M1511514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-13T08:36:35Z</dc:date>
    </item>
  </channel>
</rss>

