Changing Matchcode IDs

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, 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 in 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 via 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 the selection of the 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 base table. Choose Edit ® Choose sec.tab. A dialog box appears listing the tables linked with the table via foreign key. Select the secondary tables required in the dialog box. Choose Continue. You return to the maintenance screen. The selected secondary tables are included in the ID. Save the selection of the 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 utility.

Inserting Fields

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

If you change the fields of a matchcode ID of update types A, S or P, you have to convert the matchcode data. The existing matchcode data is deleted and then rebuilt. 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 matchcode field the data element of the corresponding table field. You can change this data element. This may be necessary, for example, if you want to allocate other documentation to the matchcode field.

Simply overwrite the name of the data element in the field Data elem. The new data element must refer to a domain with the same data type and the same 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.