Transfer XML configuration between environments for export and import
This procedure defines how to transfer XML configuration between environments or companies. It is done by creating a configuration data file which is a ZIP file that contains an XML file, and then import it into the receiving environment and company. It is important that when you perform the import step in the destination environment, 25='Reset to standard' option in 'List and Printer programs. Configure' (CMS005) is performed. This action ensures that the configurable output configurations for the program are up to date and that we get the latest XML structure before we do customizations
Export configuration data file
- Using option 27='Export Configuration' in 'List and Printer programs. Configure' (CMS005)
- Using option 21='Export Configuration' in 'XML Structure. Open' (CMS006).
Before you start
- Enable the global sequence number on (CMS005/E) of the printer file. The purpose of the global sequence number is to validate which table should be read first.
- Perform the export configuration either in (CMS005) or (CMS006).
Creating configuration data file at the printer file level
- Start 'List and Printer programs. Configure' (CMS005).
- In the 'Select' field, select Printer files.
- Select the printer file and use option 27='Export configuration'.
- On the pop-up window, specify file name and version, and click OK.
- To check the export XML file, start 'Configuration Data Jobs. Open' (MNS200). Select the start date and job number, and use option 20='Display XML file'.
The actual name of the ZIP file is 'ConfigData_<File name>.xml.xip'.
Creating configuration data file at the XML structure level
- Start 'XML Structure. Open' (CMS006).
- Select the XML structure and use option 21='Export Configuration'.
- On the pop-up window, specify the file name and version, and click OK.
- To check the export XML file, start 'Configuration Data Jobs. Open' (MNS200). Select the start date and job number, and use option 20='Display XML file'.
The actual name of the ZIP file is 'ConfigData_<File name>.xml.xip'.
Import configuration data file
This activity is used to migrate information from one environment or company to another environment or company.
Before you start
- Perform option 25='Reset to standard' on (CMS005/B) to ensure that the XML structure for the printer file is up to date.
- Activate the global sequence number when necessary.
- Ensure that all information in the originating environment or company is found in the receiving environment or company, like sorting orders, custom tables etc.
- Perform import.
Import is done in M3 BE Administration Tools.
- In H5, select the application menu. In the expanded menu, navigate to Administration Tools.
- Select Business Engine Configuration Data.
- Select Exported tab to see a list of all export XML file. The list is similar in (MNS200).
- Select the XML file and click Import. The import tool reads the XML file and runs the required API programs to write the data to the M3 BE database. The API program and transaction to be run are specified in the XML file. During import, decide if the existing data should be replaced or not. If data should be replaced, a Delete transaction is run before the Add transaction.
Checking import logs
Details about configuration data XML file
The content part of the configuration data file always includes these sections: Check, Delete, and Add. It is processed from beginning to end.
- Check
Optional section.
Specification of API transactions that must be checked for related data before starting the processing of delete and add transactions. If error message is received from the API transactions, the process ends, and the add and delete sections are not processed.
- Delete
Required section.
Specification of API transactions requiring deletion of existing data. The Delete section is only processed if check box 'Replace existing data' is selected in the tool wizard. There is usually one API transaction specified, but if required, several API transactions are listed. Error or warning messages from API transactions are logged but XML continues to process the next API transaction.
- Add
Required section
Specification of API transactions requiring additional data. The Add section is always processed if no errors are found during the Check section. Usually, one API transaction is specified, but if required, several API transactions are listed. Error or warning messages from API transactions are logged but XML continues to process the next API transaction.