<?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: Infotype in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/infotype/m-p/1098173#M102715</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;In HR Module keep few things in your mind&lt;/P&gt;&lt;P&gt;P0001, P0002....P0017....&lt;/P&gt;&lt;P&gt;All are line type of tables&lt;/P&gt;&lt;P&gt;PA0001, PA0002.....PA0017..&lt;/P&gt;&lt;P&gt;And their infotypes Are&lt;/P&gt;&lt;P&gt;0001, 0002.....0017...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in your case instead of INFTY = P0017 use infty = 0017.&lt;/P&gt;&lt;P&gt;Hope you get your problem solved now&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Dec 2005 06:46:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-07T06:46:22Z</dc:date>
    <item>
      <title>Infotype</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infotype/m-p/1098165#M102707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to retrieve a field from an infotype.&lt;/P&gt;&lt;P&gt;Suppose in infotype P0017,the field name is KFZKZ.I want to compare this field with an internal table field.&lt;/P&gt;&lt;P&gt;1.Can I just use If P0017-KFZKZ = INTAB-FIELD or some thing else (because it is an infotype)&lt;/P&gt;&lt;P&gt;2.If i want to retrieve P0017-KFZKZ,how can i do this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reply immediately&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 09:22:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infotype/m-p/1098165#M102707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T09:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Infotype</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infotype/m-p/1098166#M102708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayasree,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the following method &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Infotypes : 0017.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rp-provide-from-last p0017 space pn-begda pn-endda.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if p0017-kfzkz = intab-field.&lt;/P&gt;&lt;P&gt;*--so some thing&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;*--do something.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it help you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudhakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 09:31:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infotype/m-p/1098166#M102708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T09:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Infotype</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infotype/m-p/1098167#M102709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayasree,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to seelct KFZKZ from table PA0017 (HR master record: Infotype 0017 (Travel Privileges) and then do the comparision.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 09:33:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infotype/m-p/1098167#M102709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T09:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Infotype</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infotype/m-p/1098168#M102710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jayasree,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. How to retrieve a field from an infotype&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Before answering, this &lt;/P&gt;&lt;P&gt;  how are u retrieing infotype data ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Use the FM&lt;/P&gt;&lt;P&gt;  HR_READ_INFOTYPE&lt;/P&gt;&lt;P&gt;  (This is recommended by SAP)&lt;/P&gt;&lt;P&gt;   as compared to getting data&lt;/P&gt;&lt;P&gt;   thru SQLs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Yes, after retriving data,&lt;/P&gt;&lt;P&gt;  u can compare the field, like any other table field.&lt;/P&gt;&lt;P&gt;  (Make sure u compare the right record, bcos&lt;/P&gt;&lt;P&gt;   the infotype internal table may contain&lt;/P&gt;&lt;P&gt;  more than one record )&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 09:36:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infotype/m-p/1098168#M102710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T09:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Infotype</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infotype/m-p/1098169#M102711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayasree,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The mode of data retrieval really depends on the design of your report. If you have tied it to either PNP or PNPCE Logical Database, you can use the macro ie&lt;/P&gt;&lt;P&gt;RP-PROVIDE-FROM-LAST or LOOP AT P0017.. ENDLOOP. If you are not using the Logical Database, you are better off using the function call 'HR_READ_INFOTYPE' instead instead of direct SELECT on the PA0017 table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh DAtti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 10:20:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infotype/m-p/1098169#M102711</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2005-12-06T10:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Infotype</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infotype/m-p/1098170#M102712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REPORT  ZTEST.&lt;/P&gt;&lt;P&gt;INFOTYPES: 0017.&lt;/P&gt;&lt;P&gt;DATA:PERNR LIKE P0017-PERNR.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HR_READ_INFOTYPE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TCLAS                 = 'A'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERNR                 = PERNR&lt;/P&gt;&lt;P&gt;    INFTY                 = 'P0017'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BEGDA                 = '18000101'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ENDDA                 = '99991231'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BYPASS_BUFFER         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LEGACY_MODE           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SUBRC                 =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    INFTY_TAB             = P0017&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   INFTY_NOT_FOUND       = 1&lt;/P&gt;&lt;P&gt;   OTHERS                = 2&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;WRITE P0017-PERNR.&lt;/P&gt;&lt;P&gt;WRITE P0017-KFZKZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iF i EXECUTE THIS CODE , A SHORT DUMP IS OCCURING . IT IS TELLING INCORRECT FUNCTION MODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PL REPLY IMMM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 06:10:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infotype/m-p/1098170#M102712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-07T06:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Infotype</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infotype/m-p/1098171#M102713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. While calling the FM &lt;/P&gt;&lt;P&gt;   Use&lt;/P&gt;&lt;P&gt;   infty = '0017'&lt;/P&gt;&lt;P&gt;   instead of infty = 'P0017'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ( Don't write P )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. It will work. I tried here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. We have to give the name of the infotype.&lt;/P&gt;&lt;P&gt;   (Not the internal table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. The above will solve your problem and&lt;/P&gt;&lt;P&gt;   u will not get any short dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. However i noticed in the code, that&lt;/P&gt;&lt;P&gt;   u have not passed Pernr value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ie. we have to pass the actual personnel number.&lt;/P&gt;&lt;P&gt;   eg. 0001, 0002 ,0100 etc.&lt;/P&gt;&lt;P&gt;  Then only u will get some data.&lt;/P&gt;&lt;P&gt;  Otherwise no data in P0017.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Amit Mittal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Amit Mittal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Amit Mittal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 06:18:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infotype/m-p/1098171#M102713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-07T06:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Infotype</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infotype/m-p/1098172#M102714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayasree,&lt;/P&gt;&lt;P&gt;Try this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZTEST.&lt;/P&gt;&lt;P&gt;INFOTYPES: 0017.&lt;/P&gt;&lt;P&gt;DATA:V_PERNR LIKE P0017-PERNR,&lt;/P&gt;&lt;P&gt;     IT_0017 LIKE P0017.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_PERNR = '1234'. "You need to pass Personnel no&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HR_READ_INFOTYPE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TCLAS = 'A'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;PERNR = V_PERNR&lt;/P&gt;&lt;P&gt;INFTY = '0017'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BEGDA = '18000101'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ENDDA = '99991231'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BYPASS_BUFFER = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;LEGACY_MODE = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SUBRC =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;INFTY_TAB = IT_0017&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;INFTY_NOT_FOUND = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE IT_0017-PERNR.&lt;/P&gt;&lt;P&gt;WRITE IT_0017-KFZKZ.&lt;/P&gt;&lt;P&gt;Let me know still you are getting dump.&lt;/P&gt;&lt;P&gt;Award points if it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sudhakar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 06:19:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infotype/m-p/1098172#M102714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-07T06:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Infotype</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infotype/m-p/1098173#M102715</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;In HR Module keep few things in your mind&lt;/P&gt;&lt;P&gt;P0001, P0002....P0017....&lt;/P&gt;&lt;P&gt;All are line type of tables&lt;/P&gt;&lt;P&gt;PA0001, PA0002.....PA0017..&lt;/P&gt;&lt;P&gt;And their infotypes Are&lt;/P&gt;&lt;P&gt;0001, 0002.....0017...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in your case instead of INFTY = P0017 use infty = 0017.&lt;/P&gt;&lt;P&gt;Hope you get your problem solved now&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 06:46:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infotype/m-p/1098173#M102715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-07T06:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Infotype</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infotype/m-p/1098174#M102716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare the internal table type table pa0017..&lt;/P&gt;&lt;P&gt;pass the value of the Infotype...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e., instead of p0017, give '0017'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Jun 2007 12:48:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infotype/m-p/1098174#M102716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-24T12:48:09Z</dc:date>
    </item>
  </channel>
</rss>

