‎2014 Oct 27 8:52 AM
Hi Experts,
I have a requirement to read the custom standard text using function module READ_TEXT but i am confuse after collect text in internal table that text how i will pass to script,Anyone can help me for this requirement.Here below logic that internal table T_clines data how to pass in script.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = c_st
language = c_e
name = gs_text-text_name
object = c_text
* ARCHIVE_HANDLE = 0
* LOCAL_CAT = ' '
* IMPORTING
* HEADER =
* OLD_LINE_COUNTER =
TABLES
lines = t_clines
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.
ENDIF.
Thanks.
‎2014 Oct 28 3:35 AM
Hi Ram,
No need to use Read_text in print program and pass it to script.
Rather you can just use below statement in your script to read and print the text directly.
/: INCLUDE &GS_TEXT-TEXT_NAME& OBJECT C_TEXT LANGUAGE 'EN' ID C_ST .
Thanks
Sri
‎2014 Oct 27 9:32 AM
‎2014 Oct 28 3:35 AM
Hi Ram,
No need to use Read_text in print program and pass it to script.
Rather you can just use below statement in your script to read and print the text directly.
/: INCLUDE &GS_TEXT-TEXT_NAME& OBJECT C_TEXT LANGUAGE 'EN' ID C_ST .
Thanks
Sri
‎2014 Oct 28 4:38 AM
Hi
After getting text in internal table loop that internal table and cancatenate that text into one variable and print that variable in script..
regards.
laxman