‎2007 Sep 04 6:16 AM
Hi all
I have created a text editor and have saved its text using save_text. It is working fine for me. My problem is how to read the saved text.
Please help.
Any pointers would be highly appreciated.
Regards
Dinesh
‎2007 Sep 04 6:29 AM
Hi,
before saving the text,check the save mode in table TTXOB for the TDOBJECT u have used.If it is D,then u have to use
FMs- SAVE_TEXT to save
COMMIT_TEXT to update in DB.
If save mode is V,u have to use
INTTAB_SAVE_TEXT and
INTTAB_COMMIT_TEXT .
For both to read u can use the FM- READ_TEXT to read the saved text later.
<b>Reward if useful</b>
thanks
‎2007 Sep 04 6:25 AM
You can use function module <b>READ_TEXT</b> or <b>READ_INLINE_TEXT</b>.
- Alpesh
‎2007 Sep 04 6:29 AM
Hi,
before saving the text,check the save mode in table TTXOB for the TDOBJECT u have used.If it is D,then u have to use
FMs- SAVE_TEXT to save
COMMIT_TEXT to update in DB.
If save mode is V,u have to use
INTTAB_SAVE_TEXT and
INTTAB_COMMIT_TEXT .
For both to read u can use the FM- READ_TEXT to read the saved text later.
<b>Reward if useful</b>
thanks
‎2007 Sep 04 7:15 AM
hi dinesh
to read the text use read_text and pass the required import , export & table parameters.. some of them are
SY-MANDT
THEAD-TDID
THEAD-TDSPRAS
THEAD-TDNAME
THEAD-TDOBJECT
text hearder wil be in THEAD STRUCTURE
text lines wil be in STRUCTURE TLINE
for further information refer the READ_TEXT fm.
reagrds
‎2007 Sep 04 7:32 AM
Hi Dinesh,
Use FM 'Read_Text' and pass appropriate parameters.
Refer this code :
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = '0001'
LANGUAGE = 'EN'
NAME = Thead-tdname
OBJECT = 'VBAK'
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER = IT_HEADER1
TABLES
LINES = IT_LINES2
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
Regards,
Hemant
‎2008 Jan 20 9:35 AM