RASHSD04 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 RASHSD04 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.
Entries:
Selection Text: VBELN = Sales activity no.
Selection Text: VBELN_AS = Sales activity no. (archive)
Selection Text: VBELN_DB = Sales activity no. (DB)
Title: Sales activities
Text Symbol: 001 = Search in the database
Text Symbol: 002 = Search in the Archive Information System
001 Sales activities in the archive
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
ASH_HIERARCHY_SHOW CALL FUNCTION 'ASH_HIERARCHY_SHOW' EXPORTING i_borident = g_asborident.
AS_API_READ CALL FUNCTION 'AS_API_READ' "#EC * EXPORTING i_fieldcat = xaind_str1-archindex i_selections = objkey i_obligatory_fields = lt_oblfields IMPORTING e_result = lt_result[] EXCEPTIONS parameters_invalid = 1 no_infostruc_found = 2 OTHERS = 3.
ARCHIVE_READ_OBJECT CALL FUNCTION 'ARCHIVE_READ_OBJECT' EXPORTING object = 'SD_VBKA' archivkey = lt_result-archivekey offset = lt_result-archiveofs IMPORTING archive_handle = handle EXCEPTIONS OTHERS = 1.
ARCHIVE_GET_NEXT_RECORD CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD' EXPORTING archive_handle = handle IMPORTING record_structure = structure record_ref = gf_record_ref EXCEPTIONS end_of_object = 1.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = handle.
AS_API_READ CALL FUNCTION 'AS_API_READ' "#EC * EXPORTING i_fieldcat = xaind_str1-archindex i_selections = objkey i_obligatory_fields = lt_oblfields IMPORTING e_result = lt_result[] EXCEPTIONS parameters_invalid = 1 no_infostruc_found = 2 OTHERS = 3.
REUSE_ALV_POPUP_TO_SELECT CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT' EXPORTING i_zebra = 'X' i_screen_start_column = 2 i_screen_start_line = 4 i_screen_end_column = 40 i_screen_end_line = biszeile i_tabname = 'gt_data_alv' it_fieldcat = gt_fieldcat i_callback_program = g_repid IMPORTING es_selfield = gs_selfield e_exit = gv_exit TABLES t_outtab = gt_data_alv EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = g_repid i_structure_name = gc_structure CHANGING ct_fieldcat = xt_fcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.
REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = xt_eventtab.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.