Ansicht
Dokumentation

OHIUS0100 - Determine system messages for Family/Related Person infotype (US)

OHIUS0100 - Determine system messages for Family/Related Person infotype (US)

General Data in Customer Master   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

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).

Definition name: HRPADUS_PBAS_0001

Method name: GET_MSG_TYPE_TEXT

Filter value: 10

  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.

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.






TXBHW - Original Tax Base Amount in Local Currency   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 1887 Date: 20240523 Time: 152713     sap01-206 ( 41 ms )