2008 Aug 16 8:37 PM
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
2008 Aug 16 8:49 PM
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
2008 Aug 16 8:49 PM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |