on 05-22-2007 11:32 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.