SAP ABAP IMG Activity OHIUS0100 (Determine System Messages for Family/Related Person Infotype)
Hierarchy
SAP_HRRXX (Software Component) Sub component SAP_HRRXX of SAP_HR
   PA-PA (Application Component) Personnel Administration
     PBAS (Package) SAP HR Master Data Application Development
IMG Activity
ID OHIUS0100 Determine System Messages for Family/Related Person Infotype  
Transaction Code S_L6B_69000296   (empty) 
Created on 20021122    
Customizing Attributes OHIUS0100   Determine System Messages for Family/Related Person Infotype 
Customizing Activity OHIUS0100   Determine System Messages for Family/Related Person Infotype 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name OHIUS0100    

Use

You can use this user exit to determine the type of system message you want to be displayed when your end users are editing records in the Family/Related Person infotype (0021).

Requirements

Standard settings

Definition name: HRPADUS_PBAS_0001

Method name: GET_MSG_TYPE_TEXT

Filter value: 10

Activities

  1. Execute this IMG step and select the Business Add In (BAdI) and adjust the code as required.
  2. Activate the BAdI.

For sample coding, see the example below.

Example

If you delete or modify a record in the Family/Related Person infotype (0021) that is also used in benefit plans - for example, in the Insurance Plans (0168), Saving Plans (0169) or Health Plans (0167) infotypes - you can determine whether the system displays a warning message (and thereby still allows you to delete or modify the record), or an error message that will prevent further processing.

Note: In the above example, having a warning message and the subsequent ability to delete or modify data may result in data inconsistency across infotypes. To prevent this, change the coding as outlined below.

Sample coding:

method IF_EX_HRPADUS_PBAS_0001~GET_MSG_TYPE_TEXT.

* Check for operation performed.

If ioper = 'DEL'.

msg_type = 'E'.

elseif ioper = 'MOD'.

* Check if Start date has changed

if initial_begda NE change_begda.

msg_type = 'W'.

* Check if End date has changed

elseif initial_endda NE change_endda.

msg_type = 'E'.

endif.

endif.

endmethod.

Business Attributes
ASAP Roadmap ID 201   Make global settings 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency I   Valid for countries specified 
Customizing Attributes Country Key Country Name
OHIUS0100 US USA
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG OHIUS0100 0 HLA0100317 Personal Data 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20021122 
SAP Release Created in 470