SAP Reports / Programs

RFKK_CORRSPND_WRITE SAP ABAP Report - Archiving Object CORRSPND: Write Program







RFKK_CORRSPND_WRITE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for trados = docu -> fi -> fica INCLUDE ARCHIVING_WRITE_REPORT OBJECT DOKU ID TX The check as to whether the correspondence data can be archived takes place within the write program...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 RFKK_CORRSPND_WRITE 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 RFKK_CORRSPND_WRITE. "Basic submit
SUBMIT RFKK_CORRSPND_WRITE AND RETURN. "Return to original report after report execution complete
SUBMIT RFKK_CORRSPND_WRITE 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_APPLK = D Application Area
Selection Text: P_XNOA = D Only Delete
Title: Archiving Object CORRSPND: Write Program
Text Symbol: L01 = Start Archiving Write Run On
Text Symbol: L02 = At
Text Symbol: L03 = Archiving Object:
Text Symbol: L04 = End Archiving Write Run On
Text Symbol: L05 = Archiving Write Run
Text Symbol: L06 = Archiving Mode:
Text Symbol: L07 = *** T E S T ***
Text Symbol: L08 = Simulation
Text Symbol: L09 = Production
Text Symbol: L10 = Archiving Type:
Text Symbol: L11 = Write to Archive
Text Symbol: L12 = Direct Deletion


INCLUDES used within this REPORT RFKK_CORRSPND_WRITE

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


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:

FKK_GET_CORR_APPLK CALL FUNCTION 'FKK_GET_CORR_APPLK' EXPORTING i_applk = p_applk * I_BTE_APPLK = TABLES t_tfk070zd = l_tab_tfk070zd.

AFX_DB_GLOBAL_CUST_GET CALL FUNCTION 'AFX_DB_GLOBAL_CUST_GET' EXPORTING i_object = g_con_object_corrspnd IMPORTING e_str_global_cust = g_str_global_cust EXCEPTIONS not_found = 1 OTHERS = 2.

AFX_MSG_PP_OPEN CALL FUNCTION 'AFX_MSG_PP_OPEN' EXPORTING i_applcatg = g_con_pp_applcatg_write i_prog = g_repid i_log_period = g_str_global_cust-log_period i_log_period_unit = g_str_global_cust-log_period_unit i_log_extnumber = g_logextnumber i_log_object_std = g_log_object i_log_object_exc = g_log_object_exc IMPORTING e_logextnumber = g_logextnumber e_msg_handle_std = g_msg_handle_std e_msg_handle_exc = g_msg_handle_exc EXCEPTIONS logno_creation_failed = 1 log_init_failed = 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_corrspnd 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_CUST_GLOBAL_CUST_CHECK CALL FUNCTION 'AFX_CUST_GLOBAL_CUST_CHECK' EXPORTING i_str_global_cust = g_str_global_cust IMPORTING e_tab_return = g_tab_bapiret1 EXCEPTIONS error_occured = 1 OTHERS = 2.

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 = g_aldate_del i_log_alprog = g_repid i_prog_type = g_con_progtype_write i_object = g_con_object_corrspnd i_applcatg = g_con_pp_applcatg_write 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_STATUS_UPDATE CALL FUNCTION 'AFX_ACTVTLOG_STATUS_UPDATE' EXPORTING i_actvt_id = g_str_actvt_log-actvt_id i_runstatus = g_con_actvt_pp_started i_log_object_exc = g_log_object_exc.

BANK_MAP_PP_START CALL FUNCTION 'BANK_MAP_PP_START' EXPORTING i_runid_ext = g_runid_ext i_applcatg = g_con_pp_applcatg_write i_str_appl_param = g_str_param i_xsimulrun = con_true "always Simulation, because "we don't want restart ability i_xlog = con_true "always logging i_x_sync = con_true i_x_use_dialog_wp = con_true i_tab_log = g_tab_appl_log_data[].

BANK_MAP_PP_START CALL FUNCTION 'BANK_MAP_PP_START' EXPORTING i_runid_ext = g_runid_ext i_applcatg = g_con_pp_applcatg_write i_str_appl_param = g_str_param i_xsimulrun = con_true "always Simulation, because " we want not restart ability i_xlog = con_true "always logging i_x_sync = con_false i_x_use_dialog_wp = con_false i_tab_log = g_tab_appl_log_data[] IMPORTING e_tab_jobs = g_tab_jobs[].

GET_JOB_RUNTIME_INFO CALL FUNCTION 'GET_JOB_RUNTIME_INFO' IMPORTING jobcount = g_str_jobs-jobcount jobname = g_str_jobs-jobname * stepcount = g_selfstepcount EXCEPTIONS no_runtime_info = 1 OTHERS = 2.

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

GET_JOB_RUNTIME_INFO CALL FUNCTION 'GET_JOB_RUNTIME_INFO' IMPORTING jobcount = l_selfjobcount jobname = l_selfjobname stepcount = l_selfstepcount EXCEPTIONS no_runtime_info = 1 OTHERS = 2.

AFX_ACTVTLOG_ACTVT_ANALYZE_GET CALL FUNCTION 'AFX_ACTVTLOG_ACTVT_ANALYZE_GET' EXPORTING i_jobname = l_selfjobname i_jobcount = l_selfjobcount IMPORTING e_actvt_id = l_actvt_id.

AFX_ACTVTLOG_GET CALL FUNCTION 'AFX_ACTVTLOG_GET' EXPORTING i_actvt_id = l_actvt_id IMPORTING e_str_actvt_log = l_str_actvt EXCEPTIONS not_found = 1 OTHERS = 2.

AFX_MSG_LOG_WRITE_MSG_SNG CALL FUNCTION 'AFX_MSG_LOG_WRITE_MSG_SNG' EXPORTING i_log_object = i_log_object i_str_message = l_str_msg.



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