Application Development 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: 

Need ur Help (Urgent)

Former Member
0 Kudos

Hi all,

Please give me a solution to the below problem.

I’m executing an interactive report is executed for extracting the total cost value of product hierarchy, at first time the total cost is correct.

But when we go back from 5th list to the 4th list and once again select the part number for viewing the total cost doubled and shows the incorrect cost for the part number.

If once again I go back and select the part number to view the cost, then the cost value is Thrice to the original value and shows the incorrect cost for the part number.

Thanks,

Kanth

4 REPLIES 4

Former Member
0 Kudos

Hi Kanth,

The cost value needs to be cleared (initialized to zero) each time an action is performed.

Use a CLEAR statement to clear the variable at the beginning.

CLEAR <var1>

This will always initialize the value to zero every time an activity takes place, and the value will not get doubled or tripled.

Cheers.

Former Member
0 Kudos

Robin,

You are not clearing work area after modify or append statements. That is why you are getting double values.

It is always good to clear the work area when ever you use Modify or append statements.

Regards,

Satish

Former Member
0 Kudos

Have you tried using the Debugger to see the Values before and after they are loaded? A very resourceful tool when you need to monitor values.

Former Member
0 Kudos

I guess its definitely a refresh or a clear problem. looks like more of a refresh problem of the internal table.

Please try to refresh the Internal table everytime you do the interactive processing.

Shreekant