on 05-19-2011 11:27 PM
Hi guys,
I'm working with a situation where I need to respect the format that RFC READ_TEXT returns me. I mean, I call the RFC and the column TDLINE has multiples lines with formatting. I put this content (CONCATENATE) within a attribute and showing that on the view. That doesnt't show with formatting. By the way, the transaction SO10 offers a possibility to create a content and after that to use READ_TEXT for reading.
Any idea for a component with multiple lines and respecting espace, new line, so on?
Thanks in advance.
Hi Alexander,
You can display muliple lines by using Text view or Formated Text view ui element.
similarly use FM "READ_TEXT" and convert the returned data into string using FM CONVERT_TABLE_TO_STRING.
Bind the returned table to an attribute of your context. The data will be displayed in the same format in which you entered it.
http://forums.sdn.sap.com/click.jspa?searchID=72034468&messageID=9998465
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alexander,
Use class "CL_ABAP_CHAR_UTILITIES" to format your text.
In this class go to attributes tab and use the attributes for special characters like 'new line', tab, backspace etc.
Insert specific characters in between the lines to format the text.
Regards,
Vaibhav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.