SAP Reports / Programs | Payroll(PY) SAP PY

PCSEVCO0 SAP ABAP INCLUDE - documentation and ABAP source code







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

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:

HRCO_GET_LEGAL_DATE CALL FUNCTION 'HRCO_GET_LEGAL_DATE' EXPORTING aper = aper fire_date = gl_swco-fire_date hire_date = gl_swco-hire_date integ_date = gl_swco-integ_date contr_date = lc_change_cont legal_type = p_legal_type IMPORTING begda = lc_byear endda = lc_endda check = lc_check TABLES p0001 = it_p0001 ansvh = p_ansvh.

RP_CALC_DATE_IN_INTERVAL CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL' EXPORTING * date = aper-endda date = lc_endda days = 00 months = 03 signum = '-' years = 00 IMPORTING calc_date = lc_begda.

HRCO_GET_LEGAL_DATE CALL FUNCTION 'HRCO_GET_LEGAL_DATE' EXPORTING aper = aper fire_date = gl_swco-fire_date hire_date = gl_swco-hire_date integ_date = gl_swco-integ_date contr_date = lc_change_cont legal_type = p_legal_type minim_date = lc_begda IMPORTING begda = lc_begda endda = lc_endda check = lc_check TABLES p0001 = it_p0001 ansvh = p_ansvh.

RP_CALC_DATE_IN_INTERVAL CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL' EXPORTING date = lc_endda days = 00 months = 00 signum = '-' years = 01 IMPORTING calc_date = lc_begda.

DAYS_BETWEEN_TWO_DATES CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES' EXPORTING i_datum_bis = lc_begda i_datum_von = lc_endda i_kz_excl_von = '1' i_kz_incl_bis = '1' i_kz_ult_bis = '1' i_kz_ult_von = '1' i_stgmeth = '4' i_szbmeth = '1' IMPORTING e_tage = lc_ndayst EXCEPTIONS days_method_not_defined = 1 OTHERS = 2.

DAYS_BETWEEN_TWO_DATES CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES' EXPORTING i_datum_bis = lc_begda_susp i_datum_von = lc_endda_susp i_kz_excl_von = '1' i_kz_incl_bis = '1' i_kz_ult_bis = '1' i_kz_ult_von = '1' i_stgmeth = '4' i_szbmeth = '1' IMPORTING e_tage = lc_ndays_susp EXCEPTIONS days_method_not_defined = 1 OTHERS = 2.

DAYS_BETWEEN_TWO_DATES CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES' EXPORTING i_datum_bis = salary_hist-begda i_datum_von = salary_hist-endda i_kz_excl_von = '1' i_kz_incl_bis = '1' i_kz_ult_bis = '1' i_kz_ult_von = '1' i_stgmeth = '4' i_szbmeth = '1' IMPORTING e_tage = salary_hist-ndays EXCEPTIONS days_method_not_defined = 1 OTHERS = 2.

HRCO_GET_LEGAL_DATE CALL FUNCTION 'HRCO_GET_LEGAL_DATE' EXPORTING aper = aper fire_date = gl_swco-fire_date hire_date = gl_swco-hire_date integ_date = gl_swco-integ_date contr_date = lc_change_cont legal_type = p_legal_type IMPORTING begda = lc_byear endda = lc_endda check = lc_check TABLES p0001 = it_p0001 ansvh = p_ansvh.

HR_READ_INFOTYPE * CALL FUNCTION 'HR_READ_INFOTYPE' * EXPORTING * pernr = pernr-pernr * infty = '0829' * begda = aper-begda * endda = aper-endda * TABLES * infty_tab = p0829.

HRCO_SOCIAL_BENEFITS_BASES CALL FUNCTION 'HRCO_SOCIAL_BENEFITS_BASES' EXPORTING trprov = as-parm1 modif = lc_type_ee IMPORTING base = lc_advn_base lgartpy = lc_pay_lgart TABLES it_t7co29 = lc_it_t7co29 it_t7co27 = lc_it_t7co27 rt = lc_rt it = lc_it EXCEPTIONS error = 1 * OTHERS = 2 .

RP_CALC_DATE_IN_INTERVAL CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL' EXPORTING date = aper-endda days = 00 months = 03 signum = '-' years = 00 IMPORTING calc_date = lc_begda.

RP_CALC_DATE_IN_INTERVAL CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL' EXPORTING date = lc_endda days = 00 months = 00 signum = '-' years = 01 IMPORTING calc_date = lc_begda.

DAYS_BETWEEN_TWO_DATES CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES' EXPORTING i_datum_bis = lc_begda i_datum_von = lc_endda i_kz_excl_von = '1' i_kz_incl_bis = '1' i_kz_ult_bis = '1' i_kz_ult_von = '1' i_stgmeth = '4' i_szbmeth = '1' IMPORTING e_tage = lc_ndayst EXCEPTIONS days_method_not_defined = 1 OTHERS = 2.

DAYS_BETWEEN_TWO_DATES CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES' EXPORTING i_datum_bis = lc_begda_susp i_datum_von = lc_endda_susp i_kz_excl_von = '1' i_kz_incl_bis = '1' i_kz_ult_bis = '1' i_kz_ult_von = '1' i_stgmeth = '4' i_szbmeth = '1' IMPORTING e_tage = lc_ndays_susp EXCEPTIONS days_method_not_defined = 1 OTHERS = 2.

DAYS_BETWEEN_TWO_DATES CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES' EXPORTING i_datum_bis = salary_hist-begda i_datum_von = salary_hist-endda i_kz_excl_von = '1' i_kz_incl_bis = '1' i_kz_ult_bis = '1' i_kz_ult_von = '1' i_stgmeth = '4' i_szbmeth = '1' IMPORTING e_tage = salary_hist-ndays EXCEPTIONS days_method_not_defined = 1 OTHERS = 2.

HRCO_DAYS_BETWEEN_TWO_DATES CALL FUNCTION 'HRCO_DAYS_BETWEEN_TWO_DATES' EXPORTING begda = lc_bdate endda = p_p_advn_dpay modif = modif-mod0a divisor30 = pco00_check disabilities = p_check_disab IMPORTING days = p_workdays TABLES p0001 = p0001 coabs = coabs it_t7co07 = it_t7co07 * EXCEPTIONS * ERROR = 1 * OTHERS = 2 .

HR_READ_INFOTYPE * CALL FUNCTION 'HR_READ_INFOTYPE' * EXPORTING * pernr = pernr-pernr * infty = '0829' * begda = aper-begda * endda = aper-endda * TABLES * infty_tab = p0829.

HRCO_SOCIAL_BENEFITS_BASES CALL FUNCTION 'HRCO_SOCIAL_BENEFITS_BASES' EXPORTING trprov = as-parm1 modif = lc_type_ee IMPORTING base = lc_advn_base lgartpy = lc_pay_lgart TABLES it_t7co29 = ls_it_t7co29 it_t7co27 = ls_it_t7co27 rt = ls_rt it = ls_it EXCEPTIONS error = 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 PCSEVCO0 or its description.