<?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 Get Absence in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-absence/m-p/6684003#M1450039</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;There is a requirement to get the leave entitlement for an employee , and no of absence days already booked .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some absence types based on the configuration for counting rules and deduction rules public holidays are included (e.g maternity leave) for other absence types they may not .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g  Sicknesss      booked leave 3 days             calendar days = 5 ( holidays not included)&lt;/P&gt;&lt;P&gt;        Maternity       booked leave 150 days         calendar days = 150 days ( holidays included)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any std function modules which will return this information ? I tried using BAPI_ABSENCE_GETDETAILEDLIST but the results are incorrect for absence types which have config. to include holidays .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g for the above example the bapi returns Maternity  Booked - 150 and calender days ( 150 - (all holidays))   WHICH is incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to avoid the option of reading all config. tables to get the deduction rules, counting rules and calculate in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Neelima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Feb 2010 10:11:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-25T10:11:28Z</dc:date>
    <item>
      <title>Get Absence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-absence/m-p/6684003#M1450039</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;There is a requirement to get the leave entitlement for an employee , and no of absence days already booked .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some absence types based on the configuration for counting rules and deduction rules public holidays are included (e.g maternity leave) for other absence types they may not .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g  Sicknesss      booked leave 3 days             calendar days = 5 ( holidays not included)&lt;/P&gt;&lt;P&gt;        Maternity       booked leave 150 days         calendar days = 150 days ( holidays included)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any std function modules which will return this information ? I tried using BAPI_ABSENCE_GETDETAILEDLIST but the results are incorrect for absence types which have config. to include holidays .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g for the above example the bapi returns Maternity  Booked - 150 and calender days ( 150 - (all holidays))   WHICH is incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to avoid the option of reading all config. tables to get the deduction rules, counting rules and calculate in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Neelima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2010 10:11:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-absence/m-p/6684003#M1450039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-25T10:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Get Absence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-absence/m-p/6684004#M1450040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HR_AUPBS_CALC_ABSENCES&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2010 10:20:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-absence/m-p/6684004#M1450040</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2010-02-25T10:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get Absence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-absence/m-p/6684005#M1450041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply. I tried using this FM , by passing 2001,0001,0007 information to the FM . It does not return any values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THis FM also has a table CALC_I5QPBS2F  which is data from db table T5QPBS2F .However this table has no values .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please let me know how to use this FM?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2010 11:09:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-absence/m-p/6684005#M1450041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-25T11:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get Absence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-absence/m-p/6684006#M1450042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check &lt;STRONG&gt;HR_TIM_REPORT_ABSENCE_DATA&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Check program &lt;STRONG&gt;RPTABS20&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2010 12:53:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-absence/m-p/6684006#M1450042</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-02-25T12:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get Absence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-absence/m-p/6684007#M1450043</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 function HR_READ_INFOTYPE " Read Employee/Applicant Data From Infotypes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA IT_2001 TYPE TABLE OF PA2001.

CALL FUNCTION 'HR_READ_INFOTYPE'
  EXPORTING
*   TCLAS                 = 'A'
    PERNR                 = 
    INFTY                 = '2001'
*   BEGDA                 = '18000101'
*   ENDDA                 = '99991231'
*   BYPASS_BUFFER         = ' '
*   LEGACY_MODE           = ' '
* IMPORTING
*   SUBRC                 =
  TABLES
    INFTY_TAB             = IT_2001
 EXCEPTIONS
   INFTY_NOT_FOUND       = 1
   OTHERS                = 2
          .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'HR_READ_INFOTYPE_AUTHC_DISABLE'
          .

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and see in function group &lt;STRONG&gt;HRAC&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See for function module &lt;STRONG&gt;HR_READ_INFOTYPE_AUTHC_DISABLE&lt;/STRONG&gt;. This function allow you to read infotype if you don't have authorization. Call before call HR_READ_INFOTYPE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'HR_READ_INFOTYPE_AUTHC_DISABLE'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2010 13:12:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-absence/m-p/6684007#M1450043</guid>
      <dc:creator>StMou</dc:creator>
      <dc:date>2010-02-25T13:12:53Z</dc:date>
    </item>
  </channel>
</rss>

