cancel
Showing results for 
Search instead for 
Did you mean: 

Space after Number

Former Member
0 Kudos

The code I used to display carton dimension in Packing List is:

&<FS_VBPLK>-LAENG(C.0)&X&<FS_VBPLK>-BREIT(C.0)&X&<FS_VBPLK>-HOEHE(C.0)&

The output text is 10 X20 X30 , there's an extra space after each number. How can I get 10X20X30 ?

Accepted Solutions (1)

Accepted Solutions (1)

brad_bohn
Active Contributor
0 Kudos

Because of the field type, you have a space left for the negative sign. Since your dimensions are positive, try using the 'S' option as well to suppress the gap.

Former Member
0 Kudos

Thanks Brad (SC.N) solved my problem.

It's the easiest way for me. I thought the "S" only omits leading sign on left side before.

Answers (2)

Answers (2)

Former Member
0 Kudos

As a last test before adding the perform, I would remove any spaces between the variables...

Former Member
0 Kudos

Hi

Normally the (C) after the variable to use to compress the variable but looks like it is not working because you have multiple variables that you are printing and because of the size of the variables you might be getting the spaces.

I am not sure if this can be done in the script itself but you can do it using subroutines in script.

In the form you need to call a perform like below:


/:PERFORM join_fields IN PROGRAM zreport
            /:USING &vari1&
           /:   &vari1&
            /:CHANGING &vari3&
            /:ENDPERFORM   

In the program you need to concatenate the variables in one field and compress no-gaps and display the value.

Regards,

Himanshu