Skip to Content
author's profile photo Former Member
Former Member

Need ur Help (Urgent)

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 01:09 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 01:13 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 06:59 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 07:04 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.