SAPMS013 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 SAPMS013 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: FROMUSER = From user
Selection Text: NEWPROF = New profile
Selection Text: OLDPROF = Old profile
Selection Text: TILLUSER = To user
Selection Text: USERL = D User
Title: Replace Authorization Profile With New Profile
Text Symbol: 180 = Total users
Text Symbol: 181 = Users changed
001 Replace Authorization Profile With New Profile
INCLUDE MS01CTP2.
INCLUDE MS01CTCO.
No SAP DATABASE tables are accessed within this REPORT code!
BAL_LOG_CREATE call function 'BAL_LOG_CREATE' exporting i_s_log = ls_log exceptions others = 1.
BAL_DSP_PROFILE_NO_TREE_GET call function 'BAL_DSP_PROFILE_NO_TREE_GET' importing e_s_display_profile = ls_display_profile exceptions others = 1.
BAL_DSP_LOG_DISPLAY call function 'BAL_DSP_LOG_DISPLAY' exporting i_s_display_profile = ls_display_profile exceptions profile_inconsistent = 1 internal_error = 2 no_data_available = 3 no_authority = 4 others = 5.
BAL_LOG_MSG_ADD_FREE_TEXT call function 'BAL_LOG_MSG_ADD_FREE_TEXT' exporting i_msgty = lc_msgtyp i_text = iv_text exceptions log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 others = 4.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.