<?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: How to iterate master data values from a characteristic in FOX Code? in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/how-to-iterate-master-data-values-from-a-characteristic-in-fox-code/qaa-p/737417#M207221</link>
    <description>&lt;P&gt;Sure, but based on on what I've described, is there a way to do that? &lt;/P&gt;</description>
    <pubDate>Thu, 26 Jul 2018 21:52:59 GMT</pubDate>
    <dc:creator>former_member381836</dc:creator>
    <dc:date>2018-07-26T21:52:59Z</dc:date>
    <item>
      <title>How to iterate master data values from a characteristic in FOX Code?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-iterate-master-data-values-from-a-characteristic-in-fox-code/qaq-p/737413</link>
      <description>&lt;P&gt;Hi, experts,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;I need to iterate through all the values a characteristic has. I need to iterate 0EMPLOYEE because I need to make calculations specific to each employee, and to store that information in specific values for each employee.&lt;/P&gt;
  &lt;P&gt;I can not use exiting transactional data to iterate because I don't have any related to all the employees.&lt;/P&gt;
  &lt;P&gt;I tried using FOREACH employee in REF DATA but I also get '#' values.&lt;/P&gt;
  &lt;P&gt;Does anyone know what the correct syntax is or if it's possible?&lt;/P&gt;
  &lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 01:09:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-iterate-master-data-values-from-a-characteristic-in-fox-code/qaq-p/737413</guid>
      <dc:creator>former_member381836</dc:creator>
      <dc:date>2018-07-26T01:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to iterate master data values from a characteristic in FOX Code?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-iterate-master-data-values-from-a-characteristic-in-fox-code/qaa-p/737414#M207218</link>
      <description>&lt;P&gt;Hi Nidia,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;you might want to use "foreach in selection" but then you also need a selection for the employees.&lt;/P&gt;
  &lt;P&gt;if you want to use "foreach in refdata" you need to read in the upcoming code some refdata - that needs to be transactional data from a cube or DSO.&lt;/P&gt;
  &lt;P&gt;regards&lt;/P&gt;
  &lt;P&gt;Cornelia&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 07:12:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-iterate-master-data-values-from-a-characteristic-in-fox-code/qaa-p/737414#M207218</guid>
      <dc:creator>cornelia_lezoch</dc:creator>
      <dc:date>2018-07-26T07:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to iterate master data values from a characteristic in FOX Code?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-iterate-master-data-values-from-a-characteristic-in-fox-code/qaa-p/737415#M207219</link>
      <description>&lt;P&gt;Hi, Cornelia. Thank you for your answer but I do not want the user to have to select all employees each time. Is there any other way you can think of? &lt;span class="lia-unicode-emoji" title=":face_with_open_mouth:"&gt;😮&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 14:12:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-iterate-master-data-values-from-a-characteristic-in-fox-code/qaa-p/737415#M207219</guid>
      <dc:creator>former_member381836</dc:creator>
      <dc:date>2018-07-26T14:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to iterate master data values from a characteristic in FOX Code?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-iterate-master-data-values-from-a-characteristic-in-fox-code/qaa-p/737416#M207220</link>
      <description>&lt;P&gt;probably yes, but without knowing your data model, all the selections that you use and the target what the function shall do, it´s hard to tell&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 14:45:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-iterate-master-data-values-from-a-characteristic-in-fox-code/qaa-p/737416#M207220</guid>
      <dc:creator>cornelia_lezoch</dc:creator>
      <dc:date>2018-07-26T14:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to iterate master data values from a characteristic in FOX Code?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-iterate-master-data-values-from-a-characteristic-in-fox-code/qaa-p/737417#M207221</link>
      <description>&lt;P&gt;Sure, but based on on what I've described, is there a way to do that? &lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 21:52:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-iterate-master-data-values-from-a-characteristic-in-fox-code/qaa-p/737417#M207221</guid>
      <dc:creator>former_member381836</dc:creator>
      <dc:date>2018-07-26T21:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to iterate master data values from a characteristic in FOX Code?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-iterate-master-data-values-from-a-characteristic-in-fox-code/qaa-p/737418#M207222</link>
      <description>&lt;P&gt;you did not give enough information to come up with more ideas than what I had already written.&lt;/P&gt;
  &lt;P&gt;So if you want to have more help, give more info about what exactly you want to do, post the code that you already have ...&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 14:34:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-iterate-master-data-values-from-a-characteristic-in-fox-code/qaa-p/737418#M207222</guid>
      <dc:creator>cornelia_lezoch</dc:creator>
      <dc:date>2018-08-06T14:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to iterate master data values from a characteristic in FOX Code?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-iterate-master-data-values-from-a-characteristic-in-fox-code/qaa-p/737419#M207223</link>
      <description>&lt;P&gt;Hi Nidia,&lt;/P&gt;
  &lt;P&gt;I try understanding your requirement and seems you need to enhance the reference data selection. If it is, please refer to link:&lt;BR /&gt;&lt;A href="https://help.sap.com/viewer/0ecf5244825c4742a7b062a89d11c2ac/7.5.12/en-US/f1f5721c63e6482cbbd89ee68392753f.html" target="test_blank"&gt;https://help.sap.com/viewer/0ecf5244825c4742a7b062a89d11c2ac/7.5.12/en-US/f1f5721c63e6482cbbd89ee68392753f.html&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;The example in this page is:&lt;/P&gt;
  &lt;P&gt;---&lt;/P&gt;
  &lt;UL&gt; 
   &lt;LI&gt;By using the KEEP statement, you can prevent the system from deleting the reference data:&lt;P&gt;&lt;/P&gt;&lt;P&gt;KEEP REFDATA SELECTION FOR 0FISCPER.&lt;/P&gt;&lt;/LI&gt;
   &lt;LI&gt;To explicitly request additional reference data, you can use the ENHANCE statement:&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENHANCE REFDATA SELECTION FOR 0FISCPER: 2015001, 2016001, #.&lt;/P&gt;&lt;P&gt;You can also use global variables in this list:&lt;/P&gt;&lt;P&gt;ENHANCE REFDATA SELECTION FOR 0FISCPER: 2015001, VARIABLE FISCPERVAR.&lt;/P&gt;&lt;P&gt;To request all available data that corresponds to the deletion of the filter, write the following:&lt;/P&gt;&lt;P&gt;ENHANCE REFDATA SELECTION FOR 0FISCPER: *.&lt;/P&gt;&lt;/LI&gt;
  &lt;/UL&gt;
  &lt;P&gt;---&lt;/P&gt;
  &lt;P&gt;If it is not what you need, maybe you can try to illustrate your issue with one vivid example and then we can know your issue better.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Best Regards,&lt;/P&gt;
  &lt;P&gt;Sheldon&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 07:36:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-iterate-master-data-values-from-a-characteristic-in-fox-code/qaa-p/737419#M207223</guid>
      <dc:creator>sheldon_piao</dc:creator>
      <dc:date>2018-08-13T07:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to iterate master data values from a characteristic in FOX Code?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-iterate-master-data-values-from-a-characteristic-in-fox-code/qaa-p/737420#M207224</link>
      <description>&lt;P&gt;Hi Nidia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wanted all the transaction records of your reference data to be part of calculation logic and exclude only a part of your dimension member,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use &lt;/P&gt;&lt;P&gt;FOR EACH DIM1,DIM2,DIM3,....,#, DIMn in REFDATA,&lt;/P&gt;&lt;P&gt;IF DIM1&amp;lt;&amp;gt; 'Exclusion set' AND DIM2 &amp;lt;&amp;gt; 'Exclusion set'.&lt;/P&gt;&lt;P&gt;--- Logic ---&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;--- Logic ---&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;END.&lt;/P&gt;&lt;P&gt;Hope this will help you. If you think, your concern isn't addressed yet, please post the sample data set and explain your requirement on that data set. It will help us to answer more appropriate to the requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsha&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 20:31:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-iterate-master-data-values-from-a-characteristic-in-fox-code/qaa-p/737420#M207224</guid>
      <dc:creator>former_member399404</dc:creator>
      <dc:date>2018-10-16T20:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to iterate master data values from a characteristic in FOX Code?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-iterate-master-data-values-from-a-characteristic-in-fox-code/qaa-p/737421#M207225</link>
      <description>&lt;P&gt;Typo, It's ENDFOR.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 20:34:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-iterate-master-data-values-from-a-characteristic-in-fox-code/qaa-p/737421#M207225</guid>
      <dc:creator>former_member399404</dc:creator>
      <dc:date>2018-10-16T20:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to iterate master data values from a characteristic in FOX Code?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-iterate-master-data-values-from-a-characteristic-in-fox-code/qaa-p/737422#M207226</link>
      <description>&lt;P&gt;I did the following:&lt;/P&gt;&lt;P&gt;1. Set the characteristic to be an InfoProvider - this enables you to create a query directly on the InfoObject&lt;/P&gt;&lt;P&gt;2. Create a query on the InfoProvider and use it's ID as the output&lt;/P&gt;&lt;P&gt;3. Create a replacement path variable which uses a query and use the query from 2&lt;/P&gt;&lt;P&gt;4. In your filter to the planning sequence use your new replacement path variable as the selection as this will now contain all master data values&lt;/P&gt;&lt;P&gt;5. In your fox code use the following statement: FOREACH var IN SELECTION. .... ENDFOR.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 00:25:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-iterate-master-data-values-from-a-characteristic-in-fox-code/qaa-p/737422#M207226</guid>
      <dc:creator>Noel_Munday</dc:creator>
      <dc:date>2019-08-23T00:25:01Z</dc:date>
    </item>
  </channel>
</rss>

