‎2008 Nov 12 11:21 AM
Hi,
I am receiving a long text in an internal table of lines.
But when i do the loop to the table to display the lines, i cant justify this same lines to the cell, even if the paragraph is defined as justify.
Thanks,
Bruno Pimenta
‎2008 Nov 12 11:23 AM
Hi,
check this...
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = 'B01'
language = sy-langu
name = name
object = 'EBANH'
* ARCHIVE_HANDLE = 0
* LOCAL_CAT = ' '
* IMPORTING
* HEADER =
TABLES
lines = it_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
REFRESH c_tab[].
CALL FUNCTION 'CONVERT_ITF_TO_ASCII'
EXPORTING
* CODEPAGE = '0000'
formatwidth = 72
language = sy-langu
tabletype = 'ASC'
* TAB_SUBSTITUTE = ' '
* LF_SUBSTITUTE = ' '
replace_symbols = 'X'
replace_sapchars = 'X'
IMPORTING
* FORMATWIDTH_E =
* X_DATATAB =
c_datatab = c_tab[]
* X_SIZE =
TABLES
itf_lines = it_lines
* EXCEPTIONS
* INVALID_TABLETYPE = 1
* OTHERS = 2
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT c_tab.
CONCATENATE text c_tab INTO text SEPARATED BY space.
ENDLOOP.
Arunima
‎2008 Nov 12 4:35 PM
Thank you.
"But in Smartforms you have special node for Include Text. In Smartforms change mode: Create->Text, then change type from Text Element to Include Text, populate Text Key as if you would using the FM READ_TEXT."
But this solve my problem.