Modeling a Mobile Entity Collection
Use
You model a Mobile Entity Collection (MEC) to create a collection of entities or data objects that are part of one or more software component versions (SWCVs) present in the DOE. You can also define projections, authorizations, and distribution model software component versions (DMSWCVs) for the participating data objects.
Procedure
1. Create a MEC
-
Log on to the SAP NetWeaver Application Server.
-
Choose transaction SDOE_MEC_DESIGN to launch the MEC Modeler .
-
Enter the name of the MEC in the MEC Name field.
-
Choose Create .
-
On the MEC Overview tab, enter the description for the MEC.
-
Choose Save .
The system assigns a version number and a status to the MEC.
2. Assign Data Objects
-
Choose the Components tab.
-
Enter the name of an SWCV that exists in the DOE, in the SWCV Caption text box.
-
Choose Show Data Object .
The system displays the list of data objects corresponding to the SWCV.
-
To assign data objects, select the data object(s) and use the arrow keys to move the data object to the Assigned Data Objects list.
-
Choose Save .
-
To perform a consistency check, choose .
If no valid or active back-end adapter has been assigned to the data object, the system displays a warning message. You can resolve this warning by creating a valid and active back-end adapter for the data object.
-
Repeat steps two to six to include data objects from more than one SWCV.
The system assigns the selected data objects to the MEC.
3. Assign a Distribution Model Software Component Version
-
Choose the DMSWCVs tab.
-
Select the Assign checkbox corresponding to the DMSWCV.
-
Choose to perform a syntax check.
-
Choose Save .
At the time of device registration, the assigned DMSWCV is assigned to the device.
More Information: Overriding an Assigned DMSWCV
4. Define a Design Time Projection
A projection is a subset of nodes or fields of selected data objects. There are certain fields that are mandatory while defining a projection, for example, Synckey , Psynckey , Task , Backend Keys , and StateID . You can define only one design time projection (DTP) for a MEC.
-
Choose the Projections tab.
The Defined MEC Projection pane displays all the data objects assigned to the MEC.
-
If you want to remove a field from the Defined MEC Projection list, select the corresponding field(s) of the data object(s) and choose Remove Selected Fields .
-
If you want to add a field from the Data Object Fields list, select the correpsonding field(s) of the data object(s) and choose Add Selected Fields ,
-
Choose Save .
5. Optional: Define Runtime Projections
Runtime projections are a subset of the design time projection and you can define multiple runtime projections for each design time projection. By default, the system creates an active Runtime Projection (RTP) Default_Runtime_proj by reusing the fields from the DTP. You cannot change the fields of Default_Runtime_Proj. You work through the following steps only if you want to have different fields in the RTP.
-
Choose Client Specific Configurations .
-
In the Runtime Projections tab, choose Create .
-
Enter the name of the RTP in the Projection Name field.
-
If you want to add fields to the RTP from the Design Time Projection Fields pane, select the corresponding field(s) and choose Add Selected Fields .
-
Choose Save .
-
Repeat steps two to seven to create another RTP.
The RTP is applicable only in the current client.
6. Optional: Define a Runtime Header
A Runtime Header (RTH) contains the most relevant fields from a projection which are critical for the device users in terms of data. Whenever content is pushed to devices, the system downloads the field part of headers optimizing the bandwidth usage
-
Choose Client Specific Configuration .
-
Choose the Runtime Projections tab.
-
Choose Create .
-
Choose the Runtime Headers tab.
-
Enter the name of the RTH in the Header Name field, and choose OK .
-
If you want to add fields to the RTH from the Runtime Projection Fields pane, select the corresponding field(s) and choose Add Header Fields .
-
Choose Save .
-
Repeat steps five through nine to create another RTH.
The RTH is applicable only in the current client.
7. Optional: Client Specific Configuration of DMSWCV
If you want to choose a different DMSWCV from what is defined in the design time for a particular client, follow the steps given below:
-
Choose Client Specific Configuration .
-
Choose the DMSWCVs tab.
-
Select the active checkbox for the corresponding DMSWCV.
-
Choose Save .
8. Add Authorizations
-
Choose the Authorizations tab.
-
In the Authorization Object Name field, enter the name of the authorization that exists in the back-end system for the participating data objects.
-
Enter a description in the Description field.
-
Choose Add Object .
9. Optional: Add Custom Services
-
Choose the Custom Services tab.
-
Select the corresponding SWCV with the assigned data object.
-
Choose Add Function Modules .
-
In the Search function modules dialog box, enter the function module name.
-
Choose Save .
-
Choose Display Guids.
-
Keep a note of the ESMBO ID / MEC Trans available in the list.
-
Specify the back-end search BAPI for the MEC.
More information: Specifying the RFC Destination for a Back-End Search BAPI

