RPCTRPUH 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 RPCTRPUH 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: Include RPCTRPUH
"XXC_NOTE: 185624 AUDIT REPORT DOES NOT INCLUDE STATE/LOCAL INF
FORM $ADD_STATE$.
No SAP DATABASE tables are accessed within this REPORT code!
RSTS_CLOSE call function 'RSTS_CLOSE' EXPORTING fbhandle = l_alt_i51t5-fb_hd EXCEPTIONS fb_call_handle = 01 fb_error = 02 fb_rsts_other = 03.
RP_TS_OPEN call function 'RP_TS_OPEN' EXPORTING tsobj = l_alt_i51t5-ts_id empfg = 'RPUTSVUM'.
RSTS_READ call function 'RSTS_READ' TABLES datatab = l_tape.
RSTS_CLOSE call function 'RSTS_CLOSE'.
RSTS_REMOVE_OBJECT call function 'RSTS_REMOVE_OBJECT' EXPORTING name = l_alt_i51t5-ts_id.
RP_TS_OPEN CALL FUNCTION 'RP_TS_OPEN' EXPORTING TSOBJ = filename EMPFG = 'RPUTSVUM' OWNNR = 'X' IMPORTING OBJHD = l_in_objhd OBJIN = local_objlst-objin.
RSTS_READ CALL FUNCTION 'RSTS_READ' EXPORTING FBHANDLE = l_in_objhd TABLES DATATAB = in_tape.
RSTS_CLOSE CALL FUNCTION 'RSTS_CLOSE' EXPORTING FBHANDLE = l_in_objhd.
RSTS_REMOVE_OBJECT CALL FUNCTION 'RSTS_REMOVE_OBJECT' EXPORTING name = filename.
NUMBER_GET_NEXT CALL FUNCTION 'NUMBER_GET_NEXT' EXPORTING NR_RANGE_NR = '01' OBJECT = 'RP_TRTMSNR' * QUANTITY = '1' * SUBOBJECT = ' ' * TOYEAR = '0000' * IGNORE_BUFFER = ' ' IMPORTING NUMBER = nnum "Should probably get own var * QUANTITY = RETURNCODE = rcode "Should probably get own var EXCEPTIONS INTERVAL_NOT_FOUND = 1 NUMBER_RANGE_NOT_INTERN = 2 OBJECT_NOT_FOUND = 3 QUANTITY_IS_0 = 4 QUANTITY_IS_NOT_1 = 5 INTERVAL_OVERFLOW = 6 OTHERS = 7 .
RP_TS_CREATE_OBJECT CALL FUNCTION 'RP_TS_CREATE_OBJECT' EXPORTING objkn = l_objkn objnr = l_objnr empfg = 'RPUTSVUM' swnum = '2' ownnr = 'X' objin = l_objin IMPORTING objhd = l_out_objhd tsobj = l_out_tsobj EXCEPTIONS no_permission = 1 fb_nr_overflow = 2 OTHERS = 3.
RSTS_WRITE CALL FUNCTION 'RSTS_WRITE' EXPORTING fbhandle = l_out_objhd TABLES datatab = in_tape * EXCEPTIONS * fb_call_handle = 1 * fb_error = 2 * fb_rsts_noconv = 3 * fb_rsts_other = 4 .
RSTS_CLOSE CALL FUNCTION 'RSTS_CLOSE' EXPORTING FBHANDLE = l_out_objhd * EXCEPTIONS * FB_CALL_HANDLE = 1 * FB_ERROR = 2 * FB_RSTS_OTHER = 3 * OTHERS = 4 .
NUMBER_GET_NEXT CALL FUNCTION 'NUMBER_GET_NEXT' EXPORTING nr_range_nr = '01' object = 'RP_TRTMSNR' IMPORTING number = nnum returncode = rcode EXCEPTIONS interval_not_found = 1 number_range_not_intern = 2 object_not_found = 3 quantity_is_0 = 4 quantity_is_not_1 = 5 interval_overflow = 6 OTHERS = 7.
RP_TS_CREATE_OBJECT CALL FUNCTION 'RP_TS_CREATE_OBJECT' EXPORTING objkn = l_objkn objnr = l_objnr empfg = 'RPUTSVUM' swnum = '2' ownnr = 'X' objin = l_objin IMPORTING objhd = l_mqge_out_objhd tsobj = l_mqge_tsobj EXCEPTIONS no_permission = 1 fb_nr_overflow = 2 OTHERS = 3.
RSTS_WRITE CALL FUNCTION 'RSTS_WRITE' EXPORTING fbhandle = l_mqge_out_objhd TABLES datatab = out_tape EXCEPTIONS fb_call_handle = 1 fb_error = 2 fb_rsts_noconv = 3 fb_rsts_other = 4.
RSTS_CLOSE CALL FUNCTION 'RSTS_CLOSE' EXPORTING fbhandle = l_mqge_out_objhd EXCEPTIONS fb_call_handle = 1 fb_error = 2 fb_rsts_other = 3 OTHERS = 4.
RSTS_CLOSE call function 'RSTS_CLOSE' EXPORTING fbhandle = alt_i51t5-fb_hd EXCEPTIONS fb_call_handle = 01 fb_error = 02 fb_rsts_other = 03.
call function 'RP_TS_OPEN' EXPORTING tsobj = alt_i51t5-ts_id empfg = 'RPUTSVUM'.
RSTS_READ call function 'RSTS_READ' TABLES datatab = p_l_tape.
RSTS_CLOSE call function 'RSTS_CLOSE'.
ROUND call function 'ROUND' EXPORTING decimals = 0 input = p_l_value sign = '+' IMPORTING output = p_l_round EXCEPTIONS input_invalid = 1 overflow = 2 type_invalid = 3 others = 4.
HR_GET_BUSINESS_ADD_IN CALL FUNCTION 'HR_GET_BUSINESS_ADD_IN' EXPORTING exit_name = 'PC_TAX_TRP001' IMPORTING is_implemented = is_implemented CHANGING instance = sap_exit1.
RP_TS_OPEN CALL FUNCTION 'RP_TS_OPEN' EXPORTING TSOBJ = filename EMPFG = 'RPUTSVUM' * VERSN = '01' OWNNR = 'X' * ENQLOCK = 'N' IMPORTING OBJHD = l_in_objhd * VERSN = OBJIN = local_objlst-objin.
RSTS_READ CALL FUNCTION 'RSTS_READ' EXPORTING * BUFFLG = '*' FBHANDLE = l_in_objhd * MAXIX = '*' * PARTS1BY1 = ' ' * SHOWLG = ' ' * IMPORTING * ALLDATA = TABLES DATATAB = in_tape * EXCEPTIONS * FB_CALL_HANDLE = 1 * FB_ERROR = 2 * FB_RSTS_NOCONV = 3 * FB_RSTS_OTHER = 4 * OTHERS = 5 .
RSTS_CLOSE CALL FUNCTION 'RSTS_CLOSE' EXPORTING FBHANDLE = l_in_objhd * EXCEPTIONS * FB_CALL_HANDLE = 1 * FB_ERROR = 2 * FB_RSTS_OTHER = 3 * OTHERS = 4 .
RSTS_REMOVE_OBJECT CALL FUNCTION 'RSTS_REMOVE_OBJECT' EXPORTING * AUTHORITY = ' ' * CLIENT = SY-MANDT * COMMIT = ' ' * FORCE = ' ' name = filename * EXCEPTIONS * FB_ERROR = 1 * FB_RSTS_OTHER = 2 * NO_OBJECT = 3 * NO_PERMISSION = 4 * OTHERS = 5 .
NUMBER_GET_NEXT CALL FUNCTION 'NUMBER_GET_NEXT' EXPORTING NR_RANGE_NR = '01' OBJECT = 'RP_TRTMSNR' * QUANTITY = '1' * SUBOBJECT = ' ' * TOYEAR = '0000' * IGNORE_BUFFER = ' ' IMPORTING NUMBER = nnum "Should probably get own var * QUANTITY = RETURNCODE = rcode "Should probably get own var EXCEPTIONS INTERVAL_NOT_FOUND = 1 NUMBER_RANGE_NOT_INTERN = 2 OBJECT_NOT_FOUND = 3 QUANTITY_IS_0 = 4 QUANTITY_IS_NOT_1 = 5 INTERVAL_OVERFLOW = 6 OTHERS = 7 .
RP_TS_CREATE_OBJECT CALL FUNCTION 'RP_TS_CREATE_OBJECT' EXPORTING objkn = l_objkn objnr = l_objnr empfg = 'RPUTSVUM' swnum = '2' ownnr = 'X' objin = l_objin IMPORTING objhd = l_out_objhd tsobj = l_out_tsobj EXCEPTIONS no_permission = 1 fb_nr_overflow = 2 OTHERS = 3.
RSTS_WRITE CALL FUNCTION 'RSTS_WRITE' EXPORTING fbhandle = l_out_objhd TABLES datatab = in_tape * EXCEPTIONS * fb_call_handle = 1 * fb_error = 2 * fb_rsts_noconv = 3 * fb_rsts_other = 4 .
RSTS_CLOSE CALL FUNCTION 'RSTS_CLOSE' EXPORTING FBHANDLE = l_out_objhd * EXCEPTIONS * FB_CALL_HANDLE = 1 * FB_ERROR = 2 * FB_RSTS_OTHER = 3 * OTHERS = 4 .
NUMBER_GET_NEXT CALL FUNCTION 'NUMBER_GET_NEXT' EXPORTING nr_range_nr = '01' object = 'RP_TRTMSNR' IMPORTING number = nnum returncode = rcode EXCEPTIONS interval_not_found = 1 number_range_not_intern = 2 object_not_found = 3 quantity_is_0 = 4 quantity_is_not_1 = 5 interval_overflow = 6 OTHERS = 7.
RP_TS_CREATE_OBJECT CALL FUNCTION 'RP_TS_CREATE_OBJECT' EXPORTING objkn = l_objkn objnr = l_objnr empfg = 'RPUTSVUM' swnum = '2' ownnr = 'X' objin = l_objin IMPORTING objhd = l_mqge_out_objhd tsobj = l_mqge_tsobj EXCEPTIONS no_permission = 1 fb_nr_overflow = 2 OTHERS = 3.
RSTS_WRITE CALL FUNCTION 'RSTS_WRITE' EXPORTING fbhandle = l_mqge_out_objhd TABLES datatab = out_tape EXCEPTIONS fb_call_handle = 1 fb_error = 2 fb_rsts_noconv = 3 fb_rsts_other = 4.
RSTS_CLOSE CALL FUNCTION 'RSTS_CLOSE' EXPORTING fbhandle = l_mqge_out_objhd EXCEPTIONS fb_call_handle = 1 fb_error = 2 fb_rsts_other = 3 OTHERS = 4.
ROUND call function 'ROUND' exporting decimals = 0 input = reslt-value sign = '+' importing output = l_rnd_val exceptions input_invalid = 1 overflow = 2 type_invalid = 3 others = 4 .
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 RPCTRPUH or its description.