| # To create MMT Sessions Important! The sections below describe the sessions that you must use to create MMT sessions. However, they do not describe all details of these sessions. For detailed session information, refer to the Web Help. This diagram shows the procedure steps and the corresponding sessions or programs: The flow: Create a multi-main table session To create a main entity detail session If you want the multi-main table controller session to use a details session, you must determine if the details session already exists, or if you need to create it. When you create the details session, you must enter a label code in the Label of Object field in the session properties. This allows the label to show on the multi-main table controller session for opening the details session. Example- details session The Purchase Order Headers (cxoes0122m000) session already exists, and you can use it as the details session. You enter a label code in the Label of Object field.
Field | Input Value
Label of Object | oes022 (Purchase Order Headers)
To create a multi-main table controller session To create the multi-main table controller session: Start the Sessions (ttadv2500m000) session and specify the properties for the controller session. Points of attention: Session Type: Maintain Window Type: Multi Main Table Main Session: Yes Synchronized Dialog: the code of the main entity detail session, e.g. cxoes0122m000 Edit the form and insert the fields you wish to have in the session. Example- multi-main table controller session The Purchase Orders multi-main table controller session is created with the following properties:
Field | Input Value
Package | cx
Module | oes
Session | 0122s100
Description | Purchase Orders
Standard Script | No
Program Script | cxoes0122s100
Main Table | cxoes022
Start Command Type | No Start Command
Start Command | 0
Session Status | Developing
Dynamic Session | Yes
Integrated | Yes
Session Type | Maintain
Window Type | Multi Main Table
Main Session | Yes
Synchronized Dialog | cxoes0122m000
To create a satellite session You can use an existing satellite session, or create a new one. The key field that links the satellite entity to the main entity must be a view field in the form. You must specify a label of object for the satellite session. Example- satellite session The Purchase Order Lines (cxoes0123m000) session is an existing satellite session. You enter a label code in the Label of Object field in the session's properties.
Field | Input Value
Label of Object | oes023 (Purchase Order Lines)
To assign satellites to the controller You must link the satellite sessions to the multi-main table controller session. To do so: Start the Sessions (ttadv2500m000) session. Select the multi-main table controller session. On the appropriate menu, click MMT Satellite Sessions. The Satellite Sessions (ttadv3110m000) session starts. Click New. Enter the next index number. Enter the satellite session code. Either enter the field mapping information, or click Generate Field Mapping. Example- assign satellite sessions You link the Purchase Order Lines (cxoes0123m000) session as a satellite session to the Purchase Orders (cxoes0122s100) multi-main table controller session. You enter the following field mapping:
Field name in MMT session | Field name in satellite
cxoes022.orno | cxoes023.orno
To compile and run the controller session You must compile the multi-main table controller session after you assign a satellite session. To compile the session: Start the Sessions (ttadv2500m000) session. Select the session. Click Compile. You can now run the multi-main table controller session. To integrate the controller session The multi-main table controller session is the equivalent of a details session for the main entity. Therefore, you should integrate the session, either as a synchronized dialog of the main overview session for the table, or as a child session of an overview display session. To integrate the controller session, using the session as a synchronized dialog: Start the Sessions (ttadv2500m000) session. Select the main overview session for the table. Modify the properties of this session: Fill the Synchronized Dialog field with the multi-main table controller session code. Save the session. Example- Multi-main table controller session integrated with overview session You modify the Purchase Orders (cxoes0122m000) overview session so that it uses the multi-main table controller session (cxoes0122s100) as a synchronized dialog. When you open a purchase order in the overview session, the multi-main table controller session opens with the purchase order that you selected. Related topics MMT Sessions |