SAP Reports / Programs | Payroll | South Korea(PY-KR) SAP PY

PCMASKR21 SAP ABAP INCLUDE - Include PCMASKR21







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


Text pool values


Title: Include PCMASKR21


INCLUDES used within this REPORT PCMASKR21

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_KR_GET_TAX_RATE CALL FUNCTION 'HR_KR_GET_TAX_RATE' EXPORTING date = tax_endda txamt = taxable_income IMPORTING txrte = txrate tpamt = txpamt * tax_rate_tab_line = EXCEPTIONS no_entry_for_txrte = 1 no_entry_for_date = 2 no_input = 4 OTHERS = 5.

HR_KR_GET_TAX_RATE CALL FUNCTION 'HR_KR_GET_TAX_RATE' EXPORTING date = tax_endda txamt = taxable_income IMPORTING txrte = txrate tpamt = txpamt * tax_rate_tab_line = EXCEPTIONS no_entry_for_txrte = 1 no_entry_for_date = 2 no_input = 4 OTHERS = 5.

HRPY_CD_READ_LAST_KR CALL FUNCTION 'HRPY_CD_READ_LAST_KR' EXPORTING year = pre_year IMPORTING out_seqnr = out_rgdir-seqnr TABLES rgdir = new_rgdir EXCEPTIONS no_record_found = 1 no_entry_t549a = 2 no_entry_t54c1 = 3 OTHERS = 4.

HR_KR_GET_TAX_RATE CALL FUNCTION 'HR_KR_GET_TAX_RATE' EXPORTING date = sep_tax_date "guost N1320298 txamt = taxable_annual IMPORTING txrte = txrate tpamt = txpamt * tax_rate_tab_line = EXCEPTIONS no_entry_for_txrte = 1 no_entry_for_date = 2 no_input = 4 OTHERS = 5.

HRVE_GET_TIME_BETWEEN_DATES

HR_GET_TIME_BETWEEN_DATES

HR_KR_GET_TIME_BETWEEN_DATES * CALL FUNCTION 'HRVE_GET_TIME_BETWEEN_DATES' "CLC Note1119154 *<<< N1841568 Terry Begin * CALL FUNCTION 'HR_GET_TIME_BETWEEN_DATES' "CLC Note1119154 CALL FUNCTION 'HR_KR_GET_TIME_BETWEEN_DATES' *>>> N1841568 Terry End EXPORTING beg_date = p_entry_date end_date = p_mid_date IMPORTING days = mid_days months = mid_months years = mid_years EXCEPTIONS invalid_period = 1 OTHERS = 2.

CU_READ_RGDIR CALL FUNCTION 'CU_READ_RGDIR' EXPORTING persnr = p_pernr_pernr TABLES in_rgdir = rgdir EXCEPTIONS "Checkman Error no_record_found = 1 others = 2.

PYXX_READ_PAYROLL_RESULT * CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT' * exporting * clusterid = t500l-relid * employeenumber = p_pernr_pernr * sequencenumber = rgdir-seqnr * changing * payroll_result = result * EXCEPTIONS * illegal_isocode_or_clusterid = 1 * error_generating_import = 2 * import_mismatch_error = 3 * subpool_dir_full = 4 * no_read_authority = 5 * no_record_found = 6 * versions_do_not_match = 7 * OTHERS = 8.

PYXX_READ_PAYROLL_RESULT CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT' exporting clusterid = t500l-relid employeenumber = p_pernr_pernr sequencenumber = rgdir-seqnr changing payroll_result = result EXCEPTIONS illegal_isocode_or_clusterid = 1 error_generating_import = 2 import_mismatch_error = 3 subpool_dir_full = 4 no_read_authority = 5 no_record_found = 6 versions_do_not_match = 7 OTHERS = 8.

HR_READ_INFOTYPE call function 'HR_READ_INFOTYPE' exporting tclas = 'A' pernr = persnr infty = '0001' begda = begda endda = endda importing subrc = retcd tables infty_tab = p0001.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = 'A' pernr = persnr infty = '0041' begda = begda endda = endda IMPORTING subrc = retcd TABLES infty_tab = p0041 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_SEN_CALCULATE_COMPLETE CALL FUNCTION 'HR_SEN_CALCULATE_COMPLETE' "LIU543608 EXPORTING id_pernr = pernr-pernr id_proce = t7krs8-tperl id_calty = '1' id_begda = begin_date id_endda = end_date *<<< N1488219 * id_sel_date = aper-bondt "BAIW1068661 id_sel_date = sel_date *>>> N1488219 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.

HR_GET_TIME_BETWEEN_DATES

HR_KR_GET_TIME_BETWEEN_DATES * CALL FUNCTION 'HR_GET_TIME_BETWEEN_DATES' CALL FUNCTION 'HR_KR_GET_TIME_BETWEEN_DATES' *>>> N1841568 Terry End EXPORTING beg_date = begin_date end_date = end_date IMPORTING days = s_days months = s_months years = s_years EXCEPTIONS invalid_period = 1 OTHERS = 2.

HR_SEN_CALCULATE_COMPLETE CALL FUNCTION 'HR_SEN_CALCULATE_COMPLETE' "LIU543608 EXPORTING id_pernr = pernr-pernr id_proce = t7krs8-tperl id_calty = '1' id_begda = begin_date id_endda = '20121231' id_sel_date = sel_date 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.

HR_GET_TIME_BETWEEN_DATES

HR_KR_GET_TIME_BETWEEN_DATES * CALL FUNCTION 'HR_GET_TIME_BETWEEN_DATES' CALL FUNCTION 'HR_KR_GET_TIME_BETWEEN_DATES' *>>> N1841568 Terry End EXPORTING beg_date = begin_date end_date = '20121231' IMPORTING days = s_days months = s_months years = s_years EXCEPTIONS invalid_period = 1 OTHERS = 2.

HRVE_GET_TIME_BETWEEN_DATES

HR_GET_TIME_BETWEEN_DATES

HR_KR_GET_TIME_BETWEEN_DATES * CALL FUNCTION 'HRVE_GET_TIME_BETWEEN_DATES' "CLC Note1119154 *<<< N1841568 Terry Begin * CALL FUNCTION 'HR_GET_TIME_BETWEEN_DATES' "CLC Note1119154 CALL FUNCTION 'HR_KR_GET_TIME_BETWEEN_DATES' *>>> N1841568 Terry End EXPORTING beg_date = entry_date end_date = leave_day IMPORTING days = s_days months = s_months years = s_years EXCEPTIONS invalid_period = 1 OTHERS = 2.

HR_KR_BUSINESSPLACE_GET_DATA





CALL FUNCTION 'HR_KR_BUSINESSPLACE_GET_DATA' EXPORTING PERS_AREA = P0001-WERKS PERS_SUBAREA = P0001-BTRTL mode = ' ' address_nation = addr_version IMPORTING bus_place_detail = bupla_detail EXCEPTIONS no_company_code_for_pers_area = 1 no_busplace_for_subarea = 2 no_med_ins_assoc_for_subarea = 3 no_rep_busplace_for_mi_assoc = 4 no_entry_t7krbp_for_bupla = 5 no_businessplace_data = 6 illegal_mode = 7 OTHERS = 8.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = pernr-pernr infty = '0858' begda = tax_begda endda = tax_endda IMPORTING subrc = subrc TABLES infty_tab = it0858 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

CD_SELECT_DATE_RANGE CALL FUNCTION 'CD_SELECT_DATE_RANGE' " EXPORTING " fpper_begda = p_begda " fpper_endda = p_endda " TABLES " in_rgdir = rgdir " out_rgdir = l_rgdir1. "

CD_SELECT_SRTZA CALL FUNCTION 'CD_SELECT_SRTZA' " EXPORTING " record_type = 'A' " TABLES " in_rgdir = l_rgdir1 " out_rgdir = l_rgdir2. "

CD_SELECT_VOID CALL FUNCTION 'CD_SELECT_VOID' " EXPORTING " void_indicator = ' ' " TABLES " in_rgdir = l_rgdir2 " out_rgdir = l_rgdir1. "

HRPY_CD_READ_LAST_KR CALL FUNCTION 'HRPY_CD_READ_LAST_KR' EXPORTING year = pre_year IMPORTING out_seqnr = out_rgdir-seqnr TABLES rgdir = new_rgdir EXCEPTIONS no_record_found = 1 no_entry_t549a = 2 no_entry_t54c1 = 3 OTHERS = 4.



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