RHHCP_PLAN_CODOC_CREATE_F 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 RHHCP_PLAN_CODOC_CREATE_F into the relevant SAP transactions such as SE38 or SE80
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.
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
HR_HCP_CHECK_AUTHORITY CALL FUNCTION 'HR_HCP_CHECK_AUTHORITY' EXPORTING im_activity = g_const_activity EXCEPTIONS no_authority = 1 OTHERS = 2.
HR_HCP_RUN_GET_PLAN CALL FUNCTION 'HR_HCP_RUN_GET_PLAN' EXPORTING im_runid = ls_run-runid IMPORTING ex_plvar = l_plvar ex_pcplan = l_pcplan EXCEPTIONS not_found = 1 OTHERS = 2.
HR_HCP_RUN_GET_RUNIDS_FOR_PLAN CALL FUNCTION 'HR_HCP_RUN_GET_RUNIDS_FOR_PLAN' EXPORTING im_plvar = p_plvar im_plan = p_pcplan TABLES ex_runid_tab = lt_plru.
HR_HCP_CHECK_AUTHORITY_RUN CALL FUNCTION 'HR_HCP_CHECK_AUTHORITY_RUN' EXPORTING im_runid = ls_runtab-runid im_activity = g_const_activity im_plvar = p_plvar im_pcplan = p_pcplan EXCEPTIONS no_authority = 1 data_inconsistency = 2 OTHERS = 3.
HR_HCP_RUN_ENQUEUE CALL FUNCTION 'HR_HCP_RUN_ENQUEUE' EXPORTING im_runid = ls_run-runid EXCEPTIONS enqueue_failed = 1 OTHERS = 2.
HR_EVAL_STATUS_GET CALL FUNCTION 'HR_EVAL_STATUS_GET' EXPORTING type = cl_hcp_global_constants=>c_runtype runid = ls_run-runid lock = space IMPORTING status = l_status * NAME = * SIMU = * CREATOR = * CREADATE = * CREATIME = EXCEPTIONS run_not_found = 1 run_locked = 2 OTHERS = 3 .
HR_HCP_RUN_DEQUEUE CALL FUNCTION 'HR_HCP_RUN_DEQUEUE' EXPORTING im_runid = ls_run-runid.
HR_HCP_PLAN_MASTERDATA_GET CALL FUNCTION 'HR_HCP_PLAN_MASTERDATA_GET' EXPORTING im_plvar = p_plvar im_plan = p_pcplan * IM_LANGU = IMPORTING ex_plan_masterdata = ps_planattr * EX_PLAN_TEXT = * TABLES * EX_PLAN_TAB = * EX_PLAN_TEXTTAB = EXCEPTIONS not_exists = 1 OTHERS = 2 .
HR_HCP_PLAN_CHECK_COSTOBJ_REL CALL FUNCTION 'HR_HCP_PLAN_CHECK_COSTOBJ_REL' EXPORTING im_plvar = p_plvar im_plan = p_pcplan IMPORTING ex_objrel_error = lt_object_error EXCEPTIONS read_data_error = 1 OTHERS = 2.
HR_HCP_PLAN_GET_CO_ORIGDOCS CALL FUNCTION 'HR_HCP_PLAN_GET_CO_ORIGDOCS' EXPORTING im_plvar = p_plvar im_pcplan = p_pcplan IMPORTING ex_codocs = lt_datakey.
HR_HCP_CODOC_READ CALL FUNCTION 'HR_HCP_CODOC_READ' EXPORTING im_datakey = ls_datakey IMPORTING ex_costs = ls_origdoc-costs_tab ex_keyfig = ls_origdoc-keyfig_tab EXCEPTIONS db_error = 1 OTHERS = 2.
HR_HCP_PLAN_CO_SERVICE_INITBUF CALL FUNCTION 'HR_HCP_PLAN_CO_SERVICE_INITBUF' .
HR_HCP_RUN_GET_PACKAGES CALL FUNCTION 'HR_HCP_RUN_GET_PACKAGES' EXPORTING im_runid = p_run IMPORTING ex_packages = pt_packages.
HR_HCP_PLAN_READ CALL FUNCTION 'HR_HCP_PLAN_READ' EXPORTING im_datakey = ps_package IMPORTING ex_costitems = ps_plandata-citem_tab ex_co_info = ps_plandata-co_info_tab ex_comp_info = ps_plandata-comp_info_tab * EX_REL_INFO = ex_diffca = ps_plandata-diffca_tab ex_org_attr = ps_plandata-org_attr_tab "647020 EXCEPTIONS db_error = 1 OTHERS = 2 .
HR_HCP_CREATE_ORIGDOC_ITEMS CALL FUNCTION 'HR_HCP_CREATE_ORIGDOC_ITEMS' EXPORTING im_costitem = ls_costitems im_costassign = ls_costassign im_comp_info_tab = lt_work_comp_info "sorted im_org_attr_tab = lt_work_org_attr "sorted "647020 im_plan_begda = ps_planattr-begda im_plan_endda = ps_planattr-endda im_plvar = ps_planattr-plvar im_logref = p_logref IMPORTING ex_origdoc_costs = lt_doc_costs ex_origdoc_kfig = lt_doc_keyfig EXCEPTIONS get_posting_periods_error = 1 citm_not_exists = 2 error_occured = 3 message_error = 4 OTHERS = 5.
HR_HCP_GET_COINFO_FROM_CLUSTER CALL FUNCTION 'HR_HCP_GET_COINFO_FROM_CLUSTER' EXPORTING im_otype = ls_costitems-otype im_objid = ls_costitems-objid im_acc_id = ls_costitems-acc_id im_otype_orga = l_otype "only needed, when org view im_objid_orga = l_objid " ...
HR_HCP_CHECK_CO_INFO_COMPLETE CALL FUNCTION 'HR_HCP_CHECK_CO_INFO_COMPLETE' EXPORTING im_begda = ls_costitems-begda im_endda = ls_costitems-endda im_co_info_tab = lt_work_coinfo IMPORTING "1608705 et_gap_dates = lt_gap_dates "1608705 EXCEPTIONS NOT_COMPLETE_PERIOD = 1 NOT_100_PERCENT = 2 OTHERS = 3.
HR_HCP_GET_COMMON_TIMERANGE CALL FUNCTION 'HR_HCP_GET_COMMON_TIMERANGE' EXPORTING DAT1_BEGDA = ls_gap_dates-begda DAT1_ENDDA = ls_gap_dates-endda DAT2_BEGDA = ls_co_info_key-begda DAT2_ENDDA = ls_co_info_key-endda IMPORTING WORK_BEGDA = l_common_begda WORK_ENDDA = l_common_endda EXCEPTIONS NO_OVERLAPP = 1 OTHERS = 2.
CALL FUNCTION 'HR_HCP_CHECK_CO_INFO_COMPLETE' EXPORTING im_begda = ls_costitems-begda im_endda = ls_costitems-endda im_co_info_tab = lt_work_coinfo IMPORTING et_gap_dates = lt_gap_dates EXCEPTIONS NOT_COMPLETE_PERIOD = 1 NOT_100_PERCENT = 2 OTHERS = 3.
HR_HCP_GET_COMMON_TIMERANGE CALL FUNCTION 'HR_HCP_GET_COMMON_TIMERANGE' EXPORTING dat1_begda = ls_costitems-begda dat1_endda = ls_costitems-endda dat2_begda = ls_co_info-begda dat2_endda = ls_co_info-endda IMPORTING work_begda = ls_costitems_work-begda work_endda = ls_costitems_work-endda EXCEPTIONS no_overlapp = 1.
HR_HCP_CREATE_ORIGDOC_ITEMS CALL FUNCTION 'HR_HCP_CREATE_ORIGDOC_ITEMS' EXPORTING im_costitem = ls_costitems_work im_costassign = ls_costassign im_comp_info_tab = lt_work_comp_info im_org_attr_tab = lt_work_org_attr "647020 im_plan_begda = ps_planattr-begda im_plan_endda = ps_planattr-endda im_plvar = ps_planattr-plvar im_logref = p_logref IMPORTING ex_origdoc_costs = lt_doc_costs ex_origdoc_kfig = lt_doc_keyfig EXCEPTIONS get_posting_periods_error = 1 citm_not_exists = 2 error_occured = 3 message_error = 4 OTHERS = 5.
HR_HCP_CODOC_WRITE CALL FUNCTION 'HR_HCP_CODOC_WRITE' EXPORTING im_datakey = ls_key im_costs =
-costs_tab im_keyfig = -keyfig_tab.
HR_EVAL_STATUS_SET CALL FUNCTION 'HR_EVAL_STATUS_SET' EXPORTING type = cl_hcp_global_constants=>c_runtype runid = ls_run-runid status = '32' lock = space unlock = space EXCEPTIONS run_locked = 1 run_not_found = 2 status_not_valid = 3 insert_failed = 4 OTHERS = 5.
HR_HCP_RUN_DEQUEUE CALL FUNCTION 'HR_HCP_RUN_DEQUEUE' EXPORTING im_runid = ls_run-runid.
HR_HCP_GET_OTYPE_ORGUNIT call function 'HR_HCP_GET_OTYPE_ORGUNIT' IMPORTING ex_otype_orgunit = l_otype_org.
HR_HCP_GET_OTYPE_POSITION call function 'HR_HCP_GET_OTYPE_POSITION' IMPORTING ex_otype_pos = l_otype_pos.
HR_HCP_BUILD_TIME_GAP CALL FUNCTION 'HR_HCP_BUILD_TIME_GAP' EXPORTING IM_DATES = lt_dates IM_RANGE_BEGDA = ls_costitems-begda IM_RANGE_ENDDA = ls_costitems-endda IMPORTING EX_DATES = lt_gap_dates.
HR_HCP_PLAN_CUMULATE_CO_INFO CALL FUNCTION 'HR_HCP_PLAN_CUMULATE_CO_INFO' CHANGING IM_EX_CO_INFO = temp_co_info_tab.
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 RHHCP_PLAN_CODOC_CREATE_F or its description.
RHHCP_PLAN_CODOC_CREATE_F - RHHCPPLANCODOCCREATEF RHHCP_PLAN_CODOC_CREATE_D - RHHCPPLANCODOCCREATED RHHCP_PLAN_CODOC_CREATE - Releasing the Plan and Generating Original Documents RHHCP_PLAN_CODOC_CREATE - Releasing the Plan and Generating Original Documents RHHCP_PLAN_BUDGET_IF - Personnel Cost Planning: User Interface for Budget Determination RHHCP_PLAN_BUDGET_IF - Personnel Cost Planning: User Interface for Budget Determination