on 03-27-2009 3:23 PM
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!
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
Try Creatinge the Character which makes the difference between numerical 0 from O and use that in the smartform.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.