<?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: Function Module for determining whether an employee is manager in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-determining-whether-an-employee-is-manager/m-p/7328607#M1537840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Milan,&lt;/P&gt;&lt;P&gt;[Check this thread|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="8305193"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Duy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Sep 2010 05:54:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-10T05:54:53Z</dc:date>
    <item>
      <title>Function Module for determining whether an employee is manager</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-determining-whether-an-employee-is-manager/m-p/7328605#M1537838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Could anyone please let me know if there is a function module to determine whether a given employee is a manager in HR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;           Milan Thaker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 04:56:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-determining-whether-an-employee-is-manager/m-p/7328605#M1537838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-10T04:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for determining whether an employee is manager</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-determining-whether-an-employee-is-manager/m-p/7328606#M1537839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you might have to create one on your own, which satisfies this requirement...&lt;/P&gt;&lt;P&gt;Fetch the employee details and check for your condition...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 05:53:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-determining-whether-an-employee-is-manager/m-p/7328606#M1537839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-10T05:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for determining whether an employee is manager</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-determining-whether-an-employee-is-manager/m-p/7328607#M1537840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Milan,&lt;/P&gt;&lt;P&gt;[Check this thread|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="8305193"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Duy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 05:54:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-determining-whether-an-employee-is-manager/m-p/7328607#M1537840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-10T05:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for determining whether an employee is manager</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-determining-whether-an-employee-is-manager/m-p/7328608#M1537841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Milan,&lt;/P&gt;&lt;P&gt;well, I don't know if there's such a module function.&lt;/P&gt;&lt;P&gt;Nevertheless, you could search thru the organization in table HRP1001&lt;/P&gt;&lt;P&gt;- selecting OTYPE = 'S', RSIGN = 'A' and RELAT = '012' will give you the managed positions (OBJID)&lt;/P&gt;&lt;P&gt;- then, for every record in the former query, search for OTYPE = 'P' and VARYF = 'S ' concatenated with the OBJID retrieved in the previous step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if the organization is:&lt;/P&gt;&lt;P&gt;Department 1  ---  ID 'S 50001122'&lt;/P&gt;&lt;P&gt;..Managed by  --- ID 'P 00001999'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...then the records in table HRP1001 would look like:&lt;/P&gt;&lt;P&gt;OTYPE = 'S', OBJID = '50001122', RSIGN = 'A', RELAT = '012'     //&amp;lt;-- meaning the department 1&lt;/P&gt;&lt;P&gt;OTYPE = 'P', OBJID = '00001999', VARID = 'S 50001122'     // &amp;lt;-- meaning the personnel number who manages department 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps. Kind regards,&lt;/P&gt;&lt;P&gt;Alvaro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 06:09:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-determining-whether-an-employee-is-manager/m-p/7328608#M1537841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-10T06:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for determining whether an employee is manager</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-determining-whether-an-employee-is-manager/m-p/7328609#M1537842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Milan,&lt;/P&gt;&lt;P&gt;I think if you execute fm RH_GET_OBJECTS_OF_MANAGER by giving the username if it returns obj_tab then user is a manager&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Bala Duvvuri&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 09:25:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-determining-whether-an-employee-is-manager/m-p/7328609#M1537842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-10T09:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for determining whether an employee is manager</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-determining-whether-an-employee-is-manager/m-p/7328610#M1537843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To determine whether EE is manager, you should check relation of his position to position of other Employees. If he/she has any &lt;STRONG&gt;direct reports&lt;/STRONG&gt; then he/she is manager for someone. So this goes like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"first determine EE's position

"then check position relation to other positions
call function 'RH_READ_INFTY_1001'
      exporting
        plvar            = '01'
        otype            = 'S'
        objid            = ee_position
        begda            = sy-datum
        endda            = sy-datum
        istat            = '1'
        subty            = 'B002'   "position which Reports to EE position
      tables
        i1001            = it_1001
      exceptions
        nothing_found    = 1
        wrong_condition  = 2
        wrong_parameters = 3
        others           = 4.

if it_1001[] is not initial.
   "is manager
else.
   "is not manager
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 09:47:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-determining-whether-an-employee-is-manager/m-p/7328610#M1537843</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-09-10T09:47:48Z</dc:date>
    </item>
  </channel>
</rss>

