SAP Reports / Programs | Payroll(PY) SAP PY

PCSUBCO0 SAP ABAP INCLUDE - documentation and ABAP source code







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

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_RETRIEVE_T511K_BY_MOLGA CALL FUNCTION 'HRCO_RETRIEVE_T511K_BY_MOLGA' EXPORTING p_molga = pco00_molga p_begda = p_begda p_endda = p_endda TABLES local_t511k = lc_it_511k EXCEPTIONS OTHERS = 1.

HRCO_RETRIEVE_T511P_BY_MOLGA CALL FUNCTION 'HRCO_RETRIEVE_T511P_BY_MOLGA' EXPORTING p_molga = pco00_molga p_begda = p_begda p_endda = p_endda TABLES local_t511p = lc_it_511p EXCEPTIONS OTHERS = 1.

HRCO_GET_PERIODS_FOR_MONTH CALL FUNCTION 'HRCO_GET_PERIODS_FOR_MONTH' EXPORTING aper = aper TABLES p_periods = lc_periods * EXCEPTIONS * ERROR = 1 * OTHERS = 2 .

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

RP_CALC_DATE_IN_INTERVAL CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL' EXPORTING date = p_bdate days = 01 months = 00 signum = '+' years = 00 IMPORTING calc_date = p_bdate.

RP_CALC_DATE_IN_INTERVAL CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL' EXPORTING date = p_bdate days = 01 months = 00 signum = '+' years = 00 IMPORTING calc_date = p_bdate.

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

HRCO_NEW_MONTH_PER_CRT CALL FUNCTION 'HRCO_NEW_MONTH_PER_CRT' EXPORTING abkrs = aper-abkrs begda = aper-begda bondt = aper-bondt datmo = t549a-datmo molga = pco00_molga paper = lc_help_paper payid = aper-payid payty = aper-payty permo = aper-permo seqnr = aper-seqnr log = lc_prtflag cumty = p_cumty TABLES crt = ocrt * new_rgdir = new_rgdir new_rgdir = new_rgdir_1 logtext = ptext errortext = error_ptext CHANGING "XAIPH4K026978 nmodif = p_change_period EXCEPTIONS clean_up_failed = 1 no_entry_found = 2 OTHERS = 3.

HRCO_GET_PERIODS_FOR_MONTH CALL FUNCTION 'HRCO_GET_PERIODS_FOR_MONTH' EXPORTING aper = aper TABLES p_periods = lc_periods * EXCEPTIONS * ERROR = 1 * OTHERS = 2 .

HRCO_DAYS_BETWEEN_TWO_DATES CALL FUNCTION 'HRCO_DAYS_BETWEEN_TWO_DATES' EXPORTING begda = p_lc_div_first endda = p_lc_div_last modif = modif-mod0a divisor30 = gl_swco-divisor30 disabilities = '' IMPORTING days = p_lc_days_divid TABLES p0001 = p0001 coabs = coabs it_t7co07 = it_t7co07 EXCEPTIONS error = 1 OTHERS = 2.

HRCO_DAYS_BETWEEN_TWO_DATES CALL FUNCTION 'HRCO_DAYS_BETWEEN_TWO_DATES' EXPORTING begda = lc_div_first endda = lc_div_last modif = modif-mod0a divisor30 = gl_swco-divisor30 disabilities = ' ' IMPORTING days = p_lc_days_divid TABLES p0001 = p0001 coabs = coabs it_t7co07 = it_t7co07 EXCEPTIONS error = 1 OTHERS = 2.

HRCO_PROJECTION CALL FUNCTION 'HRCO_PROJECTION' EXPORTING endda = p_it_input-endda aper_paper = p_it_input-paper projection_base = p_projection projection_cust = p_projec_customer projection_vac = p_projection_vac days_salary = p_days_salary salary = p_salary abart = p_it_input-abart divisor30 = p_divisor30 exist_vacation = lc_exist_vacation project_license = p_project_license modif = modif-mod0a bukrs = wpbp-bukrs aper = aper IMPORTING betrg = p_betrg anzhl = p_anzhl anzhl_vac = p_anzhl_vac anzhl_days_avac = p_anzhl_avac projected_days = p_projected_days TABLES p0834 = lc_p0834 p2001 = it_p2001 t7co07 = it_t7co07.

HRCO_NEW_MONTH_PER_CRT CALL FUNCTION 'HRCO_NEW_MONTH_PER_CRT' EXPORTING abkrs = aper-abkrs begda = aper-begda bondt = aper-bondt datmo = t549a-datmo molga = pco00_molga paper = lc_help_paper payid = aper-payid payty = aper-payty permo = aper-permo seqnr = aper-seqnr log = lc_prtflag cumty = p_cumty TABLES crt = ocrt new_rgdir = new_rgdir * new_rgdir = new_rgdir_1 logtext = ptext errortext = error_ptext CHANGING "XAIPH4K026978 nmodif = p_change_period EXCEPTIONS clean_up_failed = 1 no_entry_found = 2 OTHERS = 3.



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