Creating a model
To create your own model, perform these tasks:
- Duplicate the standard model.
- Add object types to the new model.
- Add actions to the object types.
- If the object consists of multiple tables, add table relations to the object type.
- Add mappings to the object type.
- Validate the model.
See these sections.
Upon completion of this procedure, you must deploy the model. See Deploying a model .
Duplicating the standard model
To duplicate the standard model:
- Start the Models (ttocm0101m000) session.
- Select the standard model and click .
- Specify the model code and description for the new model.
- Save the new model.
Adding object types to the new model
You can add multiple object types to the model.
To add an object type to the new model:
- In the Models (ttocm0101m000) session, select the new model.
- On the appropriate menu, select . The Object Types (ttocm0102m000) session is started.
- Add an object type. See the session help.
- Save the new object type.
Adding actions to the object types
You can add one or more actions to each object type.
To add an action an object type:
- In the Object Types (ttocm0102m000) session, navigate to the object type.
- On the Actions tab, click .
- Add an action. See the session help.
- Save the new action.
Adding table relations to the object types
If the object contains data from multiple tables, you must specify table relations between the tables that are used in the object.
For example, the sales order object is based on the Sales Orders (tdsls400) and Sales Order Lines (tdsls401) tables. An order header without lines is useless. Therefore, for the sales order object type, specify a relation from the Sales Order (orno) field in the tdsls401 table to the tdsls400 table.
To add a table relation to an object type:
- In the Object Types (ttocm0102m000) session, navigate to the object type.
- On the Table Relations tab, click .
- Add a table relation. See the session help.
- Save the new table relation.
Adding mappings to the object types
You can add one or more mappings to each object type.
To add a mapping to an object type:
- In the Object Types (ttocm0102m000) session, navigate to the object type.
- On the Mappings tab, click .
- Add a mapping. See the session help.
- Save the new mapping.
Validating the model
To validate the model:
- In the Models (ttocm0101m000) session, select the new model.
- On the appropriate menu, select . A message, indicating whether the validation was successful, is displayed.
- If errors occurred, view the log file and solve the problem.