Application Development and Automation 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: 
Read only

question on SAP text..

Former Member
0 Likes
413

hey,

I am using SAVE_TEXT to save texts for every record that is inserted into my custom table.

I have the following code

DATA: GW_THEAD LIKE THEAD.

CLEAR L_TEXTNAME.

CONCATENATE 'ZXX' L_VAL INTO L_TEXTNAME.

GW_THEAD-TDNAME = L_TEXTNAME.

GW_THEAD-TDID = 'ST'.

GW_THEAD-TDSPRAS = SY-LANGU.

GW_THEAD-TDOBJECT = 'TEXT'.

CALL FUNCTION 'SAVE_TEXT'

EXPORTING

HEADER = GW_THEAD

TABLES

LINES = T_TLINE

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

OBJECT = 4

OTHERS = 5.

Please confirm the following:

1. Will save text also create the text if it does not exist ??

2. whats the difference between TDID, TDNAME and TDOBJECT ? What does 'ST' mean ?

3. Do I have to create any object thru any transaction or will teh above code do, even if i am creating a custom transaction ? Am i not supposed to maintain a separate text object for that ? If so how ?

thks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
391

Please confirm the following:

>1. Will save text also create the text if it does not exist ??

yes it will create

>2. whats the difference between TDID, TDNAME and TDOBJECT ? What does 'ST' mean ?

TDID is text id

TDNAME name of the text,

TDOBJECT text object .

ST means standard text, For standard texts Textid is ST.

For one textid, and textobject there may be n number of textnames.

>3. Do I have to create any object thru any transaction or will teh above code do, even if i am creating a >custom transaction ? Am i not supposed to maintain a separate text object for that ? If so how ?

No need to create any thing using any transaction. Not required to maintain separate objects. SAP already provided and you can make use of them.

If you want to create then you have to check in SPRO , i will find the path/transaction and give you.

hey,

I am using SAVE_TEXT to save texts for every record that is inserted into my custom table.

I have the following code

DATA: GW_THEAD LIKE THEAD.

CLEAR L_TEXTNAME.

CONCATENATE 'ZXX' L_VAL INTO L_TEXTNAME.

GW_THEAD-TDNAME = L_TEXTNAME.

GW_THEAD-TDID = 'ST'.

GW_THEAD-TDSPRAS = SY-LANGU.

GW_THEAD-TDOBJECT = 'TEXT'.

CALL FUNCTION 'SAVE_TEXT'

EXPORTING

HEADER = GW_THEAD

TABLES

LINES = T_TLINE

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

OBJECT = 4

OTHERS = 5.

Please confirm the following:

1. Will save text also create the text if it does not exist ??

2. whats the difference between TDID, TDNAME and TDOBJECT ? What does 'ST' mean ?

3. Do I have to create any object thru any transaction or will teh above code do, even if i am creating a custom transaction ? Am i not supposed to maintain a separate text object for that ? If so how ?

thks

1 REPLY 1
Read only

Former Member
0 Likes
392

Please confirm the following:

>1. Will save text also create the text if it does not exist ??

yes it will create

>2. whats the difference between TDID, TDNAME and TDOBJECT ? What does 'ST' mean ?

TDID is text id

TDNAME name of the text,

TDOBJECT text object .

ST means standard text, For standard texts Textid is ST.

For one textid, and textobject there may be n number of textnames.

>3. Do I have to create any object thru any transaction or will teh above code do, even if i am creating a >custom transaction ? Am i not supposed to maintain a separate text object for that ? If so how ?

No need to create any thing using any transaction. Not required to maintain separate objects. SAP already provided and you can make use of them.

If you want to create then you have to check in SPRO , i will find the path/transaction and give you.