cancel
Showing results for 
Search instead for 
Did you mean: 

Leading Spaces

Former Member
0 Kudos
61

Hi,

i'm using &vbdpa-posnr& and &vbdpa-kwmeng& field in my line item printing in script. both having leading zeros, to void leading zeros i used

&vbdpa-vbeln(z)& then its working fine. 000010 coverted to 10

where as when i'm using &vbdpa-kwmeng(Z)& its not working. can any one let me know the reason and solution for that.

Thanks & Regards

Munna

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Syed,

The best method to eliminate leadin zero's is to use FM <b>CONVERSION_EXIT_ALPHA_OUTPUT</b>. It will work for everything.

Regards

Aneesh.

Former Member
0 Kudos

> Syed,

>

> The best method to eliminate leadin zero's is to use

> FM <b>CONVERSION_EXIT_ALPHA_OUTPUT</b>. It will work

> for everything.

>

> Regards

> Aneesh.

Hi,

i tried both the ways but its not working.

while using function modile i'm getting error.

Thanks & Regards

Former Member
0 Kudos

Hi,

vbdpa-kwmeng Field type is quan, i think for quan input CONVERSION_EXIT_ALPHA_OUTPUT not working. pls let know the solution.

Munna

Former Member
0 Kudos

Hi Syed,

Create another variable of type P and use this variable like:

<b>Data: i_kwmeng type p DECIMALS 3.</b>

<b>i_kwmeng = vbdpa-kwmeng.</b>

and use this variable to print...

Regards,

Vivek

Former Member
0 Kudos

HI,

Move that field to Charecter field then use the Z with in the Brackets, then it will work

Regards

Sudheer