SAP ABAP IMG Activity HR_LSO_M1C8D1E21AA (BAdI: Specify Access to Communication Data)
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_M1C8D1E21AA BAdI: Specify Access to Communication Data  
Transaction Code S_AEN_10000732   (empty) 
Created on 20050322    
Customizing Attributes HR_LSO_M1C8D1E21AAAT   BAdI: Specify Access to Communication Data 
Customizing Activity HR_LSO_M1C8D1E21AAPO   BAdI: Specify Access to Communication Data 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name LSO_CORRESPONDENCE46    

Use

The addresses of natural or legal persons, such as employees, organizational units, users, or customers are stored in different ways in the system. You must take these differences into acount when setting up access to these addresses.

In this IMG activity, you can specify how contact addresses used in request-based correspondence in SAP Learning Solution should be read. The filter value in the BAdI determines the communication medium for which the addresses are to be read. The value of the filter and thus the communication media supported by the BAdI are predefined by SAP:

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

In conjunction with the BAdI LSO_CORRESPONDENCE45, you can specify the following options for these output media:

  • Which addresses are used in automatic correspondence
  • Which addresses are available for selection during manual processing of correspondence requests.

The contact address for telephone, for example, enables the system to find the sender's telephone number. For detailed information, see the documentation for the interface or the method.

Requirements

Standard settings

SAP delivers a standard implementation for the BAdI.

Addresses are determined for the media SAP mail, Internet mail, fax, and telephone in the same way as for SAPscript-based correspondence.

SMS/pager addresses are only determined for employees, system users, customers, and contacts:

  • For employees (P), the system reads addresses from subtype MPHN of the Communication infotype (0105).
  • For users (US), the system reads addresses stored in central address administration.
  • For customers (KU), the system reads addresses stored in central address administration.
  • For contacts (PT), the system reads addresses stored in central address administration. The logic used is the same as for reading the Internet mail address.

In the standard implementation, it is only possible to obtain more than one address for the medium SMS/pager.

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_ADDRESS_READER

Example

You created a customer subtype of the Communication infotype (0105) for Internet mail and you want the address stored there to be used as the default address for selected employees in the company. The SAP standard implementation cannot fulfil this requirement.

In addition, the administrator processing the correspondence request should have the option of choosing between this address and the address available in the SAP standard system.

For this purpose, create your own implementation of the BAdI and register it with the filter value for (medium) Internet mail. (Do not change any other values.)

You must set up access to address administration yourself, but you can use the implementation of the class CL_LSO_CRP_INMAILDATA_READER when doing so.

Further notes

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

For more information about the standard implementation, about the interfaces and parameters used to read addresses, see the documentation for the implementation of the classes CL_LSO_CRP_PHONEDATA_READER, CL_LSO_CRP_FAXDATA_READER, CL_LSO_CRP_RMAILDATA_READER, CL_LSO_CRP_INMAILDATA_READER and CL_LSO_CRP_SMSPAGDATA_READER.

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