06-13-2006 8:00 AM
Hi all,
How can i delete 0 before printing number with sap script?
0080 i need to print 80.
06-13-2006 8:05 AM
Hi,
You can use CONVERSION_EXIT_ALPHA_OUTPUT in the driver program and pass the result to the script.
Hope this helped in resolving.
Regards,
Ram Mohan Naidu
06-13-2006 8:04 AM
06-13-2006 8:05 AM
Hello,
Just put (Z) behind the variable: &MY_NUMBER(Z)&.
Regards,
John.
06-13-2006 8:05 AM
Hi,
You can use CONVERSION_EXIT_ALPHA_OUTPUT in the driver program and pass the result to the script.
Hope this helped in resolving.
Regards,
Ram Mohan Naidu
06-13-2006 8:14 AM
i know , but i want to delete them at the sap script program. when i write &Var(Z)& its not working.
06-13-2006 8:16 AM
HI,
You can use the function CONVERSION_EXIT_ALPHA_OUTPUT in the driver program and pass the value back to Script.
Regards,
Ram
06-13-2006 8:50 AM
r u trying &var(k)&
variable show leading zero it means it is type numc.
or try with &var(2Z)&
06-13-2006 9:05 AM
06-13-2006 9:08 AM
thats the reason it is workin for numeric value type to delete leading zero.
u can change variable into numc type in driver program than it will work.
06-13-2006 9:20 AM
Hi Celtic,
For type Char do as follows in your driver program.
<b>WRITE <char_variable> NO-ZERO TO <char_variable>.
CONDENSE <char_variable>.</b>
Use <char_variable> in your form.
Thanks,
Vinay