<?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: Logic Script scoping based on data in Financial Management Q&amp;A</title>
    <link>https://community.sap.com/t5/financial-management-q-a/logic-script-scoping-based-on-data/qaa-p/648153#M18781</link>
    <description>&lt;P&gt;Hi Vadim,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Thanks. A small correction. The record is being written to version3. So I would assume we change the last bit to Version3?&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;*REC(EXPRESSION=%VALUE%==10 ? [Category].[Version2]*2 : [Category].[Version3],Category=Version3)&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 22 May 2018 20:14:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-05-22T20:14:06Z</dc:date>
    <item>
      <title>Logic Script scoping based on data</title>
      <link>https://community.sap.com/t5/financial-management-q-a/logic-script-scoping-based-on-data/qaq-p/648146</link>
      <description>&lt;P&gt;Hi Gurus,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I have a requirement where I have to scope members based on data.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Details:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;BPC Version: 10.1 NW Classic&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;EPM Version: 28&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Environment: Dev&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Model: Planning&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Dimensions:6&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Account, Department, Time, Category, Entity, Data Source&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; &lt;/P&gt;
  &lt;P&gt;Firstly, I have an input form where I save data into certain departments. The Departments come under a parent with Department having Department1, Department 2 etc.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;EX:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; DataSource1 Datasource1&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; Department1 Department2&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Account1 10 0&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Account2 10 0&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; &lt;/P&gt;
  &lt;P&gt;The logic should scope the data with the value 10 and based on it, I will be recording the values to another version for Account1 and Account2.&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; &lt;/P&gt;
  &lt;P&gt;Basically, the calculation would be If a certain department has signed data as 10 in Version1 record 1000*2 Euros in Version2.&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; &lt;/P&gt;
  &lt;P&gt;I tried to look it up but some of the suggestions were *XDIM_GETMEMBERS but that doesn't seem to be applicable for 10.1 NW&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Any other suggestions on how to scope the records?&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Further details:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;1. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/147372-sap-version.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;2. I got the Validation Error "MATH" is Uknown.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;3. ACCTTYPE: EXP&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;4. I will run it through a DM package&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;5. Calculation Logic: Account= Account*2&lt;/P&gt;
  &lt;P&gt;6. User Doesn't enter anything in DM&lt;/P&gt;
  &lt;P&gt;7,8,9,10. Script to be developed.&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; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2018 16:10:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/logic-script-scoping-based-on-data/qaq-p/648146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-05-21T16:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Logic Script scoping based on data</title>
      <link>https://community.sap.com/t5/financial-management-q-a/logic-script-scoping-based-on-data/qaa-p/648147#M18775</link>
      <description>&lt;P&gt;Sorry, but the requirements are not clear!&lt;/P&gt;
  &lt;P&gt;Please provide info in line with &lt;A href="https://blogs.sap.com/2014/01/31/how-to-ask-questions-about-script-logic-issues/" target="test_blank"&gt;https://blogs.sap.com/2014/01/31/how-to-ask-questions-about-script-logic-issues/&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2018 19:55:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/logic-script-scoping-based-on-data/qaa-p/648147#M18775</guid>
      <dc:creator>former_member186338</dc:creator>
      <dc:date>2018-05-21T19:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Logic Script scoping based on data</title>
      <link>https://community.sap.com/t5/financial-management-q-a/logic-script-scoping-based-on-data/qaa-p/648148#M18776</link>
      <description>&lt;P&gt;Hi Vadim,&lt;/P&gt;
  &lt;P&gt;Thank you for your link. I updated the question accordingly. Let me know if you need anything else.&lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2018 21:53:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/logic-script-scoping-based-on-data/qaa-p/648148#M18776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-05-21T21:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Logic Script scoping based on data</title>
      <link>https://community.sap.com/t5/financial-management-q-a/logic-script-scoping-based-on-data/qaa-p/648149#M18777</link>
      <description>&lt;P&gt;Sorry, but logic is still not clear:&lt;/P&gt;
  &lt;P&gt;"the calculation would be If a certain department has signed data as 10 in Version1 record 1000*2 Euros in Version2"&lt;/P&gt;
  &lt;P&gt;and&lt;/P&gt;
  &lt;P&gt;"Calculation Logic: Account= Account*2"&lt;/P&gt;
  &lt;P&gt;10*2=20 ???&lt;/P&gt;
  &lt;P&gt;Also I do not understand what's the issue?&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;*XDIM_MEMBERSET Account=Account1,Account2 //list of required accounts
*XDIM_MEMBERSET Category=Version1 //Category with signed data
*WHEN Account
*IS *
*REC(EXPRESSION=%VALUE%*2,Category=Version2) //save result in Version2
*ENDWHEN&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 09:07:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/logic-script-scoping-based-on-data/qaa-p/648149#M18777</guid>
      <dc:creator>former_member186338</dc:creator>
      <dc:date>2018-05-22T09:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Logic Script scoping based on data</title>
      <link>https://community.sap.com/t5/financial-management-q-a/logic-script-scoping-based-on-data/qaa-p/648150#M18778</link>
      <description>&lt;P&gt;Hi Vadim,&lt;/P&gt;
  &lt;P&gt;The below picture illustrates the logic. The selection of the records is based on the fact that for that intersection there is a "10" stored in it or not. Once those records with 10 are found, the version is changed and the records stored for that intersection are found. Then the calculation is applied.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/148251-vadim-record-example.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 16:19:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/logic-script-scoping-based-on-data/qaa-p/648150#M18778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-05-22T16:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Logic Script scoping based on data</title>
      <link>https://community.sap.com/t5/financial-management-q-a/logic-script-scoping-based-on-data/qaa-p/648151#M18779</link>
      <description>&lt;P&gt;Now it's more or less clear! Look on my new answer!&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 19:21:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/logic-script-scoping-based-on-data/qaa-p/648151#M18779</guid>
      <dc:creator>former_member186338</dc:creator>
      <dc:date>2018-05-22T19:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Logic Script scoping based on data</title>
      <link>https://community.sap.com/t5/financial-management-q-a/logic-script-scoping-based-on-data/qaa-p/648152#M18780</link>
      <description>&lt;P&gt;The script will be (using conditional ternary operator):&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;*XDIM_MEMBERSET Account=Account1,Account2 //listof required accounts
*XDIM_MEMBERSET Category=Version1 //Category with signed data
*WHEN Account
*IS *
*REC(EXPRESSION=%VALUE%==10 ? [Category].[Version2]*2 : [Category].[Version2],Category=Version2) //save result in Version2
*ENDWHEN&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 19:32:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/logic-script-scoping-based-on-data/qaa-p/648152#M18780</guid>
      <dc:creator>former_member186338</dc:creator>
      <dc:date>2018-05-22T19:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Logic Script scoping based on data</title>
      <link>https://community.sap.com/t5/financial-management-q-a/logic-script-scoping-based-on-data/qaa-p/648153#M18781</link>
      <description>&lt;P&gt;Hi Vadim,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Thanks. A small correction. The record is being written to version3. So I would assume we change the last bit to Version3?&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;*REC(EXPRESSION=%VALUE%==10 ? [Category].[Version2]*2 : [Category].[Version3],Category=Version3)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 May 2018 20:14:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/logic-script-scoping-based-on-data/qaa-p/648153#M18781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-05-22T20:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Logic Script scoping based on data</title>
      <link>https://community.sap.com/t5/financial-management-q-a/logic-script-scoping-based-on-data/qaa-p/648154#M18782</link>
      <description>&lt;P&gt;Yes, correct!&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;*REC(EXPRESSION=%VALUE%==10 ? [Category].[Version2]*2 : [Category].[Version3],Category=Version3)&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;if 10 then multiply version2 by 2, if not 10 then take the value from version3&lt;/P&gt;
  &lt;P&gt;And save result to version3&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 20:32:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/logic-script-scoping-based-on-data/qaa-p/648154#M18782</guid>
      <dc:creator>former_member186338</dc:creator>
      <dc:date>2018-05-22T20:32:02Z</dc:date>
    </item>
  </channel>
</rss>

