Application Development and Automation 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: 
Read only

Underline variable in smartform.

Former Member
0 Likes
1,823

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

1 ACCEPTED SOLUTION
Read only

Private_Member_7726
Active Contributor
0 Likes
1,526

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

5 REPLIES 5
Read only

former_member218424
Participant
0 Likes
1,526

create a new character font using smartstyle transaction and assign that font to your variable... this will resolve your issue

Read only

0 Likes
1,526

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.

Read only

0 Likes
1,526

Hi..

Since you are using variable. Use condense statement, to remove the spaces.

Hope it will work.

Regards

Rajkumar Narasimman

Read only

Private_Member_7726
Active Contributor
0 Likes
1,527

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

Read only

0 Likes
1,526

Thank you Jānis