SAP Reports / Programs

RSM04000_ALV SAP ABAP Report - SM04 with ALV







RSM04000_ALV 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 RSM04000_ALV 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 RSM04000_ALV. "Basic submit
SUBMIT RSM04000_ALV AND RETURN. "Return to original report after report execution complete
SUBMIT RSM04000_ALV VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: SM04 with ALV
Text Symbol: 037 = Connected
Text Symbol: 038 = Pooled
Text Symbol: 039 = Plugin &
Text Symbol: 040 = Deleting user on server &
Text Symbol: 041 = RFC Type
Text Symbol: 042 = Lang.
Text Symbol: 043 = Logon Date
Text Symbol: 044 = Logon Time
Text Symbol: 045 = Field
Text Symbol: 046 = Value
Text Symbol: 047 = Reset Session Pool to Server & Running
Text Symbol: 048 = IP Address
Text Symbol: 049 = Memory Mode
Text Symbol: 050 = Heap Mode
Text Symbol: 051 = Megabyte
Text Symbol: 052 = System
Text Symbol: 053 = Reset Session Pool
Text Symbol: 054 = Do you want to reset the session pool?
Text Symbol: 055 = Log Off User
Text Symbol: 056 = Do you want to log off user &?
Text Symbol: 057 = Appl. Info.
Text Symbol: 058 = Unknown
Text Symbol: 059 = Security Context
Text Symbol: 060 = &1 &2 User
Text Symbol: 036 = RFC
Text Symbol: 001 = Clnt
Text Symbol: 002 = User
Text Symbol: 003 = Terminal
Text Symbol: 004 = Transaction
Text Symbol: 005 = Time
Text Symbol: 006 = Sess.
Text Symbol: 007 = Sess.
Text Symbol: 008 = User ID
Text Symbol: 009 = Roll
Text Symbol: 010 = Page
Text Symbol: 011 = Int. Sess.
Text Symbol: 019 = Server





Text Symbol: 020 = Session ID
Text Symbol: 022 = *** & users logged on with & modes ***
Text Symbol: 023 = Mem(Total)
Text Symbol: 024 = Mem(Priv.)
Text Symbol: 025 = Mem(EM)
Text Symbol: 026 = Trace
Text Symbol: 027 = OFF
Text Symbol: 028 = ON
Text Symbol: 029 = Log
Text Symbol: 030 = GUI version
Text Symbol: 033 = Type
Text Symbol: 034 = Status
Text Symbol: 035 = GUI


INCLUDES used within this REPORT RSM04000_ALV

INCLUDE TSKHINCL.
INCLUDE RSUSRCOM.
INCLUDE RSBLKCOM.


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:

LIST_ALLOW_SEQUENCE_OF_HYPHENS *call function 'LIST_ALLOW_SEQUENCE_OF_HYPHENS' * exporting * character = f * exceptions * others = 0.

REUSE_ALV_LIST_DISPLAY

REUSE_ALV_GRID_DISPLAY *call function 'REUSE_ALV_LIST_DISPLAY' * End of ALV Migration changes - C5056145 CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_structure_name = 'USR_TABL_ALV' i_callback_program = sy-repid i_callback_pf_status_set = 'SM04_SET_STATUS' i_callback_user_command = 'SM04_USER_CMD' i_save = 'A' it_fieldcat = fieldcat[] it_events = events[] is_layout = layout is_variant = is_variant TABLES t_outtab = usr_tabl_alv.

GWY_IPADR2STRING * CALL FUNCTION 'GWY_IPADR2STRING' * EXPORTING * IPADR = usr_tabl-HOSTADR * IMPORTING * STRING = usr_tabl_alv-ipaddr.

TH_GET_PLUGIN_INFO CALL FUNCTION 'TH_GET_PLUGIN_INFO' EXPORTING protocol = usr_tabl_alv-protocol IMPORTING name = plugin_name EXCEPTIONS OTHERS = 1.

TH_GET_APPL_INFO CALL FUNCTION 'TH_GET_APPL_INFO' EXPORTING mode = th_appl_info_mode_stack tid = usr_tabl_alv-tid IMPORTING appl_info = usr_tabl_alv-appl_info EXCEPTIONS OTHERS = 0.

TH_GET_SECURITY_CONTEXT_REF CALL FUNCTION 'TH_GET_SECURITY_CONTEXT_REF' EXPORTING tid = usr_tabl_alv-tid IMPORTING SECURITY_CONTEXT_REFERENCE = security_context_reference IS_SET = is_sec_cont_ref_set EXCEPTIONS INTERNAL_ERROR = 1 OTHERS = 2 .

IWB_HTML_HELP_OBJECT_SHOW CALL FUNCTION 'IWB_HTML_HELP_OBJECT_SHOW' EXPORTING tcode = 'SM04' EXCEPTIONS OTHERS = 0.

SUSR_SHOW_USER_DETAILS CALL FUNCTION 'SUSR_SHOW_USER_DETAILS' EXPORTING mandt = mandt bname = bname.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-053 text_question = text-054 IMPORTING answer = answer EXCEPTIONS OTHERS = 0.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-055 text_question = question IMPORTING answer = answer EXCEPTIONS OTHERS = 0.






TH_DELETE_USER CALL FUNCTION 'TH_DELETE_USER' EXPORTING client = client user = user tid = tid only_pooled_user = only_pooled_user EXCEPTIONS OTHERS = 1.

TH_SERVER_LIST CALL FUNCTION 'TH_SERVER_LIST' TABLES list = srvlist EXCEPTIONS no_server_list = 1 OTHERS = 2.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = prozent text = msg.

TH_DELETE_USER CALL FUNCTION 'TH_DELETE_USER' EXPORTING client = client user = user only_pooled_user = only_pooled_user.

TH_DELETE_USER CALL FUNCTION 'TH_DELETE_USER' DESTINATION srvlist-name STARTING NEW TASK task_name PERFORMING receive_results ON END OF TASK EXPORTING client = client user = user only_pooled_user = only_pooled_user EXCEPTIONS communication_failure comm_message system_failure.

TH_ACTIVATE_USER_TRACE CALL FUNCTION 'TH_ACTIVATE_USER_TRACE' EXPORTING tid = usr_tabl_alv-tid immediately = immediately level = trace_level EXCEPTIONS authority_error = 1 OTHERS = 2.

TH_DEACTIVATE_USER_TRACE CALL FUNCTION 'TH_DEACTIVATE_USER_TRACE' EXPORTING tid = usr_tabl_alv-tid immediately = immediately EXCEPTIONS authority_error = 1 OTHERS = 2.

STRC_SELECT_USER_TRACE CALL FUNCTION 'STRC_SELECT_USER_TRACE' EXPORTING user = usertrace-user displaymask = 'All' EXCEPTIONS OTHERS = 3.

REUSE_ALV_LIST_DISPLAY

REUSE_ALV_GRID_DISPLAY *call function 'REUSE_ALV_LIST_DISPLAY' * End of ALV Migration changes - C5056145 CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_structure_name = 'TERM_TABL_ALV' i_callback_program = sy-repid i_callback_pf_status_set = 'SM04_TERM_SET_STATUS' i_callback_user_command = 'SM04_TERM_USER_CMD' i_save = 'A' it_fieldcat = term_fieldcat[] is_layout = term_layout is_variant = is_variant TABLES t_outtab = term_tabl_alv.

TH_REMOTE_TRANSACTION CALL FUNCTION 'TH_REMOTE_TRANSACTION' EXPORTING dest = dest tcode = 'SM04' IMPORTING comm_message = comm_message syst_message = syst_message.

REUSE_ALV_LIST_DISPLAY

REUSE_ALV_GRID_DISPLAY *call function 'REUSE_ALV_LIST_DISPLAY' * End of ALV Migration changes - C5056145 CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_structure_name = 'MEM_TABL_ALV' i_callback_program = sy-repid i_callback_pf_status_set = 'SM04_MEM_SET_STATUS' i_callback_user_command = 'SM04_MEM_USER_CMD' i_save = 'A' it_fieldcat = mem_fieldcat[] is_layout = mem_layout is_variant = is_variant TABLES t_outtab = mem_tabl_alv.

REUSE_ALV_LIST_DISPLAY

REUSE_ALV_GRID_DISPLAY *call function 'REUSE_ALV_LIST_DISPLAY' * End of ALV Migration changes - C5056145 CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_structure_name = 'DETAILED_MEM_TABL_ALV' i_callback_program = sy-repid i_callback_pf_status_set = 'SM04_DETAILED_MEM_SET_STATUS' i_callback_user_command = 'SM04_DETAILED_MEM_USER_CMD' i_save = 'A' it_fieldcat = mem_details_fieldcat[] is_layout = mem_details_layout is_variant = is_variant TABLES t_outtab = detailed_mem_tabl_alv.

REUSE_ALV_LIST_DISPLAY

REUSE_ALV_GRID_DISPLAY *call function 'REUSE_ALV_LIST_DISPLAY' * End of ALV Migration changes - C5056145 CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_structure_name = 'IDETAILED_MEM_TABL_ALV' i_callback_program = sy-repid i_callback_pf_status_set = 'SM04_IDETAILED_MEM_SET_STATUS' i_callback_user_command = 'SM04_IDETAILED_MEM_USER_CMD' i_save = 'A' it_fieldcat = mem_idetails_fieldcat[] is_layout = mem_idetails_layout is_variant = is_variant TABLES t_outtab = idetailed_mem_tabl_alv.

POPUP_DISPLAY_TEXT_USER_BUTTON CALL FUNCTION 'POPUP_DISPLAY_TEXT_USER_BUTTON' EXPORTING popup_title = help_fieldname text_object = doku-object docu_class = docu_class IMPORTING answer = answer TABLES parameter = loc_spar EXCEPTIONS OTHERS = 0.

REUSE_ALV_LIST_DISPLAY

REUSE_ALV_GRID_DISPLAY *call function 'REUSE_ALV_LIST_DISPLAY' * End of ALV Migration changes - C5056145 CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_structure_name = 'USR_INFO' i_callback_program = sy-repid i_callback_pf_status_set = 'SM04_USR_INFO_SET_STATUS' i_callback_user_command = 'SM04_USR_INFOS_USER_CMD' i_save = 'A' it_fieldcat = usr_info_fieldcat[] is_layout = usr_info_layout is_variant = is_variant TABLES t_outtab = usr_info.

SYSTEM_DEBUG_AUTHORITY_CHECK CALL FUNCTION 'SYSTEM_DEBUG_AUTHORITY_CHECK' EXPORTING flag_replace = flag_replace flag_kernel = flag_kernel IMPORTING flag_authority = authority.



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