SAP ABAP IMG Activity /TDAG/CP_BADI_MGR_CH (BAdI: Enhancements for Compliance History)
Hierarchy
TDAGBCA (Software Component) TechniData Basic Components
   EHS (Application Component) Environment, Health and Safety
     /TDAG/CP (Package) Compliance for products
IMG Activity
ID /TDAG/CP_BADI_MGR_CH BAdI: Enhancements for Compliance History  
Transaction Code /TDAG/80000090   IMG activity: /TDAG/CP_BADI_MGR_CH 
Created on 20071105    
Customizing Attributes /TDAG/CP_BADI_MGR_CH   Badi Extension of the Compl. Workbench for Compl. History 
Customizing Activity /TDAG/CP_BADI_MGR_CH   Badi Extension of the Compl. Workbench for Compl. History 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name /TDAG/CP_BADI_MGR_CH    

Use

This Business Add-In (BAdI) is used in the SAP Product and REACH Compliance component. This BAdI enables you to create compliance history reports from the workbench. This means, the product data can be recorded in an XML file.

The BAdI provides the following methods:

  • GENERATE_HISTORY_CONTEXT_ENTRY
    You can use this method to specify how the context menu for compliance history reporting is designed.
  • GENERATE_TOOLBAR_ENTRY
    You can use this method to specify how the compliance history function is contained in the toolbar of the result list.
  • GET_HISTORY_REPORTS_POSSIBLE
    You can use this method to control whether a compliance history report can be created for one or more than one specification.
  • CREATE_HISTORY_REPORTS
    You can use this method to specify the logic for creating compliance history reports. The main function is implemented in this method. Here, it is possible to create the reports, do status handling, and other required steps for compliance history.
  • GET_MSG_CREATION_STARTED
    You can use this method to return the message shown in the workbench in the status line.

Example

Requirements

Standard settings

In the standard system, the Business Add-In is not activated. The default implementation is executed as long as you do not activate a customer-specific implementation.

BAdI Implementations

  • /TDAG/CL_DEF_IM_CP_BADI_MGR_CH (default implementation)

    The compliance history function appears as a sub menu entry under the dropdown button Documents.
    For all saleable parts (IND / SALEABLE), it is possible to create a compliance history report.
    The logic for creating compliance history reports makes an entry in worklist management, in the worklist History, and creates a report.

Activities

After you call the IMG activity, the system displays a dialog box where you enter a name for the implementation.

If implementations of this Business Add-In have already been created, the system displays them in a dialog box. You then choose one of them by choosing Create, and continue as follows:

  1. In the dialog box, enter a name for the implementation of the Add-In and choose Create.
    The system displays the initial screen for creating Business Add-In implementations.
  2. On this screen, enter a short description for your implementation in the Implementation Short Text field.
  3. If you choose the Interface tab, you will notice that the system has populated the Name of the Implementing Class field automatically, by assigning a class name based on the name of your implementation.
  4. Save your entries and assign the Add-In to a package.
  5. To edit a method, double-click its name.
  6. Enter your implementation code between the method <Interface Name>~<Name of Method>. and endmethod. statements.
  7. Save and activate your code. Navigate back to the Change Implementation screen.
    Note: You can also create an implementation for an Add-In and not activate it until later. If you want to do this, do not perform the following step:
  8. Choose Activate.
    When the application program is executed, the code you created is run through.

Example

See also

Business Attributes
ASAP Roadmap ID 204   Establish Functions and Processes 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG /TDAG/CP_BADI_MGR_CH 0 HLA0100681 Product Safety 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on HAU  20090305 
SAP Release Created in 222_46C