‎2006 Nov 13 6:51 PM
I'm trying to append text lines to the existing data for a given text id. And it seems to replace it each time.
Is there a way to do it?
This did not work....call replaces the text data.
call function 'SAVE_TEXT'
EXPORTING
header = thead
insert = 'I'
TABLES
lines = tline
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
others = 5.
if sy-subrc <> 0.
endif.
CALL FUNCTION 'COMMIT_TEXT'.
COMMIT WORK.Thank you,
Pam
‎2006 Nov 13 6:53 PM
I think you would need to use READ_TAXT first to retrieve the existing text, then add your new text to the internal table and call SAVE_TEXT with the full text.
‎2006 Nov 13 6:56 PM
Ok...I have the code in place...its so messy but I guess I don't have much options. The reason I say its messy 'cause I get to many lines and too many text ids.
You would think SAP provides this common feature!!
thanks.
‎2006 Nov 13 6:56 PM
Hi Pam,
You need to use FM READ_TEXT and FM EDIT_TEXT then use FM SAVE_TEXT.
Hope this will help.
Regards,
Ferry Lianto
‎2006 Nov 13 7:00 PM
Hi Parimala,
The function module SAVE_TEXT
1. replaces the existing text if the INSERT parameter is SPACE
2. Inserts new text if the INSERT parameter not equal to SPACE.
Hope this helps.
Sajan.
‎2006 Nov 13 8:04 PM
Sajan,
does not seem to work like that. I tried with all possible values. I'm now using read_text and appending data to tline following with a save_text.
Thank for your timely suggestions.