Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to write multiple actions in if else crystal reports

Hello

I'm tyring to write following code in a formula and its throwing error. Can someone help in this. I need a count variable to count the number of lines printing in the detail to add to string that is being used in trailer.

Shared Numbervar count;

if {APY2055.PYMNT_STATUS} ='P' THEN

('300'+{@transit_nbr} + right({@account_number},7) + {@check_number} + {@check_amount}+ {@Client_ref_space} +{@filler_53to60}+{@check_dt}+ {@filler_67to80};

count:=count+1)

ELSE IF {APY2055.PYMNT_STATUS} ='S' THEN

('311'+{@transit_nbr} + right({@account_number},7) + {@check_number} + {@check_amount}+ {@Client_ref_space} +{@filler_53to80};

count:=count+1)

Thanks

Mano

Former Member
Not what you were looking for? View more on this topic or Ask a question