To store a bill-of-materials structure in the database, perform the following steps:
MOVE 15 TO EMP-ID-0415. OBTAIN CALC EMPLOYEE.
PERFORM A100-INITIALIZE-STRUCTURE. STORE STRUCTURE.
The DBMS automatically connects the STRUCTURE record to the automatic set (MANAGES); EMPLOYEE 15 is now defined as the manager in the bill-of-materials structure.
MOVE 467 TO EMP-ID-0415. OBTAIN CALC EMPLOYEE.
CONNECT STRUCTURE TO REPORTS-TO.
The bill-of-materials structure is now complete; EMPLOYEE 467 reports to EMPLOYEE 15.
Example of Storing a Bill-of-Materials Structure
The figure below shows the steps and currencies involved in storing an occurrence of a bill-of-materials structure.
To define EMPLOYEE 15 as the manager of EMPLOYEE 467, store and connect a STRUCTURE record as a member of the two EMPLOYEE records: EMPLOYEE 15 in the MANAGES set and EMPLOYEE 467 in the REPORTS-TO set.
Copyright © 2013 CA.
All rights reserved.
|
|