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

Script Logic REC Instruction

$
0
0

Hello,

 

The below script is attempting to calculate the cost of production using cases and COGS housed in Fcst_Master_Data version.  After completing the calculation it should place the calculated values in the forecast version.  It seems to be calcuating correctly for the sku's that it selects but it is "missing" some sku's and I haven't been able to identify the reason some records are missed.

 

//Calculate COGS for each account using Frozen Standards

 

*XDIM_MEMBERSET RptCurrency = LC

*XDIM_MEMBERSET Company_Code = %Company_Code_SET%

*XDIM_MEMBERSET MEASURES = PERIODIC

*XDIM_MEMBERSET Version = Fcst_Master_Data

*XDIM_MEMBERSET Summary_Account =cogsRawMaterial, cogsPackageMaterial, cogsFixedOverhead, cogsDirectLabor, cogsVariableOverhead, cogsThirdPartyConv, cogsCorporateAdj, cogsDepreciation, cogsFixDepreciation

*XDIM_MEMBERSET SKU = BAS(SKU_ROLLUP)

*XDIM_MEMBERSET TIME =%TIME_SET%

*XDIM_MEMBERSET Profit_Center =BAS(%Profit_Center_SET%)

 

*WHEN Summary_Account

*IS*

*REC(EXPRESSION = (([Version].[Fcst_Master_Data],[Data_Source].[fromAPO],[Summary_Account].[Cases]) + ([Version].[Fcst_Master_Data],[Data_Source].[Input],[Summary_Account].[Cases])) * 1 *  ([Version].[Fcst_Master_Data],[Data_Source].[fromFrozenStds],[Time].[2016.001],[Channel].[18],[Profit_Center].[ADMINBU]),VERSION=Forecast)

 

*ENDWHEN

*COMMIT

 

Can anyone please help?


Viewing all articles
Browse latest Browse all 5414

Trending Articles



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