SAP ABAP IMG Activity HR_LSO_M1C8D1E21A9 (BAdI: Specify Communication Parameters for Recipients)
Hierarchy
EA-HRGXX (Software Component) Sub component EA-HRGXX of EA-HR
   PE-LSO-TM (Application Component) Training Management
     LSO_IMG (Package) SAP Learning Solution - IMG
IMG Activity
ID HR_LSO_M1C8D1E21A9 BAdI: Specify Communication Parameters for Recipients  
Transaction Code S_AEN_10000573   (empty) 
Created on 20050310    
Customizing Attributes HR_LSO_M1C8D1E21A9AT   BAdI: Specify Recipient Communication Parameters 
Customizing Activity HR_LSO_M1C8D1E21A9PO   BAdI: Specify Recipient Communication Parameters 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name LSO_CORRESPONDENCE45    

Use

In this IMG activity you can control which contact addresses are used for a natural or legal person for request-based correspondence in SAP Learning Solution. The value of the filter in the BAdI determines the communication medium for which the addresses are to be specified. SAP predefines the filter value and thus the communication media supported by the BAdI:

  • Telephone
  • Fax
  • SAP Mail
  • Internet Mail
  • SMS/Pager

The following control options are available for these media:

  • Which address is used in automatic correspondence.
  • Which addresses are available for selection during manual processing of a correspondence request.

The contact addresses for telephone, for example, help determine the sender's telephone number. You can provide a maximum of nine addresses per medium. For more information, see the documentation for the BAdI methods.

This BAdI and the BAdI: Specify Access to Communication Data ( LSO_CORRESPONDENCE46) are related. The BAdI LSO_CORRESPONDENCE46 reads the addresses directly assigned to an employee, system user, organizational unit, and so on. Note that an employee is assigned to an organizational unit and can also have a user in the SAP system.

This BAdI enables you to specify for a natural or legal person which role-specific addresses the system should use. For example, you can specify that the system should first look for the Internet mail address stored for the employee in the Communication infotype (105). If no address is stored there, the system should use the address stored for the system user.

  • Employee (P): If the system can determine no address, it looks for the address of the system user assigned to the employee. If there is no address stored for the system user either, the system looks for the address of the organizational unit.
  • System user (US): If the system cannot find an address stored for the system user, it looks for the address stored for the employee assigned to the user. If there is no address stored there, the system determines the address of the organizational unit to which the user is assigned. This is stored in User Administration data.

The medium specified has no impact on the address determination.

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.

Interface

Method GET_COMMUNICATION_DATA

Example

You want to specify the following rule for determining an employee's e-mail address and SMS address:

  1. The system first uses the address stored in the employee's Communication infotype record (105).
  2. If no address is stored there, the system uses the address stored for the employee's system user.
  3. If no address is stored there either, there is no address available for the employee.

Solution:

Create an implementation for the BAdI and register it with the filter values for Internet mail and SMS. (Do not change the other values.)

If you want to change the rule according to which the employee's address is determined (Communication infotype (0105) and system user) you must also implement the BADI LSO_CORRESPONDENCE46.

Further notes

For more information about using Business Add-Ins, see SAP Library under Basis -> ABAP Workbench -> Changing the SAP Standard (BC) -> Business Add-Ins.

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 3   Nonrequired 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  20050322 
SAP Release Created in 600