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

MPZ40F00 SAP ABAP INCLUDE - documentation and ABAP source code







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

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_GETEMPLOYEEDATA_FROMUSER call function 'HR_GETEMPLOYEEDATA_FROMUSER' exporting username = sy-uname importing employeenumber = header_info-pernr name = header_info-name exceptions user_not_found = 1 countrygrouping_not_found = 2 infty_not_found = 3 others = 4.

HR_BEN_HANDLE_ERROR call function 'HR_BEN_HANDLE_ERROR' exporting pernr = header_info-pernr msg_class = sy-msgid msg_number = sy-msgno msg_par1 = sy-msgv1 msg_par2 = sy-msgv2 msg_par3 = sy-msgv3 msg_par4 = sy-msgv4 severity = 0 " not important here reaction = reaction tables error_table = error_table.

HR_BEN_READ_EE_BENEFIT_DATA call function 'HR_BEN_READ_EE_BENEFIT_DATA' exporting pernr = header_info-pernr datum = header_info-valdt reaction = no_log importing ee_benefit_data = ee_benefit_data subrc = retcd tables error_table = error_table.

HR_BEN_HANDLE_ERROR call function 'HR_BEN_HANDLE_ERROR' exporting pernr = header_info-pernr msg_class = msg_class8 msg_number = '004' severity = 0 reaction = reaction tables error_table = error_table.

HR_BEN_GET_CURRENCY call function 'HR_BEN_GET_CURRENCY' exporting barea = header_info-barea datum = header_info-valdt reaction = reaction importing currency = header_info-curre subrc = retcd tables error_table = error_table.

HR_BEN_READ_SPENDING_PLANS call function 'HR_BEN_READ_SPENDING_PLANS' exporting pernr = header_info-pernr begda = header_info-valdt endda = header_info-valdt desired_currency = header_info-curre reaction = reaction importing subrc = subrc tables ex_spen_plans = spenda_plans error_table = error_table.

HR_BEN_F4_VALUE_REQUEST call function 'HR_BEN_F4_VALUE_REQUEST' exporting retfield = 'BPLAN' dynpprog = repid dynpnr = dynnr dynprofield = 'RPBEN_DD-BPLAN' display_mode = display_mode reaction = no_msg importing subrc = subrc tables value_tab = plan_table error_table = error_table.

HR_BEN_GET_FSA_BALANCING call function 'HR_BEN_GET_FSA_BALANCING' exporting ee_benefit_data = ee_benefit_data date = header_info-valdt bplan = selected_plan-bplan pltyp = selected_plan-pltyp reaction = reaction importing balance = fsa_balance available_prev_amount = available_prev_amount subrc = subrc tables error_table = error_table.

HR_BEN_READ_SPENDA_CLAIMS call function 'HR_BEN_READ_SPENDA_CLAIMS' exporting pernr = header_info-pernr barea = selected_plan-barea pltyp = selected_plan-pltyp bplan = selected_plan-bplan begda = selected_plan-pybeg endda = selected_plan-pyend desired_currency = header_info-curre reaction = reaction importing subrc = subrc tables existing_claims = spenda_claims_current error_table = error_table.

HR_BEN_SPENDA_FIRST_LAST_DAY call function 'HR_BEN_SPENDA_FIRST_LAST_DAY' exporting barea = header_info-barea bplan = selected_plan-bplan keydt = previous_pyend reaction = reaction importing first_day = previous_pybeg subrc = subrc tables error_table = error_table.

HR_BEN_READ_SPENDA_CLAIMS call function 'HR_BEN_READ_SPENDA_CLAIMS' exporting pernr = header_info-pernr barea = selected_plan-barea pltyp = selected_plan-pltyp bplan = selected_plan-bplan begda = previous_pybeg endda = previous_pyend desired_currency = header_info-curre reaction = reaction importing subrc = subrc tables existing_claims = spenda_claims_previous error_table = error_table.

HR_BEN_GET_TEXT_DOMVALUE call function 'HR_BEN_GET_TEXT_DOMVALUE' exporting domname = 'BEN_CLSTA' domvalue = claim_selection-clsta reaction = reaction importing text = txt_clsta subrc = subrc tables error_table = error_table.

HR_BEN_F4_VALUE_REQUEST call function 'HR_BEN_F4_VALUE_REQUEST' exporting retfield = 'RCPTY' dynpprog = repid dynpnr = dynnr dynprofield = 'RPBENSCL-RCPTY' display_mode = display_mode reaction = no_msg importing subrc = subrc tables value_tab = receipt_table error_table = error_table.

HR_BEN_GET_TEXT_DOMVALUE call function 'HR_BEN_GET_TEXT_DOMVALUE' exporting domname = 'BEN_CLSTA' domvalue = claim_not_yet_approved reaction = reaction importing text = txt_claim_status subrc = retcd tables error_table = error_table.

HR_BEN_HANDLE_ERROR call function 'HR_BEN_HANDLE_ERROR' exporting pernr = work_table_claims-pernr msg_class = msg_class8 msg_number = '009' msg_par1 = txt_claim_status severity = 0 reaction = reaction.

HR_BEN_GET_TEXT_DOMVALUE call function 'HR_BEN_GET_TEXT_DOMVALUE' exporting domname = 'BEN_CLSTA' domvalue = claim_rejected reaction = reaction importing text = txt_claim_status subrc = retcd tables error_table = error_table.

HR_BEN_HANDLE_ERROR call function 'HR_BEN_HANDLE_ERROR' exporting pernr = work_table_claims-pernr msg_class = msg_class8 msg_number = '009' msg_par1 = txt_claim_status severity = 0 reaction = reaction.

HR_BEN_HANDLE_ERROR call function 'HR_BEN_HANDLE_ERROR' exporting pernr = work_table_claims-pernr msg_class = msg_class8 msg_number = '010' severity = 0 reaction = reaction.

HR_BEN_OPERATE_ON_SPENDA_CLAIM





call function 'HR_BEN_OPERATE_ON_SPENDA_CLAIM' exporting claim_selection = claim_selection operation = insert nocommit = false lock_pernr = false reaction = no_msg importing return = return subrc = subrc tables error_table = error_table.

HR_BEN_OPERATE_ON_SPENDA_CLAIM call function 'HR_BEN_OPERATE_ON_SPENDA_CLAIM' exporting claim_selection = claim_selection existing_claim = existing_claim operation = modify nocommit = false lock_pernr = false reaction = no_msg importing return = return subrc = subrc tables error_table = error_table.

HR_BEN_OPERATE_ON_SPENDA_CLAIM call function 'HR_BEN_OPERATE_ON_SPENDA_CLAIM' exporting existing_claim = existing_claim operation = delete nocommit = false lock_pernr = false reaction = no_msg importing return = return subrc = subrc tables error_table = error_table.

HR_BEN_HANDLE_ERROR call function 'HR_BEN_HANDLE_ERROR' exporting pernr = pernr msg_class = msg_class8 msg_number = msg_number severity = 0 reaction = reaction.

HR_BEN_HANDLE_ERROR call function 'HR_BEN_HANDLE_ERROR' exporting pernr = pernr msg_class = return-id msg_number = return-number msg_par1 = return-message_v1 msg_par2 = return-message_v2 msg_par3 = return-message_v3 msg_par4 = return-message_v4 severity = 8 reaction = reaction.

HR_BEN_CHECK_SPENDA_CLAIM call function 'HR_BEN_CHECK_SPENDA_CLAIM' exporting * spenda_claim = claim_selection "Note 859263 existing_claim = existing_claim operation = operation reaction = no_msg importing test_status = test_status subrc = subrc tables test_errors = test_errors error_table = local_errors CHANGING spenda_claim = claim_selection. "Note 859263

HR_BEN_HANDLE_ERROR call function 'HR_BEN_HANDLE_ERROR' exporting pernr = local_errors-pernr msg_class = local_errors-class msg_number = local_errors-msgno msg_par1 = local_errors-msgv1 msg_par2 = local_errors-msgv2 msg_par3 = local_errors-msgv3 msg_par4 = local_errors-msgv4 severity = 0 reaction = reaction.

HR_BEN_HANDLE_ERROR call function 'HR_BEN_HANDLE_ERROR' exporting pernr = local_errors-pernr msg_class = local_errors-class msg_number = local_errors-msgno msg_par1 = local_errors-msgv1 msg_par2 = local_errors-msgv2 msg_par3 = local_errors-msgv3 msg_par4 = local_errors-msgv4 severity = 0 reaction = reaction.

POPUP_TO_CONFIRM_LOSS_OF_DATA call function 'POPUP_TO_CONFIRM_LOSS_OF_DATA' exporting textline1 = text-tl1 titel = text-tit start_column = 25 start_row = 6 importing answer = answer.

HR_BEN_CONVERT_CURRENCY call function 'HR_BEN_CONVERT_CURRENCY' exporting old_amount = fsa_balance-coppa old_curre = fsa_balance-currp new_curre = header_info-curre datum = header_info-valdt reaction = reaction importing new_amount = fsa_balance-coppa subrc = subrc tables error_table = error_table.

HR_BEN_CONVERT_CURRENCY call function 'HR_BEN_CONVERT_CURRENCY' exporting old_amount = fsa_balance-coypa old_curre = fsa_balance-currp new_curre = header_info-curre datum = header_info-valdt reaction = reaction importing new_amount = fsa_balance-coypa subrc = subrc tables error_table = error_table.

HR_BEN_CONVERT_CURRENCY call function 'HR_BEN_CONVERT_CURRENCY' exporting old_amount = fsa_balance-clppa old_curre = fsa_balance-currp new_curre = header_info-curre datum = header_info-valdt reaction = reaction importing new_amount = fsa_balance-clppa subrc = subrc tables error_table = error_table.

HR_BEN_CONVERT_CURRENCY call function 'HR_BEN_CONVERT_CURRENCY' exporting old_amount = fsa_balance-clypa old_curre = fsa_balance-currp new_curre = header_info-curre datum = header_info-valdt reaction = reaction importing new_amount = fsa_balance-clypa subrc = subrc tables error_table = error_table.

HR_BEN_CONVERT_CURRENCY call function 'HR_BEN_CONVERT_CURRENCY' exporting old_amount = fsa_balance-bappa old_curre = fsa_balance-currp new_curre = header_info-curre datum = header_info-valdt reaction = reaction importing new_amount = fsa_balance-bappa subrc = subrc tables error_table = error_table.

HR_BEN_CONVERT_CURRENCY call function 'HR_BEN_CONVERT_CURRENCY' exporting old_amount = fsa_balance-baypa old_curre = fsa_balance-currp new_curre = header_info-curre datum = header_info-valdt reaction = reaction importing new_amount = fsa_balance-baypa subrc = subrc tables error_table = error_table.

HR_BEN_CONVERT_CURRENCY call function 'HR_BEN_CONVERT_CURRENCY' exporting old_amount = fsa_balance-copaa old_curre = fsa_balance-curra new_curre = header_info-curre datum = header_info-valdt reaction = reaction importing new_amount = fsa_balance-copaa subrc = subrc tables error_table = error_table.

HR_BEN_CONVERT_CURRENCY call function 'HR_BEN_CONVERT_CURRENCY' exporting old_amount = fsa_balance-coyaa old_curre = fsa_balance-curra new_curre = header_info-curre datum = header_info-valdt reaction = reaction importing new_amount = fsa_balance-coyaa subrc = subrc tables error_table = error_table.

HR_BEN_CONVERT_CURRENCY call function 'HR_BEN_CONVERT_CURRENCY' exporting old_amount = fsa_balance-clpaa old_curre = fsa_balance-curra new_curre = header_info-curre datum = header_info-valdt reaction = reaction importing new_amount = fsa_balance-clpaa subrc = subrc tables error_table = error_table.

HR_BEN_CONVERT_CURRENCY call function 'HR_BEN_CONVERT_CURRENCY' exporting old_amount = fsa_balance-clyaa old_curre = fsa_balance-curra new_curre = header_info-curre datum = header_info-valdt reaction = reaction importing new_amount = fsa_balance-clyaa subrc = subrc tables error_table = error_table.

HR_BEN_CONVERT_CURRENCY call function 'HR_BEN_CONVERT_CURRENCY' exporting old_amount = fsa_balance-bapaa old_curre = fsa_balance-curra new_curre = header_info-curre datum = header_info-valdt reaction = reaction importing new_amount = fsa_balance-bapaa subrc = subrc tables error_table = error_table.




HR_BEN_CONVERT_CURRENCY call function 'HR_BEN_CONVERT_CURRENCY' exporting old_amount = fsa_balance-bayaa old_curre = fsa_balance-curra new_curre = header_info-curre datum = header_info-valdt reaction = reaction importing new_amount = fsa_balance-bayaa subrc = subrc tables error_table = error_table.

HR_BEN_SPENDA_FIRST_LAST_DAY call function 'HR_BEN_SPENDA_FIRST_LAST_DAY' exporting barea = spenda_plan-barea bplan = spenda_plan-bplan keydt = previous_endda not_get_first = true not_get_last = false reaction = no_log importing end_of_grace = previous_egrcl subrc = subrc 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 MPZ40F00 or its description.