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

Next function not working for first two records

Hi all,

I have scenario where I'm comparing two billing docs and if they are equal and the net billing of second record is 0 and the retainage of second record contains some value then move the retainage to the first record.

I've built the above formula for retainage and its working well except for the first two records. This is happening for all the customers.

numbervar t;


if ({ZAR_VRM30_Q007.Document Number}=next({ZAR_VRM30_Q007.Document Number}) and next({ZAR_VRM30_Q007.Net Billing})=0
and next({ZAR_VRM30_Q007.Retainage based on Currency Type})<>0)
then
(
t:=next({ZAR_VRM30_Q007.Retainage based on Currency Type});
)

else
(
t:={ZAR_VRM30_Q007.Retainage based on Currency Type};
)

This is the screenshot of output.

Can someone tell me if this is the behaviour of next function?

Thanks,

John

Message was edited by: John Moses

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Aug 03, 2012 at 05:08 PM

    Hi John,

    What version of Crystal Reports for Enterprise are you using?

    I tested this report (on CR4E SP04) and it works fine. The formula shows the correct retainage values on the repeating records.

    Why so many duplicate posts 😕?

    - Abhilash

    Follow us on Twitter

    Got Enhancement ideas? Try the SAP Idea Place

    Share Your Knowledge in SCN Topic Spaces

    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.