Hi,
As I am very new to script Logic I have 1 basic requirement as below.
I need to add 2 Accounts keeping in mind that their Entity & IC are different.
Below is the data.
GL | Co code | IC | Value |
10400001 | 1000 | 1050 | 100 |
10400002 | 1050 | 1000 | -96 |
I wrote code as below
*XDIM_MEMBERSET C_ENTITY = 1000,1050
*XDIM_MEMBERSET C_INTERCO = 001000,001050
*XDIM_MEMBERSET AUDITTRAIL = Input
*XDIM_MEMBERSET TIME = 2014.12
*XDIM_MEMBERSET RPTCURRENCY = INR
*WHEN ACCOUNT
*IS 10400001,10400002
*REC(EXPRESSION=%VALUE%,ACCOUNT=ICDIFF,C_ENTITY=1000,C_INTERCO=001050)
*ENDWHEN
*COMMIT
The above code gives the result as 4 in ICDIFF which is perfect.
But I need write some condition that if 10400001 value > 10400002 value * -1 then only perform the above calculation
How can I achieve this?
Regards,
Ravi