SPI_LS_ANALYZE2 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 SPI_LS_ANALYZE2 into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: P_AGID = Agent ID (Optional)
Selection Text: P_CLNT = Client (Optional)
Selection Text: P_DFROM = From Date (Optional)
Selection Text: P_SPOFF = No Performance Data
Selection Text: P_TFROM = From UTC Time (Optional)
Selection Text: P_USER = User (Optional)
Title: Local Store Analysis Report
INCLUDE PERFINCL.
No SAP DATABASE tables are accessed within this REPORT code!
SPI_LS_WRITE *CALL function 'SPI_LS_WRITE' * exporting * is_record = ls_data * .
PF_GET_ACT_DIA_REC *CALL FUNCTION 'PF_GET_ACT_DIA_REC' * IMPORTING * act_dia_rec = ls_record.
TH_GET_CONTEXT_ID *CALL FUNCTION 'TH_GET_CONTEXT_ID' * IMPORTING * context_id = l_contid * id_len = l_len.
TH_GET_SESSION_ID *CALL FUNCTION 'TH_GET_SESSION_ID' * IMPORTING * session_id = l_sessionid * id_len = l_len.
TH_GET_OWN_WP_NO *CALL function 'TH_GET_OWN_WP_NO' * IMPORTING * SUBRC = l_subrc * WP_NO = l_wpno * WP_PID = l_wpid * WP_INDEX = l_wpind * .
TH_TX_TRANS_ID *CALL function 'TH_TX_TRANS_ID' ** EXPORTING ** EXT_TRANS_ID = ** EXT_TRANS_ID_LEN = 0 * IMPORTING * TRANS_ID = l_tid * .
PF_ASTAT_FLUSH_BUFFER CALL function 'PF_ASTAT_FLUSH_BUFFER' .
PF_ASTAT_OPEN_FILE CALL function 'PF_ASTAT_OPEN_FILE' * EXPORTING * FILE = ' ' EXCEPTIONS PF_INTERNAL_ERROR = 1 OTHERS = 2 .
PF_ASTAT_READ_FILE CALL function 'PF_ASTAT_READ_FILE' EXPORTING * READ_FILE = READ_MODE = pf_read_next_rec * TARGET_REC_NO = 0 USER = sy-uname * END_TIME = * END_DATE = SY-DATUM IMPORTING ASTATREC = ls_asrec ASCOLREC = ls_colrec RECTYPE = l_rectype RECNO = l_recno NEW_FILE = l_nf ACT_FILENAME = l_af FILEREC = l_filerec RECS_IN_FILE = l_recs EXCEPTIONS PF_END_OF_FILE = 1 PF_INTERNAL_ERROR = 2 PF_PARAMETER_ERROR = 3 OTHERS = 4 .
PF_ASTAT_CLOSE_FILE CALL function 'PF_ASTAT_CLOSE_FILE' .
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.