Automatic Assignment of Languages with Character Statistics
[assignment] [assignment command] [assignment 翻译] [SP] [work assignment]
Symptom
The automatic assignment of languages in the SPUMG vocabulary does not work when using the method “Character Statistics” (CL_UMG_AL*CHARSTAT).The database tables UMGCHAR?STAT which include the character statistics are empty.
Other terms
SPUMG, Unicode Migration, Maintenance of SPUMG vocabulary
Reason and Prerequisites
Since the amount of data of the character statistic is large and most of the customers do not need these character statistics, we use this note to provide the data to build up the character statistics for several languages.
Support in Basis Release 6.20:
Korean, Japanese, Simplified Chinese as of support package 43all other languages as of support package 48
Support in Basis Release 6.40:
Korean, Japanese, Simplified Chinese as of support package 5all other languages as of support package 12
Support in Basis Release 7.00:
all languages as of support package 1
Solution
Note: Starting from support package 58 (basis release 6.20), 17 (basis release 6.40) or 7 (basis release 7.00), the method assigned to class CL_UMG_AL_CHARSTAT is replaced by CL_UMG_AL_YA_CHARSTAT and CL_UMG_AL_NA_CHARSTAT. When you input the method name on the ‘Auto Assign’ selection screen in SPUMG vocabulary, please input
CL_UMG_AL_NA_CHARSTAT for non-ASIAN languages and CL_UMG_AL_YA_CHARSTAT for ASIAN languages.
For basis support packages lower than
SP62(6.20)
SP23(6.40)
SP15(7.00)
SP5(7.01)
SP2(7.02)
the new classes are not shown in the F4 help of the input field “Method”. In any case you can enter them manually or use the report UMG_INSERT_ASSIGN_CLASS to update the corresponding DB table which contains the information about automatic assign methods.
NOTE: The solution has 2 sections. Please check your basis support package level and read the corresponding section.
Section 1
Valid for support packages lower than 58 (basis release 6.20), 17 (basis release 6.40) or 7 (basis release 7.00)
If you want to use the method “Character Statistics” you have to do
the following
1. Download the attachments of this note for the desired languages onto your local PC and extract the files. All files are compressed having the suffix ‘_old.zip’. The zip files contain one or more “_old.sta” files which contain the statistics for the languages. The method supports the following languages:
Korean, Japanese, Simplified Chinese, Czech, German, French, Italian, Polish, Russian, Spanish, Greek2. Upload the files using the report UMG_CHAR_STATISTICSCall transaction se38 (ABAP Editor) and execute the report UMG_CHAR_STATISTICSOn the selection screen click on “Upload statistics from file”. You can select multiple statistic files at once.After the upload is finished select the “Update Statistic” button and click on “Execute”. The data are now analyzed and the character statistic is calculated for the languages which were uploaded. This may take a couple of minutes depending on system speed.3. You can now use the method “Character Statistics” to maintain the SPUMG vocabulary. You should always review the language assignments in the vocabulary (select all words which have the FILLEDBY flag set to ‘S’).
If you do not need the character statistics anymore, you can delete the statistics using report UMG_CHAR_STATISTICS again. Execute the report and click on “Delete”.
Section 2
Valid as of support packages 58 (basis release 6.20), 17 (basis release 6.40) or 7 (basis release 7.00)
Please read note 976612. The note contains urgent corrections for the method CL_UMG_AL_NA_CHARSTAT.
The automatic assigned method was completely revised, now supporting more languages. The methods CL_UMG_AL_NA_CHARSTAT and CL_UMG_AL_YA_CHARSTAT supports the following languages:
Japanese, Korean, Simplified Chinese (CL_UMG_AL_YA_CHARSTAT)
Czech, Danish, Dutch, Finnish, French, German, Greek, Hebrew, Hungarian, Italian, Polish, Portuguese, Russian, Spanish, Swedish, Ukrainian (CL_UMG_AL_NA_CHARSTAT)
If you want to use the method “Character Statistics” you have to do
the following
1. Read the documentation of class CL_UMG_AL_YA_CHARSTAT / CL_UMG_AL_NA_CHARSTAT.2. Download the attachments of this note for the desired languages onto your local PC and extract the files. All files are compressed having the suffix ‘_new.rar’. The rar files contain one “_new.sta” file which contains the statistics. Note: there are 2 and 3 “rar” files for Japanese and Chinese, respectively.3. Upload the files using the report UMG_UPDOWN_CHARSTAT. Alternativeliy you can start the report from transaction SPUMG in the menu “Extras -> Upload Character Statistics”.a) On the selection screen, select “Upload” and the press F8 (Execute). In the file select box, select one or more sta files to be uploaded.
If you do not need the character statistics anymore, you can delete the statistics using report UMG_UPDOWN_CHARSTAT again. Execute the report and select “Delete”, then press F8.