on 04-11-2008 10:33 AM
HI all,
I want to create a Fox formula which adds 1 to a ratio.
However this ratio is null (0).So, the record is not read and the ratio stays null.
Do you have a solution for my problem?
Thanks
Benjamin
Hi Benjamin,
I think you can write a code in Ur transformation End routine.
Can U give more details.
Rgs,
I.R.K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My real problem is i can't read the combinaison if they are null.
When the Planning Sequence is executed, the first function generates the combinations and the secound has to change one ratio but as you can see in the message : 0 records read....
307 characteristic combinations generated
Planning function Generate all combinaison Country ( ZVER_AL02_COMB0 executed without errors
307 records read, 0 generated, 0 changed, 0 deleted
Planning function Ouverture tous pays ( ZVER_AL02_FORM01 ) executed without errors
0 records read, 0 generated, 0 changed, 0 deleted
formule :
DATA COUNTRY TYPE ZCOUNTRY.
FOREACH COUNTRY.
{ZAFFECT, COUNTRY} = 1.
ENDFOR.
There is one more thing you can try - I have seen sometimes FOX does not create records when it does not read any records; but it does if all characteristics are marked 'to be changed'. See if doing that works for you; make sure there is no FOREACH loop in the code - you can use FOREACH IN SELECTION or FOREACH IN VARIABLE though, i think.
Let me know if that works.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.