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

MVAL along with IF statement

$
0
0

Hi All,

 

I have a requirement wherein I need to populate BPC accounts from BW key figures and based on a condition from another BW infoobject.

 

 

BW infoobject to be checked - 0MATERIAL

BW Key figures to be used - OTHREV, REV1 and REV2.

 

BPC Dimensions

 

Product -> Mapped with 0MATERIAL

Account -> Mapped to key figures. BPC dim members (Other_Revenue, Revenue1, Revenue2)

 

 

Logic ->

 

If 0Material is blank, then product should be Dummy and only Other_Revenue should be populated from OTHREV

Else product is populated from 0Material, and Revenue1 and Revenue2  to be populated from REV1 and REV2 respectively.

 

 

 

I started with something like below -

 

Product=*IF(0MATERIAL= *STR() then *NEWCOL(Dummy_Product) ; 0MATERIAL)

Account=*MVAL(REV1|*Newcol(Revenue1)||REV1|*Newcol(Revenue2)||OTHREV|*Newcol(Other_Revenue))

 

But the problem with above statement is that though the mapping is correct, but it always will populate all three revenues irrespective of whether 0material is blank or non-blank

 

Thanks in advance.

 

Regards,

Ashish


Viewing all articles
Browse latest Browse all 5414

Trending Articles



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