cancel
Showing results for 
Search instead for 
Did you mean: 

Leading zeros

Former Member
0 Kudos

Is there a way that I can remove the leading zeros that come along with the EMP perconnal no. from showing in my form

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI,

Certain symbol values are printed with leading zeros. If you want to suppress these, use the Z option.

<b>Syntax</b>

&symbol(Z)&

Regards

Sudheer

Answers (3)

Answers (3)

former_member480923
Active Contributor
0 Kudos

Hi

Just a small addition to the above posts, if the field is a Char field add the following code

shift left removing leading 0.

Hope that Helps

Anirban M.

Former Member
0 Kudos

can we use the below syntax in script?

Former Member
0 Kudos

whivch one u r reffering to

is it &V_VAR(C)&--> condence

&V_VAR(Z)&-->do not printLeading zeros

u can use these in Scripts and Smartforms

Please Close this thread.. when u r problem is solved. Reward all Helpful answers

Regards

Naresh Reddy K

former_member480923
Active Contributor
0 Kudos

If you want to call on the below syntax, then call on a external perform routine and pass this variable inside the perform routine and then apply the code.

Hope that helps

Anirban M.

Former Member
0 Kudos

use the formatting options

<b>&v_var(Z)&</b>

Former Member
0 Kudos

how to use it can you explain abit more please

Former Member
0 Kudos

hi shaheen

suppose u have a vriable V_AMOUNT.

V_AMOUNT = 00000001234.40.

IF u write the &V_AMOUNT& THEN IT PRINTS 00000001234.40

IF u write the &V_AMOUNT(Z)& THEN IT PRINTS 1234.40

I hope every thisg is clear

Please Close this thread.. when u r problem is solved. Reward all Helpful answers

Regards

Naresh Reddy K

Former Member
0 Kudos

hi

You can use alpha conversion routines function module

CONVERSION_EXIT_ALPHA_OUTPUT