Skip to Content
avatar image
Former Member

Deactivate BADI HRHAP00/ HRHAP00_BC_ELEMENT_1 ?

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

    Add comment
    10|10000 characters needed characters exceeded

    • Get RSS Feed

    1 Answer

    • avatar image
      Former Member
      Sep 17, 2008 at 03:15 PM

      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.

      Add comment
      10|10000 characters needed characters exceeded