SAP Reports / Programs | Payroll | China(PY-CN) SAP PY

PC2CBRF1 SAP ABAP INCLUDE - Include PC2CBRF1







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


INCLUDES used within this REPORT PC2CBRF1

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:

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = sy-cprog dynumb = sy-dynnr TABLES dynpfields = dyfield EXCEPTIONS invalid_dynprofield = 4.

HELP_VALUES_GET_WITH_TABLE CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE' EXPORTING fieldname = 'CONAR' tabname = 'T7CN25' IMPORTING select_value = p_con_area TABLES fields = ihelp_fields valuetab = helptab.

HELP_VALUES_GET_WITH_TABLE CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE' EXPORTING fieldname = 'CONBR' tabname = 'T7CN24' IMPORTING select_value = p_con_ind TABLES fields = ihelp_fields valuetab = helptab.

HELP_VALUES_GET_WITH_TABLE CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE' EXPORTING fieldname = 'CONLV' tabname = 'T7CN23' IMPORTING select_value = p_con_levl TABLES fields = ihelp_fields valuetab = helptab.

HELP_VALUES_GET_WITH_TABLE CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE' EXPORTING fieldname = 'LGART' tabname = 'T512W' IMPORTING select_value = p_sourc_wt TABLES fields = ihelp_fields valuetab = helptab.

HELP_VALUES_GET_WITH_TABLE CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE' EXPORTING fieldname = 'LGART' tabname = 'T512Z' IMPORTING select_value = p_targe_wt TABLES fields = ihelp_fields valuetab = helptab.

RP_GET_CURRENCY CALL FUNCTION 'RP_GET_CURRENCY' EXPORTING molga = molga begda = switch_period_begda endda = switch_period_endda IMPORTING waers = default_currency EXCEPTIONS molga_not_in_t001p = 1 no_entry_found_in_table_t001 = 2 no_entry_found_in_table_t500p = 3 no_entry_found_in_table_t500c = 4 OTHERS = 5.

RP_FILL_WAGE_TYPE_TABLE CALL FUNCTION 'RP_FILL_WAGE_TYPE_TABLE' EXPORTING * APPLI = 'E' begda = $begda endda = $endda infty = $infty * OBJPS = ' ' pernr = $pernr * SEQNR = ' ' subty = space TABLES ppbwla = inttab * PP0001 = * PP0007 = * pp0008 = EXCEPTIONS error_at_indirect_evaluation = 1 OTHERS = 2.

HR_GET_TOTAL_AMOUNT_P0008 CALL FUNCTION 'HR_GET_TOTAL_AMOUNT_P0008' EXPORTING pernr = pernr-pernr date = bas_date p0008 = p0008 p0001 = p0001 frequency = '01' IMPORTING amount = proposed_base * AMOUNT_ORIG = frequency_orig = l_frequency * FREQUENCY_ORIG_TEXT = currency = l_currency EXCEPTIONS no_entry_in_t001p = 1 no_entry_in_t503 = 2 OTHERS = 3.

RP_FILL_WAGE_TYPE_TABLE CALL FUNCTION 'RP_FILL_WAGE_TYPE_TABLE' EXPORTING appli = 'E' begda = bas_date endda = bas_date infty = '0008' objps = ' ' pernr = pernr-pernr seqnr = ' ' subty = '0 ' TABLES ppbwla = ppbwla EXCEPTIONS error_at_indirect_evaluation = 1 OTHERS = 2.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = bas_date foreign_amount = proposed_base foreign_currency = l_currency local_currency = default_currency IMPORTING local_amount = proposed_base EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = oth_wage_type-begda foreign_amount = oth_wage_type-betrg foreign_currency = oth_wage_type-waers local_currency = default_currency IMPORTING local_amount = oth_wage_type-betrg EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.

CU_READ_RGDIR CALL FUNCTION 'CU_READ_RGDIR' EXPORTING persnr = pernr-pernr TABLES in_rgdir = rgdir EXCEPTIONS no_record_found = 1 OTHERS = 2.

POPUP_TO_INFORM CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING titel = g_repid txt2 = sy-subrc txt1 = text-003.

HR_INFOTYPE_OPERATION CALL FUNCTION 'HR_INFOTYPE_OPERATION' EXPORTING infty = target_it number = p0014-pernr subtype = p0014-subty validityend = p0014-endda validitybegin = p0014-begda record = p0014 operation = operation * dialog_mode = '1' nocommit = false IMPORTING return = return key = infty_key.

HR_INFOTYPE_OPERATION CALL FUNCTION 'HR_INFOTYPE_OPERATION' EXPORTING infty = target_it number = p0015-pernr subtype = p0015-subty validityend = p0015-endda validitybegin = p0015-begda record = p0015 operation = operation * dialog_mode = '1' nocommit = false IMPORTING return = return key = infty_key.

BALW_BAPIRETURN_GET1 CALL FUNCTION 'BALW_BAPIRETURN_GET1' EXPORTING type = success_severity cl = 'HRPAYCN' number = '049' par1 = ' ' par2 = ' ' par3 = ' ' par4 = ' ' IMPORTING bapireturn = return.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING textline1 = text-004 titel = text-005 cancel_display = false IMPORTING answer = answer.

HR_APPEND_ERROR_LIST





CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = $pernr arbgb = $arbgb "7R msgty = $type msgno = $msgno msgv1 = $msgv1 msgv2 = $msgv2 msgv3 = $msgv3 msgv4 = $msgv4 EXCEPTIONS OTHERS = 1.

RP_HIRE_FIRE CALL FUNCTION 'RP_HIRE_FIRE' EXPORTING beg = p_period_beg end = p_period_end IMPORTING hire_date = hiredate * fire_date = TABLES pp0000 = p0000 pp0001 = p0001 pphifi = phifi.



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