SAP Reports / Programs | Personnel Management | Personnel Administration | China(PA-PA-CN) SAP PA

INCL_HAPCN_OBJECTIVE_LIBCLZ SAP ABAP INCLUDE - Include Class Definition and Implementation







INCL_HAPCN_OBJECTIVE_LIBCLZ is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter INCL_HAPCN_OBJECTIVE_LIBCLZ into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT INCL_HAPCN_OBJECTIVE_LIBCLZ. "Basic submit
SUBMIT INCL_HAPCN_OBJECTIVE_LIBCLZ AND RETURN. "Return to original report after report execution complete
SUBMIT INCL_HAPCN_OBJECTIVE_LIBCLZ VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Include Class Definition and Implementation


INCLUDES used within this REPORT INCL_HAPCN_OBJECTIVE_LIBCLZ

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

RH_GET_ACTIVE_WF_PLVAR CALL FUNCTION 'RH_GET_ACTIVE_WF_PLVAR' EXPORTING ask_plvar_dialog = ' ' IMPORTING act_plvar = lv_plan_version EXCEPTIONS no_active_plvar = 1.

HRHAPCN_OBJ_LIB_DELETE CALL FUNCTION 'HRHAPCN_OBJ_LIB_DELETE' EXPORTING * PLVAR = otype = iv_objtype objid = iv_objid * VTASK = 'D' EXCEPTIONS invalid_date = 1 nothing_to_delorcut = 2 error_during_delorcut = 3 no_authorization = 4 undefined = 5 OTHERS = 6.

CLPB_EXPORT CALL FUNCTION 'CLPB_EXPORT' "#EC FB_OLDED TABLES data_tab = int_tab EXCEPTIONS clpb_error = 1 OTHERS = 2.

RH_GET_ACTIVE_WF_PLVAR CALL FUNCTION 'RH_GET_ACTIVE_WF_PLVAR' EXPORTING ask_plvar_dialog = ' ' IMPORTING act_plvar = lv_plan_version EXCEPTIONS no_active_plvar = 1.

HRHAPCN_OBJ_LIB_READ CALL FUNCTION 'HRHAPCN_OBJ_LIB_READ' EXPORTING plvar = lv_plan_version begda = begda endda = endda * ALL_OR_BASE = 'B' * PUP_INFO = 'X' * UPDATE_INDEX = 'X' * DEPTH = 0 * SORT = 'X' IMPORTING o_tab = ot_obj_tab o_without_class = ot_without_class EXCEPTIONS root_not_found = 1 wegid_not_valid = 2 OTHERS = 3.

HRHAPCN_OBJ_LIB_WRITE CALL FUNCTION 'HRHAPCN_OBJ_LIB_WRITE' EXPORTING plvar = gd_plan_version otype = otype objid = objid begda = begda endda = endda target = ls_target logty = 'A' IMPORTING new_objid = lv_new_objid EXCEPTIONS invalid_date = 1 invalid_root = 2 invalid_target = 3 scales_do_not_match = 4 no_authorization = 5 write_error = 6 write_infotype_1001_error = 7 write_infotype_1002_error = 8 write_infotype_1033_error = 9 write_infotype_1048_error = 10 write_infotype_5058_error = 11 undefined = 12 OTHERS = 13.

HRHAPCN_OBJ_LIB_READ_SINGLE CALL FUNCTION 'HRHAPCN_OBJ_LIB_READ_SINGLE' EXPORTING plvar = gd_plan_version otype = otype objid = lv_new_objid * BEGDA = SY-DATUM * ENDDA = '99991231' sbegda = me->lv_key_date sendda = me->lv_key_date IMPORTING o_stru = ls_new_target EXCEPTIONS root_not_found = 1 wegid_not_found = 2 OTHERS = 3.

HRHAPCN_OBJ_LIB_READ_SINGLE CALL FUNCTION 'HRHAPCN_OBJ_LIB_READ_SINGLE' EXPORTING plvar = gd_plan_version otype = otype objid = objid * BEGDA = SY-DATUM * ENDDA = '99991231' sbegda = me->lv_key_date sendda = me->lv_key_date IMPORTING o_stru = ls_target EXCEPTIONS root_not_found = 1 wegid_not_found = 2 OTHERS = 3.

HRHAPCN_OBJ_LIB_READ_BRANCH CALL FUNCTION 'HRHAPCN_OBJ_LIB_READ_BRANCH' EXPORTING * PLVAR = root_otype = is_objlib-otype root_objid = is_objlib-objid begda = me->lv_key_date endda = me->lv_key_date * TDEPTH = 2 * PUP_INFO = * WITH_STEXT = 'X' * SORT = 'X' IMPORTING o_tab = rt_obj_tab.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-010 * DIAGNOSE_OBJECT = ' ' text_question = lv_msg text_button_1 = text-008 * ICON_BUTTON_1 = ' ' text_button_2 = text-009 * ICON_BUTTON_2 = ' ' * DEFAULT_BUTTON = '1' * DISPLAY_CANCEL_BUTTON = 'X' * USERDEFINED_F1_HELP = ' ' * START_COLUMN = 25 * START_ROW = 6 * POPUP_TYPE = * IV_QUICKINFO_BUTTON_1 = ' ' * IV_QUICKINFO_BUTTON_2 = ' ' IMPORTING answer = lv_answer * TABLES * PARAMETER = EXCEPTIONS text_not_found = 1 OTHERS = 2 .

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-010 * DIAGNOSE_OBJECT = ' ' text_question = text-e02 text_button_1 = text-008 * ICON_BUTTON_1 = ' ' text_button_2 = text-009 * ICON_BUTTON_2 = ' ' * DEFAULT_BUTTON = '1' * DISPLAY_CANCEL_BUTTON = 'X' * USERDEFINED_F1_HELP = ' ' * START_COLUMN = 25 * START_ROW = 6 * POPUP_TYPE = * IV_QUICKINFO_BUTTON_1 = ' ' * IV_QUICKINFO_BUTTON_2 = ' ' IMPORTING answer = lv_answer * TABLES * PARAMETER = EXCEPTIONS text_not_found = 1 OTHERS = 2 .

HRHAPCN_OBJ_LIB_STATUS_CHANGE CALL FUNCTION 'HRHAPCN_OBJ_LIB_STATUS_CHANGE' EXPORTING * WTLOG = ABAP_TRUE logty = 'A' istat = istat is_target = ls_obj * NAME = EXCEPTIONS no_authority = 1 nothing_found = 2 error_during_update = 3 OTHERS = 4.

HRHAPCN_OBJ_LIB_MOVE CALL FUNCTION 'HRHAPCN_OBJ_LIB_MOVE' EXPORTING * PLVAR = otype = otype objid = objid totype = totype tobjid = tobjid gdate = gdate gendd = gendd vtask = 'D' is_src_obj = ls_src_obj is_tar_obj = ls_tar_obj EXCEPTIONS no_authority = 1 object_not_found = 2 error_during_cut = 3 error_during_insert = 4 gdate_before_begda = 5 wrong_otype = 6 wrong_date_format = 7 move_not_allowed = 8 scale_error = 9 undefined = 10 OTHERS = 11.

HRHAPCN_OBJ_LIB_READ_SINGLE CALL FUNCTION 'HRHAPCN_OBJ_LIB_READ_SINGLE' EXPORTING * PLVAR = otype = ls_src_obj-otype objid = ls_src_obj-objid begda = gdate endda = gendd sbegda = me->lv_key_date sendda = me->lv_key_date IMPORTING o_stru = ls_new_obj EXCEPTIONS root_not_found = 1 wegid_not_found = 2 OTHERS = 3.

RH_GET_ACTIVE_WF_PLVAR CALL FUNCTION 'RH_GET_ACTIVE_WF_PLVAR' EXPORTING ask_plvar_dialog = ' ' IMPORTING act_plvar = lv_plan_version EXCEPTIONS no_active_plvar = 1.

RH_STRUC_GET CALL FUNCTION 'RH_STRUC_GET' EXPORTING act_otype = 'O' act_objid = root_id act_wegid = 'O-O_DOWN' TABLES * result_tab = lt_orgp_rs result_objec = lt_objec result_struc = lt_struc EXCEPTIONS no_entry_found = 1 no_plvar_found = 2.

TEXT_CONVERT_XLS_TO_SAP CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP' EXPORTING * I_FIELD_SEPERATOR = i_line_header = abap_true i_tab_raw_data = it_raw i_filename = file_path TABLES i_tab_converted_data = target_tab EXCEPTIONS conversion_failed = 1 OTHERS = 2.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING * BIN_FILESIZE = filename = lv_file_name write_field_separator = 'X' trunc_trailing_blanks = 'X' codepage = '8400' TABLES data_tab = lt_tab fieldnames = lt_field_names.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name INCL_HAPCN_OBJECTIVE_LIBCLZ or its description.