ABAP/4 UNIX browser.

November 15, 2000

Description:

This program is online report that allows you to navigate trough directory tree of the current application server, if this server is UNIX system server. You can view a files as well (record length is restricted by 65524 in the time being).
This utility is useful by creating or changing of an ABAP/4 programs that upload/download UNIX files (datasets).
Can be used also for quick viewing of UNIX log-files etc.
Note. You can browse SAP directories on application server using the AL11 transaction. But this ABAP/4 UNIX browser allows you to browse any directory, not only SAP directory. The wildcard characters can be used to filter objects in the directory. Is it possible also to download selected files from application server to front-end PC, or to send the selected file contents as e-mail to an internet address. Some screenshots:

Implementation Instructions:

  1. Download source code: zsgicnpv.txt;
  2. Upload the source code into ABAP report using transaction se38;
  3. Execute the program (press F8).
The program is especially designed for easy installation and does not use any separate screens, menus, statuses, even text elements and selection texts. The program is ready to run just after uploading of ABAP/4 source code.
Also checked in 4.6C.

Disclaimer:

As usually,
Permission is granted to use this code for any not commercial purpose whatsoever free of charge at your own risk. No warranties on this code are intended or implied.

Security Notes:

  1. You should know, that user who runs this program get the rights of SAP system run-time environment on the UNIX system. These rights often are overvelming his/her own. Therefore, user can view, e.g. the confidential information on the UNIX system;
  2. If you want that only you can run this program then go to the ENTRY form at the end of source code and type your SAP ID instead of VICTOR:
    
    		FORM ENTRY.
    		  IF SY-UNAME <> 'VICTOR'.
    		    LEAVE PROGRAM.
    		  ENDIF.
    		ENDFORM.
    		
  3. If you want that nobody could view this program source code on SAP via se38 transaction then insert as 1st line in the source code the following line (this trick to hide source code may not work in SAP 4.6):
    
    		*@#@@[SAP]
    		
  4. See the note below:
    I don't recommend use cheat, which I describe below. I only want to warn that this is possible and you have to provide some safeguards if you have a fear.
    Select text on the right of me ===> Programmer can implement a back entrance into the browser using secret code in file pattern screen. After entering this code, for example, a special 'Enter UNIX command to execute' window can pop-up on the screen etc.

See also:


TopList