Application Development 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: 

shift deleting 0 on sap script

Former Member
0 Kudos

Hi all,

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

0080 i need to print 80.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

Former Member
0 Kudos

&variable(Z)&

just rite Z.

Former Member
0 Kudos

Hello,

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

Regards,

John.

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

HI,

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

Regards,

Ram

0 Kudos

r u trying &var(k)&

variable show leading zero it means it is type numc.

or try with &var(2Z)&

0 Kudos

Sorry but its not working.the type is char.

0 Kudos

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.

0 Kudos

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