SAP Reports / Programs | Cross-Application Components | European Monetary Union: Euro(CA-EUR) SAP CA

CNV_MBT_LOCK_USER SAP ABAP Report - Lock User in Table usr02







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


Text pool values


Title: Lock User in Table usr02
Text Symbol: 007 = Receiver
Text Symbol: 008 = Central System
Text Symbol: 009 = Control System
Text Symbol: 010 = System for Technical Upgrade
Text Symbol: 011 = System is locked
Text Symbol: 001 = Initial Field
Text Symbol: 002 = System Lock Allowed
Text Symbol: 003 = System Lock not Allowed
Text Symbol: 004 = Control
Text Symbol: 005 = Central
Text Symbol: 006 = Sender


INCLUDES used within this REPORT CNV_MBT_LOCK_USER

INCLUDE CNV_MBT_USER_PREDEF_CONST.
INCLUDE CNV_MBT_USER_PREDEF_FORM.


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:

CNV_MBT_L_STATE_INIT CALL FUNCTION 'CNV_MBT_L_STATE_INIT' EXPORTING PACKID = P_PACK PHASE = P_PHASE ACTIVITY_ID = P_ACT_ID IMPORTING SESSION_ID = GD_SESS_ID EXCEPTIONS OTHERS = 1.

REUSE_ALV_BLOCK_LIST_INIT CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT' EXPORTING I_CALLBACK_PROGRAM = LV_REPID I_CALLBACK_PF_STATUS_SET = LV_PFSTATUS I_CALLBACK_USER_COMMAND = 'USER_COMMAND' * IT_EXCLUDING = EXCEPTIONS OTHERS = 1.

REUSE_ALV_BLOCK_LIST_APPEND CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND' EXPORTING IT_FIELDCAT = IT_FIELDS IS_LAYOUT = IS_LAYOUT I_TABNAME = 'IT_SHOW_SYSTEM' IT_EVENTS = T_EVENTS TABLES T_OUTTAB = IT_SHOW_SYSTEM.

REUSE_ALV_BLOCK_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY' EXPORTING IS_PRINT = GT_PRINT.

CNV_MBT_L_STATE_FINISH CALL FUNCTION 'CNV_MBT_L_STATE_FINISH' EXPORTING PACKID = P_PACK PHASE = P_PHASE ACTIVITY_ID = P_ACT_ID EXCEPTIONS UPDATE_FAILED = 1 OTHERS = 2.

CNV_MBT_RFC_GET CALL FUNCTION 'CNV_MBT_RFC_GET' EXPORTING PACKID = P_PACK EXEC_TARGET = IS_LOCKSYST-SYSTYPE IMPORTING DESTINATION_ID = LV_DESTINATION EXCEPTIONS NO_DESTINATIONS_FOR_PACKID = 1 NO_SPECIFIC_DESTINATION_TYPE = 2 GET_SYSTEM_INFO_FAILURE = 3 RFC_FAILURE = 4 SYSTEM_INFO_HAS_CHANGED = 5 OTHERS = 6.

CNV_MBT_LOCK_USER CALL FUNCTION 'CNV_MBT_LOCK_USER' DESTINATION LV_DESTINATION EXPORTING P_PACK = P_PACK P_PHASE = P_PHASE P_ACT_ID = P_ACT_ID EXCEPTIONS NO_ADMINISTRATOR_USER = 1 COMMUNICATION_FAILURE = 2 MESSAGE LV_MSG_TEXT SYSTEM_FAILURE = 3 MESSAGE LV_MSG_TEXT OTHERS = 3.

CNV_MBT_L_PROTOCOL_MESSAGE CALL FUNCTION 'CNV_MBT_L_PROTOCOL_MESSAGE' EXPORTING MSGTY = 'I' MSGID = 'CNVMBT' MSGNO = '100' MSGV1 = 'User successfully locked' LEVEL = '2' PROBCLASS = '2' EXCEPTIONS OTHERS = 1.

CNV_MBT_L_STATE_UPDATE CALL FUNCTION 'CNV_MBT_L_STATE_UPDATE' EXPORTING PACKID = P_PACK PHASE = P_PHASE ACTIVITY_ID = P_ACT_ID STATE_TEC = ' ' STATE_LOG = 'U' ABORTED = ' ' EXCEPTIONS UPDATE_FAILED = 1 OTHERS = 2.

CNV_MBT_L_PROTOCOL_WRITE_DB CALL FUNCTION 'CNV_MBT_L_PROTOCOL_WRITE_DB' EXCEPTIONS OTHERS = 1.



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