53
UNICODE PREPARATION PHASE: Preparation 1. Make ABAP programs Unicode-enabled: Programs: transactions UCCHECK and SCOV UCCHECK: Performed for Y* and Z* programs 1

SAP Unicode

Embed Size (px)

DESCRIPTION

Preparation Phase, Convertion

Citation preview

Page 1: SAP Unicode

UNICODE PREPARATION PHASE:

Preparation

1. Make ABAP programs Unicode-enabled:

Programs: transactions UCCHECK and SCOVUCCHECK: Performed for Y* and Z* programs

1

Page 2: SAP Unicode

2. Unicode Enhanced Syntax CheckThe system profile parameter abap/unicode_check=on can be used to enforce the enhanced syntax check for all objects in non-Unicode systems. The mentioned parameter should be set to the value "on" only, if all customer programs have been enabled according to transaction UCCHECK.If you have problems with regeneration of reports RK31*, RK32*, RK33* or RK34*, create a customer message under component CO-PA.

3. Pre- Conversion Correction of Table DataBefore starting the Unicode conversion you need to maintain data with value “SODI” in field PERS_GROUP in table ADRP according to the SAP Note 712619Run report UMG_ADD_PREP_STEP. This report consists of several reports which were created for maintaining corrupt or obsolete table data before a Unicode conversion.

SDBI_POOL_CLEANERDelete entries for TCP00, TCP01 or TTDCF from ATAB

920138

STSTCP_REPAIRDelete entries from TSTCP

897002

GRIX_DELETE_RW_EXTRACTSDelete extracts for Report Writer

892607

RSSPAM_PREPARE_UCDelete content of OCSCMPLOBJ

889596

SIAC_DELETE_INVALIDCorrect characters in IACSERVP and IACS_C

862196

RS_FILL_TRDIR_RLOAD Fill REPOSRC-RLOAD 684332

RS_SCRP_D020S_CLEAN

Delete screen source codes with invalid keys from tables D020S and DYNPSOURCE

870601

RSDB4PREP_UCPCDelete entries from SQ* tables

932034

RGX_SETS_TO_40Delete entries from tables T800S, T800X, T800Y and SETDATA

928859

CY_TCYD_UNICODEDelete entries from table TCYD

899931

RPU470ADJUST_T52C5Delete entries from T52C5

679275

RSTXCLEARTTDTGDelete entries from table TTDTG

992857

INDX_SH_DELETEDelete entries from table INDX

989070

2

Page 3: SAP Unicode

Call transaction SE38. Enter report UMG_ADD_PREP_STEP and choose . On the next screen the included reports are displayed. Choose Background. All reports will be executed automatically in sequential order.

If you need to rerun one or more selected reports later, you can use button . Note: Do not use this option before UMG_ADD_PREP_STEPS has been run once using the background option.

3

Page 4: SAP Unicode

We recommend that you maintain corrupt data in tables T52C5, TTDTG and in tables ADRC and ADRP, according to the SAP Notes mentioned below.Tables: T52C5; TTDTG; ADRC and ADRP tablesDocumentation: SAP Notes 679275; 794966; 673941Single Code Page: recommended

Delete QCM tables from the source system as described in SAP Note 9385.Tables: QCM <table_name>Documentation: System Copy Guide, section 2.2 Technical Preparations";

SAP Note 9385 Single Code Page: recommended

Excute tcode SE14

PA-PA-GB: Special handling for table T5GEFDATA required. Table T5GEFDATA is a container table, i.e. structured data (text and binary data) are stored in the character like field T5GEFDATA-DATA1. For the Unicode preparation a special handling has to be done for table T5GEFDATA, taking the substructure of the container field into account. Follow the description in SAP Note 1239557. Table: T5GEFDATADocumentation: SAP Note 1239557 Single Code Page: required

4

Page 5: SAP Unicode

4. Text Language for Customer ObjectsAll LANG fields in Data Dictionary (DDIC) objects which are delivered by SAP have an attribute Text Lang. (indicator for a language field). This indicator specifies that the LANG field determines the code page of the character data in that table. Text Lang. flags are evaluated during RFC communication between Unicode and non-Unicode systems to ensure that the correct

5

Page 6: SAP Unicode

character conversion is used. In Single Code Page conversions the flags are evaluated by R3trans.For more information, read SAP Note 480671. To set this DDIC attribute for customer objects, run report RADNTLANG.Transports into a system can cause the indicator to be overwritten. It is therefore necessary to (re)run RADNTLANG directly before beginning the Unicode preconversion in order to actualize the flags. After you have run RADNTLANG please read SAP Note 672835 carefully. You will find information about how to maintain special tables which could be affected by wrong data conversion after the Text lang. flag has been set.Text lang. flag maintenance must be finished before the Unicode Preconversion Phase. If you do any changes as described in this section after or between the SPUMG scans, you must reset the changed tables and rerun the scan(s)

6

Page 7: SAP Unicode

5. Consistency Check for the ABAP DictionarySAP recommends running report RUTCHKNT prior to the SPUMG scans to check and clean up inconsistencies between DDIC objects and runtime objects.In transaction SE38 enter report RUTCHKNT and choose . On the following screen checkbox Check against inactive nametab must be deselected! Press

again to access the next screen.

7

Page 8: SAP Unicode

Go to section Obj. types for checking. Select checkboxTables.Go to section Select Objects by name, field table category. Select and choose tabstrip Exclude Single Values. Select Multiple selection. Select table categories “INTTAB” (Structure) and “VIEW” (General View Structure). Choose

and then . Afterwards execute the report.Afterwards check all log messages ("Check activation of object was successful" must be checked too!). Check DDIC objects in transaction se11 (Utilities → Runtime Object → Check) and activate them.

8

Page 9: SAP Unicode

9

Page 10: SAP Unicode

6. Consistency Check for Cluster TablesSAP recommends checking inconsistencies in cluster tables prior to the SPUMG preparation steps. Programs: report UMG_R3CHECK_FILES; program R3checkDocumentation: SAP Note 89384Single Code Page: recommended.Run report UMG_R3CHECK_FILES in transaction SE38 order to create control files for R3check. Read the report documentation for details. Run R3check on database level as described in SAP Note 89384.

10

Page 11: SAP Unicode

7. Translation EnvironmentIf you are using the SAP translation environment (transaction SE63) you must export the Proposal Pool in the non-Unicode system. When the Unicode Conversion is finished, you must import the Proposal Pool into the Unicode system. Follow the instructions in SAP Note 1055820.

11

Page 12: SAP Unicode

Unicode Preconversion Phase

Transaction SPUMGSPUMG is used to prepare the database tables of a non-Unicode system for the conversion to Unicode. All steps in the Unicode Preconversion Phase are designed to be run at system uptime (i.e. when users are logged on to the system). The system conversion is carried out by the separate tool R3load during the database export. R3load uses the results of SPUMG which are stored in the Export Control Table, the Vocabulary and the Language Lists.Tool: transaction SPUMG

Documentation: this document; SAP Note 548016;

Single Code Page: required.

1. Preconversion Analysis: SPUMG ScansDuring the Unicode Preconversion the database tables have to run through several consecutive scans which are listed below.

12

Page 13: SAP Unicode

Download umgexceptions_ver_00_011.xml to c:\AstUpg\UC\umgexceptions_ver_00_011.xml and upload it

If the system code page is 1100 you should check whether the frontend code page (or SAP GUI code page) is also 1100. Run report RSCP0013 in transaction SE38 and check, if 1100 is displayed in field Character set of SAPgui. If yes, users are able to input characters which are not covered by the system code page. Such characters – for example Euro sign (€) and the trademark sign (™) - will get lost during the database conversion because they are not stored on the database. You can prevent this at least for characters in transparent tables by switching to 1160 in the SPUMG Language List.

Not necessary to change because RSCP0013 shows Character set of SAPgui = 1160:But for older versions perhaps SAPgui codepage is 1100. Therefore do change to 1160.

2. Database CheckStart SPUMG again: Press button Continue with transaction SPUMG

Reset all ScansSelect Scanner – Reset All Scans

13

Page 14: SAP Unicode

Select YesSelect Scanner – Initialize WorklistThis starts job UMG_PMIG_STOCK_INITPress button Selection, fill in limit 80000 -> list is shown: 72856 entries

3. SPUMG SettingsSelect Scanner – SettingsChanged from:

14

Page 15: SAP Unicode

to:

and Save!The following settings are changed from their defaults:

• Global Fallback Codepage 1100 -> 1160

• Minimum Work Length 1 -> 2

• Collision Resolution Character based (fine) -> Codepage based (coarse)

15

Page 16: SAP Unicode

4. Initialize Worklist

A worklist contains all tables of a system that have to be prepared by SPUMG for theUnicode conversion. In SPUMG, the tables have to run through several scan levels, each ofwhich has its own worklist.The worklists must be generated as follows:1. Select Scanner - Initialize - Worklist (F2). Depending on the data volume theinitialization job may take several minutes. Press pushbutton . You have generatedthe worklist for the first scan (Consistency Check).This starts job UMG_PMIG_STOCK_UPDAT which takes a few minutes to finish.

5. Monitor:On each scan level the SPUMG monitor displays scan statistics and the processing status of the tables. Select pushbutton Monitor from the toolbar.Worklist Status (Consistency Check): Initialization of the CC Worklist: Display of status and total number of initialized tables.Overview number of tables: Here you get an overview of all initialized tables sorted by table types (number of transparent, cluster, and pool tablesWorklist Overview: Here you can see how many tables are currently processed on which scan level. Tables with warnings are inconsistent and therefore need to be maintained before the conversion.Tables in Process: Here you can see which tables are currently being processed by which worker jobSelect refresh button to update the monitor.To see details about running worker jobs, select pushbutton Job Overview from the toolbar.

16

Page 17: SAP Unicode

6. StatusSelect Scanner → Status to view a general overview of all current activities in SPUMGVia tab Status (not via Scanner – Status)

17

Page 18: SAP Unicode

7. Scan 1: Consistency CheckThis scan is mandatory for both Single Code Page and MDMP conversion.Select Schedule Worker Jobs from the toolbar, and then set the time and date for the worker job.This starts job UMG_PMIG_MASTER_JOB that starts/monitors job UMG_PMIG_WORKER_JOB_1_

No errors were found in the 72856 tables.

8. Update Database Statistics

Call transaction DB20 to update the database statistics for the tables UMGCCTL; UMGPMIG; UMGPMDIC; UMGSTAT.

18

Page 19: SAP Unicode

Unicode Conversion Phase

Program: R3loadThe default conversion method is to export the entire database using R3load, create a newUnicode database, and then import the database using R3load again.

Go to the drive where ECC 6.0 Installation Master DVD is dump. In our case it was dump in E drive.

E:\Installation_Master\IM_WINDOWS_I386\SAPINST\NT\I386 and click sapinst

19

Page 20: SAP Unicode

Click on Software Life-Cycle Options System Copy Oracle Central System Based on AS ABAP and select Export Preparation and click Next.

This will Prepare the System for Unicode conversion.

20

Page 21: SAP Unicode

Give the profile directory path and click next

21

Page 22: SAP Unicode

Password: Te4Leav3s and click next

22

Page 23: SAP Unicode

Create a folder Export, in our case I had created it in E drive. Make sure you have more than 20GB free space available on that drive.

Give the path of export folder and click next.

23

Page 24: SAP Unicode

Select Target Database Type: Oracle and click next

24

Page 25: SAP Unicode

Select Update statistics before the export starts and click next.

25

Page 26: SAP Unicode

Click next

26

Page 27: SAP Unicode

After this Export preparation step is over.

Again go to E:\Installation_Master\IM_WINDOWS_I386\SAPINST\NT\I386 and click sapinst

27

Page 28: SAP Unicode

Click on Software Life-Cycle Options System Copy Oracle Central System Based on AS ABAP and select Database Instance Export and click Next

28

Page 29: SAP Unicode

Give the profile directory path and click next

29

Page 30: SAP Unicode

Password: Te4Leav3s

30

Page 31: SAP Unicode

Specify the Export folder path we created earlier and click next.

31

Page 32: SAP Unicode

Select Target Database Type: Oracle and click next.

32

Page 33: SAP Unicode

Click next

33

Page 34: SAP Unicode

Tick on Unicode Target System check box. And select Little-Endian and click next.

34

Page 35: SAP Unicode

Select Update statistics before the export starts and click next.

35

Page 36: SAP Unicode

Click next.

36

Page 37: SAP Unicode

37

Page 38: SAP Unicode

38

Page 39: SAP Unicode

39

Page 40: SAP Unicode

Export Phase is completed successful.

Now before you start the Import Phase backup the whole database. Once you have successfully backup the database run sapinst and uninstall SAP and Oracle Database, but don’t uninstall the Oracle software.

Then goto data drive where all the sapdata folder are created. In our case we go to G drive and delete all the SAP Data folder, then goto H, I , J drive and delete D01 folder.

Once you have deleted everything restart the system.

Login as D01adm and goto Installation Master DVD dump and start sapinst.

Select SAP ERP 6.0 Support Release 3 Software Life-Cycle Options

System Copy Oracle Target System Installation Central System

Based on AS ABAP Central System

Click Next

40

Page 41: SAP Unicode

41

Page 42: SAP Unicode

Select Parameter Mode: Custom and click next

42

Page 43: SAP Unicode

SAP SID: D01

43

Page 44: SAP Unicode

Select Standard System Copy/Migration (Load-Based)

44

Page 45: SAP Unicode

Database SID: D01

45

Page 46: SAP Unicode

Specify the path of the Export folder which we had created earlier.

46

Page 47: SAP Unicode

DDIC Password: welcome1

47

Page 48: SAP Unicode

Give the path of Netweaver 7.0 SR3 Kernel & Oracle Client path and click next.

48

Page 49: SAP Unicode

Click next to start the Import

49

Page 50: SAP Unicode

Enter Solution Manager Key

50

Page 51: SAP Unicode

51

Page 52: SAP Unicode

This Phase will take few hours to complete

52

Page 53: SAP Unicode

Non-Unicode to Unicode conversion is finish successfully.

53