Date post: | 30-May-2018 |
Category: |
Documents |
Upload: | larry-sherrod |
View: | 228 times |
Download: | 0 times |
of 12
8/14/2019 Creating a Custom Deletion Constraint_SPD
1/12
System Process DocumentCreating a Custom Deletion Constraint
Department
Responsibility/Role
File Name 27760399.docRevision
Document Generation Date 18/01/2010 09:34:00
Date Modified 1/18/2010 09:34:00 AM
Last Changed by
Status
Creating a Custom Deletion Constraint
Trigger:
Concept
You can create custom deletion constraints to enforce your unique business rules. Custom
deletion constraints identify the rows in a table that meet certain conditions for deletion.
You can view the seeded deletion constraints using the Deletion Constraints page, but you
cannot modify the seeded deletion constraints.
In this topic, you will create a custom deletion constraint.
Required Field(s) Comments
Output - Result(s) Comments
Additional Information
Last changed on: 1/18/2010 09:34:00 AM Page 1
8/14/2019 Creating a Custom Deletion Constraint_SPD
2/12
System Process DocumentCreating a Custom Deletion Constraint
Procedure
Step Action
1. Begin by navigating to the Delete Constraints page.
Click the vertical scrollbar.
Page 2 Last changed on: 1/18/2010 09:34:00 AM
8/14/2019 Creating a Custom Deletion Constraint_SPD
3/12
System Process DocumentCreating a Custom Deletion Constraint
Step Action
2. Click the Manufacturing and Distribution Manager link.
Last changed on: 1/18/2010 09:34:00 AM Page 3
8/14/2019 Creating a Custom Deletion Constraint_SPD
4/12
System Process DocumentCreating a Custom Deletion Constraint
Step Action
3. Click the vertical scrollbar.
Step Action
4. Click the Delete Constraints link.
Page 4 Last changed on: 1/18/2010 09:34:00 AM
8/14/2019 Creating a Custom Deletion Constraint_SPD
5/12
System Process DocumentCreating a Custom Deletion Constraint
Step Action
5. Use the Deletion Constraints page to enter certain conditions for deletion.
Last changed on: 1/18/2010 09:34:00 AM Page 5
8/14/2019 Creating a Custom Deletion Constraint_SPD
6/12
System Process DocumentCreating a Custom Deletion Constraint
Step Action
6. Click in the Constraint field.
Step Action
7. Enter the desired information into the Constraint field. Enter "DEL_BOM".
Page 6 Last changed on: 1/18/2010 09:34:00 AM
8/14/2019 Creating a Custom Deletion Constraint_SPD
7/12
System Process DocumentCreating a Custom Deletion Constraint
Step Action
8. Click in the Description field.
Last changed on: 1/18/2010 09:34:00 AM Page 7
8/14/2019 Creating a Custom Deletion Constraint_SPD
8/12
System Process DocumentCreating a Custom Deletion Constraint
Step Action
9. Enter the desired information into the Description field. Enter "Cannot delete bill
if it is used as a common in another bill".
Step Action
10. Click in the SQL Statement Multiline field.
Page 8 Last changed on: 1/18/2010 09:34:00 AM
8/14/2019 Creating a Custom Deletion Constraint_SPD
9/12
System Process DocumentCreating a Custom Deletion Constraint
Step Action
11. Use the SQL Statement field to enter the SQL Select Statement that the delete
concurrent program is to execute. You cannot update SQL statements for
predefined deletion constraints.
Last changed on: 1/18/2010 09:34:00 AM Page 9
8/14/2019 Creating a Custom Deletion Constraint_SPD
10/12
System Process DocumentCreating a Custom Deletion Constraint
Step Action
12. Enter the desired information into the SQL Statement field. Enter "SELECT
COUNT (*) FROM BOM_BILL_OF_MATERIALS WHERE
BILL_SEQUENCE_ID != &BILL_SEQ".
Step Action
13. Click in the Name field.
Page 10 Last changed on: 1/18/2010 09:34:00 AM
8/14/2019 Creating a Custom Deletion Constraint_SPD
11/12
System Process DocumentCreating a Custom Deletion Constraint
Step Action
14. Enter the desired information into the Name field. Enter "BILL OF
MATERIAL_CAP".
Last changed on: 1/18/2010 09:34:00 AM Page 11
8/14/2019 Creating a Custom Deletion Constraint_SPD
12/12
System Process DocumentCreating a Custom Deletion Constraint
Step Action
15. Click the Save button.
Step Action
16. You have completed the Creating a Custom Deletion Constraint procedure.
End of Procedure.
Page 12 Last changed on: 1/18/2010 09:34:00 AM