‎2007 May 12 10:02 AM
hi all
i hav a script in which i hav a fiels called &BSEG_HKONT& and this value goes through different ELEMENTS (/E) and in each ELEMENT it has different IF conditions.What i need is i need the TOTAL of &BSEG_HKONT& at the end of the script and also i should take the value only if the IF condition is passed.Like i want only the total of the values that are picked....
with regards
vijay
‎2007 May 12 1:31 PM
Hi,
You can use Control break statements for this i think.Either At New or on change events we can use..
If you are not familiar we can add a flag variabole and in the if condition we can chech the amount...
otherwise
Set a variable to hold the amount and each time the condition checks and enters inside the loop means we can calculate the amount in the variable and finally we can print the total amount..I hope u understand
Reward if this is useful yar
‎2007 May 12 1:31 PM
Hi,
You can use Control break statements for this i think.Either At New or on change events we can use..
If you are not familiar we can add a flag variabole and in the if condition we can chech the amount...
otherwise
Set a variable to hold the amount and each time the condition checks and enters inside the loop means we can calculate the amount in the variable and finally we can print the total amount..I hope u understand
Reward if this is useful yar
‎2007 May 12 1:34 PM
Write the logic in print program like at at last or at end then in layout use
bottom
here you mention the total value field
end bottom
Reward Points if it is useful