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

PCMASKR2 SAP ABAP INCLUDE - Include PCMASKR2







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


INCLUDES used within this REPORT PCMASKR2

INCLUDE PCMASKR21. "SUBROUTINES FOR TAX


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' "LIUL9CK062877 * exporting * regno = itab-regno * evaluation_date = age_endda * importing * age_years = age_years * exceptions * evaluation_date_lt_birth_date = 1.

COMPUTE_YEARS_BETWEEN_DATES CALL FUNCTION 'COMPUTE_YEARS_BETWEEN_DATES' "LIUL9CK062877 EXPORTING first_date = p0021-fgbdt modify_interval = '' "KIMJEON20001125 second_date = age_endda IMPORTING years_between_dates = age_years EXCEPTIONS sequence_of_dates_not_valid = 1 OTHERS = 2.

HRPADKR_CALCULATE_AGE_BY_REGNO * call function 'HRPADKR_CALCULATE_AGE_BY_REGNO' "LIUL9CK062877 * exporting * regno = p0539-regno * evaluation_date = age_endda * importing * age_years = age_years * exceptions * evaluation_date_lt_birth_date = 1.

COMPUTE_YEARS_BETWEEN_DATES CALL FUNCTION 'COMPUTE_YEARS_BETWEEN_DATES' "LIUL9CK062877 EXPORTING first_date = p0002-gbdat modify_interval = '' "KIMJEON20001125 second_date = age_endda IMPORTING years_between_dates = age_years EXCEPTIONS sequence_of_dates_not_valid = 1 OTHERS = 2.

RP_LAST_DAY_OF_MONTHS CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS' EXPORTING day_in = tem_date IMPORTING last_day_of_month = pay_date EXCEPTIONS day_in_no_date = 1 OTHERS = 2.

CD_READ_DATE_RANGE_ACTUAL_NV CALL FUNCTION 'CD_READ_DATE_RANGE_ACTUAL_NV' EXPORTING begda = txb_begda endda = txb_endda TABLES rgdir_in = rgdir rgdir_out = tax_rgdir.

CD_READ_DATE_RANGE_ACTUAL_NV CALL FUNCTION 'CD_READ_DATE_RANGE_ACTUAL_NV' EXPORTING begda = prev_month endda = txb_endda TABLES rgdir_in = rgdir rgdir_out = tax_rgdir.

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.

HR_YEA_GETEXPENSE CALL FUNCTION 'HR_YEA_GETEXPENSE' EXPORTING employeenumber = pernr-pernr i_begda = tax_begda i_endda = tax_endda IMPORTING subrc = subrc expense_deduct = expense_deduct *<<>>N1483831 EXCEPTIONS read_infotype_error = 1 OTHERS = 2.

HR_KR_GET_TAX_BY_STT CALL FUNCTION 'HR_KR_GET_TAX_BY_STT' EXPORTING taxable_income = monthly_taxable dependent_num = dep_num child_num = chi_num date = stt_date IMPORTING determined_tax = monthly_tax "BAIW1082366 tax_endda "aper-chkdt EXCEPTIONS no_entry_for_date = 1 no_entry_in_t511p = 2 .

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING * (to be consistent with form routine CONVERT_TO...: use APER-BEGDA)



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