<?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: Is there a Function module to get customer hierarchy data? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-function-module-to-get-customer-hierarchy-data/m-p/917941#M58511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victoria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even i was using the same FM "RSNDI_SHIE_STRUCTURE_GET3"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code goes like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am passing hierarchy name and  node name...this is for cost element hierarchy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check the code and tell if i am missing anything.&lt;/P&gt;&lt;P&gt;o/p i am getting is all 0's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ztest5.&lt;/P&gt;&lt;P&gt; tables : ZREPCODMAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data: itab type standard table of ZREPCODMAP with header line.&lt;/P&gt;&lt;P&gt; TYPES: BEGIN OF STRUC,&lt;/P&gt;&lt;P&gt;         RESULT type RSSH_S_NODEBYNAMEWOL,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        ZREPCODMAP-REPDSELM,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        END OF STRUC.&lt;/P&gt;&lt;P&gt; DATA: itab1 type standard table of struc with header line.&lt;/P&gt;&lt;P&gt; data: w_hiesel like RSNDI_S_HIESEL.&lt;/P&gt;&lt;P&gt; w_hiesel = '1000KES'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*data: w_nodebyname type RSNDI_T_NODENM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data: tab type standard table of RSNDI_S_HTAB with header line.&lt;/P&gt;&lt;P&gt; data: lsubrc type SY-SUBRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from ZREPCODMAP into table itab where PROFIT_CTR &amp;lt;&amp;gt; ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;concatenate itab-CO_AREA itab-REPDSELM INTO itab1-RESULT.&lt;/P&gt;&lt;P&gt;*write: itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;break-point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RSNDI_SHIE_STRUCTURE_GET3'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_S_HIEKEY =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;i_s_hiesel = w_hiesel&lt;/P&gt;&lt;P&gt;i_s_subtreesel = itab1-result&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_T_NODENAME =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; I_NO_NODENM_TABLE = w_flag&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;E_S_HIEDIR =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;e_subrc = lsubrc&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;E_T_HIEDIRT =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;e_t_hierstruc = tab.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;E_T_MHIERNODE =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;E_T_THIERNODE =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;E_T_HIERINTVL =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;E_T_NODENAMES = tab.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;E_T_NODEATTR =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;E_T_LEVEL =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;E_T_MESSAGE =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;write: tab.&lt;/P&gt;&lt;P&gt;*write: lsubrc.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vijaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Oct 2007 11:47:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-04T11:47:27Z</dc:date>
    <item>
      <title>Is there a Function module to get customer hierarchy data?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-function-module-to-get-customer-hierarchy-data/m-p/917932#M58502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm writing a report where the user can, on the selection screen, enter a customer number or a hierarchy node and then the program has to get all the higher level nodes and  and lower level nodes for the selected Sales area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg. for the following hierarchy:&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt;B&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;--|-&amp;gt; D&lt;/P&gt;&lt;P&gt;--|-&amp;gt; E&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt; C&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;---|-&amp;gt; F&lt;/P&gt;&lt;P&gt;---|-&amp;gt; G&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if node b was selected it would pull back:&lt;/P&gt;&lt;P&gt;KUNNR     HKUNNR&lt;/P&gt;&lt;P&gt;A         blank&lt;/P&gt;&lt;P&gt;B         A&lt;/P&gt;&lt;P&gt;C         A&lt;/P&gt;&lt;P&gt;D         B&lt;/P&gt;&lt;P&gt;E         B&lt;/P&gt;&lt;P&gt;F         C&lt;/P&gt;&lt;P&gt;G         C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know if there is a Function module that can do this?&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, 11 Feb 2005 11:33:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-function-module-to-get-customer-hierarchy-data/m-p/917932#M58502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-11T11:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a Function module to get customer hierarchy data?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-function-module-to-get-customer-hierarchy-data/m-p/917933#M58503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may want to check out the following BAPIs, they all belong to the same function group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_CUSTOMER_GET_CHILDREN     BAPI Customer Hierarchy GetChildren() Implementation       &lt;/P&gt;&lt;P&gt;BAPI_CUSTOMER_GET_ROOT         BAPI Customer Hiearchy getRoot() Implementation            &lt;/P&gt;&lt;P&gt;BAPI_CUSTOMER_GET_ROOT_LIST    BAPI Customer Hierarchy getRootList() Implementation       &lt;/P&gt;&lt;P&gt;BAPI_CUSTOMER_HIERARCHIE_DEL   BAPI Customer Hierarchy Delete() Implementation            &lt;/P&gt;&lt;P&gt;BAPI_CUSTOMER_HIERARCHIE_INS   BAPI Customer Hierarchy Insert() Implementation            &lt;/P&gt;&lt;P&gt;BAPI_CUSTOMER_HIERARCHIE_UPD   BAPI Customer Hierarchy Change( Implementation             &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2005 12:37:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-function-module-to-get-customer-hierarchy-data/m-p/917933#M58503</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-02-11T12:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a Function module to get customer hierarchy data?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-function-module-to-get-customer-hierarchy-data/m-p/917934#M58504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition to what Rich recommended, you could also try function:  RKE_READ_CUSTOMER_HIERARCHY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck!  &lt;span class="lia-unicode-emoji" title=":monkey_face:"&gt;🐵&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Terry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2005 15:03:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-function-module-to-get-customer-hierarchy-data/m-p/917934#M58504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-11T15:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a Function module to get customer hierarchy data?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-function-module-to-get-customer-hierarchy-data/m-p/917935#M58505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I need to know If any bapi o function module similar to mentioned Ex. BAPI_CUSTOMER_GET_CHILDREN, etc. are available in BW. We have BW 3.5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need, get child wbs elements in the wbs elm hierarchy for a given parent wbs element, for a project definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data required about wbs elm hierarchy is in Table /BI0/HWBS_ELEMT, and I know a abap program/routine could be development, but it´s a function or a bapi are available could be better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Victoria&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2006 13:33:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-function-module-to-get-customer-hierarchy-data/m-p/917935#M58505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-05T13:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a Function module to get customer hierarchy data?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-function-module-to-get-customer-hierarchy-data/m-p/917936#M58506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victoria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use always 'RSNDI_SHIE_STRUCTURE_GET3' for my BW development.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nicola&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2006 15:26:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-function-module-to-get-customer-hierarchy-data/m-p/917936#M58506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-05T15:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a Function module to get customer hierarchy data?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-function-module-to-get-customer-hierarchy-data/m-p/917937#M58507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicola, I execute function recommended by you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try filling in I_S_HIEKEY a value for field HIEID and  in I_T_NODENAME a value for field NODEID and infobject name (0wbs_elemt)of Table /BI0/HWBS_ELEMT, but function returns to me a error message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help about the rigth way to use this function?? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Victoria&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2006 16:04:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-function-module-to-get-customer-hierarchy-data/m-p/917937#M58507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-05T16:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a Function module to get customer hierarchy data?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-function-module-to-get-customer-hierarchy-data/m-p/917938#M58508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the late reply, I live in Germany so we have some time difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For characteristic 0WBS_ELEMT you will have to fill the import parameters the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lh_hiekey TYPE rsndi_s_hiekey,&lt;/P&gt;&lt;P&gt;      lh_hiesel TYPE rsndi_s_hiesel,&lt;/P&gt;&lt;P&gt;      lh_subsel TYPE rssh_s_nodebynamewol,&lt;/P&gt;&lt;P&gt;      lh_hiedir TYPE rsndi_s_hiedir,&lt;/P&gt;&lt;P&gt;      lh_rc TYPE sysubrc,&lt;/P&gt;&lt;P&gt;      xt_hierstruc TYPE STANDARD TABLE OF xty_hstruc &lt;/P&gt;&lt;P&gt;         WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE xt_dir-hieid TO lh_hiekey-hieid. (RSHIEDIR-HIEID)&lt;/P&gt;&lt;P&gt;MOVE 'A' TO lh_hiekey-objvers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE 'A' TO lh_hiesel-objvers.&lt;/P&gt;&lt;P&gt;MOVE xh_pspn-qhienm TO lh_hiesel-hienm. (RSHIEDIR-HIENM)&lt;/P&gt;&lt;P&gt;MOVE xh_pspn-qversion TO lh_hiesel-version. ( " -VERSION)&lt;/P&gt;&lt;P&gt;MOVE xt_dir-dateto TO lh_hiesel-dateto.  ( " -DATETO)&lt;/P&gt;&lt;P&gt;MOVE xh_pspn-iobjnm TO lh_hiesel-iobjnm. ( " -IOBJNM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE xh_pspn-leaffrom TO lh_subsel-nodename. (/BI0/HWBS_ELEMT-NODENAME)&lt;/P&gt;&lt;P&gt;e.g. you want to get all the children of node 'A0001' you have to enter A0001 as lh_subsel-nodename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE xh_pspn-iobjnm TO lh_subsel-iobjnm.&lt;/P&gt;&lt;P&gt;(/BI0/HWBS_ELEMT-IOBJNM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'RSNDI_SHIE_STRUCTURE_GET3'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          i_s_hiekey     = lh_hiekey&lt;/P&gt;&lt;P&gt;          i_s_hiesel     = lh_hiesel&lt;/P&gt;&lt;P&gt;          i_s_subtreesel = lh_subsel&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          e_s_hiedir     = lh_hiedir&lt;/P&gt;&lt;P&gt;          e_subrc        = lh_rc&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          e_t_hierstruc  = xt_hierstruc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;Nicola&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2006 07:36:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-function-module-to-get-customer-hierarchy-data/m-p/917938#M58508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-06T07:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a Function module to get customer hierarchy data?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-function-module-to-get-customer-hierarchy-data/m-p/917939#M58509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nicola, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any bapi o function module similar to mentioned but it looks for the parents of the given node?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Victoria&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 16:24:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-function-module-to-get-customer-hierarchy-data/m-p/917939#M58509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T16:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a Function module to get customer hierarchy data?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-function-module-to-get-customer-hierarchy-data/m-p/917940#M58510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Victoria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure why you are looking for a bapi or FM because an easy select will solve the problem? If you have the ID of the hierarchy and the node you just have to read the hierarchy table with this information and you'll get the parent-id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nicola&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2006 07:45:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-function-module-to-get-customer-hierarchy-data/m-p/917940#M58510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-19T07:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a Function module to get customer hierarchy data?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-function-module-to-get-customer-hierarchy-data/m-p/917941#M58511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victoria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even i was using the same FM "RSNDI_SHIE_STRUCTURE_GET3"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code goes like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am passing hierarchy name and  node name...this is for cost element hierarchy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check the code and tell if i am missing anything.&lt;/P&gt;&lt;P&gt;o/p i am getting is all 0's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ztest5.&lt;/P&gt;&lt;P&gt; tables : ZREPCODMAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data: itab type standard table of ZREPCODMAP with header line.&lt;/P&gt;&lt;P&gt; TYPES: BEGIN OF STRUC,&lt;/P&gt;&lt;P&gt;         RESULT type RSSH_S_NODEBYNAMEWOL,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        ZREPCODMAP-REPDSELM,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        END OF STRUC.&lt;/P&gt;&lt;P&gt; DATA: itab1 type standard table of struc with header line.&lt;/P&gt;&lt;P&gt; data: w_hiesel like RSNDI_S_HIESEL.&lt;/P&gt;&lt;P&gt; w_hiesel = '1000KES'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*data: w_nodebyname type RSNDI_T_NODENM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data: tab type standard table of RSNDI_S_HTAB with header line.&lt;/P&gt;&lt;P&gt; data: lsubrc type SY-SUBRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from ZREPCODMAP into table itab where PROFIT_CTR &amp;lt;&amp;gt; ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;concatenate itab-CO_AREA itab-REPDSELM INTO itab1-RESULT.&lt;/P&gt;&lt;P&gt;*write: itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;break-point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RSNDI_SHIE_STRUCTURE_GET3'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_S_HIEKEY =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;i_s_hiesel = w_hiesel&lt;/P&gt;&lt;P&gt;i_s_subtreesel = itab1-result&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_T_NODENAME =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; I_NO_NODENM_TABLE = w_flag&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;E_S_HIEDIR =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;e_subrc = lsubrc&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;E_T_HIEDIRT =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;e_t_hierstruc = tab.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;E_T_MHIERNODE =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;E_T_THIERNODE =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;E_T_HIERINTVL =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;E_T_NODENAMES = tab.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;E_T_NODEATTR =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;E_T_LEVEL =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;E_T_MESSAGE =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;write: tab.&lt;/P&gt;&lt;P&gt;*write: lsubrc.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vijaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 11:47:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-function-module-to-get-customer-hierarchy-data/m-p/917941#M58511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T11:47:27Z</dc:date>
    </item>
  </channel>
</rss>

