cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Running Default Script for Select Data.

Former Member
0 Likes
161

Dear All,

I urgently need help regarding an issue I have:

I have a default script logic that calls an account based rule (IFRS starter kit FLOW_CALC). I need the logic to run only when data with flow is F99 as i only need to calculate flow for BS accounts. However, the program seems to run at all times regardless of the flow in the data loaded via DM or excel input. As such, if i load P&L/BS data first, it goes in fine, but when i load the second set of data, the first set is zerorized even if i choose not to run defualt logic. I've tried using various filter options in the script to no avail. Please see my script below

*RUN_PROGRAM CALC_ACCOUNT

CATEGORY = %VERSION_SET%

CURRENCY = LC

TID_RA = %TIME_SET%

CALC=FLOW_CALC

OTHER = [FLOW=F99]

*ENDRUN_PROGRAM

I appreciate your help,

Regards,

Accepted Solutions (1)

Accepted Solutions (1)

former_member186338
Active Contributor
0 Likes

Sorry, but not clear!

If you run CALC_ACCOUNT in default logic then it will run each time you sent data. If you want to perform some calculations only on sent data scope - use WHEN/ENDWHEN.

Former Member
0 Likes

Hi Vadim,

Thanks for the response. I want the the program to run only when Flow of data submitted is F99.

former_member186338
Active Contributor
0 Likes

Sorry, but this is not possible in general! There is no conditional code execution, only some simulation.

Data can be submitted for different flows simultaneously! What to do in this case?

What to do if:

CURRENCY= EUR, FLOW=F99, SIGNEDDATA=Value1

CURRENCY= LC, FLOW=F01, SIGNEDDATA=Value2

Do you understand the issue?

former_member186338
Active Contributor
0 Likes

P.S.

OTHER = [FLOW=F99] - has no effect on CALC_ACCOUNT (flows are fixed in the rule in IFRS kit!)

Former Member
0 Likes

Thanks Vadim,

Your suggestions made me realize I'd been looking at the wrong place.

The issue is not with the default logic or the program, but a bit of a mistake I made in executing the data import. I mistakenly chose the option to clear data in the same Entity, Time and category region. So each time data is loaded for the same region it clears whatever was there before.

Thanks for always been helpful.

Regards,

Seyi.

Answers (0)