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

PC2TDCNF SAP ABAP INCLUDE - Include PC2TDCNF







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


INCLUDES used within this REPORT PC2TDCNF

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:

RP_GET_CURRENCY CALL FUNCTION 'RP_GET_CURRENCY' EXPORTING molga = calcmolga IMPORTING waers = calc_currency EXCEPTIONS OTHERS.

RP_TS_CREATE_OBJECT CALL FUNCTION 'RP_TS_CREATE_OBJECT' EXPORTING objkn = objkn objnr = objnr empfg = empfg IMPORTING tsobj = temse_object_name objhd = objhd.

RSTS_WRITE CALL FUNCTION 'RSTS_WRITE' EXPORTING fbhandle = objhd TABLES datatab = inputtab.

RSTS_CLOSE CALL FUNCTION 'RSTS_CLOSE' EXCEPTIONS fb_call_handle = 1 fb_error = 2 fb_rsts_other = 3 OTHERS = 4.

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = l_filename filetype = 'ASC' TABLES data_tab = inputtab EXCEPTIONS file_open_error = 1 file_read_error = 2 no_batch = 3 gui_refuse_filetransfer = 4 invalid_type = 5 no_authority = 6 unknown_error = 7 bad_data_format = 8 header_not_allowed = 9 separator_not_allowed = 10 header_too_long = 11 unknown_dp_error = 12 access_denied = 13 dp_out_of_memory = 14 disk_full = 15 dp_timeout = 16 OTHERS = 17.

RP_TS_OPEN CALL FUNCTION 'RP_TS_OPEN' EXPORTING tsobj = l_tsobj empfg = empfg IMPORTING objin = l_objin EXCEPTIONS fb_call_handle = 1 fb_error = 2 fb_rsts_noconv = 3 fb_rsts_other = 4 no_object = 5 no_permission = 6 no_hr_application_file = 7 invalid_version_number = 8 wrong_report = 9 enq_foreign_lock = 10 enq_sys_fail = 11 enq_other = 12 OTHERS = 13.

RSTS_READ CALL FUNCTION 'RSTS_READ' EXPORTING showlg = '' TABLES datatab = inputtab EXCEPTIONS fb_call_handle = 01 fb_error = 02 fb_rsts_noconv = 03 fb_rsts_other = 04.

RSTS_CLOSE CALL FUNCTION 'RSTS_CLOSE' EXCEPTIONS fb_call_handle = 01 fb_error = 02 fb_rsts_other = 03.

HR_CN_CHINESE_NAME CALL FUNCTION 'HR_CN_CHINESE_NAME' EXPORTING pp0002 = p0002 pp0182 = p0182 IMPORTING cname = cname retcode = return_code.

HELP_VALUES_GET_WITH_TABLE CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE' EXPORTING fieldname = 'TXARE' tabname = 'T7CN3B' IMPORTING select_value = txare TABLES fields = ihelp_value valuetab = ihelptab.

HR_CONVERT_CURRENCY_RESULT CALL FUNCTION 'HR_CONVERT_CURRENCY_RESULT' EXPORTING country_grouping = calcmolga conversion_date = results-evp-fpbeg foreign_currency = results-inter-versc-waers local_currency = calc_currency TABLES result_table = results-inter-rt EXCEPTIONS invalid_wagetype = 1 error_conversion = 2 OTHERS = 3.

HR_COPY_TBUFF_TO_BUFFER CALL FUNCTION 'HR_COPY_TBUFF_TO_BUFFER' EXPORTING 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 = employee_number 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 = employee_number TABLES rgdir = p_rgdir imported_periods = p_results EXCEPTIONS import_error = 1 OTHERS = 2.

HR_DISPLAY_BASIC_LIST CALL FUNCTION 'HR_DISPLAY_BASIC_LIST' EXPORTING basic_list_title = sy-title file_name = filename head_line1 = headline1 head_line2 = headline2 head_line3 = headline3 current_report = sy-repid dyn_pushbutton_text1 = text-h03 dyn_pushbutton_text2 = text-h05 alv_marker = 'ALV_MARKER' IMPORTING return_code = return_code TABLES data_tab = it_disp_tax fieldname_tab = fieldtab select_tab = it_select_tax error_tab = it_error EXCEPTIONS download_problem = 1 no_data_tab_entries = 2 table_mismatch = 3 print_problems = 4 OTHERS = 5.

HR_DISPLAY_BASIC_LIST CALL FUNCTION 'HR_DISPLAY_BASIC_LIST' EXPORTING basic_list_title = sy-title file_name = filename head_line1 = headline1 head_line2 = headline2 head_line3 = headline3 head_line4 = headline4 "ACC current_report = sy-repid dyn_pushbutton_text1 = text-h03 dyn_pushbutton_text2 = text-h05 dyn_pushbutton_text3 = text-h04 dyn_pushbutton_text4 = text-h09 ""note 1270545 alv_marker = 'ALV_MARKER' IMPORTING return_code = return_code TABLES data_tab = it_disp_tax fieldname_tab = fieldtab select_tab = it_select_tax error_tab = it_error EXCEPTIONS download_problem = 1 no_data_tab_entries = 2 table_mismatch = 3 print_problems = 4 OTHERS = 5.

HR_DISPLAY_BASIC_LIST CALL FUNCTION 'HR_DISPLAY_BASIC_LIST' EXPORTING basic_list_title = sy-title file_name = filename head_line1 = headline1 head_line2 = headline2 head_line3 = headline3 head_line4 = headline4 "ACC current_report = sy-repid dyn_pushbutton_text1 = text-h03 dyn_pushbutton_text2 = text-h05 IMPORTING return_code = return_code TABLES data_tab = it_disp_error fieldname_tab = fieldtab error_tab = it_error EXCEPTIONS download_problem = 1 no_data_tab_entries = 2 table_mismatch = 3 print_problems = 4 OTHERS = 5.

HR_DISPLAY_BASIC_LIST CALL FUNCTION 'HR_DISPLAY_BASIC_LIST' EXPORTING basic_list_title = sy-title file_name = filename head_line1 = headline1 head_line2 = headline2 head_line3 = headline3 head_line4 = headline4 "ACC current_report = sy-repid dyn_pushbutton_text1 = text-h03 dyn_pushbutton_text2 = text-h05 IMPORTING return_code = return_code TABLES data_tab = it_disp_mail fieldname_tab = fieldtab error_tab = it_error EXCEPTIONS download_problem = 1 no_data_tab_entries = 2 table_mismatch = 3 print_problems = 4 OTHERS = 5.

FP_FUNCTION_MODULE_NAME





CALL FUNCTION 'FP_FUNCTION_MODULE_NAME' EXPORTING i_name = p_form_name IMPORTING e_funcname = p_fm_name.

FP_JOB_OPEN CALL FUNCTION 'FP_JOB_OPEN' CHANGING ie_outputparams = fp_outputparams EXCEPTIONS cancel = 1 usage_error = 2 system_error = 3 internal_error = 4 OTHERS = 5.

FP_JOB_CLOSE CALL FUNCTION 'FP_JOB_CLOSE' EXCEPTIONS usage_error = 1 system_error = 2 internal_error = 3 OTHERS = 4.

SYSTEM_CODEPAGE call function 'SYSTEM_CODEPAGE' importing current_dynamic_codepage = cp.

HR_FEATURE_BACKTABLE CALL FUNCTION 'HR_FEATURE_BACKTABLE' EXPORTING feature = feature struc_content = kind_of_error = kind_of_error TABLES back = back CHANGING status = status EXCEPTIONS OTHERS = 1. "VLDAL0K095544 (Checkman)

HR_FEATURE_BACKFIELD CALL FUNCTION 'HR_FEATURE_BACKFIELD' EXPORTING feature = 'ADDRS' struc_content = ls_pme36 * kind_of_error = IMPORTING back = lv_back CHANGING status = lv_rc EXCEPTIONS dummy = 1 error_operation = 2 no_backvalue = 3 feature_not_generated = 4 invalid_sign_in_funid = 5 field_in_report_tab_in_pe03 = 6 OTHERS = 7.

HR_CONVERT_CURRENCY_RESULT CALL FUNCTION 'HR_CONVERT_CURRENCY_RESULT' EXPORTING country_grouping = calcmolga conversion_date = results-evp-fpbeg foreign_currency = results-inter-versc-waers local_currency = calc_currency TABLES result_table = results-inter-rt EXCEPTIONS invalid_wagetype = 1 error_conversion = 2 OTHERS = 3.

CD_READ_PREVIOUS CALL FUNCTION 'CD_READ_PREVIOUS' EXPORTING in_record = ls_rgdir exact = 'X' TABLES rgdir = it_rgdir * out_rgdir = lt_tmp_rgdir. " Note 1564425

PYXX_READ_RGDIR_PAYRESULTS CALL FUNCTION 'PYXX_READ_RGDIR_PAYRESULTS' EXPORTING clusterid = lv_relid employeenumber = pernr-pernr TABLES rgdir = lt_tmp_rgdir imported_periods = lt_results EXCEPTIONS import_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 PC2TDCNF or its description.