PCPTXIN7 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 PCPTXIN7 into the relevant SAP transactions such as SE38 or SE80
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.
Title: Standard routines for PTax
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = pernr-pernr infty = '0002' begda = begda endda = endda IMPORTING subrc = bck_subrc TABLES infty_tab = p0002_tmp EXCEPTIONS infty_not_found = 1 OTHERS = 2.
RP_EDIT_NAME CALL FUNCTION 'RP_EDIT_NAME' EXPORTING format = '01' langu = sy-langu molga = '40' pp0002 = p0002_tmp IMPORTING edit_name = format_name.
HR_IN_GET_FISCAL_PERIOD CALL FUNCTION 'HR_IN_GET_FISCAL_PERIOD' EXPORTING parea1 = pernr-abkrs * PYEAR1 = IMPORTING pbegda = fybegda pendda = fyendda * FIYEAR = EXCEPTIONS no_entry_found_t549a = 1 no_entry_found_t549q = 2 no_begin_period_found = 3 no_end_period_found = 4 no_cntrl_record_found = 5 OTHERS = 6.
HELP_VALUES_GET_WITH_TABLE CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE' EXPORTING fieldname = fnam tabname = tnam titel = title IMPORTING select_value = chd_value TABLES fields = ihelp_fields valuetab = helptab EXCEPTIONS field_not_in_ddic = 01 more_then_one_selectfield = 02 no_selectfield = 03.
PYXX_GET_RELID_FROM_PERNR CALL FUNCTION 'PYXX_GET_RELID_FROM_PERNR' EXPORTING employee = pernr-pernr IMPORTING relid = lv_relid.
CD_READ_RGDIR CALL FUNCTION 'CD_READ_RGDIR' EXPORTING persnr = pernr-pernr TABLES in_rgdir = lt_rgdir.
PYXX_READ_PAYROLL_RESULT CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT' EXPORTING clusterid = lv_relid employeenumber = pernr-pernr sequencenumber = lv_seqnr CHANGING payroll_result = lt_py_result.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.