<?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: Dynamic operations with Variable in DM Advanced Script in Financial Management Q&amp;A</title>
    <link>https://community.sap.com/t5/financial-management-q-a/dynamic-operations-with-variable-in-dm-advanced-script/qaa-p/11187179#M191365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply Vadim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes i have quarters as base members. Example for 2015:&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/jiveimages/746845" height="48" width="314" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not familiar with Script Logic because i'm an abaper and work better with Badi, but if the solution with Script Logic is more easier than implement BADI_UJ_CUSTOM_LOGIC i want to learn how to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Angelo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jul 2015 18:45:56 GMT</pubDate>
    <dc:creator>former_member302911</dc:creator>
    <dc:date>2015-07-13T18:45:56Z</dc:date>
    <item>
      <title>Dynamic operations with Variable in DM Advanced Script</title>
      <link>https://community.sap.com/t5/financial-management-q-a/dynamic-operations-with-variable-in-dm-advanced-script/qaq-p/11187177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a custom DM Packages for copy all the dimension from one version to another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to minimize the input from the final user and i set only one Prompt to get the YEAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROMPT(COMBOBOX,%YEAR%,Insert Year:,1,,{2015,2016,2017,2018,2019,2020})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INFO(%Q1%,.Q1)&lt;/P&gt;&lt;P&gt;INFO(%Q2%,.Q2)&lt;/P&gt;&lt;P&gt;INFO(%Q3%,.Q3)&lt;/P&gt;&lt;P&gt;INFO(%Q4%,.Q4)&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;TASK(/CPMB/CM_CONVERT................TIME_DIMENSION|%YEAR%%Q1%,%YEAR%%Q2%,%YEAR%%Q3%,%YEAR%%Q4%||....................&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This work fine for me, but i need to copy the data for 3 YEAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;User Input &lt;SPAN style="color: #0000ff;"&gt;2015&lt;/SPAN&gt; | Copy &lt;SPAN style="color: #339966;"&gt;2015/2016/2017 - V1&lt;/SPAN&gt; to &lt;SPAN style="color: #339966;"&gt;2015/2016/2017 - V2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to create a variabile like &lt;STRONG&gt;INFO(%YEAR_1%,%YEAR% + 1)&lt;/STRONG&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no way with script, what is the best way to perform my requisite(Logic Script/Badi) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Angelo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 16:14:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/dynamic-operations-with-variable-in-dm-advanced-script/qaq-p/11187177</guid>
      <dc:creator>former_member302911</dc:creator>
      <dc:date>2015-07-13T16:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic operations with Variable in DM Advanced Script</title>
      <link>https://community.sap.com/t5/financial-management-q-a/dynamic-operations-with-variable-in-dm-advanced-script/qaa-p/11187178#M191364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Angelo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Is there a way to create a variabile like &lt;STRONG&gt;INFO(%YEAR_1%,%YEAR% + 1)&lt;/STRONG&gt; ?" - unfortunately not possible!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For sure you can create badi, but script logic will also do the job:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's assume that you pass Year in the variable $Y$ to the script (using TASK(...REPLACEPARAM..,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script will be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*XDIM_MEMBERSET TIME= $Y$.Q1,...,$Y$.Q4,TMVL(4,$Y$.Q1),...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please explain - you have quarters as base members?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screenshot of your TIME dimension administration?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vadim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 17:24:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/dynamic-operations-with-variable-in-dm-advanced-script/qaa-p/11187178#M191364</guid>
      <dc:creator>former_member186338</dc:creator>
      <dc:date>2015-07-13T17:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic operations with Variable in DM Advanced Script</title>
      <link>https://community.sap.com/t5/financial-management-q-a/dynamic-operations-with-variable-in-dm-advanced-script/qaa-p/11187179#M191365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply Vadim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes i have quarters as base members. Example for 2015:&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/jiveimages/746845" height="48" width="314" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not familiar with Script Logic because i'm an abaper and work better with Badi, but if the solution with Script Logic is more easier than implement BADI_UJ_CUSTOM_LOGIC i want to learn how to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Angelo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 18:45:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/dynamic-operations-with-variable-in-dm-advanced-script/qaa-p/11187179#M191365</guid>
      <dc:creator>former_member302911</dc:creator>
      <dc:date>2015-07-13T18:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic operations with Variable in DM Advanced Script</title>
      <link>https://community.sap.com/t5/financial-management-q-a/dynamic-operations-with-variable-in-dm-advanced-script/qaa-p/11187180#M191366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For TMVL function to work correctly you need to have TIMEID property to be properly configured!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TMVL(4,$Y$.Q1) will result in 2016.Q1 ($Y$=2015)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have increasing number in TIMEID.&lt;/P&gt;&lt;P&gt;Please show your values in TIMEID!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script is simple:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*XDIM_MEMBERSET VERSION=V1&lt;/P&gt;&lt;P&gt;*XDIM_MEMBERSET TIME= $Y$.Q1,$Y$.Q2,$Y$.Q3,$Y$.Q4,TMVL(4,$Y$.Q1),TMVL(4,$Y$.Q2),TMVL(4,$Y$.Q3),TMVL(4,$Y$.Q4),TMVL(8,$Y$.Q1),TMVL(8,$Y$.Q2),TMVL(8,$Y$.Q3),TMVL(8,$Y$.Q4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*WHEN TIME&lt;/P&gt;&lt;P&gt;*IS * //scoped&lt;/P&gt;&lt;P&gt;*REC(EXPRESSION=%VALUE%,VERSION=V2)&lt;/P&gt;&lt;P&gt;*ENDWHEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vadim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 18:56:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/dynamic-operations-with-variable-in-dm-advanced-script/qaa-p/11187180#M191366</guid>
      <dc:creator>former_member186338</dc:creator>
      <dc:date>2015-07-13T18:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic operations with Variable in DM Advanced Script</title>
      <link>https://community.sap.com/t5/financial-management-q-a/dynamic-operations-with-variable-in-dm-advanced-script/qaa-p/11187181#M191367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vadim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have configured TIMEID for order purpose, created the advanced script to pass variable $Y$ and finally write the code in the Script Logic file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The copy working fine, except a strange error (BPC 10.0 SP16) when validate the file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TMVL(4, $Y$.Q1) return &lt;SPAN style="text-decoration: underline;"&gt;Invalid TMVL return value&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TMVL(4, %Y%.Q1) and TMVL(4, 2015.Q1) validate with no problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However if i save the file with error, the package run well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i have the last question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When use the syntax *REC(EXPRESSION=%VALUE%,VERSION=V2) i want to pass 2 dynamic variable for CATEGORY and VERSION like &lt;SPAN style="text-decoration: underline;"&gt;*REC(EXPRESSION=%VALUE%,CATEGORY=$CATEGORY%, VERSION=$VERSION$)&lt;/SPAN&gt;, it is possible ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to pass two variable with REPLACEPARAM but the package log return an error for Invalid Member.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Angelo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 23:06:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/dynamic-operations-with-variable-in-dm-advanced-script/qaa-p/11187181#M191367</guid>
      <dc:creator>former_member302911</dc:creator>
      <dc:date>2015-07-13T23:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic operations with Variable in DM Advanced Script</title>
      <link>https://community.sap.com/t5/financial-management-q-a/dynamic-operations-with-variable-in-dm-advanced-script/qaa-p/11187182#M191368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First - ignore validation error, just save script!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second: If you want to pass dimension member from DM advanced script to the script logic code you have 2 options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Use SELECTION to pass some initial script scope that you can use in script logic as %SOMEDIMNAME_SET%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Use TASK MEMBERSELECTION to pass individual $VAR$ variables. REPLACEPARAM is for text only strings like TEXT or COMBOBOX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vadim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 05:56:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/dynamic-operations-with-variable-in-dm-advanced-script/qaa-p/11187182#M191368</guid>
      <dc:creator>former_member186338</dc:creator>
      <dc:date>2015-07-14T05:56:09Z</dc:date>
    </item>
  </channel>
</rss>

