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

SAP BPC Transformation File/ Conversion File using IF Statement with a greater than sign

$
0
0

Hi All,

 

We are currently busy with the upload of transactional data using a Transformation/ conversion file.

 

Part of the transformation we need to determine value based on the first 2 integer values of a col. If the value is less than 50 we asign one value greater than 50 we asign a diffrent value

 

unfortunatly you can't use < or > in the transformation (as below)

          P_FLOW=*if (*COL(4,1:2) < *STR(1) then *STR(P99);*STR(F_NONE))


I've tried to use a conversion file (JavaScript), but with out any sucess.


*js:if(%external% < 50)  { "P99" } else { "F_NONE" }
*

js:if(parseInt(%external%) < 50)  { "P99" } else { "F_NONE" }

*js: if(parseInt(%external%) < 50) then P99; else F_NONE

  (Few more flavours of javascript)


Which is the (best) solution regarding Transformation files and assign single values based on a range values? Can I use Javascript If Stement?


Thanks you for your time

Regards

Jacues


Viewing all articles
Browse latest Browse all 5414

Trending Articles



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