Quantcast
Channel: SCN : Discussion List - SAP Planning and Consolidation, version for SAP NetWeaver
Viewing all articles
Browse latest Browse all 5414

Pass Boolean value from DM Package to Script Logic and use in IF Condition

$
0
0

Hi,

 

I would like to have Script Logic which performs two actions:

 

1. Zeros Data

2. Copies Data (Conditional from User Selection)

 

I would like a user to use a COMBOBOX Prompt in the Data Manger package, i.e. 'Copy Data? Yes / No' to determine whether one element of the script is executed or not. I.e. A user can select 'YES' to Copying Data.

 

Initially we thought that using a simple *WHEN and *IS statement could work:

 

////Copy Data to New Category

*WHEN %VARIABLE%

*IS 1

*REC(FACTOR = 1, CATEGORY = CURRENT_FORECAST)

*ENDWHEN

*COMMIT

 

Unfortunately, the Condition of VARIABLE = 1 isn't accepted syntax as you can only use  DIM_NAME = DIM_MEMBER format.

 

We can of course create two Data Manager packages but we would like to reduce scripts and packages as much as possible to improve maintenance and supportability.

 

I'd also like to do this without having to write a Custom BAdI - so only using standard BPC functionality and Script Logic.

 

Many Thanks for any experience you can share!

 

Nick


Viewing all articles
Browse latest Browse all 5414

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>