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: 

how do u suppress blank spaces in scripts

Former Member
0 Kudos

hi

how do u suppress blank spaces in scripts and smartforms

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Say ur variable is var1 and contains 001.

use &var1(C)& to supress leading zeroes.

Regards,

Raghavendra

5 REPLIES 5

Former Member
0 Kudos

Hi,

Say ur variable is var1 and contains 001.

use &var1(C)& to supress leading zeroes.

Regards,

Raghavendra

Former Member
0 Kudos

Hi

use condense in print progrm before this move the value into char field

harimanjesh_an
Active Participant
0 Kudos

hi jyothsna,

u can use this command.....

&SYMBOL(C)&

This is similar to Abap Command CONDENSE.

example....

Assume 'SAP Script' as Symbol.

&SYMBOL& -


> SAP Script.

where as....

&SYMBOL(C)& -


> SAPScript

reward me if it is useful......

with regards..

Former Member
0 Kudos

HI,

The symbol value is viewed as a sequence of ‘words’, each separated from the next by either one or a string of space characters. The C option has the effect of replacing each string of space characters with a single space and shifting the ‘words’ to the left as necessary to close up the gaps. Leading spaces are completely removed. The results are the same as those of the ABAP command CONDENSE.

Syntax:

&symbol(C)&

Assuming ' Albert Einstein ' is the symbol value,

&symbol& -> Albert Einstein

&symbol(C)& -> Albert Einstein

Regards

Sudheer

Former Member
0 Kudos

If u want to do it in the driver program then use CONDENSE keyword

else if u want 2 do it in Scripts then while printing the variable in window write as

&variable(C)&

This will surely work out..

Reward if helpful