SAP ABAP IMG Activity CMX_DA110 (BAdI: Registration of a Manufacturing Data Access Service)
Hierarchy
EA-APPL (Software Component) SAP Enterprise Extension PLM, SCM, Financials
   PP-PI-PMA (Application Component) Process Management
     CMX_DA (Package) Manufacturing Execution: Manufacturing Data Access
IMG Activity
ID CMX_DA110 BAdI: Registration of a Manufacturing Data Access Service  
Transaction Code S_ALN_01000966   (empty) 
Created on 20020206    
Customizing Attributes CMX_DA110   Register Application as Service for Manufacturing Data Access 
Customizing Activity CMX_DA110   Register Application as Service for Manufacturing Data Access 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name SCM_CMX_DA_SRV    

Use

Manufacturing Data Access (MDA) is a programming interface that supports the exchange of data with reference to manufacturing data points and the processing of manufacturing events. To link an application of the ERP system to MDA, you must implement an application-specific MDA service.

The IF_CMX_DA_SERVICE interface defines the interface of an MDA service. The SCM_CMX_DA_SRV BAdI is based on this interface and is used for registering MDA services.

By registering a service, the service implementation (implementation of the BAdI) is connected to a service name (filter value of the BAdI). You can use the namespaces Y* and Z* for customer-specific implementations or service names.

Once a (new) service implementation has been activated successfully, the corresponding service can immediately be addresses in all MDA client applications. This includes, for example, the manufacturing cockpit, the PI sheet, and the transaction CO69 for the automatic creation of process messages.

Via the BAdI implementation, this means via the methods of the IF_CMX_DA_SERVICE interface, the MDA runtime environment can access the client and server objects as well as the assistant of the concrete service.

For more information, see the release note Manufacturing Data Access (MDA).

Requirements

Standard settings

SAP ships two MDA services as part of the MDA development package. In addition, several services for manufacturing cockpits, PI sheets, SAP OPC Data Access, and process messages are shipped in the environment of the PP-PI application component.

Beside the services delivered by SAP, you can implement, register, and use customer-specific services in all MDA client applications.

The BAdI is marked as enhanceable, which means that new filter values and the relevant short texts are maintained together with the implementation. The values are automatically entered in the check table assigned.

There can only be one implementation per service name (filter value of the BAdI). To activate a new implementation for a certain service name, you may therefore need to deactivate an active implementation.

Note: You can use this mechanism intentionally to deactivate a service for a certain time or exchange implementations.

Activities

After calling up the IMG activity, a dialog box appears, in which you can enter a name for the implementation.

If you have already made other implementations for this BAdI, another dialog box appears, in which the existing implementations are displayed. In this case, choose Create, and proceed as follows:

  1. In the dialog box, enter a name for the BAdI implementation in the Implementation field, and choose Create.

    The screen for creating BAdI implementations is now displayed.

  2. Enter a short text for the implementation in the Short text for implementation field.
  3. From the tab index, choose Interface.

    The Name of implemented class field is already filled on the tab page, as a class name was automatically assigned to the implementation when you named it.

  4. Save your entries, and assign the implementation to a development class.
  5. Place the cursor on the method, and double-click to enter method processing.
  6. Enter the code for the implementation between the statements method <Interface name> ~ <Name of method> and endmethod.
  7. Save and implement your code. Return to the Edit Implementation screen.
  8. Save the entries on the Edit Implementation screen.

    Note: You can also create an implementation, and then activate it at a later time. In such a case, end the processing stage at this point.

  9. Choose Activate

    The code you stored in the method will be run when the application program is executed.

Example

You can use the sample implementation that is shipped with this BAdI as a template to create your own services.

Further notes

Interface IF_CMX_DA_SERVICE

Class CL_CMX_DA_SYSTEM

Business Attributes
ASAP Roadmap ID 255   Create Interfaces 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20020503 
SAP Release Created in 110