SAP Reports / Programs | Personnel Management | Compensation Management | Personnel Cost Planning(PA-CM-CP) SAP PA

RHPP25PT SAP ABAP Report - Personnel Cost Planning: Data Transfer to Accounting







RHPP25PT is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Transfering Data from Personnel Cost Planning to Accounting By using this report, you can transfer data from a released Personnel Cost Planning plan scenario to Accounting for each controlling area and fiscal year...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RHPP25PT 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 RHPP25PT. "Basic submit
SUBMIT RHPP25PT AND RETURN. "Return to original report after report execution complete
SUBMIT RHPP25PT VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: VERSN = Planning Version
Selection Text: TEST = Test Run
Selection Text: STORNO = Cancel transferred data
Selection Text: PROT = Output Log
Selection Text: PLVAR = Plan Version
Selection Text: CO_PTO = D To period
Selection Text: CO_POSNR = D WBS Element
Selection Text: CO_PFROM = D From Period
Selection Text: CO_KOSTL = D Cost Center
Selection Text: CO_FYEAR = Fiscal Year
Selection Text: CO_AUFNR = D Request
Selection Text: CO_AREA = Controlling Area
Title: Personnel Cost Planning: Data Transfer to Accounting
Text Symbol: PR3 = Following data transferable to Accounting
Text Symbol: PR2 = The following data was cancelled in Accounting
Text Symbol: PR1 = The following data was already transferred to Accounting
Text Symbol: PAR = Run Attributes
Text Symbol: KRS = Controlling Area
Text Symbol: G05 = Transfer planning data to CO...
Text Symbol: G04 = Check planning data in CO...
Text Symbol: G03 = Format planning data for CO...
Text Symbol: G02 = Determine CO period definiton...
Text Symbol: G01 = Check Release Status...
Text Symbol: FYR = Fiscal Year
Text Symbol: END = To
Text Symbol: DMT = Select Controlling Area/Fiscal Year
Text Symbol: DMS = Controlling Areas/Fiscal Years Affected
Text Symbol: COO = Restrictions
Text Symbol: COF = Parameters for Accounting
Text Symbol: BEG = Planning Period
Text Symbol: PR4 = Following data transferred to Accounting
Text Symbol: PR5 = Transfer Log for Personal Cost Planning
Text Symbol: PSL = Planning Version
Text Symbol: TRA = Error Log for Data Transfer to Personnel Cost Planning


INCLUDES used within this REPORT RHPP25PT

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:

SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting percentage = &1 text = &2 exceptions others = 0.

HR_PC_VNAME_CHECK_AUTHORITY CALL FUNCTION 'HR_PC_VNAME_CHECK_AUTHORITY' EXPORTING fcode = c_auth_post EXCEPTIONS no_authorization = 1 no_fcode_auth = 2 wrong_password = 3 OTHERS = 4.

RH_PC_EXISTENCE_CHECK CALL FUNCTION 'RH_PC_EXISTENCE_CHECK' EXPORTING plvar = plvar versn = versn begda = begda endda = endda versn_check = 'X' IMPORTING frflg = i77kd_frflg TABLES i77kd_tab = i77kd EXCEPTIONS no_existence = 1 OTHERS = 2.

RH_CP_CO_CHECK_PLAN_SCENARIO CALL FUNCTION 'RH_CP_CO_CHECK_PLAN_SCENARIO' EXPORTING hr_plvar = plvar hr_versn = versn hr_begda = begda hr_endda = endda co_controlling_area = co_area co_fiscal_year = co_fyear co_version = co_version storno = storno checkoff = s0_checkoff IMPORTING previous_covsn = old_co_version TABLES i77ke = i77ke EXCEPTIONS no_co_admin_entry = 1 already_posted_data = 2 OTHERS = 3.

RH_CP_CO_GET_PERIOD_LIST CALL FUNCTION 'RH_CP_CO_GET_PERIOD_LIST' EXPORTING co_controlling_area = co_area co_fiscalyear = co_fyear co_period_from = co_pfrom co_period_to = co_pto IMPORTING cur_period_from = co_period_from cur_period_to = co_period_to TABLES period_date = period_date EXCEPTIONS controllingarea_not_found = 1 communication_error = 2 period_error = 3 max_period_overflow = 4 empty_period_tab = 5 OTHERS = 6.

HR_READ_PC_VNAME_CO CALL FUNCTION 'HR_READ_PC_VNAME_CO' EXPORTING i77kd = i77kd TABLES cost_per_cost_center = scenario-cost_per_cost_center EXCEPTIONS no_data_found = 1 OTHERS = 2.

RH_CP_CO_PLANNING_GROUP_DATA CALL FUNCTION 'RH_CP_CO_PLANNING_GROUP_DATA' EXPORTING hr_planbegda = i77kd-begda hr_planendda = i77kd-endda co_versn = co_version co_gjahr = co_fyear co_kokrs = co_area hr_check_off = co_delta hr_co_storno = storno * HR_REPORTING = ' ' TABLES co_costcenter = co_kostl "XKWL9CK001706 co_order = co_aufnr "XKWL9CK001706 co_wbselem = co_posnr "XKWL9CK001706 cost_per_cost_center = scenario-cost_per_cost_center index_rkspe_cpcc = scenario-index_rkspe "L9CK001706 co_kostl_budgt = co_kostl_budgt period_date = period_date EXCEPTIONS invalid_period_table = 1 max_period_overflow = 2 OTHERS = 3.

HR_READ_PC_VERSN_CO_PERIOD CALL FUNCTION 'HR_READ_PC_VERSN_CO_PERIOD' EXPORTING i77kd = gs_scenario_key TABLES co_periods = gt_old_period_date EXCEPTIONS no_data_found = 1 OTHERS = 2.

HRCA_PDTRANSCO_CHECKPRIMCOST CALL FUNCTION 'HRCA_PDTRANSCO_CHECKPRIMCOST' EXPORTING headerinfo = co_bapi_headerinfo IMPORTING message_level = co_bapi_message_level TABLES indexstructure = co_bapi_indexstructure coobject = co_bapi_coobject pervalue = co_bapi_pervalue * TOTVALUE = * CONTRL = return = co_bapi_return EXCEPTIONS get_receiver_failed = 1 system_error = 2 OTHERS = 3.

HR_UPDATE_PC_VNAME_CO CALL FUNCTION 'HR_UPDATE_PC_VNAME_CO' EXPORTING i77kd = i77kd commit_work = space TABLES cost_per_cost_center = scenario-cost_per_cost_center EXCEPTIONS data_not_saved = 1.

HR_UPDATE_PC_VERSN_CO_PERIOD CALL FUNCTION 'HR_UPDATE_PC_VERSN_CO_PERIOD' EXPORTING i77kd = gs_scenario_key commit_work = space TABLES co_periods = gt_old_period_date EXCEPTIONS OTHERS = 1.

HRCA_PDTRANSCO_POSTPRIMCOST CALL FUNCTION 'HRCA_PDTRANSCO_POSTPRIMCOST' EXPORTING headerinfo = co_bapi_headerinfo IMPORTING message_level = co_bapi_message_level TABLES indexstructure = co_bapi_indexstructure coobject = co_bapi_coobject pervalue = co_bapi_pervalue * TOTVALUE = * CONTRL = return = co_bapi_return EXCEPTIONS get_receiver_failed = 1 system_error = 2.

HR_PC_VNAME_CHECK_AUTHORITY CALL FUNCTION 'HR_PC_VNAME_CHECK_AUTHORITY' EXPORTING fcode = c_auth_display EXCEPTIONS no_authorization = 1 no_fcode_auth = 2 wrong_password = 3 OTHERS = 4.

RH_CP_CO_PROTOCOL_PLAN_DATA CALL FUNCTION 'RH_CP_CO_PROTOCOL_PLAN_DATA' EXPORTING hr_plvar = plvar hr_versn = versn hr_begda = begda hr_endda = endda co_gjahr = co_fyear co_kokrs = co_area head_line = prot_head_line hr_test = test TABLES co_kostl_budgt = co_kostl_budgt.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_display_more text = text-coo info = l_dummy add_stdinf = 'X' IMPORTING RESULT = l_icon_display EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_enter_more text = text-coo info = l_dummy add_stdinf = 'X' IMPORTING RESULT = l_icon_enter EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

RH_LISTPOPUP CALL FUNCTION 'RH_LISTPOPUP' EXPORTING title = menu_title mark_mode = 0 mark_max = 1 * CUCOL = 5 * CUROW = 5 * VISIBLE_OFFSET = 0 * VISIBLE_LENGTH = 0 visible_offset = 8 visible_length = 80 IMPORTING picked_index = menu_index TABLES page_header = menu_page_header list = menu_tab EXCEPTIONS list_empty = 1 wrong_mark_mode = 2 f15 = 3 OTHERS = 4.

HRCA_PDTRANSCO_GETSOURCEINFOS CALL FUNCTION 'HRCA_PDTRANSCO_GETSOURCEINFOS' EXPORTING SOURCE = co_bapi_source IMPORTING control_data = co_bapi_control_data return = co_bapi_return EXCEPTIONS get_receiver_failed = 1 system_error = 2 OTHERS = 3.

CURRENCY_AMOUNT_SAP_TO_BAPI





call function 'CURRENCY_AMOUNT_SAP_TO_BAPI' exporting currency = p_bapi_data-trans_curr sap_amount = tmp_amount importing bapi_amount = &2.

ALE_BAPI_GET_UNIQUE_RECEIVER CALL FUNCTION 'ALE_BAPI_GET_UNIQUE_RECEIVER' EXPORTING object = c_bus_object method = c_get_method IMPORTING receiver = receivers TABLES filterobjects_values = filterobjects_values EXCEPTIONS error_in_filterobjects = 1 error_in_ale_customizing = 2 not_unique_receiver = 3 no_rfc_destination_maintained = 4 OTHERS = 5.

RFC_SYSTEM_INFO CALL FUNCTION 'RFC_SYSTEM_INFO' DESTINATION receivers-rfc_dest IMPORTING rfcsi_export = remote EXCEPTIONS system_failure = 1 MESSAGE messline communication_failure = 2 MESSAGE messline.

HRCM_ERROR_SET_ENTRY CALL FUNCTION 'HRCM_ERROR_SET_ENTRY' EXPORTING msgty = p_co_bapi_return-type msgid = p_co_bapi_return-id msgno = p_co_bapi_return-number msgv1 = p_co_bapi_return-message_v1 msgv2 = p_co_bapi_return-message_v2 msgv3 = p_co_bapi_return-message_v3 msgv4 = p_co_bapi_return-message_v4 EXCEPTIONS insert_error = 0 OTHERS = 0.

HRCM_ERROR_SHOW CALL FUNCTION 'HRCM_ERROR_SHOW' EXPORTING * CALLBACK_PROGRAM = ' ' * CALLBACK_USER_COMMAND = ' ' * CALLBACK_PF_STATUS_SET = ' ' * MARK_FLAG = ' ' title = 'Fehlerprotokoll für Datentransfer Personalkostenplanung'(tra) save_on_db = save_list popup = popup. "XKWL9CK001706

HRCA_CJPN_EXTERN_TO_INTERN_CNV CALL FUNCTION 'HRCA_CJPN_EXTERN_TO_INTERN_CNV' EXPORTING ext_num = p_co_bapi_coobject-wbs_element IMPORTING int_num = l_int_posnr EXCEPTIONS OTHERS = 0.



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 RHPP25PT or its description.