<?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: SAP Function Module for retrieving Relationships in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-function-module-for-retrieving-relationships/m-p/1561724#M253933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Developer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am usually using the following function module to read to OM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*   SAP_SORG (OrgStructure with assigned orgunits)
    REFRESH: lt_struc.
    CALL FUNCTION 'RHPH_STRUCTURE_READ'
      EXPORTING
        plvar             = '01'            " active Planvar.
        otype             = 'O'             " OrgUnit
        objid             = ld_objid  " Toplevel-Node
        wegid             = 'SAP_SORG'
        begda             = iw_begda
        endda             = iw_endda
        pup_info          = 'X'
        with_stext        = 'X'
        tdepth            = 0               " alle Sub-Levels
      TABLES
        stru_tab          = lt_struc
      EXCEPTIONS
        catalogue_problem = 1
        root_not_found    = 2
        wegid_not_found   = 3.&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;&lt;/P&gt;&lt;P&gt;The parameter &amp;lt;b&amp;gt;WEGID&amp;lt;/b&amp;gt; is the crucial on which determines the objects that are read from the OM. To understand the evaluation path (WEGID) better have a look at transaction &amp;lt;b&amp;gt;PPST&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you require an RFC-enabled function module then you can use &amp;lt;b&amp;gt;RH_RFC_STRUC_GET_MULTIPLE&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Oct 2006 20:11:04 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2006-10-01T20:11:04Z</dc:date>
    <item>
      <title>SAP Function Module for retrieving Relationships</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-function-module-for-retrieving-relationships/m-p/1561721#M253930</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;Can someone tell me the name of the SAP Function Module, to retrieve the relationship details between any two objects in the organization structure along with the Additional data associated with the relation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 16:06:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-function-module-for-retrieving-relationships/m-p/1561721#M253930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T16:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Function Module for retrieving Relationships</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-function-module-for-retrieving-relationships/m-p/1561722#M253931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this HR req. if so use the FM RH_STRUC_GET&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 16:09:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-function-module-for-retrieving-relationships/m-p/1561722#M253931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T16:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Function Module for retrieving Relationships</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-function-module-for-retrieving-relationships/m-p/1561723#M253932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try HR_ECM_READ_INFOTYPE_1001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 16:23:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-function-module-for-retrieving-relationships/m-p/1561723#M253932</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-09-28T16:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Function Module for retrieving Relationships</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-function-module-for-retrieving-relationships/m-p/1561724#M253933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Developer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am usually using the following function module to read to OM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*   SAP_SORG (OrgStructure with assigned orgunits)
    REFRESH: lt_struc.
    CALL FUNCTION 'RHPH_STRUCTURE_READ'
      EXPORTING
        plvar             = '01'            " active Planvar.
        otype             = 'O'             " OrgUnit
        objid             = ld_objid  " Toplevel-Node
        wegid             = 'SAP_SORG'
        begda             = iw_begda
        endda             = iw_endda
        pup_info          = 'X'
        with_stext        = 'X'
        tdepth            = 0               " alle Sub-Levels
      TABLES
        stru_tab          = lt_struc
      EXCEPTIONS
        catalogue_problem = 1
        root_not_found    = 2
        wegid_not_found   = 3.&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;&lt;/P&gt;&lt;P&gt;The parameter &amp;lt;b&amp;gt;WEGID&amp;lt;/b&amp;gt; is the crucial on which determines the objects that are read from the OM. To understand the evaluation path (WEGID) better have a look at transaction &amp;lt;b&amp;gt;PPST&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you require an RFC-enabled function module then you can use &amp;lt;b&amp;gt;RH_RFC_STRUC_GET_MULTIPLE&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2006 20:11:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-function-module-for-retrieving-relationships/m-p/1561724#M253933</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-10-01T20:11:04Z</dc:date>
    </item>
  </channel>
</rss>

