Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Adding in scripts

Former Member
0 Likes
405

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
381

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

2 REPLIES 2
Read only

Former Member
0 Likes
382

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

Read only

Former Member
0 Likes
381

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