<?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>Question Re: Hierarchy Node - Customer Exit Variable in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/hierarchy-node-customer-exit-variable/qaa-p/12479151#M4675201</link>
    <description>&lt;P&gt;Hi! &lt;BR /&gt;View please actual code. &lt;BR /&gt;P.S. Right value for compound key you can see in master table for compound chavl.&lt;BR /&gt;I think key 1000/1000201 is wrong (not '/' and may be alpha for second key).&lt;/P&gt;</description>
    <pubDate>Tue, 21 Dec 2021 17:35:35 GMT</pubDate>
    <dc:creator>arkadiy_semenov</dc:creator>
    <dc:date>2021-12-21T17:35:35Z</dc:date>
    <item>
      <title>Hierarchy Node - Customer Exit Variable</title>
      <link>https://community.sap.com/t5/technology-q-a/hierarchy-node-customer-exit-variable/qaq-p/12479148</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt;We have a requirement to create a Customer Exit Hierarchy Node variable by reading ADSO, which we maintain by user ID and the access Level by Cost Center Group or by CostCenter(screenshot below).&lt;/P&gt;
  &lt;P&gt;&lt;IMG alt="" /&gt;&lt;A href="https://answers.sap.com/storage/temp/1991721-capture4.png" data-attachment="1991721"&gt;capture4.png&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;I am have written below code. &lt;/P&gt;
  &lt;P&gt;DATA: it_aut type STANDARD TABLE OF /bic/afigl_d092.&lt;/P&gt;
  &lt;P&gt; data: wa_ana_aut type /bic/afigl_d052.&lt;/P&gt;
  &lt;P&gt; DATA: &lt;/P&gt;
  &lt;P&gt; l_s_range TYPE rsr_s_rangesid,&lt;/P&gt;
  &lt;P&gt; l_s_var_range TYPE rrrangeexit.&lt;/P&gt;
  &lt;P&gt; IF i_step = 1.&lt;/P&gt;
  &lt;P&gt;* READ TABLE I_T_VAR_RANGE INTO l_s_var_range WITH KEY vnam = '0COSTCENTER_PUC_001'.&lt;/P&gt;
  &lt;P&gt;*if sy-subrc = 0.&lt;/P&gt;
  &lt;P&gt; SELECT * into table it_aut FROM /bic/afigl_d092 where userid = sy-uname.&lt;/P&gt;
  &lt;P&gt; if sy-subrc = 0.&lt;/P&gt;
  &lt;P&gt; loop at it_aut into wa_ana_aut.&lt;/P&gt;
  &lt;P&gt; l_s_range-low = wa_ana_aut-hiernode.&lt;/P&gt;
  &lt;P&gt; l_s_range-high = wa_ana_aut-infoobject.&lt;/P&gt;
  &lt;P&gt; l_s_range-sign = 'I'.&lt;/P&gt;
  &lt;P&gt; l_s_range-opt = 'EQ'.&lt;/P&gt;
  &lt;P&gt; append l_s_range to c_t_range.&lt;/P&gt;
  &lt;P&gt; endloop.&lt;/P&gt;
  &lt;P&gt; endif.&lt;/P&gt;
  &lt;P&gt; endif.&lt;/P&gt;
  &lt;P&gt;The above is working fine for the group nodes on Info Object CCTR_GRP and coming up with an error for Cost Center values. Cost Center is Compounded with CO AREA, which is 1000.&lt;/P&gt;
  &lt;P&gt;&lt;IMG alt="" /&gt;&lt;A href="https://answers.sap.com/storage/temp/1991720-capture3.png" data-attachment="1991720"&gt;capture3.png&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://answers.sap.com/storage/temp/1991718-capture1.png" data-attachment="1991718"&gt;capture1.png&lt;/A&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;
  &lt;P&gt;When I manually enter for select from the F4 option the format to enter Costcenter Values in 1000/100201&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://answers.sap.com/storage/temp/1991719-capture2.png" data-attachment="1991719"&gt;capture2.png&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;I am not sure why it is coming as an error when I populate with the correct values using the Customer exit. &lt;/P&gt;
  &lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;
  &lt;P&gt;The values are accepted when I enter the same values manually. This is weird and I am not able to figure out what I am doing wrong.&lt;/P&gt;
  &lt;P&gt;I appreciate your help with this.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Nov 2021 00:31:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hierarchy-node-customer-exit-variable/qaq-p/12479148</guid>
      <dc:creator>former_member691955</dc:creator>
      <dc:date>2021-11-13T00:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy Node - Customer Exit Variable</title>
      <link>https://community.sap.com/t5/technology-q-a/hierarchy-node-customer-exit-variable/qaa-p/12479149#M4675199</link>
      <description>&lt;P&gt;From where does your logic gets called(BadI, enhancement spot, etc)?  What is the data type behind  c_t_range? What kind of information do you become in the importing parameter I_T_VAR_RANGE? Its structure contains a flag, whether the key value is compounded or not(LOW_IS_CMP), can you program against it, or maybe set it in your changing parameter?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 06:14:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hierarchy-node-customer-exit-variable/qaa-p/12479149#M4675199</guid>
      <dc:creator>former_member660513</dc:creator>
      <dc:date>2021-11-15T06:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy Node - Customer Exit Variable</title>
      <link>https://community.sap.com/t5/technology-q-a/hierarchy-node-customer-exit-variable/qaa-p/12479150#M4675200</link>
      <description>&lt;P&gt;Thank you for your response Georgi. &lt;/P&gt;&lt;P&gt;I am calling the logic from BADI. I tried a few other options but had no luck. All I am trying to populate is Cost Center which is compounded with 1000 in the Hierarchy Node variable.&lt;/P&gt;&lt;P&gt;The right value should be 1000/1000201 and even after populating the exact value it is complaining that the value don't exist.&lt;/P&gt;&lt;P&gt;Do you have any sample code that you could refer me to. I really appreciate your help.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Shib&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 12:28:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hierarchy-node-customer-exit-variable/qaa-p/12479150#M4675200</guid>
      <dc:creator>former_member691955</dc:creator>
      <dc:date>2021-11-15T12:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy Node - Customer Exit Variable</title>
      <link>https://community.sap.com/t5/technology-q-a/hierarchy-node-customer-exit-variable/qaa-p/12479151#M4675201</link>
      <description>&lt;P&gt;Hi! &lt;BR /&gt;View please actual code. &lt;BR /&gt;P.S. Right value for compound key you can see in master table for compound chavl.&lt;BR /&gt;I think key 1000/1000201 is wrong (not '/' and may be alpha for second key).&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 17:35:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hierarchy-node-customer-exit-variable/qaa-p/12479151#M4675201</guid>
      <dc:creator>arkadiy_semenov</dc:creator>
      <dc:date>2021-12-21T17:35:35Z</dc:date>
    </item>
  </channel>
</rss>

