SAP Reports / Programs

RSARCH_FLAG_SESSIONS SAP ABAP Report - Set "To Be Archived" Indicator or Set Sessions Invalid







RSARCH_FLAG_SESSIONS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Set Archiving Marker or Mark Runs as Invalid ..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 RSARCH_FLAG_SESSIONS 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

SAR_FLAG_SESSIONS - To be archived or invalid status set


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 RSARCH_FLAG_SESSIONS. "Basic submit
SUBMIT RSARCH_FLAG_SESSIONS AND RETURN. "Return to original report after report execution complete
SUBMIT RSARCH_FLAG_SESSIONS 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: USER = D .
Selection Text: SEL_DOC = D .
Selection Text: P_PROT_O = D .
Selection Text: P_PROT = D .
Selection Text: P_PRETST = D .
Selection Text: P_PREPRD = D .
Selection Text: SEL_OBJ = Archiving Object
Selection Text: INVALID = Declare sessions invalid
Selection Text: DEL_RES = Sess. Without Accessible Res.
Selection Text: DEL_FS = Sess. Without Accessible Files
Selection Text: DATE = Date of Archiving Session
Selection Text: ARCHIVE = To Be Archived
Selection Text: ALINK = Stored in archive system
Title: Set "To Be Archived" Indicator or Set Sessions Invalid
Text Symbol: 313 = Archiving Run Has the Status 'Resulting from Reloading'
Text Symbol: 312 = Archive Files Not Yet Destroyed
Text Symbol: 303 = Additional Selection Criteria for XML Archiving Objects
Text Symbol: 302 = Additional Selection Criteria for ADK Archiving Objects
Text Symbol: 300 = Further Selection Criteria
Text Symbol: 200 = Archiving Sessions
Text Symbol: 100 = Options
Text Symbol: 014 = Declare Invalid: Session Details
Text Symbol: 013 = Setting the To Be Archived Indicator: Session Details


INCLUDES used within this REPORT RSARCH_FLAG_SESSIONS

INCLUDE ADK_CONST.
INCLUDE ARCH_PREPROC_PRG_STANDARD2. " 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:

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

ENQUEUE_E_TABLE CALL FUNCTION 'ENQUEUE_E_TABLE' EXPORTING mode_rstable = 'E' tabname = 'ADMI_RUN' EXCEPTIONS foreign_lock = 4 system_failure = 8.

ENQUEUE_E_TABLE CALL FUNCTION 'ENQUEUE_E_TABLE' EXPORTING mode_rstable = 'E' tabname = 'ADMI_XRUN' EXCEPTIONS foreign_lock = 4 system_failure = 8.

DEQUEUE_E_TABLE CALL FUNCTION 'DEQUEUE_E_TABLE' EXPORTING mode_rstable = 'E' tabname = 'ADMI_RUN'.

DEQUEUE_E_TABLE CALL FUNCTION 'DEQUEUE_E_TABLE' EXPORTING mode_rstable = 'E' tabname = 'ADMI_XRUN'.

ARCHIVE_ADMIN_SELECT_SESSIONS CALL FUNCTION 'ARCHIVE_ADMIN_SELECT_SESSIONS' EXPORTING runs_without_files = 'X' indicate_progress = 'X' incorrect = 'X' incomplete = 'X' complete = 'X' being_reloaded = 'X' created_by_reload = 'X' replaced = 'X' to_be_archived = 'X' invalid = 'X' interrupted_incomplete = 'X' interrupted_complete = 'X' * IMPORTING * archive_runs = me->t_adk_runs TABLES "client = lt_range_client object = sel_obj document = sel_doc date = date user = user selected_runs = lt_admi_run EXCEPTIONS object_not_found = 0.

FILE_GET_NAME_USING_PATH CALL FUNCTION 'FILE_GET_NAME_USING_PATH' EXPORTING logical_path = -pathintern parameter_1 = ls_applic parameter_3 = ls_object file_name = -filename IMPORTING file_name_with_path = -filename EXCEPTIONS path_not_found = 1 OTHERS = 5.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = ps_admin-document i_text = p_msgtxt i_msgtype = p_msgtype i_callback_parameter = lt_parameter.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = ps_admin-document i_msgid = 'BA' i_msgno = p_msgno i_msgv1 = ps_admin-object i_msgv2 = ps_admin-comments i_msgtype = p_msgtype i_callback_parameter = lt_parameter.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = ps_admin-document i_msgid = p_msgid i_msgno = p_msgno i_msgv1 = p_msgv1 i_msgtype = p_msgtype i_callback_parameter = lt_parameter.

ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = p_prot i_callback_parameter = gs_bal_s_parm.

ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.

ARCHIVE_PROTOCOL_LINE_DETAIL CALL FUNCTION 'ARCHIVE_PROTOCOL_LINE_DETAIL'.

CONVERT_DATE_TO_EXTERNAL CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL' EXPORTING date_internal = l_date_in IMPORTING date_external = l_date EXCEPTIONS OTHERS = 2.

POPUP_DISPLAY_TEXT_WITH_PARAMS CALL FUNCTION 'POPUP_DISPLAY_TEXT_WITH_PARAMS' EXPORTING language = sy-langu popup_title = l_titel start_column = 10 start_row = 3 text_object = 'ARCHIVE_FLAG_SESSIONS' TABLES parameters = lt_params EXCEPTIONS OTHERS = 0.



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