*Messages
*----------------------------------------------------------
*
* Message class: SC
*016 Program & does not exist
*017 Transaction & has not been created
*018 Function group & does not exist
*019 Function module & does not exist
*020 Dialog module & does not exist
*024 Specify a program
*025 Specify a transaction
*026 Specify a function group
*027 Enter a function module
*028 Please enter a dialog module
mseuztop
Code:
*----------------------------------------------------------------------*
* INCLUDE MSEUZTOP *
*----------------------------------------------------------------------*
PROGRAM SAPMSEUZ MESSAGE-ID SC.
TYPES: RCODE(5).
* Tabellen
TABLES: RSEUX, " Dynprofelder
TRDIR, " Programme
TLIBG, " Funktionsgruppen
TFDIR, " Funktionsbausteine
TDCT, " Dialogbausteine
TSTC. " Transaktionen
* Dynprofelder
DATA: OK_CODE(4),
SCR_RETURN TYPE RCODE,
SCR_TYPE LIKE EUOBJ-ID,
SCR_OBJECT LIKE STREENODE-NAME,
SCR_DWOBJECT LIKE DWTREE-NAME,
SCR_PROGRAM LIKE TRDIR-NAME.
* Konstante
CONSTANTS:
* returncodes
CON_CANCEL TYPE RCODE VALUE 'BREAK',
CON_CONTINUE TYPE RCODE VALUE 'CONT',
CON_NOT_FOUND TYPE RCODE VALUE 'NOTFD',
CON_ANALYSE TYPE RCODE VALUE 'ANALY',
CON_SAVE TYPE RCODE VALUE 'SAVE'.
INCLUDE LSEU9OTP.
mseuzo01
Code:
*-------------------------------------------------------------------
***INCLUDE LSEU9O01 .
*-------------------------------------------------------------------
*&---------------------------------------------------------------------*
*& Module SELSCREEN_INIT OUTPUT
*&---------------------------------------------------------------------*
MODULE SELSCREEN_INIT OUTPUT.
CASE SY-DYNNR.
WHEN 100. CALL FUNCTION 'RS_CALL_HIERARCHY_STATUS'
EXPORTING
STATUS = 'ENTRY'
TITLEBAR = 'CTR'
EXCEPTIONS
OTHERS = 1.
WHEN 200. CALL FUNCTION 'RS_PROGRAM_TABLES_STATUS'
EXPORTING
STATUS = 'ENTRY'
TITLEBAR = 'TAB'
EXCEPTIONS
OTHERS = 1.
ENDCASE.
ENDMODULE. " SELSCREEN_INIT OUTPUT
mseuzi01
Code:
*-------------------------------------------------------------------
***INCLUDE LSEU9I01 .
*-------------------------------------------------------------------
*&---------------------------------------------------------------------*
*& Module OK_CODE INPUT
*&---------------------------------------------------------------------*
MODULE OK_CODE INPUT.
CASE OK_CODE.
WHEN 'END'. SET SCREEN 0. LEAVE SCREEN.
WHEN 'RTRN'. SET SCREEN 0. LEAVE SCREEN.
WHEN 'EXIT'. SET SCREEN 0. LEAVE SCREEN.
WHEN 'CANC'. SET SCREEN 0. LEAVE SCREEN.
WHEN 'SHWC'. CALL FUNCTION 'RS_CALL_HIERARCHY'
EXPORTING
OBJECT_TYPE = SCR_TYPE
OBJECT_NAME = SCR_OBJECT
PROGRAM = SCR_PROGRAM
MONITOR_ACTIVATE = 'X'
EXCEPTIONS
OTHERS = 1.
WHEN 'SHWT'. SCR_DWOBJECT = SCR_OBJECT.
CALL FUNCTION 'RS_PROGRAM_TABLES'
EXPORTING
OBJECT_TYPE = SCR_TYPE
OBJECT_NAME = SCR_DWOBJECT
PROGRAM = SCR_PROGRAM
MONITOR_ACTIVATE = 'X'
EXCEPTIONS
OTHERS = 1.
WHEN 'REFR'. CALL FUNCTION 'RS_CALL_HIERARCHY_INVERTED'
EXPORTING
OBJECT_TYPE = SCR_TYPE
OBJECT_NAME = SCR_OBJECT
PROGRAM = SCR_PROGRAM
MONITOR_ACTIVATE = 'X'
EXCEPTIONS
OTHERS = 1.
WHEN 'RFRS'. CALL FUNCTION 'RS_CALL_HIERARCHY_ACTUALIZE'
EXPORTING
OBJECT_TYPE = SCR_TYPE
OBJECT_NAME = SCR_OBJECT
PROGRAM = SCR_PROGRAM
EXCEPTIONS
OTHERS = 1.
WHEN 'DEL'. CALL FUNCTION 'RS_CALL_HIERARCHY_DELETE'
EXPORTING
OBJECT_TYPE = SCR_TYPE
OBJECT_NAME = SCR_OBJECT
PROGRAM = SCR_PROGRAM
SUPPRESS_MESSAGE = SPACE
EXCEPTIONS
OTHERS = 1.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.