<?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 RH_OBJID_REQUEST question in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rh-objid-request-question/m-p/6064937#M1354547</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 must use FM RH_OBJID_REQUEST for a F4 help field. This FM must display the organisationnal structure, but i would like disable some objects ; this object should be displayed but disabled, so can i do this with this FM ? if yes, can you give me an example ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Aug 2009 12:40:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-26T12:40:49Z</dc:date>
    <item>
      <title>RH_OBJID_REQUEST question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rh-objid-request-question/m-p/6064937#M1354547</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 must use FM RH_OBJID_REQUEST for a F4 help field. This FM must display the organisationnal structure, but i would like disable some objects ; this object should be displayed but disabled, so can i do this with this FM ? if yes, can you give me an example ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 12:40:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rh-objid-request-question/m-p/6064937#M1354547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-26T12:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: RH_OBJID_REQUEST question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rh-objid-request-question/m-p/6064938#M1354548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was also able to disable the unwanted org-units by using the BASE_OBJECTS table of the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that this table must contains &lt;STRONG&gt;all&lt;/STRONG&gt; the org-units you want to disable (meaning, filling 1 org-unit will enable only this org-unit and not the subordinate org-units).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote an FM that receive org-unit/s and return all the subordinate org-units.&lt;/P&gt;&lt;P&gt;The whole code of the FM is too complicated, but basically it is a recursive call for this code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Pull releated Org-units.
  SELECT varyf FROM hrp1001
      INTO CORRESPONDING FIELDS OF TABLE lt_hrp1001
      WHERE otype =  'O'
      AND   objid IN  lt_org_units_in1
      AND   rsign =  'B'
      AND   relat =  '002'
      AND   begda LE  pv_date
      AND   endda GE  pv_date.&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;This FM allows a quick fill the BASE_OBJECT table and your problem is solved.&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;Enjoy.&lt;/P&gt;&lt;P&gt;Ayal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ayal Telem on Sep 15, 2010 12:17 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 10:14:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rh-objid-request-question/m-p/6064938#M1354548</guid>
      <dc:creator>yes_sapteam</dc:creator>
      <dc:date>2010-09-15T10:14:48Z</dc:date>
    </item>
  </channel>
</rss>

