2015 Mar 04 8:19 AM
Hi SDN's,
I need to print variable and underline it, using smartforms. I create underline srift, but got a problem.
Now, my text looks like this:
fgdjhghjdfklghsknfgbf
dfjgkfjkgjdfkjgkdfgysf
dgjfkgjkfjdgk
But i need:
fgdjhghjdfklghsknfgbf
dfjgkfjkgjdfkjgkdfgysf
dgjfkgjkfjdgk
The problem is i dont know how many '_' symbols i need to paste in variable.
Thanks in Advance,
Egor
2015 Mar 04 11:03 AM
Hi,
Unless monospaced font is used, the text does not need to flow over several lines (if each line can be a separate paragraph) and the output length of the line is fixed, I don't believe one can achieve that look using normal SAP text formatting capabilities.
If you are using monospaced font and output length is fixed... use your underlined font on a variable with fixed length definition, say: &textline(32)&. No need to pad the variable with '_', in other words.
You can also use a table node to output separate lines of fixed width and create underlines using cell border instead of underlined font.
If the output length is variable... the only way I can think of is creating many text elements for all the possible output lengths - very unsatisfactory "solution".
cheers
Jānis
Message was edited by: Jānis B
2015 Mar 04 8:49 AM
create a new character font using smartstyle transaction and assign that font to your variable... this will resolve your issue
2015 Mar 04 9:07 AM
i did it.
But i need to continue it:
fgdjhghjdfklghsknfgbf__
dfjgkfjkgjdfkjgkdfgysf__
dgjfkgjkfjdgk __
I dont know how to count number of symbols '_' i need to paste in the end of every line.
2015 Mar 04 9:11 AM
Hi..
Since you are using variable. Use condense statement, to remove the spaces.
Hope it will work.
Regards
Rajkumar Narasimman
2015 Mar 04 11:03 AM
Hi,
Unless monospaced font is used, the text does not need to flow over several lines (if each line can be a separate paragraph) and the output length of the line is fixed, I don't believe one can achieve that look using normal SAP text formatting capabilities.
If you are using monospaced font and output length is fixed... use your underlined font on a variable with fixed length definition, say: &textline(32)&. No need to pad the variable with '_', in other words.
You can also use a table node to output separate lines of fixed width and create underlines using cell border instead of underlined font.
If the output length is variable... the only way I can think of is creating many text elements for all the possible output lengths - very unsatisfactory "solution".
cheers
Jānis
Message was edited by: Jānis B
2015 Mar 04 12:07 PM