<?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: creation of function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creation-of-function-module/m-p/4330000#M1031698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI &lt;/P&gt;&lt;P&gt;You can directly use HR_Read_INFOTYPE for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Infotype 0021 stores family details of an employee so you can get info of dependents from it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function hr_read_infotype.&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;     VALUE(TCLAS) TYPE  PSPAR-TCLAS DEFAULT 'A'&lt;/P&gt;&lt;P&gt;     VALUE(PERNR) TYPE  PRELP-PERNR ---&amp;gt; put pernr&lt;/P&gt;&lt;P&gt;     VALUE(INFTY) TYPE  PRELP-INFTY    ---&amp;gt; '0021'&lt;/P&gt;&lt;P&gt;     VALUE(BEGDA) TYPE  PRELP-BEGDA DEFAULT '18000101'&lt;/P&gt;&lt;P&gt;     VALUE(ENDDA) TYPE  PRELP-ENDDA DEFAULT '99991231'&lt;/P&gt;&lt;P&gt;     REFERENCE(BYPASS_BUFFER) TYPE  FLAG DEFAULT ' '&lt;/P&gt;&lt;P&gt;     REFERENCE(LEGACY_MODE) TYPE  BOOLE_D DEFAULT SPACE&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;     VALUE(SUBRC) TYPE  SY-SUBRC&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;      INFTY_TAB  --&amp;gt; itab compatible to PA0021&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;      INFTY_NOT_FOUND&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Aug 2008 06:07:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-29T06:07:12Z</dc:date>
    <item>
      <title>creation of function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creation-of-function-module/m-p/4329999#M1031697</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 would like to create a FUNCTION MODULE to get the names of dependents of an employee from IT0021 by giving the pernr as an input parameter.&lt;/P&gt;&lt;P&gt;Any pointers on the source code would helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 06:04:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creation-of-function-module/m-p/4329999#M1031697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T06:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: creation of function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creation-of-function-module/m-p/4330000#M1031698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI &lt;/P&gt;&lt;P&gt;You can directly use HR_Read_INFOTYPE for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Infotype 0021 stores family details of an employee so you can get info of dependents from it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function hr_read_infotype.&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;     VALUE(TCLAS) TYPE  PSPAR-TCLAS DEFAULT 'A'&lt;/P&gt;&lt;P&gt;     VALUE(PERNR) TYPE  PRELP-PERNR ---&amp;gt; put pernr&lt;/P&gt;&lt;P&gt;     VALUE(INFTY) TYPE  PRELP-INFTY    ---&amp;gt; '0021'&lt;/P&gt;&lt;P&gt;     VALUE(BEGDA) TYPE  PRELP-BEGDA DEFAULT '18000101'&lt;/P&gt;&lt;P&gt;     VALUE(ENDDA) TYPE  PRELP-ENDDA DEFAULT '99991231'&lt;/P&gt;&lt;P&gt;     REFERENCE(BYPASS_BUFFER) TYPE  FLAG DEFAULT ' '&lt;/P&gt;&lt;P&gt;     REFERENCE(LEGACY_MODE) TYPE  BOOLE_D DEFAULT SPACE&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;     VALUE(SUBRC) TYPE  SY-SUBRC&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;      INFTY_TAB  --&amp;gt; itab compatible to PA0021&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;      INFTY_NOT_FOUND&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 06:07:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creation-of-function-module/m-p/4330000#M1031698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T06:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: creation of function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creation-of-function-module/m-p/4330001#M1031699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its quite simple..cretae an FM with import parameter as im_pernr. u can use a table tb_details(in Tables Tab) to collate the details. In the source code of the FM fire a select query to fetch all the reqd details from IT0021.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 06:09:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creation-of-function-module/m-p/4330001#M1031699</guid>
      <dc:creator>former_member195383</dc:creator>
      <dc:date>2008-08-29T06:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: creation of function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creation-of-function-module/m-p/4330002#M1031700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi narender,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually you already have a standard Function Module &lt;STRONG&gt;HR_READ_INFOTYPE&lt;/STRONG&gt; which can fetch you the right information..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You do not need to create a new one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Example&lt;/U&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'HR_READ_INFOTYPE'
      EXPORTING
        pernr           = fs_pa00-pernr
        infty           = '0041'
        begda           = fs_pa0000-begda
        endda           = fs_pa0000-endda
        bypass_buffer   = 'X'
      TABLES
        infty_tab       = t_pa0041
      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.                             " IF SY-SUBRC NE 0.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best of luck,&lt;/P&gt;&lt;P&gt;Bhumika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 06:09:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creation-of-function-module/m-p/4330002#M1031700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T06:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: creation of function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creation-of-function-module/m-p/4330003#M1031701</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;Check HR_ESS_EMPSALARYDETAIL_10 to solve your query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this table for employee salary details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PA0008 - HR Master Record: Infotype 0008 (Basic Pay)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. There is no ONE fm which will retrieve ALL infotypes data&lt;/P&gt;&lt;P&gt;with all fields in one shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The reason is that all infotypes have different fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. To do this, u may have to call this FM&lt;/P&gt;&lt;P&gt;more than once , (for each infotype - one time)&lt;/P&gt;&lt;P&gt;and get the data in different structures/itabs P0001, P0002, P0006 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;Ashok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 06:11:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creation-of-function-module/m-p/4330003#M1031701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T06:11:45Z</dc:date>
    </item>
  </channel>
</rss>

