SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Customized login screen: clients, comments, MOTD, etc.



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> Security and Monitoring
View previous topic :: View next topic  
Author Message
admin
Администратор
Администратор



Joined: 01 Sep 2007
Posts: 1640

PostPosted: Sat Nov 17, 2007 7:51 pm    Post subject: Customized login screen: clients, comments, MOTD, etc. Reply with quote

Customized login screen - list of clients, comments, MOTD, etc.

Code:
PROGRAM SAPMSYST MESSAGE-ID 00.
.
.
.
                " IMRE  OUTPUT
*&---------------------------------------------------------------------*
*&      Module  LILI  OUTPUT
*&---------------------------------------------------------------------*
*       text                                                           *
*----------------------------------------------------------------------*
MODULE LILI OUTPUT.

  CALL SCREEN 9876 STARTING AT 10 1 ENDING AT 75 23.

ENDMODULE.                 " LILI  OUTPUT
*&---------------------------------------------------------------------*
*&      Module  LALA  OUTPUT
*&---------------------------------------------------------------------*
*       text                                                           *
*----------------------------------------------------------------------*
MODULE LALA OUTPUT.

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> Security and Monitoring All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
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.