<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://sapwiki.cl/wiki/index.php?action=history&amp;feed=atom&amp;title=SAP_HCM_ABAP_BAPI</id>
	<title>SAP HCM ABAP BAPI - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://sapwiki.cl/wiki/index.php?action=history&amp;feed=atom&amp;title=SAP_HCM_ABAP_BAPI"/>
	<link rel="alternate" type="text/html" href="https://sapwiki.cl/wiki/index.php?title=SAP_HCM_ABAP_BAPI&amp;action=history"/>
	<updated>2026-10-26T12:03:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>https://sapwiki.cl/wiki/index.php?title=SAP_HCM_ABAP_BAPI&amp;diff=1575&amp;oldid=prev</id>
		<title>WikiSysop: /* tabla PTQUODED */</title>
		<link rel="alternate" type="text/html" href="https://sapwiki.cl/wiki/index.php?title=SAP_HCM_ABAP_BAPI&amp;diff=1575&amp;oldid=prev"/>
		<updated>2026-03-16T22:18:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;tabla PTQUODED&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 22:18, 16 March 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l281&quot; &gt;Line 281:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 281:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Key Details regarding PTQUODED:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Key Details regarding PTQUODED:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;•	Purpose: Contains entries for every day of absence deducted from an employee&amp;#039;s quota, linked by document numbers of IT2001 and IT2006.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;•	Purpose: Contains entries for every day of absence deducted from an employee&amp;#039;s quota, linked by document numbers of IT2001 and IT2006.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;•	Trigger: When a deductible absence (configured in T554S) is created via IT2001, the system automatically creates an entry in PTQUODED.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;•	Trigger: When a deductible absence (configured in T554S) is created via IT2001, the system automatically creates an entry in PTQUODED.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;•	Consistency Check: If deductions in IT2006 do not match IT2001 records, PTQUODED is often the source of the inconsistency, which can be fixed using report RPTBPC10 or HNZUPTC0.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;•	Consistency Check: If deductions in IT2006 do not match IT2001 records, PTQUODED is often the source of the inconsistency, which can be fixed using report RPTBPC10 or HNZUPTC0.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;•	Common Issues: If LSMW is used to update absences, PTQUODED might not be updated, leading to discrepancies in PT50, requiring manual or report-based corrections.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;•	Common Issues: If LSMW is used to update absences, PTQUODED might not be updated, leading to discrepancies in PT50, requiring manual or report-based corrections.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;•	Key Fields: The table uses document numbers (DOCNR) and personnel numbers (PERNR) to link absence entries with quotas.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;•	Key Fields: The table uses document numbers (DOCNR) and personnel numbers (PERNR) to link absence entries with quotas.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>WikiSysop</name></author>
		
	</entry>
	<entry>
		<id>https://sapwiki.cl/wiki/index.php?title=SAP_HCM_ABAP_BAPI&amp;diff=1574&amp;oldid=prev</id>
		<title>WikiSysop at 22:16, 16 March 2026</title>
		<link rel="alternate" type="text/html" href="https://sapwiki.cl/wiki/index.php?title=SAP_HCM_ABAP_BAPI&amp;diff=1574&amp;oldid=prev"/>
		<updated>2026-03-16T22:16:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 22:16, 16 March 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l26&quot; &gt;Line 26:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 26:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Como leer codigo de empleado (PERNR) via usuario SAP (SY-UNAME)==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Como leer codigo de empleado (PERNR) via usuario SAP (SY-UNAME)==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Funciónes BAPI_USR01DOHR_GETEMPLOYEE - RP_GET_PERNR_FROM_USERID con usrty = &amp;#039;0001&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Funciónes BAPI_USR01DOHR_GETEMPLOYEE - RP_GET_PERNR_FROM_USERID con usrty = &amp;#039;0001&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Crear Absentismo IT2001==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;BAPI_PTMGRATTABS_MNGCREATION - &lt;/ins&gt;Crear Absentismo IT2001==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;nowiki&amp;gt;FORM crear_abs USING p_pernr  &lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;nowiki&amp;gt;FORM crear_abs USING p_pernr  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                      p_subty  &lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                      p_subty  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l100&quot; &gt;Line 100:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 100:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ENDFORM.&amp;lt;/nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ENDFORM.&amp;lt;/nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Rutinas para leer contingente==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;BAPI_TIMEQUOTA_GETDETAILEDLIST - &lt;/ins&gt;Rutinas para leer contingente==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;nowiki&amp;gt;method GET_SALDO_DIAS.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;nowiki&amp;gt;method GET_SALDO_DIAS.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*--------------------------------------------------------------------*&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*--------------------------------------------------------------------*&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l277&quot; &gt;Line 277:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 277:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Tabla Contingentes: T556R - Reglamentación secuencia liquidación p.contingentes absent.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Tabla Contingentes: T556R - Reglamentación secuencia liquidación p.contingentes absent.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;===tabla PTQUODED=== &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Key Details regarding PTQUODED:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;•	Purpose: Contains entries for every day of absence deducted from an employee&amp;#039;s quota, linked by document numbers of IT2001 and IT2006.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;•	Trigger: When a deductible absence (configured in T554S) is created via IT2001, the system automatically creates an entry in PTQUODED.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;•	Consistency Check: If deductions in IT2006 do not match IT2001 records, PTQUODED is often the source of the inconsistency, which can be fixed using report RPTBPC10 or HNZUPTC0.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;•	Common Issues: If LSMW is used to update absences, PTQUODED might not be updated, leading to discrepancies in PT50, requiring manual or report-based corrections.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;•	Key Fields: The table uses document numbers (DOCNR) and personnel numbers (PERNR) to link absence entries with quotas.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>WikiSysop</name></author>
		
	</entry>
	<entry>
		<id>https://sapwiki.cl/wiki/index.php?title=SAP_HCM_ABAP_BAPI&amp;diff=1573&amp;oldid=prev</id>
		<title>WikiSysop: Created page with &quot;==FM BAPI_BASICPAY_GETDETAIL== Ojo que esta BAPI calcula los conceptos indirectos :-)    FORM get_p0008_detail tables gt_bapi_wagetypes structure bapip0008p...&quot;</title>
		<link rel="alternate" type="text/html" href="https://sapwiki.cl/wiki/index.php?title=SAP_HCM_ABAP_BAPI&amp;diff=1573&amp;oldid=prev"/>
		<updated>2026-03-16T21:44:46Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==FM BAPI_BASICPAY_GETDETAIL== Ojo que esta BAPI calcula los conceptos indirectos :-)    FORM get_p0008_detail tables gt_bapi_wagetypes structure bapip0008p...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==FM BAPI_BASICPAY_GETDETAIL==&lt;br /&gt;
Ojo que esta BAPI calcula los conceptos indirectos :-) &lt;br /&gt;
&lt;br /&gt;
 FORM get_p0008_detail tables gt_bapi_wagetypes structure bapip0008p&lt;br /&gt;
                       USING p0008 LIKE p0008.&lt;br /&gt;
  DATA ld_amount_external LIKE  bapicurr-bapicurr.&lt;br /&gt;
  DATA lt_return LIKE TABLE OF bapireturn1 WITH HEADER LINE.&lt;br /&gt;
&lt;br /&gt;
  CLEAR gt_bapi_wagetypes[].&lt;br /&gt;
&lt;br /&gt;
  CALL FUNCTION &amp;#039;BAPI_BASICPAY_GETDETAIL&amp;#039;&lt;br /&gt;
       EXPORTING&lt;br /&gt;
            employeenumber = p0008-pernr&lt;br /&gt;
            subtype        = p0008-subty&lt;br /&gt;
            objectid       = p0008-objps&lt;br /&gt;
            lockindicator  = p0008-sprps&lt;br /&gt;
            validitybegin  = p0008-begda&lt;br /&gt;
            validityend    = p0008-endda&lt;br /&gt;
            recordnumber   = p0008-seqnr&lt;br /&gt;
       IMPORTING&lt;br /&gt;
            return         = lt_return&lt;br /&gt;
       TABLES&lt;br /&gt;
            wagetypes      = gt_bapi_wagetypes.&lt;br /&gt;
&lt;br /&gt;
 endform.&lt;br /&gt;
== Como leer codigo de empleado (PERNR) via usuario SAP (SY-UNAME)==&lt;br /&gt;
Funciónes BAPI_USR01DOHR_GETEMPLOYEE - RP_GET_PERNR_FROM_USERID con usrty = &amp;#039;0001&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==Crear Absentismo IT2001==&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;FORM crear_abs USING p_pernr &lt;br /&gt;
                     p_subty &lt;br /&gt;
                     p_begda &lt;br /&gt;
                     p_endda &lt;br /&gt;
                     p_beguz &lt;br /&gt;
                     p_enduz &lt;br /&gt;
                     p_simulate &lt;br /&gt;
            CHANGING p_retorno TYPE bapiret2_tab&lt;br /&gt;
                     p_hrabsatt_out TYPE bapihrabsatt_out&lt;br /&gt;
                     p_text.&lt;br /&gt;
&lt;br /&gt;
  DATA: lt_retorno      LIKE bapiret2 OCCURS 0 WITH HEADER LINE,&lt;br /&gt;
        ls_key          TYPE bapihrtimeskey,  &amp;quot; Campos clave BAPI p.entradas tiempos personal (HR)&lt;br /&gt;
        ls_abs          TYPE bapihrabsatt_in. &amp;quot; Campos presencia/absentismo, entrada sin datos adicionale.&lt;br /&gt;
&lt;br /&gt;
* Lock the employee record&lt;br /&gt;
  CALL FUNCTION &amp;#039;BAPI_EMPLOYEE_ENQUEUE&amp;#039;&lt;br /&gt;
    EXPORTING&lt;br /&gt;
      number = p_pernr&lt;br /&gt;
    IMPORTING&lt;br /&gt;
      return = ls_return&lt;br /&gt;
    EXCEPTIONS&lt;br /&gt;
      OTHERS = 1.&lt;br /&gt;
  if ls_return is NOT INITIAL .&lt;br /&gt;
    MOVE-CORRESPONDING ls_return to p_retorno.&lt;br /&gt;
    return.&lt;br /&gt;
  endif.&lt;br /&gt;
&lt;br /&gt;
  CLEAR: ls_abs.&lt;br /&gt;
  ls_abs-from_date      = p_begda. &amp;quot; Inicio de la validez&lt;br /&gt;
  ls_abs-to_date        = p_endda. &amp;quot; Fin de la validez&lt;br /&gt;
  ls_abs-start_time     = p_beguz. &amp;quot; Hora de inicio&lt;br /&gt;
  ls_abs-end_time       = p_enduz. &amp;quot; Hora final&lt;br /&gt;
  ls_abs-abs_att_hours  = &amp;#039;&amp;#039;. &amp;quot; Horas de presencia/absentismo&lt;br /&gt;
  ls_abs-previous_day   = &amp;#039;&amp;#039;. &amp;quot; Indicador de día anterior&lt;br /&gt;
&lt;br /&gt;
  IF  p_beguz IS NOT INITIAL AND p_enduz IS NOT INITIAL.&lt;br /&gt;
*  ----&amp;gt; Logica de Horas para el dia&lt;br /&gt;
    ls_abs-all_day_flag = space.&lt;br /&gt;
  ELSE.&lt;br /&gt;
*  ----&amp;gt; Logica Considera&lt;br /&gt;
    ls_abs-all_day_flag = &amp;#039;X&amp;#039;.&lt;br /&gt;
  ENDIF.&lt;br /&gt;
&lt;br /&gt;
  CALL FUNCTION &amp;#039;BAPI_PTMGRATTABS_MNGCREATION&amp;#039;&lt;br /&gt;
    EXPORTING&lt;br /&gt;
      employeenumber = p_pernr &amp;quot; Nro. Personal&lt;br /&gt;
      abs_att_type   = p_subty             &amp;quot; Clase de Absentismos&lt;br /&gt;
      hrabsatt_in    = ls_abs              &amp;quot; Campos presencia/absentismo, entrada sin datos adicionales&lt;br /&gt;
      simulate       = p_simulate&lt;br /&gt;
    IMPORTING&lt;br /&gt;
      hrabsatt_out   = p_hrabsatt_out&lt;br /&gt;
      hrabsattext    = p_text&lt;br /&gt;
    TABLES&lt;br /&gt;
      return         = p_retorno. &amp;quot; Retorno&lt;br /&gt;
&lt;br /&gt;
  CALL FUNCTION &amp;#039;BAPI_EMPLOYEE_DEQUEUE&amp;#039;&lt;br /&gt;
    EXPORTING&lt;br /&gt;
      number        = p_pernr&lt;br /&gt;
            .&lt;br /&gt;
&lt;br /&gt;
  loop at p_retorno into data(ls_retorno) where type = &amp;#039;E&amp;#039; or type = &amp;#039;A&amp;#039;.&lt;br /&gt;
  endloop&lt;br /&gt;
  if sy-subrc &amp;lt;&amp;gt; 0.&lt;br /&gt;
    CALL FUNCTION &amp;#039;BAPI_TRANSACTION_COMMIT&amp;#039;.&lt;br /&gt;
*    CALL FUNCTION &amp;#039;HR_PSBUFFER_INITIALIZE&amp;#039;.&lt;br /&gt;
  ELSE.&lt;br /&gt;
    CALL FUNCTION &amp;#039;BAPI_TRANSACTION_ROLLBACK&amp;#039;.&lt;br /&gt;
*    CALL FUNCTION &amp;#039;HR_PSBUFFER_INITIALIZE&amp;#039;.&lt;br /&gt;
  endif.&lt;br /&gt;
ENDFORM.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Rutinas para leer contingente==&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;method GET_SALDO_DIAS.&lt;br /&gt;
*--------------------------------------------------------------------*&lt;br /&gt;
* Calculo de saldo días&lt;br /&gt;
*--------------------------------------------------------------------*&lt;br /&gt;
  DATA: lt_abs_quota TYPE TABLE OF bapihrquota,&lt;br /&gt;
        lt_ktart     TYPE tim_quota_type_tab,&lt;br /&gt;
        ra_ktart     TYPE RANGE OF p2006-ktart,&lt;br /&gt;
        wa_ktart     LIKE LINE OF ra_ktart.&lt;br /&gt;
  DATA lv_saldodias TYPE anzhl.&lt;br /&gt;
&lt;br /&gt;
*--------------------------------------------------------------------*&lt;br /&gt;
* Calculo de saldo días&lt;br /&gt;
*--------------------------------------------------------------------*&lt;br /&gt;
  CALL FUNCTION &amp;#039;BAPI_TIMEQUOTA_GETDETAILEDLIST&amp;#039;&lt;br /&gt;
    EXPORTING&lt;br /&gt;
      employeenumber          = i_solicitud-pernr&lt;br /&gt;
*     QUOTASELECTIONMOD       = &amp;#039;1&amp;#039; &amp;quot;absentismos&lt;br /&gt;
    TABLES&lt;br /&gt;
      absencequotareturntable = lt_abs_quota.&lt;br /&gt;
&lt;br /&gt;
  CALL FUNCTION &amp;#039;Z_HCM_CONTINGENTE_FROM_ABS&amp;#039;&lt;br /&gt;
    EXPORTING&lt;br /&gt;
      i_pernr = i_solicitud-pernr&lt;br /&gt;
      i_begda = i_solicitud-begda&lt;br /&gt;
      i_endda = i_solicitud-endda&lt;br /&gt;
      i_subty = i_solicitud-subty&lt;br /&gt;
    IMPORTING&lt;br /&gt;
      e_ktart = lt_ktart.&lt;br /&gt;
&lt;br /&gt;
  LOOP AT lt_ktart INTO DATA(ls_ktart).&lt;br /&gt;
    wa_ktart-low = ls_ktart.&lt;br /&gt;
    wa_ktart-sign = &amp;#039;I&amp;#039;.&lt;br /&gt;
    wa_ktart-option = &amp;#039;EQ&amp;#039;.&lt;br /&gt;
    APPEND wa_ktart TO ra_ktart.&lt;br /&gt;
    CLEAR wa_ktart.&lt;br /&gt;
  ENDLOOP.&lt;br /&gt;
&lt;br /&gt;
  lv_saldodias = 0.&lt;br /&gt;
  IF ra_ktart[] IS NOT INITIAL.&lt;br /&gt;
    LOOP AT lt_abs_quota INTO DATA(ls_abs_quota) WHERE quotatype IN ra_ktart.&lt;br /&gt;
      lv_saldodias = lv_saldodias + ls_abs_quota-rest_free.&lt;br /&gt;
    ENDLOOP.&lt;br /&gt;
  ENDIF.&lt;br /&gt;
&lt;br /&gt;
  lv_saldodias = lv_saldodias - i_solicitud-quota_deduction.&lt;br /&gt;
&lt;br /&gt;
  IF lv_saldodias &amp;lt; 0.&lt;br /&gt;
    lv_saldodias = 0.&lt;br /&gt;
  ENDIF.&lt;br /&gt;
&lt;br /&gt;
  r_saldo = lv_saldodias.  &amp;quot;type anzhl&lt;br /&gt;
  endmethod.&lt;br /&gt;
  &lt;br /&gt;
FUNCTION z_hcm_contingente_from_abs.&lt;br /&gt;
*&amp;quot;----------------------------------------------------------------------&lt;br /&gt;
*&amp;quot;*&amp;quot;Interfase local&lt;br /&gt;
*&amp;quot;  IMPORTING&lt;br /&gt;
*&amp;quot;     REFERENCE(I_PERNR) TYPE  PERNR_D&lt;br /&gt;
*&amp;quot;     REFERENCE(I_BEGDA) TYPE  BEGDA DEFAULT SY-DATUM&lt;br /&gt;
*&amp;quot;     REFERENCE(I_ENDDA) TYPE  ENDDA DEFAULT SY-DATUM&lt;br /&gt;
*&amp;quot;     REFERENCE(I_SUBTY) TYPE  T554S-SUBTY&lt;br /&gt;
*&amp;quot;  EXPORTING&lt;br /&gt;
*&amp;quot;     REFERENCE(E_KTART) TYPE  TIM_QUOTA_TYPE_TAB&lt;br /&gt;
*&amp;quot;----------------------------------------------------------------------&lt;br /&gt;
  DATA lt_p0001 TYPE TABLE OF p0001.&lt;br /&gt;
  DATA ls_t503 TYPE t503.&lt;br /&gt;
  DATA ls_t001p TYPE t001p.&lt;br /&gt;
  DATA ls_t554s TYPE t554s.&lt;br /&gt;
  DATA ls_t556c TYPE t556c.&lt;br /&gt;
  DATA ls_t556r TYPE t556r.&lt;br /&gt;
&lt;br /&gt;
  CALL FUNCTION &amp;#039;HR_READ_INFOTYPE&amp;#039;&lt;br /&gt;
    EXPORTING&lt;br /&gt;
      pernr           = i_pernr&lt;br /&gt;
      infty           = &amp;#039;0001&amp;#039;&lt;br /&gt;
    TABLES&lt;br /&gt;
      infty_tab       = lt_p0001&lt;br /&gt;
    EXCEPTIONS&lt;br /&gt;
      infty_not_found = 1&lt;br /&gt;
      OTHERS          = 2.&lt;br /&gt;
  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;br /&gt;
* Implement suitable error handling here&lt;br /&gt;
  ENDIF.&lt;br /&gt;
&lt;br /&gt;
  LOOP AT lt_p0001 INTO DATA(ls_p0001) WHERE begda &amp;lt;= i_endda AND&lt;br /&gt;
                                             endda &amp;gt;= i_begda.&lt;br /&gt;
  ENDLOOP.&lt;br /&gt;
  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;br /&gt;
    RETURN.&lt;br /&gt;
  ENDIF.&lt;br /&gt;
&lt;br /&gt;
  SELECT SINGLE * INTO ls_t503 FROM  t503&lt;br /&gt;
         WHERE  persg  = ls_p0001-persg&lt;br /&gt;
         AND    persk  = ls_p0001-persk.&lt;br /&gt;
&lt;br /&gt;
  SELECT SINGLE * INTO ls_t001p FROM  t001p&lt;br /&gt;
         WHERE  werks  = ls_p0001-werks&lt;br /&gt;
         AND    btrtl  = ls_p0001-btrtl.&lt;br /&gt;
&lt;br /&gt;
  SELECT  SINGLE * INTO ls_t554s FROM  t554s&lt;br /&gt;
         WHERE  moabw  = ls_t001p-moabw&lt;br /&gt;
         AND    subty  = i_subty&lt;br /&gt;
         AND    endda  &amp;gt;= i_begda&lt;br /&gt;
         AND    begda  &amp;lt;= i_endda.&lt;br /&gt;
&lt;br /&gt;
  SELECT SINGLE * INTO ls_t556c FROM  t556c&lt;br /&gt;
         WHERE  mopgk  = ls_t503-konty&lt;br /&gt;
         AND    mozko  = ls_t001p-mozko&lt;br /&gt;
         AND    crule  = ls_t554s-crule&lt;br /&gt;
         AND    ctype  = &amp;#039;Q&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
  SELECT SINGLE * INTO ls_t556r FROM t556r&lt;br /&gt;
                      WHERE             &amp;quot;&lt;br /&gt;
                            mopgk =  ls_t503-konty&lt;br /&gt;
                        AND mozko =   ls_t001p-mozko&lt;br /&gt;
                        AND qtype =  &amp;#039;A&amp;#039;&lt;br /&gt;
                        AND dedrg =  ls_t556c-deabp&lt;br /&gt;
                        AND endda &amp;gt;= i_begda&lt;br /&gt;
                        AND begda &amp;lt;= i_endda.&lt;br /&gt;
&lt;br /&gt;
* copiado de LHRTIM00QUOTADEDUCTIONF01 #986&lt;br /&gt;
  CONSTANTS: QSTEP TYPE I VALUE 2.&lt;br /&gt;
&lt;br /&gt;
  DATA: BEGIN OF selqtypes OCCURS 0,&lt;br /&gt;
          cktart(2) TYPE c,&lt;br /&gt;
        END OF selqtypes.&lt;br /&gt;
&lt;br /&gt;
  DATA:qttps TYPE qttps.&lt;br /&gt;
  qttps = ls_t556r-qttps.&lt;br /&gt;
&lt;br /&gt;
     DO 100 TIMES.&lt;br /&gt;
      selqtypes-cktart = qttps.&lt;br /&gt;
      IF selqtypes-cktart IS INITIAL.  &amp;quot;&amp;#039;  &amp;#039;&amp;quot;&lt;br /&gt;
        EXIT.                          &amp;quot;end-of-sequence was found&lt;br /&gt;
      ENDIF.&lt;br /&gt;
      APPEND selqtypes.&lt;br /&gt;
      SHIFT qttps BY qstep PLACES LEFT.&lt;br /&gt;
    ENDDO.&lt;br /&gt;
&lt;br /&gt;
    loop at selqtypes.&lt;br /&gt;
      APPEND selqtypes-cktart to E_KTART.&lt;br /&gt;
    endloop.&lt;br /&gt;
&lt;br /&gt;
ENDFUNCTION.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
La función anterior es equivalente al siguiente método:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
  DATA lt_p0001 TYPE p0001_tab.&lt;br /&gt;
&lt;br /&gt;
  CALL FUNCTION &amp;#039;HR_READ_INFOTYPE&amp;#039;&lt;br /&gt;
    EXPORTING&lt;br /&gt;
      pernr           = i_pernr&lt;br /&gt;
      infty           = &amp;#039;0001&amp;#039;&lt;br /&gt;
      begda           = i_begda&lt;br /&gt;
      endda           = i_endda&lt;br /&gt;
    TABLES&lt;br /&gt;
      infty_tab       = lt_p0001&lt;br /&gt;
    EXCEPTIONS&lt;br /&gt;
      infty_not_found = 1&lt;br /&gt;
      OTHERS          = 2.&lt;br /&gt;
  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;br /&gt;
* Implement suitable error handling here&lt;br /&gt;
  ENDIF.&lt;br /&gt;
&lt;br /&gt;
  CALL METHOD cl_hrpaybr_absence_quotas=&amp;gt;get_quota_type_tab&lt;br /&gt;
    EXPORTING&lt;br /&gt;
      iv_pernr          = i_pernr&lt;br /&gt;
      iv_begda          = i_begda&lt;br /&gt;
      iv_endda          = i_endda&lt;br /&gt;
      it_p0001          = lt_p0001&lt;br /&gt;
      iv_subty          = i_subty&lt;br /&gt;
    IMPORTING&lt;br /&gt;
      et_quota_type_tab = ra_ktart.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tabla Contingentes: T556R - Reglamentación secuencia liquidación p.contingentes absent.&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
		
	</entry>
</feed>