<?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: Read INFOTYPES in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-infotypes/m-p/2346196#M517566</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HR_READ_INFOTYPE =&amp;gt;&lt;/P&gt;&lt;P&gt;This ABAP function is a wrap for simple HR_READ_INFOTYPE and returns the most recent record in the interval. It can be used in any HR/Payroll ABAP program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have included this function module mainly because it is used by z_p_get_manager but also because it is a handy little function that can make your code easier to read. You may argue that it will only eliminate a few lines of code, however most of the HR or Payroll interfaces have to read many infotypes and when you&amp;#146;re looking over the code to solve an urgent problem, you want to see a code that&amp;#146;s as fluff free as possible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the first glance this function looks similar with SAP&amp;#146;s HR_INFOTYPE_GETDETAIL but there is a major difference. SAP&amp;#146;s function module needs the precise begda and endda for the record you want to read. This function module will give you the most recent record in your begda-endda interval.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.brookshireconsulting.com/sources_get_infotype_line.html" target="test_blank"&gt;http://www.brookshireconsulting.com/sources_get_infotype_line.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'IF_HRPA_READ_INFOTYPE=&amp;gt;&lt;/P&gt;&lt;P&gt;The system does not handle actual records to access the buffer and write data to it. For this purpose, the system instead always uses containers, which represent the abstraction of a record. In general, containers are seen within the system as instances of class CL_HRPA_INFOTYPE_CONTAINER. A container can hold any or all of the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Infotype records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Secondary infotype records, where infotype views are present&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Cost assignment data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Infotype text data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this release, infotypes generally must be processed by container IF_HRPA_INFOTYPE_CONTAINER. Some infotypes, however &amp;#150; whether specialized infotypes created in this release, or infotypes to be migrated from prior releases &amp;#150; are processed by a different container, which will be appropriate under certain limited circumstances. To determine the container that will process your infotype, you may review, if desired, the Classes for Determining Version IDs and Infotype Containers table (T582ITVCLAS), which is introduced in a subsequent topic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From this point forward, all examples of infotypes are assumed to be processed by container IF_HRPA_INFOTYPE_CONTAINER.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/43/21fa854a032be8e10000000a1553f7/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005vp/helpdata/en/43/21fa854a032be8e10000000a1553f7/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2007 12:04:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-05T12:04:26Z</dc:date>
    <item>
      <title>Read INFOTYPES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-infotypes/m-p/2346194#M517564</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;I usually read infotypes with the HR_READ_INFOTYPE function. But I discovered the method 'read' in the class 'IF_HRPA_READ_INFOTYPE' that do the same operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does someone know the differences between two forms of read infotypes? What solution is more efficient  and faster ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 11:54:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-infotypes/m-p/2346194#M517564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T11:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Read INFOTYPES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-infotypes/m-p/2346195#M517565</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;Its always preferable and better to goin for OOPS based ABAP.&lt;/P&gt;&lt;P&gt; So use class 'IF_HRPA_READ_INFOTYPE' .&lt;/P&gt;&lt;P&gt;Bcoz ABAP Objects are Reusable and need not require any upgradation later in new versions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;****Reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 12:00:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-infotypes/m-p/2346195#M517565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T12:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Read INFOTYPES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-infotypes/m-p/2346196#M517566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HR_READ_INFOTYPE =&amp;gt;&lt;/P&gt;&lt;P&gt;This ABAP function is a wrap for simple HR_READ_INFOTYPE and returns the most recent record in the interval. It can be used in any HR/Payroll ABAP program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have included this function module mainly because it is used by z_p_get_manager but also because it is a handy little function that can make your code easier to read. You may argue that it will only eliminate a few lines of code, however most of the HR or Payroll interfaces have to read many infotypes and when you&amp;#146;re looking over the code to solve an urgent problem, you want to see a code that&amp;#146;s as fluff free as possible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the first glance this function looks similar with SAP&amp;#146;s HR_INFOTYPE_GETDETAIL but there is a major difference. SAP&amp;#146;s function module needs the precise begda and endda for the record you want to read. This function module will give you the most recent record in your begda-endda interval.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.brookshireconsulting.com/sources_get_infotype_line.html" target="test_blank"&gt;http://www.brookshireconsulting.com/sources_get_infotype_line.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'IF_HRPA_READ_INFOTYPE=&amp;gt;&lt;/P&gt;&lt;P&gt;The system does not handle actual records to access the buffer and write data to it. For this purpose, the system instead always uses containers, which represent the abstraction of a record. In general, containers are seen within the system as instances of class CL_HRPA_INFOTYPE_CONTAINER. A container can hold any or all of the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Infotype records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Secondary infotype records, where infotype views are present&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Cost assignment data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Infotype text data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this release, infotypes generally must be processed by container IF_HRPA_INFOTYPE_CONTAINER. Some infotypes, however &amp;#150; whether specialized infotypes created in this release, or infotypes to be migrated from prior releases &amp;#150; are processed by a different container, which will be appropriate under certain limited circumstances. To determine the container that will process your infotype, you may review, if desired, the Classes for Determining Version IDs and Infotype Containers table (T582ITVCLAS), which is introduced in a subsequent topic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From this point forward, all examples of infotypes are assumed to be processed by container IF_HRPA_INFOTYPE_CONTAINER.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/43/21fa854a032be8e10000000a1553f7/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005vp/helpdata/en/43/21fa854a032be8e10000000a1553f7/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 12:04:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-infotypes/m-p/2346196#M517566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T12:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Read INFOTYPES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-infotypes/m-p/2346197#M517567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;The Method READ of the Interface 'IF_HRPA_READ_INFOTYPE'  is also reads the data of the Infotype.&lt;/P&gt;&lt;P&gt;Some class will implement this interface and we can use that class&lt;/P&gt;&lt;P&gt;This is completely Object oriented concept of ABAP in which this classes and methods are used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where as the Fun module HR_READ_IFOTYPE  uses the general ABAP without OOPS ABAP.&lt;/P&gt;&lt;P&gt;So we can use any of the above two but to use the first one we have to have some Object oriented concepts knowledge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 12:05:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-infotypes/m-p/2346197#M517567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T12:05:16Z</dc:date>
    </item>
  </channel>
</rss>

