Display Next Op No.

I’m trying to create a report that will display the current line with the Next Operating No. “No.”.

Next Op.JPG

For instance,

Work Order Type Item MC No. Next MC No.
XYZ-123 Machine Center ABCD-123 370 320

I’m able to display the Next Operation No., but I can’t manage to make that NON to = the No.

??
IF ProdOrderRtngLine.“Next Operation No.” = ProdOrderRtngLine.“Operation No.”
THEN
ProdOrderRtngLine.“Next Operation No.” := ProdOrderRtngLine.“No.”
ELSE
ProdOrderRtngLine.“Next Operation No.” := ‘’;

Hi,
Which version of NAV you are using ?
What exactly you are trying to accomplish ?