cancel
Showing results for 
Search instead for 
Did you mean: 

Deactivate BADI HRHAP00/ HRHAP00_BC_ELEMENT_1 ?

Former Member
0 Kudos

Why does BADI HRHAP00_BC_ELEMENT exist? It is implemented as HRHAP00_BC_ELEMENT_1.

In transaction PHAP_CATALOG_PA, on object VC, tab Colums we want to open up the status field and use value list "Status of individual development". We want to open it up for input but in the BADI, HRHAP00_BC_ELEMENT_1, a check is done preventing us from doing it - only display mode is allowed.

We have deactivated it. Could there be any difficulties around the corner by doing so?

METHOD if_ex_hrhap00_bc_element~business_check_vc.

  • includes

INCLUDE: incl_hap_pa_global,

incl_hap_messages,

incl_hap_columns,

incl_hap_pa_value_types.

  • workareas

DATA: lw_pt5022 TYPE pt5022,

lw_return TYPE bal_s_msg,

lw_t77hap_valty_t type t77hap_valty_t.

  • structure

DATA: ls_ret_struc TYPE hap_s_c_ret_struc.

  • Check if value classes 'E' and 'T' are used with 'No Input'

LOOP AT t_pt5022 INTO lw_pt5022

WHERE cell_value_class = c_value_class_e

OR cell_value_class = c_value_class_t.

IF lw_pt5022-cell_input_type <> c_input_none.

select single * from t77hap_valty_t into lw_t77hap_valty_t

where value_class = lw_pt5022-cell_value_class

and langu = sy-langu.

    • error: only display mode allowed!

lw_return-msgty = c_message_type_e.

lw_return-msgno = '030'.

lw_return-msgid = c_message_class_administration.

lw_return-msgv1 = lw_t77hap_valty_t-value_type_name.

Best regards

K

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member181966
Active Contributor
0 Kudos

I don't think so , you should be okay after deactivating it .

FYI

HY SIMGHRHAP00_BC_ELEMENT

Use

This Business Add-In (BAdI) enables you to run business checks to ensure that the elements in the appraisal catalog are consistent.

The check is run for each element (VA, VB, VC, and VX) used in the appraisal catalog that has the status Save or Change. All infotype information is read. As a customer solution, you can program additional checks based on this infotype information.

After you have run the check, any erroneous entries are returned in the form of error messages.

Requirements

To program on additional checks, you must transfer the standard BAdI to your own implementation.