SAP ABAP IMG Activity N2MV_BADI_TOOLBAR (BAdI Toolbar Modification)
Hierarchy
IS-H (Software Component) SAP Healthcare
   IS-HMED (Application Component) Clinical System
     NMED_DOC_DISTR (Package) i..s.h.med: Dispatch Control (Document Distribution)
IMG Activity
ID N2MV_BADI_TOOLBAR BAdI Toolbar Modification  
Transaction Code S_P7C_98000364   (empty) 
Created on 20070912    
Customizing Attributes N2MV_BADI_TOOLBAR   BAdI Toolbar Modification 
Customizing Activity N2MV_BADI_TOOLBAR   BAdI Toolbar Modification 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name N2MV_BADI_TOOLBAR    

Use

This BAdI is used in the section Document Dispatch of the component Clinical Documentation (IS-HMED-DO). Here, you can add your own buttons to the toolbar of the popup and the Dispatch Control link component and also program your own reaction to button activation.

Requirements

Please note the following information when programming customer enhancements::

  • The parameter I_CALLED_FROM_LINK_MODULE of the different BadI methods is set to the value "1", if the BAdI has been called from the Dispatch Control link component. If the BAdI has been called from the Dispatch Control popup dialog, the parameter is set to "0".
  • In the method MODIFY_TOOLBAR_BUTTONS you can affect the available buttons by adding new buttons or suppressing existing ones. The parameter ir_toolbar enables you to access the toolbar. Using the internal table ir_toolbar->mt_toolbar, you can affect the available buttons.
  • The method HANDLE_TOOLBAR_DROPDOWN is for the creating drop-down options for buttons with an expandable menu. You add menu options by calling the method ir_dropdown->add_function.
  • The method HANDLE_TOOLBAR_BUTTON_CLICK is called, if a function has been selected by the user. A table with the sequence numbers of the recipients currently selected (IT_SELECTED_ITEMS) is transferred to this function. You can obtain the recipient data of all recipients via the method ir_controller->get_recipient_list () - you can then access the data of the recipients selected by means of their sequence numbers.
  • Do not execute a COMMIT WORK or ROLLBACK WORK in these methods. You could create serious data errors in i.s.h.med or in SAP Patient Management (IS-H).

Standard settings

By default the BAdI is not active.

This BAdI cannot be used several times and is not filter dependent.

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

You can find an example implementation in the class CL_EX_ISHMED_MV_MODIFY_BTNS.

Business Attributes
ASAP Roadmap ID 153   Design enhancements 
Mandatory / Optional 3   Nonrequired 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 N2MV_BADI_TOOLBAR 0 I010004303 Clinical Documentation 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20070912 
SAP Release Created in