cancel
Showing results for 
Search instead for 
Did you mean: 

How to Supress Leading Zeros

Former Member
0 Kudos

Hi,

i am modifying standard rvorder0 form, from that i'm getting line item and material numbers as &vbdka-posnr& and &vbdka-matnr&. when i'm pringing these in my line items material number is printing 00000000000000049, its lenght is 18. but i need only 46 to print to accomdate line time width for other cols. how to do this for item number and material number in script. plss let me know its very urgent

Regards

Munna

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi

i think no functionmodules are not necessary proceed as sudheer said

recently i get the output like this only but in your style assign for this paragraph format as left justified

Regards,

Phani.

Former Member
0 Kudos

hi

good

use the function module

CONVERSION_EXIT_ALPHA_OUTPUT converts any number with zeroes right into a simple integer

Example:

input = 00000000000123

output = 123

thanks

mrutyun^

Former Member
0 Kudos

HI,

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

<b>Example :</b>

&symbol(Z)&

So, in your case, you need to write &vbdka-matnr(Z)&.

Regards

Sudheer

Former Member
0 Kudos

hi syed,

use FM 'CONVERSION_EXIT_ALPHA_OUTPUT'

this will remove leading zeros...

please reward,

Regards,

Prashant

Former Member
0 Kudos

Hi,

Hi try like below:

&is_vbdak-vbeln(C)&

This will remove the leading zeroes

Regards

Shiva