Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Text ID for Text Object Not Available Error message

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You need to create your custom text objects and ids via SE75. Using the SAVE_TEXT function module does not actually create the object and id. This must be done before hand. Once you create the object/id, you can then use this in your SAVE_TEXT and READ_TEXT function modules.

Regards,

Rich Heilman

4 REPLIES 4

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You need to create your custom text objects and ids via SE75. Using the SAVE_TEXT function module does not actually create the object and id. This must be done before hand. Once you create the object/id, you can then use this in your SAVE_TEXT and READ_TEXT function modules.

Regards,

Rich Heilman

0 Kudos

Thanks for the quick response.

Regards

David

Former Member
0 Kudos

Hi

Try trx SE75

Max

JoseMunoz
Active Participant
0 Kudos

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.