Changing a Matchcode ID

This section describes what you should be aware of when changing an existing matchcode ID.

Changing the Update Type

You can change the Update Type by overwriting the existing entry in the field Update type. If you wish to convert physically stored matchcode IDs to transparent matchcode IDs, please read the information in Converting to Transparent Matchcodes.

You have to delete all dependent objects of the existing ID before changing the update type. If you change the update type from I to A, for example, you must first delete the matchcode view created on the database.

Removing Secondary Tables

You can remove a table already selected for the matchcode ID by selecting the relevant table again.

Position the cursor on the table with which the table to be removed is linked to the primary table. Choose Edit ® Choose sec. tab. A dialog box appears listing the tables linked with the table by foreign key. In the dialog box, cancel the selection of the secondary tables to be removed. Choose Continue. You return to the maintenance screen. The selected secondary tables are deleted from the ID. Save your selection of secondary tables.

The fields of this table already included in the matchcode ID are not removed automatically. They must be deleted in the field maintenance of the matchcode ID! Removing a secondary table from the ID also removes all the tables linked to the primary table with this table from the matchcode ID.

Including Secondary Tables

Position the cursor on a Basis table. Choose Edit ® Choose sec.tab. A dialog box appears listing the tables linked with the table via foreign key. In the dialog box, select the required secondary tables. Choose Continue. You return to the maintenance screen. The selected secondary tables are included in the ID. Save your selection of secondary tables.

Only transparent tables may be selected for transparent IDs. For performance reasons, only hierarchical relationships are allowed for the dependent tables of synchronous matchcodes (update type S).

Deleting Fields

To delete a field, position the cursor on the relevant field and choose Edit ® Delete field.

For synchronous matchcode IDs (update type S), key fields should only be deleted if the remaining fields still uniquely identify the record. Otherwise the synchronous matchcode maintenance no longer functions correctly. In this case deleted records can no longer be removed from the matchcode data and the original version is kept in addition to the revised version for modified records. In this case you must build the matchcode records again using the matchcode utilities.

Inserting Fields

To insert a field, position the cursor on a field which was already entered and choose Edit ® Insert field. A new line is opened directly above the line with the cursor. You can make your entries in this line.

The matchcode data must be converted after changing the fields of a matchcode ID of update types A, S or P. The existing matchcode data is deleted and then built again. If the fields of a matchcode ID of update type I are changed, the matchcode view on the database is automatically deleted and built again with the new structure when the ID is activated.

If you inserted fields in a matchcode ID delivered by SAP, this change is kept throughout the upgrade. After the upgrade, the matchcode ID contains all the fields of the revised version as well as all the fields of the new version, that is the join of the sets of fields of both versions of the ID is created during the upgrade.

Changing Data Elements

The system assigns the data element of the corresponding table field to the matchcode field. You can change this data element. This could be necessary for example if you want the matchcode field to contain different documentation.

Simply overwrite the names of the data element in the field Data elem. The new data element must refer to a domain with the same data type and length as the original data element.

Changing the Selection Condition

If you change the selection condition of a matchcode ID of update types A, S or P, you must build the matchcode data again using the matchcode utility.