SAP Reports / Programs | Personnel Management | Personnel Cost Planning and Simulation(PA-CP) SAP PA

RHHCP_DC_LOG SAP ABAP INCLUDE - Logging for Both Data Collection Programs







RHHCP_DC_LOG 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_DC_LOG 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 RHHCP_DC_LOG. "Basic submit
SUBMIT RHHCP_DC_LOG AND RETURN. "Return to original report after report execution complete
SUBMIT RHHCP_DC_LOG VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Logging for Both Data Collection Programs


INCLUDES used within this REPORT RHHCP_DC_LOG

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:

HR_HCP_GET_OTYPE_EMPLOYEE CALL FUNCTION 'HR_HCP_GET_OTYPE_EMPLOYEE' IMPORTING ex_otype_pnr = lc_otype_pnr.

HR_HCP_GET_SNAME_IT1_EMP CALL FUNCTION 'HR_HCP_GET_SNAME_IT1_EMP' EXPORTING ic_otype_pnr = lc_otype_pnr iv_otype = ls_citems_log-otype iv_objid = ls_citems_log-objid iv_stext = ls_citems_log-oname IMPORTING ev_sname = ls_citems_log-sname.

HR_HCP_GET_SNAME_IT1_EMP CALL FUNCTION 'HR_HCP_GET_SNAME_IT1_EMP' EXPORTING ic_otype_pnr = lc_otype_pnr iv_otype = ls_citems_log-otype iv_objid = ls_citems_log-objid iv_stext = ls_citems_log-oname IMPORTING ev_sname = ls_citems_log-sname.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_checked ADD_STDINF = 'X' IMPORTING RESULT = p_icon EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_incomplete ADD_STDINF = 'X' IMPORTING RESULT = p_icon EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'HCP_S_DC_CITEMSLOG' CHANGING ct_fieldcat = lt_fieldcat.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = l_repid i_callback_pf_status_set = 'SET_STATUS_ALV' i_callback_user_command = 'CALLBACK_ALV' i_grid_title = l_title is_layout = l_layout it_fieldcat = lt_fieldcat i_save = 'A' TABLES t_outtab = pt_costitems.

HR_HCP_READ_CITM_T CALL FUNCTION 'HR_HCP_READ_CITM_T' EXPORTING * IM_LANGU = im_citm = p_citems_log-citem IMPORTING ex_citem_text = p_citems_log-citxt.

HR_HCP_CHECK_TIME_UNIT CALL FUNCTION 'HR_HCP_CHECK_TIME_UNIT' EXPORTING im_zeinh = p_citems_log-unit * IM_LANGU = IMPORTING ex_text = p_citems_log-unittxt EXCEPTIONS zeinh_not_exist = 1 OTHERS = 2 .

HR_HCP_GET_TIMEUNIT_TEXT CALL FUNCTION 'HR_HCP_GET_TIMEUNIT_TEXT' EXPORTING im_timeunit = l_domval IMPORTING ex_text = l_dom_text.

HR_HCP_CHECK_COUNTRYGROUPING CALL FUNCTION 'HR_HCP_CHECK_COUNTRYGROUPING' EXPORTING im_molga = p_citems_log-molga * im_langu = IMPORTING ex_mlgtx = p_citems_log-mlgtx EXCEPTIONS molga_not_exists = 1 OTHERS = 2 .

HR_HCP_GET_INTERFACE_ATTR CALL FUNCTION 'HR_HCP_GET_INTERFACE_ATTR' EXPORTING im_langu = sy-langu im_exit_name = g_exit_def im_flt_val = p_citems_log-interface IMPORTING ex_text = l_cus_text EXCEPTIONS no_data = 1 OTHERS = 2.



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