SAP Reports / Programs | Payroll | Payroll: General Parts | Reuse Services for Country Development(PY-XX-RS) SAP PY

MPBWXF01 SAP ABAP INCLUDE - documentation and ABAP source code







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

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:

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING titel = titel textline1 = text1 textline2 = text2 defaultoption = 'N' IMPORTING answer = answer.

HR_HEADER_GET CALL FUNCTION 'HR_HEADER_GET' EXPORTING dhdid = hid begda = begda tclas = tclas molga = molga pernr = bwsel-pernr IMPORTING prog = gen_prog dnum = gen_dynnr EXCEPTIONS header_deactivated = 1 header_unknown = 2 header_generate_deactivated = 3 header_generate_failed = 4 internal_error = 5 OTHERS = 6.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = 'A' pernr = bwsel-pernr infty = '0001' begda = begda endda = endda TABLES infty_tab = p0001 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

P_EMPLOYEE_CHECKEXISTENCE CALL FUNCTION 'P_EMPLOYEE_CHECKEXISTENCE' EXPORTING object_id = bwsel-pernr EXCEPTIONS employee_not_found = 1 OTHERS = 2.

HR_COUNTRYGROUPING_GET CALL FUNCTION 'HR_COUNTRYGROUPING_GET' EXPORTING pernr = bwsel-pernr IMPORTING molga = get_molga EXCEPTIONS not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = 'A' pernr = bwsel-pernr infty = '0001' begda = lowdate endda = highdate TABLES infty_tab = p0001 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = 'A' pernr = bwsel-pernr infty = '0003' begda = lowdate endda = highdate TABLES infty_tab = p0003 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

PA03_PCR_READ CALL FUNCTION 'PA03_PCR_READ' EXPORTING f_abkrs = l_abkrs "XIJ-N#0384880 * f_abkrs = p0001-abkrs "XIJ-N#0384880 IMPORTING f_state = status f_current_period = l_period "XGFL9CK001071 f_current_year = l_year "XGFL9CK001071 EXCEPTIONS abkrs_no_accounting = 1 pcr_does_not_exist = 2 abkrs_does_not_exist = 3 period_does_not_exist = 4 OTHERS = 5.

RP_GET_CURRENCY CALL FUNCTION 'RP_GET_CURRENCY' EXPORTING molga = molga begda = sy-datum "#EC DOM_EQUAL endda = sy-datum "#EC DOM_EQUAL IMPORTING waers = bwsel-waers EXCEPTIONS molga_not_in_t001p = 1 no_entry_found_in_table_t001 = 2 no_entry_found_in_table_t500p = 3 no_entry_found_in_table_t500c = 4 OTHERS = 5.

ARCHIV_GET_CONNECTIONS CALL FUNCTION 'ARCHIV_GET_CONNECTIONS' EXPORTING objecttype = object object_id = objectid client = sy-mandt from_ar_date = adslow until_ar_date = adshigh IMPORTING count = objcount TABLES connections = objconn EXCEPTIONS nothing_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = 'A' pernr = pernr infty = '0001' begda = lowdate endda = highdate TABLES infty_tab = p0001 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

ARCHIVOBJECT_DISPLAY CALL FUNCTION 'ARCHIVOBJECT_DISPLAY' EXPORTING archiv_doc_id = it_adarc-objconn-arc_doc_id archiv_id = it_adarc-objconn-archiv_id objecttype = it_adarc-objconn-sap_object object_id = it_adarc-objconn-object_id ar_object = it_adarc-objconn-ar_object window_id = it_adarc-objconn-ar_object"#EC DOM_EQUAL window_title = 'Bescheinigungswesen'(007) doc_type = doctype EXCEPTIONS error_archiv = 1 error_communicationtable = 2 error_kernel = 3 OTHERS = 4 .

ARCHIV_DELETE_META CALL FUNCTION 'ARCHIV_DELETE_META' EXPORTING archiv_id = it_adarc-objconn-archiv_id arc_doc_id = it_adarc-objconn-arc_doc_id ar_object = it_adarc-objconn-ar_object delete_flag = 2 "Verkn.+Obj. 3=nur Verkn.

HR_DE_BW_ASYNC_CREATION CALL FUNCTION 'HR_DE_BW_ASYNC_CREATION' STARTING NEW TASK 'ASYNC' EXPORTING barea = g_barea "XGFPH0K001341 dsgfl = dsgfl "XIJAL0K067885 dssfl = dssfl "XIJAL0K067885 TABLES quicktab = it_quicka.

HR_GET_OBJECTS_DIALOG CALL FUNCTION 'HR_GET_OBJECTS_DIALOG' EXPORTING window_title = 'Personenselektion'(019) * STARTING_X = 1 * STARTING_Y = 1 * ENDING_X = 110 * ENDING_Y = 30 * CUSTOM_EXIT_BUTTON = ' ' * CE_BUTTON_TEXT = * SHOW_VALUE_SELECTION = 'X' * SHOW_VALUE_OUTPUT = ' ' * SHOW_TEXT_SELECTION = ' ' * SHOW_TEXT_OUTPUT = ' ' * SHOW_SELECTION = ' ' * SHOW_OUTPUT = ' ' * LOCK_EVALUATION_PERIOD = ' ' * HIDE_EVALUATION_PERIOD = ' ' * LOCK_EVALUATION_SET = ' ' * HIDE_EVALUATION_SET = ' ' * RECURSIVE_SELECTION_POSSIBLE = 'X' * HIDE_FOOTER = ' ' infoset = adh_sgname workspace = adh_wsid plvar = '01' otype = c_otype * GROUPID = ' ' * SELID_FIXED = ' ' * SELID_IN = * SELID_FOR_SAVE = * SAVE_SELID_ON_EXIT = ' ' * SAVE_WITHOUT_GROUPID = ' ' * NO_SAVE_MESSAGE = ' ' * SELECT_ON_EXIT = ' ' objects_in = li_pernr_in * condition_table_in = * OUTPUT_FIELDS_IN = * DOCKING_RATIO = 40 IMPORTING * OUTPUT_FIELDS_OUT = * SELID_SAVED_OUT = objects_out = li_pernr_out CHANGING begda = adh_begda endda = adh_endda * TIMED = ' ' * TRANSPORT = 'X' EXCEPTIONS action_canceled = 1 ce_button_pressed = 2 * NO_FUNCAREA_FOR_SELECTION = 3 begda_greater_endda = 4 internal_error = 5 no_hr_funcarea = 6 no_selection_for_funcarea = 7 wrong_otype_in_funcarea = 8 funcarea_not_found = 9 only_selid_or_conditions = 10 missing_selid_field_in_fa = 11 OTHERS = 12.

HR_DE_BW_ASYNC_CREATION CALL FUNCTION 'HR_DE_BW_ASYNC_CREATION' STARTING NEW TASK 'ASYNC' EXPORTING barea = g_barea dsgfl = dsgfl dssfl = dssfl dsb2a = dsb2a TABLES quicktab = it_quicka.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = 'A' pernr = h_adarc-pernr infty = '0001' begda = h_adarc-cdate endda = h_adarc-cdate IMPORTING subrc = orgrc TABLES infty_tab = it0001 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' "! EXPORTING "! tclas = 'A' "! pernr = h_adarc-pernr "! infty = '0008' "! begda = h_adarc-cdate "! endda = h_adarc-cdate "! IMPORTING "! subrc = orgrc8 "! TABLES "! infty_tab = it0008 "! EXCEPTIONS "! infty_not_found = 1 "! OTHERS = 2. "!

HR_READ_INFOTYPE





CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = 'A' pernr = bwsel-pernr infty = '0001' begda = p_endda endda = p_endda TABLES infty_tab = p0001 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

POPUP_GET_VALUES CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING * NO_VALUE_CHECK = ' ' popup_title = headline * START_COLUMN = '5' * START_ROW = '5' IMPORTING returncode = return TABLES fields = l_felder * EXCEPTIONS * ERROR_IN_FIELDS = 1 * OTHERS = 2 .

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = 'A' pernr = bwsel-pernr infty = '0001' begda = bwsel-date1 endda = bwsel-date1 * BYPASS_BUFFER = ' ' * IMPORTING * SUBRC = TABLES infty_tab = p0001 EXCEPTIONS infty_not_found = 1 OTHERS = 2 .

HR_GET_REPORTING_COMPANY CALL FUNCTION 'HR_GET_REPORTING_COMPANY' EXPORTING p_molga = molga p_appl = 'BWDE' p_werks = p0001-werks p_btrtl = p0001-btrtl p_struc = l_pme01 p_date = bwsel-date1 IMPORTING werks_sum = l_werks_sum btrtl_sum = l_btrtl_sum EXCEPTIONS rep_comp_not_found = 1 OTHERS = 2.

HR_GET_REPORTING_COMPANY_DATA CALL FUNCTION 'HR_GET_REPORTING_COMPANY_DATA' EXPORTING p_molga = molga p_appl = 'BWVS' p_werks_sum = l_werks_sum p_btrtl_sum = l_btrtl_sum * P_VAKEY = p_date = bwsel-date1 p_anart = '/A' IMPORTING * SENDER = * ADDRESS = * INFODATA = data = l_bwvs_data EXCEPTIONS rep_comp_not_found = 1 address_not_found = 2 sender_not_found = 3 clerk_not_found = 4 version_mismatch = 5 OTHERS = 6 .

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = 'A' pernr = bwsel-pernr infty = '2001' * BEGDA = '18000101' * ENDDA = '99991231' * BYPASS_BUFFER = ' ' * IMPORTING * SUBRC = TABLES infty_tab = p2001 EXCEPTIONS infty_not_found = 1 OTHERS = 2 .

HR_GET_PAYROLL_RESULTS CALL FUNCTION 'HR_GET_PAYROLL_RESULTS' EXPORTING pernr = bwsel-pernr * PERMO = 01 pabrj = p_begda(4) pabrp = p_begda+4(2) pabrj_end = p_endda(4) pabrp_end = p_endda+4(2) inper_act = l_period "XIJ-N#0803049 actual = 'X' "XIJ-N#0803049 arch_too = 'X' "XIJ-N#0719102 TABLES result_tab = l_payroll_result EXCEPTIONS no_results = 1 error_in_currency_conversion = 2 t500l_entry_not_found = 3 period_mismatch_error = 4 t549q_entry_not_found = 5 internal_error = 6 OTHERS = 7 .

HR_DE_BW_COLLECT_DATASET CALL FUNCTION 'HR_DE_BW_COLLECT_DATASET' EXPORTING p_test = ' ' p_prot = ' ' p_tdata = ' ' TABLES t_admin = p_it_p01w_admin_01 t_glbid = p_it_glbid_list * T_PROT = EXCEPTIONS update_error = 1 no_zav_kasse = 2 no_zav_sender = 3 OTHERS = 4.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING * TCLAS = 'A' pernr = p_pernr infty = '0001' * BEGDA = '18000101' * ENDDA = '99991231' * BYPASS_BUFFER = ' ' * LEGACY_MODE = ' ' IMPORTING subrc = l_subrc TABLES infty_tab = l_it_0001 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 MPBWXF01 or its description.