cancel
Showing results for 
Search instead for 
Did you mean: 

Copying standard text from ZH to EN after upgrade ECC 6.0

colin_cheong
Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

colin_cheong
Contributor
0 Kudos

Hi,

I like your proposal.

Can you provide some hint on how should I maintained the import parameters?

Thanks

BYe

Former Member
0 Kudos

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

Former Member
0 Kudos

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.