<?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: Function Module for reading PCL2 - B2 FEHLER table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-reading-pcl2-b2-fehler-table/m-p/1682195#M300596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, You don't need pass any data for table tgetbuff .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this simple report. It's work for me:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  Z_JRQ038R NO STANDARD PAGE HEADING
                 LINE-COUNT 65
                 LINE-SIZE 175.
*-----------------------------------------------------------------------
* D.A.T.A.
*-----------------------------------------------------------------------
DATA: IT_FL TYPE PC2B8 OCCURS 0 WITH HEADER LINE.
DATA:  BEGIN OF tgetbuff occurs 0,
              x(10),
           END OF tgetbuff.
*-----------------------------------------------------------------------
* S.E.L.L.E.C.T.I.O.N.  .S.C.R.E.E.N.
*-----------------------------------------------------------------------
  SELECTION-SCREEN BEGIN OF BLOCK BL02 WITH FRAME TITLE TEXT-S20.
    PARAMETERS:
      PERNR LIKE PA0001-PERNR,
      YEAR  LIKE T549Q-PABRJ,
      MONTH LIKE T549Q-PABRP.
  SELECTION-SCREEN END OF BLOCK BL02.
*-----------------------------------------------------------------------
* M.A.I.N.  .P.R.O.G.R.A.M.
*-----------------------------------------------------------------------
START-OF-SELECTION.

  CALL FUNCTION 'HR_TIME_RESULTS_GET'
    EXPORTING
      GET_PERNR     = PERNR
      GET_PABRJ     = YEAR
      GET_PABRP     = MONTH
    TABLES
      GET_TBUFF     = TGETBUFF
      GET_FEHLER    = IT_FL
    EXCEPTIONS
      NO_PERIOD_SPECIFIED   = 1
      WRONG_CLUSTER_VERSION = 2
      NO_READ_AUTHORITY     = 3
      CLUSTER_ARCHIVED      = 4
      TECHNICAL_ERROR       = 5
      OTHERS                = 6.

  CHECK IT_FL[] IS NOT INITIAL.
  LOOP AT IT_FL.
    WRITE: / IT_FL-LDATE, SPACE, IT_FL-LTIME, SPACE, IT_FL-ERRTY.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Nov 2006 06:58:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-21T06:58:21Z</dc:date>
    <item>
      <title>Function Module for reading PCL2 - B2 FEHLER table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-reading-pcl2-b2-fehler-table/m-p/1682192#M300593</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;   Is there any function module can use to read the FEHLER table messages? There is a standard program called RPTERL00 that used to read the FEHLER messages. However, I wish to simplified and use FM to get all the FEHLER table data in my customise program. I will need to delete some of the entries in FEHLER table after the correction has been done. Do you know how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 06:03:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-reading-pcl2-b2-fehler-table/m-p/1682192#M300593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T06:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for reading PCL2 - B2 FEHLER table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-reading-pcl2-b2-fehler-table/m-p/1682193#M300594</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;Yes. Here the FM : HR_TIME_RESULTS_GET&lt;/P&gt;&lt;P&gt;Here the samaple code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: IT_ZL TYPE PC2B8 OCCURS 0 WITH HEADER LINE.
DATA:  BEGIN OF tgetbuff occurs 0,
          x(10),
       END OF tgetbuff.

  CALL FUNCTION 'HR_TIME_RESULTS_GET'
    EXPORTING
      GET_PERNR     = PERNR
      GET_PABRJ     = YEAR
      GET_PABRP     = MONTH
    TABLES
      GET_TBUFF     = TGETBUFF
      GET_FEHLER    = IT_FEHLER
    EXCEPTIONS
      NO_PERIOD_SPECIFIED   = 1
      WRONG_CLUSTER_VERSION = 2
      NO_READ_AUTHORITY     = 3
      CLUSTER_ARCHIVED      = 4
      TECHNICAL_ERROR       = 5
      OTHERS                = 6.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 06:24:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-reading-pcl2-b2-fehler-table/m-p/1682193#M300594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T06:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for reading PCL2 - B2 FEHLER table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-reading-pcl2-b2-fehler-table/m-p/1682194#M300595</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;   Thanks for the reply. I just try the HR_TIME_RESULTS_GET, and i get the runtime error - OBJECTS_TABLES_NOT_COMPATIBLE. I have pass in the PERNR, YEAR and MONTH. Am I need to pass in data for TGETBUFF as well? What is the example data for this table? Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 06:47:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-reading-pcl2-b2-fehler-table/m-p/1682194#M300595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T06:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for reading PCL2 - B2 FEHLER table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-reading-pcl2-b2-fehler-table/m-p/1682195#M300596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, You don't need pass any data for table tgetbuff .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this simple report. It's work for me:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  Z_JRQ038R NO STANDARD PAGE HEADING
                 LINE-COUNT 65
                 LINE-SIZE 175.
*-----------------------------------------------------------------------
* D.A.T.A.
*-----------------------------------------------------------------------
DATA: IT_FL TYPE PC2B8 OCCURS 0 WITH HEADER LINE.
DATA:  BEGIN OF tgetbuff occurs 0,
              x(10),
           END OF tgetbuff.
*-----------------------------------------------------------------------
* S.E.L.L.E.C.T.I.O.N.  .S.C.R.E.E.N.
*-----------------------------------------------------------------------
  SELECTION-SCREEN BEGIN OF BLOCK BL02 WITH FRAME TITLE TEXT-S20.
    PARAMETERS:
      PERNR LIKE PA0001-PERNR,
      YEAR  LIKE T549Q-PABRJ,
      MONTH LIKE T549Q-PABRP.
  SELECTION-SCREEN END OF BLOCK BL02.
*-----------------------------------------------------------------------
* M.A.I.N.  .P.R.O.G.R.A.M.
*-----------------------------------------------------------------------
START-OF-SELECTION.

  CALL FUNCTION 'HR_TIME_RESULTS_GET'
    EXPORTING
      GET_PERNR     = PERNR
      GET_PABRJ     = YEAR
      GET_PABRP     = MONTH
    TABLES
      GET_TBUFF     = TGETBUFF
      GET_FEHLER    = IT_FL
    EXCEPTIONS
      NO_PERIOD_SPECIFIED   = 1
      WRONG_CLUSTER_VERSION = 2
      NO_READ_AUTHORITY     = 3
      CLUSTER_ARCHIVED      = 4
      TECHNICAL_ERROR       = 5
      OTHERS                = 6.

  CHECK IT_FL[] IS NOT INITIAL.
  LOOP AT IT_FL.
    WRITE: / IT_FL-LDATE, SPACE, IT_FL-LTIME, SPACE, IT_FL-ERRTY.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 06:58:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-reading-pcl2-b2-fehler-table/m-p/1682195#M300596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T06:58:21Z</dc:date>
    </item>
  </channel>
</rss>

