cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Crystal Report Formula field

Former Member
0 Kudos

hi,

i have problem in Crystal report formula filed ...

For ex-

Current Output-

Sr.NoOPRECQTYCL
10101
22102
32011

Actual Output-

Sr.NoOPRECQtyCL
10101
21102
32011

here i used OP as formula field i required if OP is zero then last CL is = REC , next row if REC is not then previous CL is 2nd row OP value.

i use following formula -

shared numbervar openingbalance;

shared numbervar openingbalance2;

shared numbervar x;

shared numbervar RecQty;

whileprintingrecords;

x:=x+1;

if(x=1) then

(

OP:={REC} - {QTY};

0;

)

else if(x>1) then

(

OP:= OP+ (REC ) - (QTY);

OP;

)

please give me any solution as soon as possible ....

please rly fast

Thanks !!!!!

Accepted Solutions (0)

Answers (1)

Answers (1)

abhilash_kumar
Active Contributor
0 Kudos

Hi Kiran,

Please elaborate:

here i used OP as formula field i required if OP is zero then last CL is = REC , next row if REC is not then previous CL is 2nd row OP value.

-Abhilash