SAP Reports / Programs | Cross-Application Components | General Application Functions | Generating, Monitoring for Mass Data Archiving Solutions(CA-GTF-TS-GMA) SAP CA

AFX_TMPL_REPS_DELETE SAP ABAP INCLUDE - Template for Delete Program







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


Text pool values


Title: Template for Delete Program


INCLUDES used within this REPORT AFX_TMPL_REPS_DELETE

INCLUDE EMSG.
INCLUDE BANK_PPLOG_MACROS.
INCLUDE AFX_GLOBAL_DATA_PUBLIC.
INCLUDE AFX_GLOBAL_LOGGING_PUBLIC.


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:

DDIF_FIELDINFO_GET *@ CALL FUNCTION 'DDIF_FIELDINFO_GET' *@ EXPORTING *@ tabname = 'APPLI_TR01' *@ langu = sy-langu *@ all_types = 'X' *@ TABLES *@ fixed_values = l_tab_fv *@ EXCEPTIONS *@ not_found = 0 *@ internal_error = 0 *@ OTHERS = 0.

BM_COMPONENTS_GET *@ CALL FUNCTION 'BM_COMPONENTS_GET' *@ TABLES *@ i_component_ids = l_tab_comp_ids *@ e_components = l_tab_comp.

AFX_DB_GLOBAL_CUST_GET CALL FUNCTION 'AFX_DB_GLOBAL_CUST_GET' EXPORTING i_object = g_con_object_\l_str_delete_detail-object\ IMPORTING e_str_global_cust = g_str_global_cust EXCEPTIONS not_found = 1 OTHERS = 2.

AFX_MSG_OPEN CALL FUNCTION 'AFX_MSG_OPEN' EXPORTING i_prog = g_repid i_log_object_std = g_log_object i_log_object_exc = g_log_object_exc i_lognumber = g_logextnumber i_log_period = g_str_global_cust-log_period i_log_period_unit = g_str_global_cust-log_period_unit IMPORTING e_msg_handle_std = g_msg_handle_std e_msg_handle_exc = g_msg_handle_exc EXCEPTIONS log_init_failed_std = 1 log_init_failed_exc = 2 OTHERS = 3.

AFX_AUTH_GLOBAL_CHECK CALL FUNCTION 'AFX_AUTH_GLOBAL_CHECK' EXPORTING i_actvt = g_con_auth_actvt_create i_arch_obj = g_con_object_\l_str_delete_detail-object\ i_log_object_exc = g_log_object_exc EXCEPTIONS no_auth_found = 1 no_auth_valid = 2 no_profiles_found = 3 invalid_fields = 4 invalid_parameter_count = 5 destroyed_auth = 6 OTHERS = 7.

AFX_MSG_CLOSE CALL FUNCTION 'AFX_MSG_CLOSE' EXPORTING i_log_object_std = g_log_object i_log_object_exc = g_log_object_exc i_msg_handle_std = g_msg_handle_std i_msg_handle_exc = g_msg_handle_exc.

AFX_ACTVTLOG_ENDTMSTP_SET CALL FUNCTION 'AFX_ACTVTLOG_ENDTMSTP_SET' EXPORTING i_actvt_id = g_str_actvt_log-actvt_id i_enddate = g_tmc_sy_datum i_endtime = g_tmc_sy_uzeit i_log_object_exc = g_log_object_exc.

GET_JOB_RUNTIME_INFO CALL FUNCTION 'GET_JOB_RUNTIME_INFO' IMPORTING jobcount = g_selfjobcount jobname = g_selfjobname stepcount = g_selfstepcount EXCEPTIONS no_runtime_info = 1 OTHERS = 2.

AFX_ADK_DOCUMENT_GET CALL FUNCTION 'AFX_ADK_DOCUMENT_GET' EXPORTING i_jobname = g_selfjobname i_jobcount = g_selfjobcount IMPORTING e_str_admi_jobs = l_str_admi_jobs e_rc = l_rc.

AFX_ACTVTLOG_WRITE_JOB_GET CALL FUNCTION 'AFX_ACTVTLOG_WRITE_JOB_GET' EXPORTING i_document = l_str_admi_jobs-document IMPORTING e_tab_actvtdoc = l_tab_actvtdoc.

AFX_ACTVTLOG_GET CALL FUNCTION 'AFX_ACTVTLOG_GET' EXPORTING i_actvt_id = g_actvt_id_write IMPORTING e_str_actvt_log = l_str_actvt_log EXCEPTIONS not_found = 1 OTHERS = 2.

BANK_API_PP_LOG_CREATE_LOGNO CALL FUNCTION 'BANK_API_PP_LOG_CREATE_LOGNO' IMPORTING e_lognumber = l_lognumber.

AFX_ACTVTLOG_DELETE_JOBS_GET CALL FUNCTION 'AFX_ACTVTLOG_DELETE_JOBS_GET' EXPORTING i_log_extnumber = g_logextnumber i_log_alprog = g_repid IMPORTING e_tab_actvt = l_tab_actvt_log.

AFX_ACTVTLOG_CREATE CALL FUNCTION 'AFX_ACTVTLOG_CREATE' EXPORTING i_log_object = g_log_object i_log_object_exc = g_log_object_exc i_log_extnumber = g_logextnumber i_log_aldate = l_aldate_del i_log_alprog = g_repid i_prog_type = g_con_progtype_delete i_object = g_con_object_\l_str_delete_detail-object\ i_applcatg = space i_armode = g_str_global_cust-armode i_runuser = sy-uname i_startdate = g_tmc_sy_datum i_starttime = g_tmc_sy_uzeit IMPORTING e_str_actvt_log = g_str_actvt_log EXCEPTIONS actvt_id_get_failed = 1 actvt_log_create_failed = 2 OTHERS = 3.

AFX_MONITOR_STATUS_COUPL_CHECK CALL FUNCTION 'AFX_MONITOR_STATUS_COUPL_CHECK' EXPORTING i_object = g_con_object_\l_str_delete_detail-object\ IMPORTING e_flg_status_update = l_sts_upd EXCEPTIONS not_found = 1 OTHERS = 2.

AFX_ACTVTLOG_STATUS_UPDATE CALL FUNCTION 'AFX_ACTVTLOG_STATUS_UPDATE' EXPORTING i_actvt_id = g_actvt_id_write i_runstatus = g_con_actvt_deletejob_started i_log_object_exc = g_log_object_exc.

AFX_ACTVTLOG_JOBLIST_CREATE CALL FUNCTION 'AFX_ACTVTLOG_JOBLIST_CREATE' EXPORTING i_actvt_id = g_str_actvt_log-actvt_id i_tab_jobs = l_tab_jobs i_log_object_exc = g_log_object_exc.

AFX_ACTVTLOG_DOCLIST_CREATE CALL FUNCTION 'AFX_ACTVTLOG_DOCLIST_CREATE' EXPORTING i_actvt_id = g_str_actvt_log-actvt_id i_str_jobkey = l_str_jobkey i_document = g_archive_document i_jobtype = g_con_adk_jobtype_delete i_log_object_exc = g_log_object_exc.

AFX_ACTVTLOG_FILLIST_CREATE





CALL FUNCTION 'AFX_ACTVTLOG_FILLIST_CREATE' EXPORTING i_actvt_id = g_str_actvt_log-actvt_id i_document = g_archive_document i_tab_archive_files = g_tab_archive_files i_log_object_exc = g_log_object_exc.

ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING object = g_con_object_\l_str_delete_detail-object\ test_mode = g_flg_test_mode IMPORTING archive_handle = l_archive_handle EXCEPTIONS file_already_open = g_con_adk_file_already_open file_io_error = g_con_adk_file_io_error internal_error = g_con_adk_internal_error no_files_available = g_con_adk_no_files_available object_not_found = g_con_adk_object_not_found open_error = g_con_adk_open_error not_authorized = g_con_adk_not_authorized OTHERS = g_con_adk_others.

ARCHIVE_GET_ARCHIVE_FILES CALL FUNCTION 'ARCHIVE_GET_ARCHIVE_FILES' EXPORTING archive_handle = l_archive_handle TABLES archive_files = g_tab_archive_files EXCEPTIONS wrong_access_to_archive = g_con_adk_wrong_access_to_arch internal_error = g_con_adk_internal_error OTHERS = g_con_adk_others.

ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING object = g_con_object_\l_str_delete_detail-object\ IMPORTING commit_count_for_delete_prg = l_commit_count_delete maintain_index = l_index_flag EXCEPTIONS object_not_found = g_con_adk_object_not_found OTHERS = g_con_adk_others.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = l_archive_handle IMPORTING object_id = l_object_id object_offset = l_object_offset archive_name = l_archive_name EXCEPTIONS end_of_file = g_con_adk_end_of_file file_io_error = g_con_adk_file_io_error internal_error = g_con_adk_internal_error open_error = g_con_adk_open_error wrong_access_to_archive = g_con_adk_wrong_access_to_arch OTHERS = g_con_adk_others.

ARCHIVE_GET_NEXT_RECORD CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD' EXPORTING archive_handle = l_archive_handle IMPORTING record_structure = l_record_type record_ref = l_buffer_ref EXCEPTIONS end_of_object = g_con_adk_end_of_object internal_error = g_con_adk_internal_error wrong_access_to_archive = g_con_adk_wrong_access_to_arch OTHERS = g_con_adk_others.

ARCHIVE_GET_OBJECT *@ CALL FUNCTION 'ARCHIVE_GET_OBJECT' *@ EXPORTING *@ object = l_str_delete_detail-archobj *@ TABLES *@ used_classes = l_tab_used_classes *@ EXCEPTIONS *@ object_not_found = 0 *@ OTHERS = 0.

ARCHIVE_DELETE_OBJECT_DATA CALL FUNCTION 'ARCHIVE_DELETE_OBJECT_DATA' EXPORTING archive_handle = l_archive_handle EXCEPTIONS internal_error = g_con_adk_internal_error wrong_access_to_archive = g_con_adk_wrong_access_to_arch OTHERS = g_con_adk_others.

ARCHIVE_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = l_archive_handle TABLES table = l_tab_arch_stat_give EXCEPTIONS internal_error = g_con_adk_internal_error OTHERS = g_con_adk_others.

ARCHIVE_GET_STATISTICS CALL FUNCTION 'ARCHIVE_GET_STATISTICS' EXPORTING archive_handle = l_archive_handle TABLES statistics_data = l_tab_arch_stat_get EXCEPTIONS internal_error = g_con_adk_internal_error wrong_access_to_archive = g_con_adk_wrong_access_to_arch OTHERS = g_con_adk_others.

AFX_MSG_LOG_ADK_STATISTICS CALL FUNCTION 'AFX_MSG_LOG_ADK_STATISTICS' EXPORTING i_archive_document = g_archive_document i_log_object = g_log_object CHANGING c_tab_statistics_data = l_tab_statistics_data.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = l_archive_handle EXCEPTIONS internal_error = g_con_adk_internal_error wrong_access_to_archive = g_con_adk_wrong_access_to_arch OTHERS = g_con_adk_others.

ARCHIVE_ADMIN_SET_STATUS CALL FUNCTION 'ARCHIVE_ADMIN_SET_STATUS' EXPORTING files_are_converted = ' ' index_created = con_true TABLES archive_files = g_tab_archive_files EXCEPTIONS cannot_change_status = g_con_adk_cannot_change_status OTHERS = g_con_adk_others.

\l_str_strucdef_x-fmod_name_del\ CALL FUNCTION '\l_str_strucdef_x-fmod_name_del\' EXPORTING i_tab_data = \l_str_strucdef_x-pg_ttyp\ EXCEPTIONS database_error = 1 OTHERS = 2.



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