on 04-26-2006 9:50 AM
Hi,
I have created a multine virtual attribute which is filled with text lines (from a PO).
I want to show these lines in a document template. It works but the lines are shown like this:
Line1Line2Line3
In the document template (word document) I want to show it like this:
Line1
Line2
Line3
How do I force a line-break?
I'm quite new in WF so i probably made some basic mistake.
Any help is welcome !
bert
Bert,
What Aman mentioned is not available for Word Document Templates. I am not sure if this will work but try to introduce a linebreak character at the end of each line of the multiline container element. You could try that in the method that populates the multiline container or have a new background method.
You can try the following code (I have not checked the syntax).
DATA:
l_crlf(2).
FIELD-SYMBOLS:
<line> TYPE t_line. "table type of the text
l_crlf = cl_abap_char_utilities=>cr_lf.
LOOP AT it_line ASSIGNING <line>.
CONCATENATE <line> l_crlf INTO <line>.
ENDLOOP.
Cheers,
Ramki.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Ramki,
Your suggestion works. The only thing you have to do subsequently is to edit the link in the document template by manually adding a '##' at the end of the link.
I changed:
&MYOBJECT.SUBJECTDESCRIPTION&
manually to:
&MYOBJECT.SUBJECTDESCRIPTION##&
and it works !!!!!
Thanks again !
Bert
Normally In the description tab of any task when you click on Express button and select Multiline container element it will give POPUP with three options with radio buttons.
Only First line
All line as Cont. text
All Line with line break
Select the last option
and it will insert like &POTEXT##&
POTEXT is the multiline container element.
Hope this will help you.
Regards
Aman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.