Ansicht
Dokumentation
/SAPCE/IURU_OKOGU_MIGRATION - Migrate OKOGU Field from Length 5 to 7 Digits (Russia)
ABAP Short Reference Fill RESBD Structure from EBP Component StructureThis documentation is copyright by SAP AG.
Purpose
You can use this program to migrate your 5-digit OKOGU code data into the new 7-digit OKOGU code fields in the relevant 6 database tables.
You can run this migration program as many times as necessary.
Note:
You need to migrate the data if you have already used the 5-digit OKOGU code in your system.
Integration
Prerequisites
You have completed the following activities:
- You have manually entered all the OKOGU codes you want to use as a classification of Russian ministries and authorities in the Define 7-Digit OKOGU Codes Customizing activity.
- You have activated the new 7-digit OKOGU code field in the relevant database tables and structures using the Check and Create Enhancement: OKOGU 7 Code (Russia) program.
Features
Selection
On the Select DB Tables for Migrationgroup box, you can choose the database tables where you want the program to migrate the OKOGU code data. If you want to migrate data to all the database tables, select all using the Select All DB Tables push button.
If the data to be migrated is huge, you can split the data selection into intervals for certain database tables. For example, you can run the migration for business partners or a group of business partners at a time.
On the General Settings group box, you can choose the following:
- Run the program in test mode (Test Mode)
- Display a detailed log (Show Detailed Log)
- Copy the 5-digit OKOGU values directly into the new field (Copy Same Values)
- Choose to update the empty new fields or replace also the already migrated values (Replace Existing Values)
Standard Variants
Output
Activities
Note:
You can use the BAdI: Migrate OKOGU Field from Length 5 to 7 Digits(Russia) (BAdI name /SAPCE/IURU_OKOGU_MIGR_BADI in transaction SE18) to modify the program logic on data migration before the actual migration is done. To do so, you can use the following BAdI methods:
- MODIFY_DB_TABLE
- You can use this method to change the process of migration. For example, you want the report to copy the 5-digit OKOGU code into the new field instead of calling the value from Customizing; or you can also skip certain lines from further processing.
- ALLOW_DB_CLEAR
- You can use this method to alow the system to clear the new 7-digit OKOGU code. To do so, you must also ensure that the Replace Existing Values checkbox is seleced on the selection screen of the migration report. Please also check the example (How to skip some lines from update) in the MODIFY_DB_TABLES method of implementation example /SAPCE/CL_IURU_OKOGU_BADI_EXAM.
We deliver the /SAPCE/CL_IURU_OKOGU_BADI_EXAM implementation example class.
Example
General Data in Customer Master BAL_S_LOG - Application Log: Log header data
This documentation is copyright by SAP AG.
Length: 3870 Date: 20240419 Time: 070032 sap01-206 ( 37 ms )