SAP Reports / Programs | Financial Accounting | Travel Management | Travel Expenses(FI-TV-COS) SAP FI

RPRCCC_CREATE_TESTFILE SAP ABAP Report - Create a test file for credit card clearing







RPRCCC_CREATE_TESTFILE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report creates a test file in the structure for the Travel Management Credit Card Interface...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RPRCCC_CREATE_TESTFILE into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

PRCCT - Create Credit Card Clearing TestFile


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 RPRCCC_CREATE_TESTFILE. "Basic submit
SUBMIT RPRCCC_CREATE_TESTFILE AND RETURN. "Return to original report after report execution complete
SUBMIT RPRCCC_CREATE_TESTFILE VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: CC_UNAME = D .
Selection Text: CC_PERNR = D .
Selection Text: CC_COMP = D .
Selection Text: CC_ACCNO = D .
Selection Text: NOT_LOC = File Creation Not Local
Selection Text: CC_FNAME = File Name
Title: Create a test file for credit card clearing
Text Symbol: S03 = the credit card transaction should be created
Text Symbol: S02 = Enter the personnel number for which
Text Symbol: S01 = Select Personnel Number
Text Symbol: RT2 = This is a paid rail/train receipt
Text Symbol: RT1 = This is a rail/train receipt
Text Symbol: RR2 = This is a paid car rental receipt
Text Symbol: RR1 = This is a car rental receipt
Text Symbol: RP2 = This is a paid flight receipt
Text Symbol: RP1 = This is a flight receipt
Text Symbol: RO2 = This is a paid 'others' receipt
Text Symbol: RO1 = This is an 'others' receipt
Text Symbol: RM2 = This is a paid meals receipt
Text Symbol: RM1 = This is a meals receipt
Text Symbol: RK2 = This is a paid communication receipt
Text Symbol: RK1 = This is a communication receipt
Text Symbol: RC2 = This is a paid travel costs receipt
Text Symbol: RC1 = This is a travel costs receipt
Text Symbol: RA2 = This is a paid hotel receipt
Text Symbol: RA1 = This is a hotel receipt
Text Symbol: ES1 = File was created with the following contents:
Text Symbol: E20 = This report program must not be used in live environments.
Text Symbol: E10 = Error opening file on server directory
Text Symbol: E06 = Credit card number is masked
Text Symbol: E05 = Currency conversion not possible
Text Symbol: E04 = No suitable credit card in InfoType 105/0011
Text Symbol: E03 = Trip provision variant could not be determined
Text Symbol: E02 = No Infotype data exists
Text Symbol: E01 = No authorization for personnel number
Text Symbol: E00 = The following error occurred:
Text Symbol: B01 = Select Accounting Run Parameter


INCLUDES used within this REPORT RPRCCC_CREATE_TESTFILE

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:

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = cc_pernr infty = '0001' begda = sy-datum endda = sy-datum IMPORTING subrc = subrc TABLES infty_tab = p0001 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = cc_pernr infty = '0002' begda = sy-datum endda = sy-datum IMPORTING subrc = subrc TABLES infty_tab = p0002 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = cc_pernr infty = '0105' begda = sy-datum endda = sy-datum IMPORTING subrc = subrc TABLES infty_tab = p0105 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

CCSECP_IT0105_DECRYPTION CALL FUNCTION 'CCSECP_IT0105_DECRYPTION' TABLES t0105 = p0105.

PA_TRV_GET_PERNR_MOREI_ADDON CALL FUNCTION 'PA_TRV_GET_PERNR_MOREI_ADDON' EXPORTING pernr = cc_pernr stichtag = sy-datum IMPORTING morei = morei EXCEPTIONS no_infotype_0001_found = 1 no_authority_for_pernr = 2 no_infotype_0017_found = 3 no_infotype_0008_found = 4 no_spras_found = 5 OTHERS = 6.

TRIP_GET_ACCOUNTING_CURRENCY CALL FUNCTION 'TRIP_GET_ACCOUNTING_CURRENCY' EXPORTING provision_variant = morei company_code = p0001-bukrs date = sy-datum IMPORTING trip_currency = waers.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = umsdatum foreign_amount = f_amount foreign_currency = twaers local_currency = waers rate = 0 type_of_rate = 'M' IMPORTING exchange_rate = rate foreign_factor = f_fact local_amount = l_amount local_factor = l_fact EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 OTHERS = 5.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = l_filename filetype = 'ASC' * WRITE_FIELD_SEPARATOR = ' ' * WRITE_LF = 'X' TABLES data_tab = texttab EXCEPTIONS file_write_error = 1 no_batch = 2 gui_refuse_filetransfer = 3 invalid_type = 4 no_authority = 5 unknown_error = 6 header_not_allowed = 7 separator_not_allowed = 8 filesize_not_allowed = 9 header_too_long = 10 dp_error_create = 11 dp_error_send = 12 dp_error_write = 13 unknown_dp_error = 14 access_denied = 15 dp_out_of_memory = 16 disk_full = 17 dp_timeout = 18 file_not_found = 19 dataprovider_exception = 20 control_flush_error = 21 OTHERS = 22.



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