on 08-19-2010 3:18 AM
Hi,
I need to display long text information of ABAP note. The type of long text is TFPTLINE with line type TLINE, which contains field "TDFORMAT" and "TDLINE". How can I do to display these information?
Thanks a lot in advance
Use UI Element 'FormattedTextView' to display the text. Check the section 'Conversion of SAPScript into Formatted Textview' in the following link
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/3b/219141c1d0ae5fe10000000a1550b0/frameset.htm
Ranganathan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello ,
if its not in a tabler format then u can crate TEXTEDITOR to display Longtext, if its a table Then create a column with a push button upon clicking on that button u can open another view to show long text.
ex: wdr_test_textedit
regards
Prabhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI ,
Conver the Sapscript to text stream uisng the function module CONVERT_ITF_TO_STREAM_TEXT .(Pass LF as 'X')
Sap script text of type TLINE gets converted into text and string table.
Create a TEXT VIEW and bind context attribute of type string or string_table. You will get both this formats using above function module.
Regards,
MAdhu
Edited by: madhu reddy on Aug 19, 2010 11:23 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you pass importing parameter LF = X then it will retuen stram lines , if you pass LF = space which default it wil retuen value in text_stream
CALL FUNCTION 'CONVERT_ITF_TO_STREAM_TEXT'
EXPORTING
* LANGUAGE = SY-LANGU
lf = 'X'
IMPORTING
stream_lines = lt_text_lines
TABLES
itf_text = lt_lines
.
Edited by: madhu reddy on Aug 19, 2010 11:50 AM
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.