SAP Reports / Programs | Financial Services | Loans Management(FS-CML) SAP FS

RFVD_ARC_CONTRACT_DELETE SAP ABAP Report - Delete Loan Contracts from DB







RFVD_ARC_CONTRACT_DELETE is a standard Executable ABAP Report 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 RFVD_ARC_CONTRACT_DELETE 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 RFVD_ARC_CONTRACT_DELETE. "Basic submit
SUBMIT RFVD_ARC_CONTRACT_DELETE AND RETURN. "Return to original report after report execution complete
SUBMIT RFVD_ARC_CONTRACT_DELETE 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: P_DELPRD = Production Mode
Selection Text: P_DELTST = Test Mode
Title: Delete Loan Contracts from DB
Text Symbol: H01 = Archive
Text Symbol: H03 = Loan Contract
Text Symbol: H04 = Loan Facility
Text Symbol: H05 = Drawdown
Text Symbol: H06 = File Number
Text Symbol: T01 = Loan contracts have not been deleted.
Text Symbol: T02 = Reason: Internal archiving error (call of module &2).
Text Symbol: T03 = Loan contract &1(company code &2) deleted successfully.
Text Symbol: T04 = Loan facility &1(company code&2) deleted successfully.
Text Symbol: T05 = Drawdown &1(company code &2) deleted successfully.
Text Symbol: T06 = File: &1 and its corresponding documents are not deleted.
Text Symbol: T07 = Reason: File is still being used by an active loan.
Text Symbol: V01 = ARCHIVE_OPEN_FOR_DELETE
Text Symbol: V02 = ARCHIVE_GET_NEXT_OBJECT
Text Symbol: V03 = ARCHIVE_GET_NEXT_RECORD


INCLUDES used within this REPORT RFVD_ARC_CONTRACT_DELETE

INCLUDE RFVD_ARC_CONTRACT_DELETE_TOP.
INCLUDE ARCH_DELETE_PRG_STANDARD1. "<<< FLOW CONTROL


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:

FVD_ARC_CHECK_TRANS_SARA CALL FUNCTION 'FVD_ARC_CHECK_TRANS_SARA' EXCEPTIONS no_use_of_sara = 1.

ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = l_prot i_protocol_output = l_prot_o.

ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING object = con_object " CMLCONTRCT test_mode = p_deltst IMPORTING archive_handle = l_handle EXCEPTIONS file_already_open = 1 file_io_error = 2 internal_error = 3 no_files_available = 4 object_not_found = 5 open_error = 6 not_authorized = 7 archiving_standard_violation = 8 OTHERS = 9.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = text-h01 "'Archive' i_text = text-t01 i_msgtype = '2'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_text = text-t02 i_msgv2 = text-v01.

ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING object = con_object IMPORTING commit_count_for_delete_prg = lv_commit_cnt.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = l_handle EXCEPTIONS end_of_file = 1 file_io_error = 2 internal_error = 3 open_error = 4 wrong_access_to_archive = 5 OTHERS = 6.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = text-h01 "'Archive' i_text = text-t01 i_msgtype = '2'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_text = text-t02 i_msgv2 = text-v02.

ARCHIVE_GET_NEXT_RECORD CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD' EXPORTING archive_handle = l_handle IMPORTING record_structure = l_rec_struct record_ref = l_rec_ref EXCEPTIONS end_of_object = 1 internal_error = 2 wrong_access_to_archive = 3 OTHERS = 4.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = text-h01 i_text = text-t01 i_msgtype = '2'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_text = text-t02 i_msgv2 = text-v03.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = text-h03 i_text = text-t03 i_msgtype = '1' i_msgv1 = -ranl i_msgv2 = -bukrs.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = text-h05 i_text = text-t05 i_msgtype = '1' i_msgv1 = -ranl i_msgv2 = -bukrs.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = text-h04 i_text = text-t04 i_msgtype = '1' i_msgv1 = -ranl i_msgv2 = -bukrs.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = text-h03 i_text = text-t03 i_msgtype = '1' i_msgv1 = -ranl i_msgv2 = -bukrs.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = text-h05 i_text = text-t05 i_msgtype = '1' i_msgv1 = -ranl i_msgv2 = -bukrs.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = text-h04 i_text = text-t04 i_msgtype = '1' i_msgv1 = -ranl i_msgv2 = -bukrs.

ARCHIVE_PROTOCOL_COLLECT





CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = text-h06 i_text = text-t06 i_msgv1 = ls_excl_vdakte-sakt.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_text = text-t07.

ARCHIVE_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = l_handle TABLES table = gt_stats.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = l_handle statistics_only_per_run = con_x.

ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = l_handle.



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