<?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: QUESTION ABOUT SCRIPT LOGIC TO ACCUMULATE BALANCE in Financial Management Q&amp;A</title>
    <link>https://community.sap.com/t5/financial-management-q-a/question-about-script-logic-to-accumulate-balance/qaa-p/632889#M17934</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;
  &lt;P&gt;Strange script...&lt;/P&gt;
  &lt;P&gt;If you have some month selected in %TIME_SET% then:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;*SELECT(%TID%,[TIMEID],TIME,ID=%TIME_SET%) //%TIME_SET%=2018.02
*SELECT(%MNTHS%,[ID],TIME,TIMEID&amp;lt;=%TID% AND CALC=N) //select all previous months including current
*WHEN ACCOUNT
*IS "0001060091"
*REC(EXPRESSION= %VALUE%, VERSION=Current0, TIME=%TIME_SET%) //aggregate to current month
*ENDWHEN
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 29 Jan 2018 19:14:51 GMT</pubDate>
    <dc:creator>former_member186338</dc:creator>
    <dc:date>2018-01-29T19:14:51Z</dc:date>
    <item>
      <title>QUESTION ABOUT SCRIPT LOGIC TO ACCUMULATE BALANCE</title>
      <link>https://community.sap.com/t5/financial-management-q-a/question-about-script-logic-to-accumulate-balance/qaq-p/632888</link>
      <description>&lt;P&gt;Hello experts,&lt;/P&gt;
  &lt;P&gt;I have the next requirement: Accumulate balance to perfom Consolidation. I have in a BW DSO the data from ECC but I don't have the Ratio 0Balance, so I don´t have the accumulated balance of the accounts, I have the Movements month by month so I need to accumulate from 2010 to %TIME_SET% all the balances from all the accounts. &lt;/P&gt;
  &lt;P&gt;I have Std dims for Consolidation model: &lt;/P&gt;
  &lt;P&gt;ACCOUNT, AUDITTRAIL, ENTITY, FLOW, INTERCO, RPTCURRENCY, SCOPE, TIME, VERSION&lt;/P&gt;
  &lt;P&gt;My logic is get all the years prior to actual, i.e. 2010 to 2018, for 2010 to 2017 variable month will be 1 to 12 but for 2018 months1 will be the selected month. ie 2018.02 variable %months1% should have 1 and 2. &lt;/P&gt;
  &lt;P&gt;Then accumulate the balance form 2010.01 to 2017.12 + 2018.01 to 2018.02. &lt;/P&gt;
  &lt;P&gt;I have the next script logic, but not sure whan am I missing, because when I run it in UJKT I got an error:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;//Scope
*XDIM_MEMBERSET RPTCURRENCY = MXP, USD
*XDIM_MEMBERSET FLOW= Opening
*XDIM_MEMBERSET INTERCO = I_NONE
*XDIM_MEMBERSET VERSION = "Current"


//Selection of Months and Years of selection(%TIME_SET%)




*SELECT(%YRS%, "[YEAR]", TIME, ID=%TIME_SET%)
*SELECT(%YR0%, "[YEAR]", TIME, [YEAR]=%YRS% AND [YEAR]&amp;gt;=2010)
*SELECT (%MONTHS1%, "[MONTHNUM2]",TIME, [MONTHNUM2]&amp;lt;=%TIME_SET% AND [MONTHNUM2]&amp;gt;=1)




//Scoping all prior Years with complete months
*WHEN TIME.YEAR
	*IS &amp;lt;%YRS%
	*FOR %MONTS0%= "01","02","03","04","05","06","07","08","09","10","11","12"
		*XDIM_MEMBERSET TIME= %YRS%.%MONTHS0%
		*WHEN ACCOUNT
			*IS "0001060091"
				*REC(EXPRESSION= %VALUE%, VERSION=Current0)
		*ENDWHEN
	*NEXT
*ENDWHEN


*WHEN TIME.YEAR
	*IS =%YRS%
	*FOR %MONTS2%=%MONTHS1%
		*XDIM_ADDMEMBERSET TIME= %YRS%.%MONTHS2%
		*WHEN ACCOUNT
			*IS "0001060091"
				*REC(EXPRESSION= %VALUE%, VERSION=Current0)
		*ENDWHEN
	*NEXT
*ENDWHEN

&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Im am getting an error: UJO_READ:INVALID MEMBERS dimension(TIME)&lt;/P&gt;
  &lt;P&gt;Any ideas what could be wrong.&lt;/P&gt;
  &lt;P&gt;Best regards. &lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 18:30:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/question-about-script-logic-to-accumulate-balance/qaq-p/632888</guid>
      <dc:creator>former_member182305</dc:creator>
      <dc:date>2018-01-29T18:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: QUESTION ABOUT SCRIPT LOGIC TO ACCUMULATE BALANCE</title>
      <link>https://community.sap.com/t5/financial-management-q-a/question-about-script-logic-to-accumulate-balance/qaa-p/632889#M17934</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
  &lt;P&gt;Strange script...&lt;/P&gt;
  &lt;P&gt;If you have some month selected in %TIME_SET% then:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;*SELECT(%TID%,[TIMEID],TIME,ID=%TIME_SET%) //%TIME_SET%=2018.02
*SELECT(%MNTHS%,[ID],TIME,TIMEID&amp;lt;=%TID% AND CALC=N) //select all previous months including current
*WHEN ACCOUNT
*IS "0001060091"
*REC(EXPRESSION= %VALUE%, VERSION=Current0, TIME=%TIME_SET%) //aggregate to current month
*ENDWHEN
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Jan 2018 19:14:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/question-about-script-logic-to-accumulate-balance/qaa-p/632889#M17934</guid>
      <dc:creator>former_member186338</dc:creator>
      <dc:date>2018-01-29T19:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: QUESTION ABOUT SCRIPT LOGIC TO ACCUMULATE BALANCE</title>
      <link>https://community.sap.com/t5/financial-management-q-a/question-about-script-logic-to-accumulate-balance/qaa-p/632890#M17935</link>
      <description>&lt;P&gt;Thank you Vadim, &lt;/P&gt;
  &lt;P&gt;Actually while I was testing, got a similar Code, now will try to do it for multiple %TIME_SET% Selection, for example if I select 2018.02, fill all %TIME_SET%&amp;lt;=2018.02&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;//Scope
*XDIM_MEMBERSET RPTCURRENCY = MXP, USD
*XDIM_MEMBERSET FLOW= Opening
*XDIM_MEMBERSET INTERCO = I_NONE
*XDIM_MEMBERSET VERSION = "Current"

//Selection of Months and Years of selection(%TIME_SET%)

*SELECT (%FISCYEAR%, ID, TIME, ID&amp;lt;=%TIME_SET% AND [YEAR]&amp;gt;=2010)
	*FOR %FISCYR%=%FISCYEAR%
		*XDIM_ADDMEMBERSET TIME= %FISCYR%
		*WHEN ACCOUNT
			*IS *
				*REC(EXPRESSION= %VALUE%, VERSION=Current0, TIME=%TIME_SET%)
		*ENDWHEN
	*NEXT&amp;lt;br&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;I was testing with one ACC, but its going to be for all ACCTs I think it will take awhile.&lt;/P&gt;
  &lt;P&gt;Regards. &lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 19:52:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/question-about-script-logic-to-accumulate-balance/qaa-p/632890#M17935</guid>
      <dc:creator>former_member182305</dc:creator>
      <dc:date>2018-01-29T19:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: QUESTION ABOUT SCRIPT LOGIC TO ACCUMULATE BALANCE</title>
      <link>https://community.sap.com/t5/financial-management-q-a/question-about-script-logic-to-accumulate-balance/qaa-p/632891#M17936</link>
      <description>&lt;P&gt;I do not recommend to use:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;ID&amp;lt;=%TIME_SET%&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Better to use TIMEID property.&lt;/P&gt;
  &lt;P&gt;And I do not understand "now will try to do it for multiple %TIME_SET% Selection, for example if I select 2018.02, fill all %TIME_SET%&amp;lt;=2018.02"???&lt;/P&gt;
  &lt;P&gt;Strange FOR/NEXT... What for???&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 20:00:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/question-about-script-logic-to-accumulate-balance/qaa-p/632891#M17936</guid>
      <dc:creator>former_member186338</dc:creator>
      <dc:date>2018-01-29T20:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: QUESTION ABOUT SCRIPT LOGIC TO ACCUMULATE BALANCE</title>
      <link>https://community.sap.com/t5/financial-management-q-a/question-about-script-logic-to-accumulate-balance/qaa-p/632892#M17937</link>
      <description>&lt;P&gt;Thanks, &lt;/P&gt;
  &lt;P&gt;Il'l change TIME_SET for TIME ID. I'll Include a *for *next to add periods. The last script is to calculate the %TIME_SET% selection in case there is one Selection, but what would happen if the time selection is 2018.01 and 2018.02. The program won't work, I'll add another *for to include the 2nd and 3rd and n selection&lt;/P&gt;
  &lt;P&gt;Thanks for you comments Vadim, I really appreciate them. &lt;/P&gt;
  &lt;P&gt;Best regards. &lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 22:30:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/question-about-script-logic-to-accumulate-balance/qaa-p/632892#M17937</guid>
      <dc:creator>former_member182305</dc:creator>
      <dc:date>2018-01-29T22:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: QUESTION ABOUT SCRIPT LOGIC TO ACCUMULATE BALANCE</title>
      <link>https://community.sap.com/t5/financial-management-q-a/question-about-script-logic-to-accumulate-balance/qaa-p/632893#M17938</link>
      <description>&lt;P&gt;Sorry, but unclear! Please explain again the required logic.&lt;/P&gt;
  &lt;P&gt;The script can't be used for multiple selection...&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2018 06:21:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/question-about-script-logic-to-accumulate-balance/qaa-p/632893#M17938</guid>
      <dc:creator>former_member186338</dc:creator>
      <dc:date>2018-01-30T06:21:32Z</dc:date>
    </item>
  </channel>
</rss>

