Ansicht
Dokumentation

HR_LSO_M1C8D1E21AA - BAdI: Specify Access to Communication Data

HR_LSO_M1C8D1E21AA - BAdI: Specify Access to Communication Data

CPI1466 during Backup   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

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

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.

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.

After you have called the IMG activity, proceed as follows:

  1. In the following dialog box, enter in the field "Implementation" a name for the BAdI implementation and choose Copy.
If implementations have already been created for the BAdI, a dialog box with the existing implementations will be displayed. In this dialog box, choose Create.
  1. In the corresponding field, enter a short text for implementation .
  2. In the tab Propertiesenter filter properties - if this is a filter-dependent BAdI.
  3. Choose the tab Interface.
The name of the implementing class is generated by the system based on the name of your impmlementation. You can change the name.
If the BAdI is a menu exit, the tab FCodes also appears.Enter a function here and, if necessary, additional data.
  1. Save your entries and assign a package.
  2. Position the cursor on a method. Call up the Class Builder by double-clicking it.
  3. Between the statements method <Interface-Name>~<Name of Method>. and endmethod, enter the coding you request for the implementation.
  4. Save and activate your coding, and navigate back to the screen Change Implementation.
  5. Save on the screen Change Implementation.
Note: You can first create an implementation for the BAdI and then activate this later on. In this case, close the processing function at this time.
  1. Choose Activate.
When the application program is executed, the coding you have created will be run.

Interface

Method GET_ADDRESS_READER

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.

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.






BAL_S_LOG - Application Log: Log header data   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 6672 Date: 20240523 Time: 214855     sap01-206 ( 99 ms )