Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

shift deleting 0 on sap script

Former Member
0 Likes
1,189

Hi all,

How can i delete 0 before printing number with sap script?

0080 i need to print 80.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,146

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

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

9 REPLIES 9
Read only

Former Member
0 Likes
1,146

&variable(Z)&

just rite Z.

Read only

Former Member
0 Likes
1,146

Hello,

Just put (Z) behind the variable: &MY_NUMBER(Z)&.

Regards,

John.

Read only

Former Member
0 Likes
1,147

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

Read only

0 Likes
1,146

i know , but i want to delete them at the sap script program. when i write &Var(Z)& its not working.

Read only

0 Likes
1,146

HI,

You can use the function CONVERSION_EXIT_ALPHA_OUTPUT in the driver program and pass the value back to Script.

Regards,

Ram

Read only

0 Likes
1,146

r u trying &var(k)&

variable show leading zero it means it is type numc.

or try with &var(2Z)&

Read only

0 Likes
1,146

Sorry but its not working.the type is char.

Read only

0 Likes
1,146

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.

Read only

0 Likes
1,146

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