07-03-2006 3:26 PM
I am trying to create a new text ID using the SAVE_TEXT function module.
A text ID of Z001 already exists for object ZBOOK, when I try to create one using Text ID Z002 for ZBOOK I get the message:
Text ID Z002 for text object ZBOOK does not exist.
How do I create the text ID? Is there a transaction code I need to go to first instead of creating it programatically using SAVE_TEXT?
Many Thanks
David
07-03-2006 3:27 PM
07-03-2006 3:27 PM
07-03-2006 3:36 PM
07-03-2006 3:28 PM
07-03-2006 3:29 PM
Try something like that:
*----
Text is saved as note -
thead-tdid = '0001'.
thead-tdspras = sy-langu.
thead-tdversion = '00001'.
thead-tdfuser = sy-uname.
thead-tdfreles = sy-saprl.
thead-tdfdate = sy-datum.
thead-tdftime = sy-uzeit.
*----
Save text as SAPScript -
call function 'SAVE_TEXT'
exporting
client = sy-mandt
header = thead
savemode_direct = 'X'
tables
lines = save_text
exceptions
others = 4.
*-- Text is kept in memory so that an update task has to be generated -
*-- This function module performs no commit ! Has to be done by caller
call function 'COMMIT_TEXT'
exporting
object = thead-tdobject
name = thead-tdname
id = thead-tdid
language = thead-tdspras.