<?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: Problem with Function Module to Get Managers in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-to-get-managers/m-p/6604583#M1437825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this link:[http://sapprograms.blogspot.com/]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just hit ctrl+F and find for "get manager details"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Feb 2010 08:39:30 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2010-02-08T08:39:30Z</dc:date>
    <item>
      <title>Problem with Function Module to Get Managers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-to-get-managers/m-p/6604573#M1437815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have some developed applications in which we need to get line managers for approval processing.  For that we are using &lt;/P&gt;&lt;P&gt;the standard Function Module : HR_ASR_GET_LEADER.  As we have HR Structural Authorizations maintained, this function module is not  displaying Line Managers for some employees (even SAP_ALL is there)as it is performing authorization checks on structural profiles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So we have developed a custom FM : ZGetApprs in which are retrieving Line managers from the table HRP1001. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to get clarification on the following: &lt;/P&gt;&lt;P&gt;1) In future if upgrades are done, will this custom Function module will affect in any areas.&lt;/P&gt;&lt;P&gt;2)  Is there any function module like HR_ASR_GET_LEADER which will  not perfrom unnecessary checking on structural profiles for simply getting Line managers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mustafa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 07:27:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-to-get-managers/m-p/6604573#M1437815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-01T07:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Function Module to Get Managers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-to-get-managers/m-p/6604574#M1437816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shareef,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Use one of below given FM according to your convenience... Give necessary inputs.. One is get the chief position and one is to get the immediate supervisor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  RH_ACT_LEADING_POSITION&lt;/P&gt;&lt;P&gt;  SWX_GET_MANAGER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sanil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 07:45:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-to-get-managers/m-p/6604574#M1437816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-01T07:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Function Module to Get Managers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-to-get-managers/m-p/6604575#M1437817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mustafa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Z function module will not effect anything during upgrades as I have developed so many custom function modules and infotypes in our organization to meet the requirements.&lt;/P&gt;&lt;P&gt;The Standard fucntion module also retreive the data from the Table HRP1001, therefore it will not have any negative impact on the system during upgrades.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;2.As per my knowledge there is no such standard function module which will not check the structural authorizations to get the data from the organization structure.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Azam uddin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 10:56:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-to-get-managers/m-p/6604575#M1437817</guid>
      <dc:creator>azam_uddin</dc:creator>
      <dc:date>2010-02-01T10:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Function Module to Get Managers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-to-get-managers/m-p/6604576#M1437818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Musthafa,&lt;/P&gt;&lt;P&gt;                     future upgradation won't affect your developed function module or your system ,as it is a z development.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abdul Hameed Hussain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 10:58:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-to-get-managers/m-p/6604576#M1437818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-01T10:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Function Module to Get Managers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-to-get-managers/m-p/6604577#M1437819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u please be more clear about the parameters we have to pass to the above function modules to get the line managers of the particular employee?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried but it is giving null results and unable to pass the input parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shareef&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 11:54:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-to-get-managers/m-p/6604577#M1437819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-01T11:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Function Module to Get Managers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-to-get-managers/m-p/6604578#M1437820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mustafa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are enhancing the standard function module or trying to change the authorizations in you function module , then there is a chance of affect during upgrades, otherwise as Azam mentioned there will not be any affect unless you are trying to change even HRP1001 structure of the table. Simply retrieving has no affect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Surya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 12:08:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-to-get-managers/m-p/6604578#M1437820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-01T12:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Function Module to Get Managers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-to-get-managers/m-p/6604579#M1437821</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;Use this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION ZWF_FIND_USERS.
*"-----------------------------------------------------------
*"*"Local Interface:
*"  TABLES
*"      ACTOR_TAB STRUCTURE  SWHACTOR
*"      AC_CONTAINER STRUCTURE  SWCONT
*"  EXCEPTIONS
*"      NOAGENT_FOUND
*"-----------------------------------------------------------  INCLUDE &amp;lt;CNTN01&amp;gt;.
  DATA : POSITION_ID LIKE ZBUSAREA-OBJID,
         LT_HOLDERS TYPE STANDARD TABLE OF SWHACTOR,
         LWA_HOLDERS TYPE SWHACTOR,
         LWA_USERS TYPE STANDARD TABLE OF HRP1001,
         WA_USERS TYPE  HRP1001,
         NUM_LINES TYPE I.
*Read values assigned to the rule criteria
  SWC_GET_ELEMENT AC_CONTAINER 'POSITION_ID' POSITION_ID.  SELECT * FROM HRP1001 INTO table LWA_USERS
  WHERE OBJID = POSITION_ID.
  IF NOT LWA_USERS IS INITIAL.
    REFRESH LT_HOLDERS[].    loop at LWA_USERS into WA_USERS.      Condense WA_USERS-SOBID.
      LWA_HOLDERS-OTYPE = 'US'.
      LWA_HOLDERS-OBJID = WA_USERS-SOBID.
      APPEND LWA_HOLDERS TO LT_HOLDERS.
      APPEND LINES OF LT_HOLDERS TO ACTOR_TAB.
    endloop.  ENDIF.
  DESCRIBE TABLE ACTOR_TAB LINES NUM_LINES.
  IF NUM_LINES IS INITIAL.
    RAISE NOAGENT_FOUND.
  ENDIF.ENDFUNCTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 12:16:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-to-get-managers/m-p/6604579#M1437821</guid>
      <dc:creator>vijy_mukunthan</dc:creator>
      <dc:date>2010-02-01T12:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Function Module to Get Managers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-to-get-managers/m-p/6604580#M1437822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have already developed the custom fucntion module using the table HRP1001 to retreive the line managers. &lt;/P&gt;&lt;P&gt;We only want to know wat is the effect of using this custom develop function module during an upgrade.&lt;/P&gt;&lt;P&gt;We want to know is there any standard function module which will not perform the authorizations on the structual profiles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mustafa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 12:47:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-to-get-managers/m-p/6604580#M1437822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-01T12:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Function Module to Get Managers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-to-get-managers/m-p/6604581#M1437823</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; SWX_GET_MANGER wont do authorization check. i have used this only in my project. Use the same thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 06:30:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-to-get-managers/m-p/6604581#M1437823</guid>
      <dc:creator>vijy_mukunthan</dc:creator>
      <dc:date>2010-02-08T06:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Function Module to Get Managers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-to-get-managers/m-p/6604582#M1437824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shareef,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check in forum or just try like below given... check in PPOM_OLD transaction and find out the org structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table AC_CONTAINER needs to filled and passed.&lt;/P&gt;&lt;P&gt; ELEMENT = ORG_OBJECT&lt;/P&gt;&lt;P&gt; TAB_INDEX = 000001&lt;/P&gt;&lt;P&gt; ELEMLENGTH = 012(Length of User Id concatenated with US in front)&lt;/P&gt;&lt;P&gt; TYPE = C&lt;/P&gt;&lt;P&gt; VALUE = US concatenated with User ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table ACTOR_TAB will contain the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sanil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 07:09:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-to-get-managers/m-p/6604582#M1437824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-08T07:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Function Module to Get Managers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-to-get-managers/m-p/6604583#M1437825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this link:[http://sapprograms.blogspot.com/]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just hit ctrl+F and find for "get manager details"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 08:39:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-to-get-managers/m-p/6604583#M1437825</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-02-08T08:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Function Module to Get Managers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-to-get-managers/m-p/6604584#M1437826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved by writing the custom code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Oct 2010 10:43:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-to-get-managers/m-p/6604584#M1437826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-02T10:43:51Z</dc:date>
    </item>
  </channel>
</rss>

