cancel
Showing results for 
Search instead for 
Did you mean: 

reg. extra spaces in smartform print out

Former Member
0 Kudos

friends

when i print my smartforms, i am getting some extra blank spaces between the words and between the letters (for eg: pl ease n ote t h at)..but in the print preview, it's perfect...what could be the reason for this? please help me to fix this issue

regards

hariprasath

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

In the variable text, leading and closing blanks are completely removed and any other directly consecutive blanks are all replaced by exactly one space character or - if NO-GAPS is specified - are also removed completely.

See the example.

DATA: BEGIN OF sentence,

word1(30) TYPE c VALUE 'She',

word2(30) TYPE c VALUE 'feeds',

word3(30) TYPE c VALUE 'you',

word4(30) TYPE c VALUE 'tea',

word5(30) TYPE c VALUE 'and',

word6(30) TYPE c VALUE 'oranges',

END OF sentence,

text TYPE string.

text = sentence.

CONDENSE text.

Regards

Ganesh

Former Member
0 Kudos

Hi,

You can remove the spaces using the following key word.

Condense.

Eg: text = 'a b c d'.

condense text with no gaps. now output abcd.

Plz. try this one and I am not sure the spelling and syntax you can press F1 on condense statement you can the help and example also.

If any doubts reply.

Regards

Ganesh