Ansicht
Dokumentation

HR_LSO_M1C8D1E21A9 - BAdI: Specify Communication Parameters for Recipients

HR_LSO_M1C8D1E21A9 - BAdI: Specify Communication Parameters for Recipients

ABAP Short Reference   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

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.

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_COMMUNICATION_DATA

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.

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






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

Length: 6472 Date: 20240607 Time: 052801     sap01-206 ( 104 ms )