SAP Reports / Programs | Personnel Management | Personnel Administration | South Korea(PA-PA-KR) SAP PA

PCMASKR1 SAP ABAP INCLUDE - Form routines payroll functions Korea







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


Text pool values


Title: Form routines payroll functions Korea


INCLUDES used within this REPORT PCMASKR1

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:

HRPADKR_CALCULATE_AGE_BY_REGNO CALL FUNCTION 'HRPADKR_CALCULATE_AGE_BY_REGNO' EXPORTING regno = l_regno evaluation_date = target_date IMPORTING age_years = family_age EXCEPTIONS evaluation_date_lt_birth_date = 1.

COMPUTE_YEARS_BETWEEN_DATES CALL FUNCTION 'COMPUTE_YEARS_BETWEEN_DATES' EXPORTING first_date = p_p0021_fgbdt modify_interval = '' "KIMJEON20001125 second_date = p_wpbp_endda IMPORTING years_between_dates = p_family_age EXCEPTIONS sequence_of_dates_not_valid = 1 OTHERS = 2.

HR_COPY_TBUFF_TO_BUFFER CALL FUNCTION 'HR_COPY_TBUFF_TO_BUFFER' EXPORTING * DATABASE_TABLE = 'PCL2' clusterid = t500l-relid TABLES buffer = tbuff buffer_directory = buffer_dir EXCEPTIONS error_buffertab = 1 OTHERS = 2 .

PYXX_READ_PAYROLL_RESULT CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT' EXPORTING clusterid = t500l-relid employeenumber = pernr-pernr sequencenumber = pre_payroll_seqnr * READ_ONLY_BUFFER = ' ' read_only_international = 'X' 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_SEN_CALCULATE_COMPLETE CALL FUNCTION 'HR_SEN_CALCULATE_COMPLETE' EXPORTING id_pernr = pernr-pernr id_proce = 'SENI' id_calty = '1' id_begda = entry_dt id_endda = leave_dt * N1546120 Comment out below line * id_sel_date = entry_dt "N1531461 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.

CD_READ_DATE_RANGE_ACTUAL_NV CALL FUNCTION 'CD_READ_DATE_RANGE_ACTUAL_NV' EXPORTING begda = ave_begda endda = ave_endda TABLES rgdir_in = rgdir rgdir_out = ave_rgdir.

HR_KR_GET_SI_STANDARD_COMP CALL FUNCTION 'HR_KR_GET_SI_STANDARD_COMP' EXPORTING subty = krsi-subty date = krsi-begda month_comp_amt = m_applicable_amt IMPORTING stand_comp = m_standard_amt grade = m_grade EXCEPTIONS no_entry_for_grade = 1 no_entry_for_date = 2 no_entry_for_amount = 3 no_input = 4 grade_gt_9999 = 5.

CD_READ_DATE_RANGE_ACTUAL_NV CALL FUNCTION 'CD_READ_DATE_RANGE_ACTUAL_NV' EXPORTING begda = ave_begda endda = ave_endda TABLES rgdir_in = rgdir rgdir_out = ave_rgdir.

HR_LEAVING_DATE CALL FUNCTION 'HR_LEAVING_DATE' EXPORTING persnr = pernr-pernr begda = adj_period-begda endda = adj_period-endda TABLES leaving_dates = l_entry_dates EXCEPTIONS leaving_date_not_found = 1 pernr_not_assigned = 2 OTHERS = 3.

CD_READ_DATE_RANGE_ACTUAL_NV CALL FUNCTION 'CD_READ_DATE_RANGE_ACTUAL_NV' EXPORTING begda = adj_period-begda endda = adj_period-endda TABLES rgdir_in = rgdir rgdir_out = adj_rgdir.

HR_COPY_TBUFF_TO_BUFFER CALL FUNCTION 'HR_COPY_TBUFF_TO_BUFFER' EXPORTING * DATABASE_TABLE = 'PCL2' clusterid = t500l-relid TABLES buffer = tbuff buffer_directory = buffer_dir EXCEPTIONS error_buffertab = 1 OTHERS = 2 .

HR_IMPORT_RGDIR_FROM_PCLX CALL FUNCTION 'HR_IMPORT_RGDIR_FROM_PCLX' EXPORTING employee_number = pernr-pernr cluster_id = t500l-relid TABLES import_rgdir = p_rgdir EXCEPTIONS no_results = 1 no_read_authority = 2 OTHERS = 3.

PYXX_READ_RGDIR_PAYRESULTS CALL FUNCTION 'PYXX_READ_RGDIR_PAYRESULTS' EXPORTING clusterid = t500l-relid employeenumber = pernr-pernr * READ_ONLY_BUFFER = read_only_international = 'X' TABLES rgdir = p_rgdir imported_periods = t_results EXCEPTIONS import_error = 1 OTHERS = 2.

HR_SEN_CALCULATE_COMPLETE CALL FUNCTION 'HR_SEN_CALCULATE_COMPLETE' "LIU543608 EXPORTING id_pernr = pernr-pernr id_proce = t7krs8-perul id_calty = '1' id_begda = l_begda id_endda = l_endda id_sel_date = aper-bondt "BAIW1068661 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_ROUND_NUMBER CALL FUNCTION 'HR_ROUND_NUMBER' EXPORTING rnd_rdtyp = t7krs8-rdtyp CHANGING rnd_number = months EXCEPTIONS rule_not_found = 1 OTHERS = 2.

CD_READ_DATE_RANGE_ACTUAL_NV CALL FUNCTION 'CD_READ_DATE_RANGE_ACTUAL_NV' EXPORTING begda = begin_date endda = end_date TABLES rgdir_in = rgdir rgdir_out = tem_rgdir.

HR_TIME_RESULTS_GET CALL FUNCTION 'HR_TIME_RESULTS_GET' EXPORTING get_pernr = pernr-pernr get_pabrj = p_pabrj get_pabrp = p_pabrp get_cltyp = '1' TABLES get_zl = zh EXCEPTIONS no_period_specified = 1 wrong_cluster_version = 2 no_read_authority = 3 cluster_archived = 4 technical_error = 5 OTHERS = 6.

HR_ENTRY_DATE CALL FUNCTION 'HR_ENTRY_DATE' EXPORTING persnr = pernr-pernr IMPORTING entrydate = p_krsp1_lspdt TABLES entry_dates = l_entry_dates.

HR_LEAVING_DATE





CALL FUNCTION 'HR_LEAVING_DATE' EXPORTING persnr = pernr-pernr begda = low-date endda = high-date TABLES leaving_dates = l_entry_dates EXCEPTIONS leaving_date_not_found = 1 pernr_not_assigned = 2 OTHERS = 3.

HR_LEAVING_DATE * call function 'HR_LEAVING_DATE' "HANSAN09052000 * exporting * persnr = pernr-pernr * begda = low-date * endda = aper-pendd * importing * leavingdate = tax_endda * tables * leaving_dates = l_entry_dates * exceptions * leaving_date_not_found = 1 * pernr_not_assigned = 2 * others = 3.

HRPY_CD_READ_LAST_KR CALL FUNCTION 'HRPY_CD_READ_LAST_KR' EXPORTING year = p_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.

RP_LAST_DAY_OF_MONTHS CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS' EXPORTING day_in = krsi-begda IMPORTING last_day_of_month = last_day EXCEPTIONS DAY_IN_NO_DATE = 1 OTHERS = 2.

HR_KR_GET_SI_RATE CALL FUNCTION 'HR_KR_GET_SI_RATE' EXPORTING INFTY = '0543' SUBTY = krsi-subty SIGRP = p_sigrp KDATE = krsi-endda IMPORTING si_rate = p_otab EXCEPTIONS NO_ENTRY_7KRIC = 1 NO_ENTRY_FOR_RATE = 2 OTHERS = 3.

CD_READ_DATE_RANGE_ACTUAL_NV CALL FUNCTION 'CD_READ_DATE_RANGE_ACTUAL_NV' EXPORTING begda = p_begda endda = p_endda TABLES rgdir_in = rgdir rgdir_out = adj_rgdir.

CD_READ_DATE_RANGE_ACTUAL_NV CALL FUNCTION 'CD_READ_DATE_RANGE_ACTUAL_NV' EXPORTING begda = p_begda endda = p_endda TABLES rgdir_in = rgdir rgdir_out = ls_rgdir.

HR_KR_GET_SP_PROMOTION_DATE CALL FUNCTION 'HR_KR_GET_SP_PROMOTION_DATE' "Promotion Date EXPORTING pernr = pernr-pernr keydate = aper-bondt IMPORTING promotion_date = l_prom_dt EXCEPTIONS OTHERS = 1.

HR_KR_GET_TIME_BETWEEN_DATES

HR_GET_TIME_BETWEEN_DATES CALL FUNCTION 'HR_KR_GET_TIME_BETWEEN_DATES' * CALL FUNCTION 'HR_GET_TIME_BETWEEN_DATES' *>>> N1841568 Terry End EXPORTING beg_date = p_begda end_date = p_endda IMPORTING days = l_days months = l_months years = l_years EXCEPTIONS invalid_period = 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 PCMASKR1 or its description.