Application Development and Automation 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: 
Read only

Deleting zeros in a type P variable

Former Member
0 Likes
553

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
Read only

Former Member
0 Likes
529

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

Thanks,

Santosh

3 REPLIES 3
Read only

Former Member
0 Likes
530

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

Thanks,

Santosh

Read only

Former Member
0 Likes
529

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

Read only

Former Member
0 Likes
529

Hi,

Try unpack..

UNPACK p to c.

Thanks,

Naren