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: 

Deleting zeros in a type P variable

Former Member
0 Kudos
106

Hello, i have a variable.

price like sflight-price

This variable is type P and it has a lenght= 8, output lenght = 20.

An example of the field contents is 513.69.

When i try to put this variable in a report, this blank spaces move my column

how i can supress that blanks. I read about the CONVERSION_EXIT_ALPHA_OUTPUT function, but my variable is type p, and the fuction accepts a character type variable as input, when i try to pass the value to a type n variable, the program fails.

thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos
82

Store it into a char type variable and use the FM.

Thanks,

Santosh

3 REPLIES 3

Former Member
0 Kudos
83

Store it into a char type variable and use the FM.

Thanks,

Santosh

former_member191977
Contributor
0 Kudos
82

move it to a character type variable and try doing it.

Former Member
0 Kudos
82

Hi,

Try unpack..

UNPACK p to c.

Thanks,

Naren