TABLES: T000.
DATA: FDIR(70) VALUE '/usr/sap/trans/message/m.',
RECORD(256),
DSN(70).
SUPPRESS DIALOG.
LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
NEW-PAGE NO-TITLE NO-HEADING.
SET TITLEBAR '123'.
WRITE: / 'The following clients are accessible in the'
, SY-SYSID(3), 'system:'.
WRITE: / ' (Choose one by double clicking on it)'.
SKIP.
SELECT * FROM T000 CLIENT SPECIFIED.
WRITE: / ' ',
T000-MANDT COLOR 2, T000-MTEXT COLOR 2. HIDE T000-MANDT.
ENDSELECT.
CLEAR T000-MANDT.
SKIP 1.
WRITE: / 'Please report any problems to:'.
SKIP 1.
WRITE: / '.......'
COLOR 2.
SKIP 1.
WRITE: / 'System Messages:'.
* skip 1.
* concatenate fdir sy-sysid(3) into dsn.
* open dataset dsn in text mode for input.
* if sy-subrc ne 0.
* skip 1.
* write: / 'Error opening the system message file ' color 6
* , sy-subrc.
* else.
* do.
* read dataset dsn into record.
* if sy-subrc ne 0.
* exit.
* endif.
* if record(1) ne '#'.
* write: / record.
* endif.
* enddo.
* close dataset dsn.
* endif.
ENDMODULE. " LALA OUTPUT
*&---------------------------------------------------------------------*
*& Event AT LINE-SELECTION
*&---------------------------------------------------------------------*
AT LINE-SELECTION.
READ LINE SY-INDEX.
IF T000-MANDT IS INITIAL. EXIT. ENDIF.
RSYST-MANDT = T000-MANDT.
LEAVE SCREEN.
CLEAR T000.
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.