Modifying Objects That Have Dependent Objects
Once a table or view is created, it can be used as a source, or pointed to via an association by other objects. When a data access control is created it can be attached to one or more views to provide row level security. When you modify objects that have dependent objects, you may receive validation messages to warn you that your changes can impact these dependent objects.
Procedure
- Open your table, view, or data access control to edit it in the usual way.
You can see the objects that depend on your object by reviewing its Dependent Objects section (see Review the Objects That Depend on Your Table or View).
- Make any appropriate changes. Certain changes may produce warning messages:
Change
Validation Message
Add Column
None.
New columns are excluded by default from the output of dependent views and data flows and information messages are displayed.
Change Column Data Type
Warning listing all dependent objects that use the column.In the case of tables:-
You can always increase the length of a data type, but you can reduce it only if the change will not truncate any data currently held in the column. For example, if your column’s current data type is string(256) and the longest string contained in it is 200 characters, then you cannot reduce the length to less than string(200).
-
You can change the data type if the new type is compatible with the family of the old type and the data can be converted. For more information about data type conversions, see Column Data Types.
Delete Column
Warning listing all dependent objects that use the column.
Column deletions will break dependent objects that use these columns. The last user to edit a dependent object will receive a notification inviting them to review the changes.
Add, Delete, or Change Data Type of Input Parameter
Warning listing all dependent objects.
All changes to input parameters must be processed in all dependent objects.Change Business Properties
None.
Changes to the business name and other business properties of the object or its columns are propagated to dependent objects.
-
- Each time that you make a change, SAP Datasphere checks all dependent objects, generates a warning message if necessary, and updates the status of each object in the Dependent Objects list.
For example there are ten views that use your view as a source, and which are listed in your view's Dependent Objects list. When you delete a column in your view, SAP Datasphere, checks to see which of the ten views use that column and, if one or more do, it generates a warning message and updates the status of each impacted object to Design-Time Error.
- When you have finished making changes, click Save to save your object.
If any warnings have been generated, the Validation Messages dialog opens to allow you to review them. Click Save Anyway to save your changes and dismiss the warning messages.
Notifications are sent to the last user who edited each of the dependent objects that now has a status of Design-Time Error, inviting them to review the changes. For more information, see: - Click (Deploy) to deploy your object.
If any warnings have been generated, the Validation Messages dialog opens to allow you to review them. Click Deploy Anyway to deploy your changes and dismiss the warning messages.