on 11-29-2010 1:31 PM
I need to create standard text in "EN". All previous text are in "ZH".
What's the best practice to create the new standard text in "EN"?
Is there a better way than to do it all over again?
Do not suggest SE63. I have tried and It is not working.
Thanks
Hi
U can use the fm READ_TEXT in order to get the source text and SAVE_TEXT in order to save the target text
The target text has to be equal to source one, just only the language has to be changed in the header data: from ZH to E
Max
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Something like this:
TABLES: stxh, thead.
DATA: lines TYPE STANDARD TABLE OF tline.
SELECT * FROM stxh
WHERE tdname = '<..........>'
AND tdspras = 'ZH'.
CLEAR thead.
thead-tdid = thead-tdid.
thead-tdspras = thead-tdspras.
thead-tdname = thead-tdname.
thead-tdobject = thead-tdobject.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = thead-tdid
language = thead-tdspras
name = thead-tdname
object = thead-tdobject
IMPORTING
header = thead
TABLES
lines = lines.
thead-tdspras = 'E'.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
* CLIENT = SY-MANDT
header = thead
insert = space
savemode_direct = space
IMPORTING
newheader = thead
TABLES
lines = lines.
ENDSELECT.
Max
If you have tried translating from SE63, it should work,because if the system does not translate the content,it would give you an option under the text to give the English version of the text.
For example: if in ZH, there is some word, you will have a provision to enter the text in EN, and then save it. So, when the logon language is EN, it will print the EN text.
Otherwise, using So10 you can create your own text for each language and call that in the form or wherever you are using it using READ_TEXT FM. But the general practice is for one text, you translate it into other languages and based on the logon language the text is displayed or how the requirement demands.
Vishwa.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.