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

Script logic problem

$
0
0

Hi folks,

 

Please i want to do a logic script who calculate the final stock ,  I have the member Stock_ initial at the dimension  Rubrique_stock and i have the member Ventes ,

the initial stock is  the stock of the the last mounth of last year , and for Ventes it's depending of a mount of the current year ,

here is the script i did but it does not work .

 

*XDIM_FILTER ARTICLE_SOCIETE = [ARTICLE_SOCIETE].PROPERTIES("TYPE_ARTICLE") ="ZPFN"

*XDIM_MEMBERSET TYPE_VALEUR = QTE

*WHEN RUBRIQUE_STOCK

*IS Stock_initial

//*REC(EXPRESSION = [RUBRIQUE_STOCK].[Stock_initial] + ([RUBRIQUE_STOCK].[Entrées],[TEMPS].[2015.IMP]) - ([RUBRIQUE_STOCK].[Ventes],[TEMPS].[2015.IMP]) - ([RUBRIQUE_STOCK].[Sorties],[TEMPS].[2015.IMP]), RUBRIQUE_STOCK = Stock)

*REC(EXPRESSION = ([RUBRIQUE_STOCK].[Stock_initial],[TEMPS].[2014.12]) - [RUBRIQUE_STOCK].[Sorties], RUBRIQUE_STOCK = Stock)

*ENDWHEN

*COMMIT

 

You will find attached a screen of the input forms

 

please what do you suggest ?


Viewing all articles
Browse latest Browse all 5414

Trending Articles