SAP Reports / Programs

RPRCCC_CREATE_CORRECTION_FILE SAP ABAP Report - Create File with Corrected Credit Card Transactions







RPRCCC_CREATE_CORRECTION_FILE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use this program to create a new credit card file in CCD format...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_CORRECTION_FILE 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

PRCCF - Generate File with Correct Trnsactns


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_CORRECTION_FILE. "Basic submit
SUBMIT RPRCCC_CREATE_CORRECTION_FILE AND RETURN. "Return to original report after report execution complete
SUBMIT RPRCCC_CREATE_CORRECTION_FILE 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_FNAME = D .
Selection Text: CC_COMP = D .
Selection Text: CC_ACCNO = D .
Selection Text: VERS_NR = Accounting Run Number
Selection Text: NOT_LOC = File creation not local
Selection Text: CC_WAERS = Settlement Currency
Selection Text: CC_NACHK = Decimal Places
Title: Create File with Corrected Credit Card Transactions
Text Symbol: S10 = Narrow down the selection. Selection must not exceed 99,999,999 entries.
Text Symbol: S09 = based on the header data you specify below.
Text Symbol: S08 = want the system to create corrected error table records in the new file
Text Symbol: S07 = Here you can specify the settlement run number(s) for which you
Text Symbol: S06 = Selection of Settlement Run Numbers
Text Symbol: S03 = Note: Settlement run number must be unique
Text Symbol: S02 = Enter the header data for the new credit card file here
Text Symbol: S01 = Header data of the file to be created
Text Symbol: E12 = '.
Text Symbol: E11 = Table PTRV_CCC is locked by user '
Text Symbol: E10 = Error while reading lock entry for table PTRC_CCC.
Text Symbol: E09 = Error while opening file on server directory
Text Symbol: E08 = Settlement run number already read
Text Symbol: E07 = Settlement run number is not correct
Text Symbol: E06 = Error while reading cluster TA
Text Symbol: E05 = Error while creating file on server
Text Symbol: E04 = Error while creating file on workstation
Text Symbol: E02 = No Entry Found in Table PTRV_CCC
Text Symbol: E01 = File was successfully created
Text Symbol: B06 = The file name must always be specified.
Text Symbol: B05 = the file is to be saved to a server.
Text Symbol: B04 = The directory path only needs to be specified if
Text Symbol: B03 = shared directory on a server or locally to the workstation.
Text Symbol: B02 = You can decide here whether the file should be saved to a
Text Symbol: B01 = File Options


INCLUDES used within this REPORT RPRCCC_CREATE_CORRECTION_FILE

INCLUDE: RPC1TA00.


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:

CCSECP_CCNUM_DECRYPTION CALL FUNCTION 'CCSECP_CCNUM_DECRYPTION' EXPORTING i_enctype = '2' "data stored in tab CCSEC_ENC i_guid = p_wa_ptrv_ccc-cardnum_guid IMPORTING e_ccnum = lv_ccnum EXCEPTIONS decryption_error = 1 invalid_card_guid = 2 OTHERS = 3.

WS_DOWNLOAD * CALL FUNCTION 'WS_DOWNLOAD' * EXPORTING ** filename = 'C:\CCC_DEMO.CCD'

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = l_filename filetype = 'ASC' 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.

ENQUEUE_READ CALL FUNCTION 'ENQUEUE_READ' EXPORTING garg = 'PTRV_CCC*' TABLES enq = lt_enqueue EXCEPTIONS communication_failure = 1 system_failure = 2 OTHERS = 3.



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