cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to display 0 ( zero ) in print output of the smartform

Former Member
0 Kudos

Dear All,

I am having issue displaying hte zero quantity on the smart form print output.

It is a form for displaying details of the sales Order.

When the quantity is non zero the value gets displayed.

But when the quantity is zero nothing gets displayed on the print output.

The field is bmeng (quantity)

In the driver program iti s declared as 
BMENG	QUAN	13	3	Confirmed quantity

In the smartform it is declared as 
&w_final-bmeng(CIZ)&

I changed the delcaration in smartform as &w_final_bmeng(CI)&

But still i am not getting zero displayed on the print output

Please guide.

Regards,

SuryaD.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try to remove (I) because it stands for "suppress output of initial value".

Since 0 is initial value of this field, I suppose it can cause your problem.

 &w_final-bmeng(CZ)& 

Regards,

MC

Edited by: Marcin Cudo on Apr 21, 2010 2:00 PM

Former Member
0 Kudos

Thanks for your input Marcin.

I will try your suggestion and will chekc if it fixes my issue.

Just for clarity ,example

If w_final-bmeng = 0.00 in runtime (debugging i am able to see this value),

then print output shows confirmed quantity = ' ' (shows space..nothing is displayed)

If w_final-bmeng = 1.00 in runtime (any value other than the zero or initial value)

then print output shows confirmed quantity = 1

Regs,

SuryaD.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,thanks for your response and guidance.

I fixed the issue.

Displaying w_bmeng(CIZ) is the right form.

In my case, initially it wasnt displaying correcty becuase apart from w_bemng(CIZ) there were other text elements (unwanted..mote like junk) that were by mistake saved in that editir. So i removed them all(junk & unwanted) and just retained w_bmeng(CIZ) and getting the output successfully.

satyajit_mohapatra
Active Contributor
0 Kudos

The use of the commands are given below....

(C) - Condense the variable

(Z) - Remove Leading zeros

(I) - Supress Initial Value ---> Supressing your initial outputs