SAP Reports / Programs | Personnel Management | Personnel Administration | Japan(PA-PA-JP) SAP PA

MP320340 SAP ABAP INCLUDE - documentation and ABAP source code







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

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_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = p3203-pernr infty = '0000' begda = p3203-leadt endda = p3203-leadt IMPORTING subrc = iv_subrc TABLES infty_tab = p0000 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

VRM_SET_VALUES CALL FUNCTION 'VRM_SET_VALUES' EXPORTING id = ic_dynfnam(80) values = lt_vrm_value EXCEPTIONS id_illegal_name = 1 OTHERS = 2.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = gc_field_learn value_org = 'S' TABLES value_tab = lt_leasn EXCEPTIONS parameter_error = 1 no_values_found = 2 OTHERS = 3.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = p3203-pernr infty = '0001' begda = p3203-leadt endda = p3203-leadt IMPORTING subrc = lv_subrc1 TABLES infty_tab = p0001 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = p3203-pernr infty = '0008' begda = p3203-leadt endda = p3203-leadt IMPORTING subrc = lv_subrc2 TABLES infty_tab = p0008 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_FEATURE_BACKFIELD CALL FUNCTION 'HR_FEATURE_BACKFIELD' EXPORTING feature = '22LGR' struc_content = pme03 IMPORTING back = lv_leagr EXCEPTIONS dummy = 1 error_operation = 2 no_backvalue = 3 feature_not_generated = 4 invalid_sign_in_funid = 5 field_in_report_tab_in_pe03 = 6 OTHERS = 7.

HR_ENTRY_DATE CALL FUNCTION 'HR_ENTRY_DATE' EXPORTING persnr = p3203-pernr endda = iv_date IMPORTING entrydate = cv_date EXCEPTIONS entry_date_not_found = 1 pernr_not_assigned = 2 OTHERS = 3.

HR_FEATURE_BACKFIELD CALL FUNCTION 'HR_FEATURE_BACKFIELD' EXPORTING feature = '22SEN' struc_content = p22se IMPORTING back = lv_proce EXCEPTIONS dummy = 1 error_operation = 2 no_backvalue = 3 feature_not_generated = 4 invalid_sign_in_funid = 5 field_in_report_tab_in_pe03 = 6 OTHERS = 7.

HR_SEN_CALCULATE_COMPLETE CALL FUNCTION 'HR_SEN_CALCULATE_COMPLETE' EXPORTING id_pernr = p3203-pernr id_proce = lv_proce id_calty = '1' id_sel_date = p3203-leadt id_begda = p3203-sendt id_endda = p3203-leadt IMPORTING es_duration = ls_duration EXCEPTIONS wrong_import_parameter = 1 wrong_calculation_type = 2 process_not_found = 3 process_pstep_not_found = 4 no_result_for_calty = 5 error_of_other_functions = 6 OTHERS = 7.

HR_SEN_CALCULATE_COMPLETE CALL FUNCTION 'HR_SEN_CALCULATE_COMPLETE' EXPORTING id_pernr = p3203-pernr id_proce = lv_proce id_calty = '1' id_sel_date = p3203-leadt id_begda = p3203-entdt id_endda = p3203-leadt IMPORTING es_duration = ls_duration EXCEPTIONS wrong_import_parameter = 1 wrong_calculation_type = 2 process_not_found = 3 process_pstep_not_found = 4 no_result_for_calty = 5 error_of_other_functions = 6 OTHERS = 7.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = 'A' pernr = p3203-pernr infty = '0001' begda = p3203-leadt endda = p3203-leadt IMPORTING subrc = iv_subrc TABLES infty_tab = p0001 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_FEATURE_BACKFIELD CALL FUNCTION 'HR_FEATURE_BACKFIELD' EXPORTING feature = iv_feature_name struc_content = pme02 IMPORTING back = iv_back EXCEPTIONS dummy = 1 error_operation = 2 no_backvalue = 3 feature_not_generated = 4 invalid_sign_in_funid = 5 field_in_report_tab_in_pe03 = 6 OTHERS = 7.

RP_GET_CURRENCY CALL FUNCTION 'RP_GET_CURRENCY' EXPORTING molga = t001p-molga begda = sy-datum endda = sy-datum IMPORTING waers = cv_waers EXCEPTIONS OTHERS = 1.

RP_GET_CURRENCY CALL FUNCTION 'RP_GET_CURRENCY' EXPORTING molga = t001p-molga begda = p3203-leadt endda = p3203-leadt IMPORTING waers = cv_waers EXCEPTIONS OTHERS = 1.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'LGART' value_org = 'S' TABLES value_tab = lt_lgart EXCEPTIONS parameter_error = 1 no_values_found = 2 OTHERS = 3.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = gc_field_reitm value_org = 'S' TABLES value_tab = lt_item EXCEPTIONS parameter_error = 1 no_values_found = 2 OTHERS = 3.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING text_question = text-001 display_cancel_button = space IMPORTING answer = lv_answer.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING text_question = text-001 display_cancel_button = space IMPORTING answer = lv_answer.

HR_READ_INFOTYPE





CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = p3203-pernr infty = '0000' begda = p3203-leadt endda = p3203-leadt IMPORTING subrc = lv_subrc1 TABLES infty_tab = p0000 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = p3203-pernr infty = '0001' begda = p3203-leadt endda = p3203-leadt IMPORTING subrc = lv_subrc2 TABLES infty_tab = p0001 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_FEATURE_BACKFIELD CALL FUNCTION 'HR_FEATURE_BACKFIELD' EXPORTING feature = '22RET' struc_content = p22it IMPORTING back = lv_itmus EXCEPTIONS dummy = 1 error_operation = 2 no_backvalue = 3 feature_not_generated = 4 invalid_sign_in_funid = 5 field_in_report_tab_in_pe03 = 6 OTHERS = 7.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = 'A' pernr = p3203-pernr infty = '3204' begda = iv_date endda = iv_date IMPORTING subrc = iv_subrc TABLES infty_tab = it3204 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = 'A' pernr = iv_pernr infty = '0145' begda = iv_date endda = iv_date IMPORTING subrc = lv_subrc TABLES infty_tab = p0145 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = p3203-pernr infty = '0001' begda = p3203-leadt endda = p3203-leadt IMPORTING subrc = lv_subrc TABLES infty_tab = p0001 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_FEATURE_BACKFIELD CALL FUNCTION 'HR_FEATURE_BACKFIELD' EXPORTING feature = '22RTD' struc_content = pme02 IMPORTING back = lv_flag EXCEPTIONS dummy = 1 error_operation = 2 no_backvalue = 3 feature_not_generated = 4 invalid_sign_in_funid = 5 field_in_report_tab_in_pe03 = 6 OTHERS = 7.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = 'A' pernr = p3203-pernr infty = '3204' begda = p3203-leadt endda = p3203-leadt IMPORTING subrc = iv_subrc TABLES infty_tab = it3204 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = fs_it3204-paydt foreign_amount = -retal foreign_currency = -waers local_currency = fs_it3204-waers IMPORTING local_amount = lv_retal EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = -paydt foreign_amount = -retal foreign_currency = -waers local_currency = q3203_allow-waral IMPORTING local_amount = lv_retal EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = p3203-pernr infty = '0001' begda = iv_date endda = iv_date IMPORTING subrc = lv_subrc TABLES infty_tab = it_p0001 EXCEPTIONS infty_not_found = 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 MP320340 or its description.