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

AFX_ARCHIVING_TERMINATOR SAP ABAP Report - Interrupt Archiving Run (Parallel Processing)







AFX_ARCHIVING_TERMINATOR 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 AFX_ARCHIVING_TERMINATOR 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_ARCHIVING_TERMINATOR. "Basic submit
SUBMIT AFX_ARCHIVING_TERMINATOR AND RETURN. "Return to original report after report execution complete
SUBMIT AFX_ARCHIVING_TERMINATOR 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_ACTVT = D Activity ID
Title: Interrupt Archiving Run (Parallel Processing)
Text Symbol: L01 = Start Interrupt Run for Activity ID & On
Text Symbol: L02 = At
Text Symbol: L03 = Archiving Object:
Text Symbol: L04 = End Interrupt Run On
Text Symbol: L05 = Interrupt Run


INCLUDES used within this REPORT AFX_ARCHIVING_TERMINATOR

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:

AFX_ACTVTLOG_GET CALL FUNCTION 'AFX_ACTVTLOG_GET' EXPORTING i_actvt_id = p_actvt IMPORTING e_str_actvt_log = g_str_actvt_log_write e_tab_job = g_tab_actvtjob EXCEPTIONS not_found = 1 OTHERS = 2.

AFX_DB_GLOBAL_CUST_GET CALL FUNCTION 'AFX_DB_GLOBAL_CUST_GET' EXPORTING i_object = g_str_actvt_log_write-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_str_global_cust-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_STATUS_UPDATE CALL FUNCTION 'AFX_ACTVTLOG_STATUS_UPDATE' EXPORTING i_actvt_id = g_str_actvt_log-actvt_id i_runstatus = g_con_actvt_prog_normal_end i_log_object_exc = g_log_object_exc.

AFX_ACTVTLOG_ENDTMSTP_SET CALL FUNCTION 'AFX_ACTVTLOG_ENDTMSTP_SET' EXPORTING i_actvt_id = g_str_actvt_log-actvt_id i_enddate = sy-datum i_endtime = sy-uzeit i_log_object_exc = g_log_object_exc.

SHOW_JOBSTATE CALL FUNCTION 'SHOW_JOBSTATE' EXPORTING jobcount = l_str_actvtjob-jobcount jobname = l_str_actvtjob-jobname IMPORTING aborted = l_flg_job_aborted finished = l_flg_job_finished preliminary = l_flg_job_preliminary ready = l_flg_job_ready running = l_flg_job_running scheduled = l_flg_job_scheduled EXCEPTIONS jobcount_missing = 1 jobname_missing = 2 job_notex = 3 OTHERS = 4.

AFX_ACTVTLOG_GET CALL FUNCTION 'AFX_ACTVTLOG_GET' EXPORTING i_actvt_id = i_actvt_id IMPORTING e_tab_doc = l_tab_actvtdoc EXCEPTIONS not_found = 1 OTHERS = 2.

XDA_INTERRUPT_JOB CALL FUNCTION 'XDA_INTERRUPT_JOB' IMPORTING number_of_sessions = l_cnt_term_success TABLES requested_sessions = l_tab_term_request successful_requests = l_tab_term_success EXCEPTIONS not_authorized = 1 OTHERS = 2.

GET_JOB_RUNTIME_INFO CALL FUNCTION 'GET_JOB_RUNTIME_INFO' IMPORTING * EVENTID = * EVENTPARM = * EXTERNAL_PROGRAM_ACTIVE = jobcount = g_selfjobcount jobname = g_selfjobname stepcount = l_selfstepcount EXCEPTIONS no_runtime_info = 1 OTHERS = 2.

BANK_API_PP_LOG_CREATE_LOGNO CALL FUNCTION 'BANK_API_PP_LOG_CREATE_LOGNO' IMPORTING e_lognumber = l_lognumber.

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_terminator i_object = g_str_global_cust-object i_applcatg = space i_armode = g_str_global_cust-armode i_runuser = sy-uname i_startdate = sy-datum i_starttime = 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_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.



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