SAP Reports / Programs | Personnel Management | Benefits(PA-BN) SAP PA

BEN47F01 SAP ABAP INCLUDE - documentation and ABAP source code







BEN47F01 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 BEN47F01 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 BEN47F01. "Basic submit
SUBMIT BEN47F01 AND RETURN. "Return to original report after report execution complete
SUBMIT BEN47F01 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 BEN47F01

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_BEN_GET_TIME_INTERVAL CALL FUNCTION 'HR_BEN_GET_TIME_INTERVAL' EXPORTING pernr = pernr_period-pernr cond_act_hours = cond_act_hours cum_all_hours = dyneli_condition-cumhd number = dyneli_condition-nount time_unit = dyneli_condition-untah periodicity = dyneli_condition-perkd cum_start = dyneli_condition-cumst begda = pernr_period-begda endda = pernr_period-endda reaction = reaction IMPORTING subrc = subrc TABLES time_interval = time_interval error_table = error_table.

HR_BEN_SRV_GET_DYN_ELIGIBILITY CALL FUNCTION 'HR_BEN_SRV_GET_DYN_ELIGIBILITY' EXPORTING pernr = dyneli_check-pernr minsrv_number = dyneli_condition-dysvn minsrv_unit = dyneli_condition-dysvu perul = dyneli_condition-perul barea = dyneli_condition-barea bplan = dyneli_condition-dyspl begda = dyneli_check-begda endda = dyneli_check-endda reaction = reaction IMPORTING above_minsrv = cond_met minsrv_date = cond_met_date subrc = subrc TABLES error_table = error_table.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = dyneli_check-pernr infty = '0041' bypass_buffer = true TABLES infty_tab = i0041.

HR_INITIALIZE_BUFFER CALL FUNCTION 'HR_INITIALIZE_BUFFER' EXPORTING pernr = dyneli_check-pernr.

HR_BEN_CREATE_ADJUST_REASON CALL FUNCTION 'HR_BEN_CREATE_ADJUST_REASON' EXPORTING pernr = dyneli_check-pernr datum = dyneli_check-datum adjust_reason = dyneli_check-event nocommit = false lock_pernr = false reaction = reaction IMPORTING subrc = retcd TABLES error_table = error_table.

HR_BEN_HANDLE_ERROR CALL FUNCTION 'HR_BEN_HANDLE_ERROR' EXPORTING pernr = group_pernr-pernr msg_class = msg_class15 msg_number = '032' msg_par1 = group_pernr-pernr msg_par2 = personid_ext severity = subrc reaction = reaction TABLES error_table = error_table.

HR_BEN_GET_DATE_INTERSECTION CALL FUNCTION 'HR_BEN_GET_DATE_INTERSECTION' EXPORTING begda1 = group_pernr-grouping_begda endda1 = group_pernr-grouping_endda begda2 = begda endda2 = endda reaction = reaction IMPORTING intersection_begda = sel_begda intersection_endda = sel_endda subrc = subrc TABLES error_table = error_table.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = pernr infty = '0041' bypass_buffer = true TABLES infty_tab = it0041.

HR_BEN_HANDLE_ERROR CALL FUNCTION 'HR_BEN_HANDLE_ERROR' EXPORTING pernr = pernr msg_class = msg_class3 msg_number = '236' severity = subrc reaction = reaction TABLES error_table = error_table.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' "Note-1079540 EXPORTING pernr = pernr infty = '0000' begda = period-begda endda = period-endda TABLES infty_tab = it0000.

HR_BEN_HANDLE_ERROR CALL FUNCTION 'HR_BEN_HANDLE_ERROR' EXPORTING pernr = pernr msg_class = msg_class3 msg_number = '181' severity = subrc reaction = reaction TABLES error_table = error_table.

HR_BEN_HANDLE_ERROR CALL FUNCTION 'HR_BEN_HANDLE_ERROR' EXPORTING pernr = pernr msg_class = msg_class3 msg_number = '194' msg_par1 = begst msg_par2 = endst severity = subrc reaction = reaction TABLES error_table = error_table.

HR_TIME_RESULTS_IN_INTERVAL CALL FUNCTION 'HR_TIME_RESULTS_IN_INTERVAL' EXPORTING int_pernr = pernr int_begda = period-begda int_endda = period-endda TABLES int_time_results = time_results EXCEPTIONS no_period_specified = 1 wrong_cluster_version = 2 no_read_authority = 3 cluster_archived = 4 technical_error = 5 OTHERS = 6.

HR_BEN_HANDLE_ERROR CALL FUNCTION 'HR_BEN_HANDLE_ERROR' EXPORTING pernr = pernr msg_class = msg_class3 msg_number = '195' msg_par1 = begst msg_par2 = endst severity = subrc reaction = reaction TABLES error_table = error_table.

HR_BEN_HANDLE_ERROR CALL FUNCTION 'HR_BEN_HANDLE_ERROR' EXPORTING pernr = it0041-pernr msg_class = msg_class15 msg_number = '010' msg_par1 = begst msg_par2 = endst severity = 8 reaction = reaction TABLES error_table = error_table.

HR_INFOTYPE_OPERATION CALL FUNCTION 'HR_INFOTYPE_OPERATION' EXPORTING infty = '0041' number = pernr validityend = endda validitybegin = begda record = p0041 operation = insert nocommit = false IMPORTING return = return.

HR_BEN_HANDLE_ERROR CALL FUNCTION 'HR_BEN_HANDLE_ERROR' EXPORTING pernr = pernr msg_class = msg_class15 msg_number = '012' msg_par1 = '0041' msg_par2 = begst msg_par3 = endst severity = 8 reaction = reaction TABLES error_table = error_table.

HR_INFOTYPE_OPERATION CALL FUNCTION 'HR_INFOTYPE_OPERATION' EXPORTING infty = '0041' number = pernr validityend = endda validitybegin = begda record = p0041 operation = operation nocommit = false IMPORTING return = return.

HR_BEN_HANDLE_ERROR





CALL FUNCTION 'HR_BEN_HANDLE_ERROR' EXPORTING pernr = pernr msg_class = msg_class15 msg_number = msgno msg_par1 = '0041' msg_par2 = begst msg_par3 = endst severity = 8 reaction = reaction TABLES error_table = error_table.

HR_BEN_ENQUEUE_PERNR CALL FUNCTION 'HR_BEN_ENQUEUE_PERNR' EXPORTING pernr = pernr reaction = reaction IMPORTING subrc = subrc TABLES error_table = error_table.

HR_BEN_ENQUEUE_PERNR CALL FUNCTION 'HR_BEN_ENQUEUE_PERNR' EXPORTING pernr = other_pernr-pernr reaction = reaction IMPORTING subrc = subrc TABLES error_table = error_table.

HR_BEN_DEQUEUE_PERNR CALL FUNCTION 'HR_BEN_DEQUEUE_PERNR' EXPORTING pernr = locked_pernr.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = pernr infty = '0001' TABLES infty_tab = it0001.

HR_BEN_HANDLE_ERROR CALL FUNCTION 'HR_BEN_HANDLE_ERROR' EXPORTING pernr = pernr msg_class = 'RP' msg_number = '050' msg_par1 = '0001' msg_par2 = pernr msg_par3 = datst msg_par4 = datst severity = subrc reaction = reaction TABLES error_table = error_table.



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