‎2013 Jun 18 1:37 PM
hi i want to know the maximum output length coming from read function module.
i am trying to print the header text of invoice but i canot get more than 132 characters.
i am using this fm in smart form in program lines....
‎2013 Jun 18 3:43 PM
The structure tline is used by the fm to return the text. tline-tdline is length 132 characters so I guess that is the maximum it is going to return.
‎2013 Jun 18 3:52 PM
Hi,
under detail of structure tline
TDFORMAT 1 Type TDFORMAT CHAR 2 0 Colonna formato
TDLINE 1 Type TDLINE CHAR 132 0 Riga testo
So, maximum length is 132 char
Regards
Ivan
‎2013 Jun 19 7:09 AM
how many lines we can append with READ_TEXT FUNCTION MODULE.....
‎2013 Jun 19 7:51 AM
Hi DEEPAK BISHT
Length is 132 only
Read_text fm will return all the values in tline
there you put a loop and append it some other internal table as per your requirement
for your info see the below screen shot also read the documentation for that fm
‎2013 Jun 19 10:51 AM
Hi,
table contains all text lines belonging to a text module.
I think that there are not lines limitation.
Regards
Ivan
‎2013 Jun 19 11:09 AM
Hi Deepak,
It is an internal table with 132 characters per line.
Similar to an Internal table it has no limitation to the maximum number of lines
For more Information create a text in SO10 and read the same with the FM you will have a better idea.
Regards,
Yakub Shah
‎2013 Jun 19 7:16 AM
Hello Deepak,
The READ_TEXT will return you as a table of TD_LINE where each line is 132 char length.
So the maximum length as you see number of lines it returns....
Regards,
Venkat
‎2013 Jun 19 7:46 AM
Hi Deepak,
Out put length of read_text fm is 132 char you can check like this
using abap code you can get header text,
Try like this
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = ls_stxl-tdid
language = sy-langu
name = ls_stxl-tdname
object = 'EKPO '
TABLES
lines = it_lines.
* IF sy-subrc <> 0.
** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
** WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
* ENDIF.
DATA : v_line TYPE string.
LOOP AT it_lines INTO ls_lines.
CONCATENATE v_line ls_lines-tdline INTO v_line.
ENDLOOP.
Regards,
Ramesh.T
‎2013 Jun 19 9:45 AM
Use Include Text Node instead of READ_TEXT function; it could save your time. Just identify:
Don't forget to check on box "No error if no text exists".