SAP Reports / Programs | Personnel Management | Budget Management(PA-PM) SAP PA

RHPMPROT SAP ABAP INCLUDE - documentation and ABAP source code







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


INCLUDES used within this REPORT RHPMPROT

INCLUDE RHPMCONST.
INCLUDE SBAL_CONSTANTS.


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_READ_OBJECT CALL FUNCTION 'RH_READ_OBJECT' EXPORTING plvar = p_plvar otype = c_user realo = realo IMPORTING stext = i_stext EXCEPTIONS OTHERS = 0.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = l_s_log IMPORTING e_log_handle = l_log_handle EXCEPTIONS OTHERS = 1.

BAL_GLB_MSG_DEFAULTS_GET CALL FUNCTION 'BAL_GLB_MSG_DEFAULTS_GET' IMPORTING e_s_msg_defaults = l_s_mdef EXCEPTIONS OTHERS = 0.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon info = q_text add_stdinf = space IMPORTING result = result EXCEPTIONS OTHERS = 0.

BAL_GLB_MSG_DEFAULTS_SET CALL FUNCTION 'BAL_GLB_MSG_DEFAULTS_SET' EXPORTING i_s_msg_defaults = l_s_mdef EXCEPTIONS OTHERS = 0.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = l_log_handle i_s_msg = l_s_msg EXCEPTIONS OTHERS = 1.

BAL_DSP_PROFILE_SINGLE_LOG_GET CALL FUNCTION 'BAL_DSP_PROFILE_SINGLE_LOG_GET' IMPORTING e_s_display_profile = l_s_display_profile EXCEPTIONS OTHERS = 1.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = l_s_display_profile EXCEPTIONS OTHERS = 1.

RH_PM_BUDGET_STRUC_MAINT CALL FUNCTION 'RH_PM_BUDGET_STRUC_MAINT' EXPORTING plvar = i_hrpmprot-plvar otype = i_hrpmprot-otype objid = i_hrpmprot-objid begda = i_hrpmprot-begda endda = i_hrpmprot-endda status = i_hrpmprot-istat fcode = 'AEND' demand_view = space EXCEPTIONS OTHERS = 0.

RH_PM_EMPLOYEE_CARD_MAINTAIN CALL FUNCTION 'RH_PM_EMPLOYEE_CARD_MAINTAIN' EXPORTING plvar = i_hrpmprot-plvar pernr = i_hrpmprot-objid begda = i_hrpmprot-begda endda = i_hrpmprot-endda status = i_hrpmprot-istat fcode = 'AEND' finyr = i_t7pm9-finyr EXCEPTIONS OTHERS = 0.

RH_PM_GET_BUDGET_TYPE CALL FUNCTION 'RH_PM_GET_BUDGET_TYPE' EXPORTING plvar = i_hrpmprot-plvar objid = i_hrpmprot-objid status = i_hrpmprot-istat begda = i_t7pm9-begda endda = i_t7pm9-endda EXCEPTIONS not_found = 1 OTHERS = 2.

RH_PM_GET_BUDGET_TYPE CALL FUNCTION 'RH_PM_GET_BUDGET_TYPE' EXPORTING plvar = i_hrpmprot-plvar objid = i_hrpmprot-objid status = i_hrpmprot-istat IMPORTING return_1500 = local_p1500 EXCEPTIONS OTHERS = 0.

RH_PM_BUDGET_STRUC_MAINT CALL FUNCTION 'RH_PM_BUDGET_STRUC_MAINT' EXPORTING plvar = i_hrpmprot-plvar otype = i_hrpmprot-otype objid = i_hrpmprot-objid begda = i_t7pm9-begda endda = i_t7pm9-endda status = i_hrpmprot-istat fcode = 'AEND' demand_view = 'X' EXCEPTIONS OTHERS = 0.

RH_PM_READ_INFTY CALL FUNCTION 'RH_PM_READ_INFTY' EXPORTING act_plvar = i_hrpmprot-plvar act_otype = i_hrpmprot-otype act_objid = i_hrpmprot-objid act_begda = i_hrpmprot-begda act_endda = i_hrpmprot-endda act_istat = i_hrpmprot-istat act_infty = '1001' act_subty = 'A003' TABLES innnn = i_p1001 EXCEPTIONS OTHERS = 1.

RH_PM_ORG_STRUC_MAINT CALL FUNCTION 'RH_PM_ORG_STRUC_MAINT' EXPORTING plvar = i_hrpmprot-plvar otype = c_orgeh objid = convert_objid begda = i_t7pm9-begda endda = i_t7pm9-endda status = i_hrpmprot-istat fcode = 'AEND' demand_view = 'X' finyr = i_t7pm9-finyr EXCEPTIONS OTHERS = 0.

RH_PM_FINANCE_POSITION CALL FUNCTION 'RH_PM_FINANCE_POSITION' EXPORTING plvar = i_hrpmprot-plvar otype = i_hrpmprot-otype objid = i_hrpmprot-objid begda = i_hrpmprot-begda endda = i_hrpmprot-endda status = i_hrpmprot-istat EXCEPTIONS OTHERS = 0.

RH_PM_FINANCE_POSITION CALL FUNCTION 'RH_PM_FINANCE_POSITION' EXPORTING plvar = i_hrpmprot-plvar otype = i_hrpmprot-otype objid = i_hrpmprot-objid begda = i_hrpmprot-begda endda = i_hrpmprot-endda status = i_hrpmprot-istat EXCEPTIONS OTHERS = 0.

RH_PM_FINANCE_PERSON CALL FUNCTION 'RH_PM_FINANCE_PERSON' EXPORTING plvar = i_hrpmprot-plvar otype = i_hrpmprot-otype objid = i_hrpmprot-objid begda = i_hrpmprot-begda endda = i_hrpmprot-endda status = i_hrpmprot-istat * FCODE = 'AEND' EXCEPTIONS OTHERS = 0.

RH_PM_FINANCE_POSITION





CALL FUNCTION 'RH_PM_FINANCE_POSITION' EXPORTING plvar = i_hrpmprot-plvar otype = i_hrpmprot-otype objid = i_hrpmprot-objid begda = i_hrpmprot-begda endda = i_hrpmprot-endda status = i_hrpmprot-istat EXCEPTIONS OTHERS = 0.

RH_PM_FINANCE_PERSON CALL FUNCTION 'RH_PM_FINANCE_PERSON' EXPORTING plvar = i_hrpmprot-plvar otype = i_hrpmprot-otype objid = i_hrpmprot-objid begda = i_hrpmprot-begda endda = i_hrpmprot-endda status = i_hrpmprot-istat * FCODE = 'AEND' EXCEPTIONS OTHERS = 0.

BAL_LOG_MSG_READ CALL FUNCTION 'BAL_LOG_MSG_READ' EXPORTING i_s_msg_handle = c_s_user_command_data-list_msgh IMPORTING e_s_msg = l_s_msg EXCEPTIONS OTHERS = 1.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon info = q_text add_stdinf = space IMPORTING result = result EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

BAL_LOG_MSG_CHANGE CALL FUNCTION 'BAL_LOG_MSG_CHANGE' EXPORTING i_s_msg_handle = c_s_user_command_data-list_msgh i_s_msg = l_s_msg EXCEPTIONS OTHERS = 1.

BAL_DSP_OUTPUT_SET_DATA CALL FUNCTION 'BAL_DSP_OUTPUT_SET_DATA' EXPORTING i_t_log_handle = g_t_log_handle EXCEPTIONS OTHERS = 0.

RH_PM_USER_INFO_DISPLAY CALL FUNCTION 'RH_PM_USER_INFO_DISPLAY' EXPORTING uname = i_hrpmprot-uname. "#EC DOM_EQUAL

RH_PM_MAIL_SEND CALL FUNCTION 'RH_PM_MAIL_SEND' EXPORTING pd_semid = g_t_hrpmprot-semid pd_plvar = g_t_hrpmprot-plvar pd_begda = g_t_hrpmprot-begda pd_endda = g_t_hrpmprot-endda TABLES pt_receiver = receiver EXCEPTIONS OTHERS = 1.



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