Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3193

Script logic division function

$
0
0

Hi All,

 

I have two records as below and want to divide.

 

P_511000             BP_NONE            NONE    C_20008301        EACT_NONE       10IN       XX           INR         I_NONE                1000_20008301 INPUT   1001       2016.FEB              V100      4,700.0000000

 

P_611000             BP_NONE            CC_NONE            CUST_NONE      EACT_NONE       10IN       EXECLOC_NONE               INR                I_NONE                1000_50020300 INPUT   1001       2016.FEB              V100      550.0000000

 

Amount = 550\4700=0.11

 

I have written script logic as below , not working. nothing is writing back.

am I missing something, kindly let me know.

 

*XDIM_MEMBERSET  ACCOUNT_A= <ALL>

*XDIM_MEMBERSET BP=BP_NONE

*XDIM_MEMBERSET COSTOBJECT= <ALL>

*XDIM_MEMBERSET CUSTACCT= <ALL>

*XDIM_MEMBERSET EMPACTIVITY= <ALL>

*XDIM_MEMBERSET ENTITY=10IN

*XDIM_MEMBERSET EXECLOCATION= <ALL>

*XDIM_MEMBERSET INPUTCURRENCY=INR

*XDIM_MEMBERSET INTCO=I_NONE

*XDIM_MEMBERSET PCA_A= <ALL>

*XDIM_MEMBERSET P_DATASRC=INPUT

*XDIM_MEMBERSET SITE=1001

*XDIM_MEMBERSET VERSION=V100

*XDIM_MEMBERSET TIME=2016.FEB

 

[ACCOUNT_A].[#AMOUNT] = [ACCOUNT_A].[P_611000] / [ACCOUNT_A].[P_511000]

 

*WHEN ACCOUNT_A

*IS AMOUNT

*REC(EXPRESSION=%VALUE%,ACCOUNT_A=AMOUNT)

*ENDWHEN

*COMMIT

 

Thanks,

Devi


Viewing all articles
Browse latest Browse all 3193

Trending Articles



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