cancel
Showing results for 
Search instead for 
Did you mean: 

Printing "slashed zero" in smartforms?

Former Member
0 Kudos

I have had a request from users to make the zero look more different from the capital O in their printout. I have looked through all the fonts but have not been able to find one that works.

Does anyone know of a way to make the printed '0' look more different from the capital 'O' in Smartforms?

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Not sure if you can do it using character formats..

But you can create a code in the smartforms that will replace the zero with the character that looks like slashed zero..

Ex..

DATA: v_value TYPE string.

v_value = '1000.00'.

REPLACE ALL OCCURRENCES OF '0' IN v_value WITH 'Ø'.

WRITE: / v_value.

Thanks

Naren

Former Member
0 Kudos

Naren,

This worked great - thank you!!

Answers (1)

Answers (1)

Former Member
0 Kudos

HI,

Try Creatinge the Character which makes the difference between numerical 0 from O and use that in the smartform.

Former Member
0 Kudos

How would I create the character? Thank you for replying!

naimesh_patel
Active Contributor
0 Kudos

There is one Displayable character avliable which is very close to your Requirement.

Go to your Text. From menu Insert > Characters > Displayable Characters. Select the Character looks like Ø.

Regards,

Naimesh Patel

Former Member
0 Kudos

Hi,

You can create the Charcter format in SmartStyles. or You can try as per the Naimesh's response,

Former Member
0 Kudos

Hi - I guess I just don't know what font to use. I know how to create a character format, but how do I define it to give me the correct output? Thanks!

Former Member
0 Kudos

Thank you Naimesh - I see the character now. I am still not sure how to implement it though - it looks like if I did it this way I would have to parse out every character in every field to check if it is a zero and then print that character instead. I am really looking for a way to define a character or paragraph format that will allow me to print the whole field as usual, just with the different looking zero. Thank you for your help.

naimesh_patel
Active Contributor
0 Kudos

We have an easier way to replace the Zeros with the Ø.

We need to use the Conversion Routine to replace Zero with the Ø.

1. Create new Conversion Routine FMs

E.g.

CONVERSION_EXIT_ZZERO_INPUT


INPUT = OUTPUT.

CONVERSION_EXIT_ZZERO_OUTPUT


output = input.
REPLACE ALL OCCURRENCES OF '0' IN output WITH 'Ø'.

2. Create a New Domain & assign the Conversion Routine

E.g.

ZZ_ZERO - For Amount


Data type        CURR       
 No. characters       13     
 Decimal places        2     
                                                          
 Output length        17     
 Convers. routine ZZERO      

3. Create a Data element

Use theis data element to declare your variables to print.

Regards,

Naimesh Patel