Executing an OS command Use report RSBDCOS0 Using Transaction variants Change SAP standard screens by hiding fields, screens

, tabstrips, changing f ield properties, ... read on Show all users per Application server Transaction AL08 To log a user off via an ABAP CALL 'SYST_LOGOFF'. Advanced SM04 program The following program displays the Ip address , workstation name , Nt user name etc. Plus you can send instant messages to users just by clicking on the us er name. It will show a red band for users who exceeds session limit. ( That you can adjust ). Created this for R/3 4.6C and above. (Submitted by Joy Ramachandr an) - Click here to download zuser.txt Changing the SAP Logo on the top right of the SAPGui Change file sapalogo.bmp in directory C:\Program Files\SAP\FrontEnd\SAPgui\t hemes\default (SAP 4.6C) Changing the Logo on the Right Hand Side ( Courtesy of: http://sapr3.tripod.com ) Transaction code - SMW0 X - Binary data for WebRFC application Hit Enter Click Execute Click Settings -> Maintain MIME types Click the Create button Fill in :- TYPE : image/gif EXTENSION : .GIF Click Save Click Back to the Binary data for WebRFC Click Create Fill in :- Obj. name : ZXXXX.GIF Description : Company Logo Click Import and specify the filename where your GIF file is located.File ty pe is BIN. Finish press the Transfer button. If successful, your logo will be shown in the Binary data for WebRFC. Transaction codeSM30 - Table/View - SSM_CUST Click Maintain Click New Entries Name Value to be set START_IMAGE ZXXXX.GIF RESIZE_IMAGE NO Logoff and Login again Automated transports 1. Create table ZTRAN in the data dictionary. The program will write the log in this table. Name Kurzbeschreibung Letzte ?nderung Status ZTRAN Transparente Tabelle

Tabelle f?r Protokollierung Auto-Transportauftr?ge DZVONYAR aktiv 22.10.1997 gesichert Mastersprache Entwicklungsklasse D ZZDZ

-------------------------------------------------------------------------------AusliefKlasse A Anwendungstab. (Stamm- und Bewegungsdaten)

Schedule program ZZDZTRAN to run periodically under user-id TRANSPORT as show n: Job name AUTOTRANSPORT_C30 AUTOTRANSPORT_P30 Job class A A Job frequency 10 Min .Feldname ZAUFTRAG ZZIELSYS ZZIELMAND ZSEND_NAM ZDATUMBEG ZTIMEBEG ZDATUMEND ZTIMEEND ZRETCODE Key Datenelem. Datum vom Anfang des Autotrans Zeitpunkt vom Anfang des Autot Datum vom Ende des Autotranspo Zeitpunkt vom Ende des Autotra Returncode des Transportes TARSYSTEM CHAR MANDT CLNT SO_SND_NAM CHAR ZDATUMBEG DATS ZTIMEBEG TIMS ZDATUMEND DATS ZTIMEEND ZRETCODE TIMS CHAR 2. Typ L?nge Pr?fTab TRKORR CHAR 10 * 10 * 3 * 12 8 6 8 6 4 Kurzbeschreibung Korrektur/Transportauftrag/Com Zielsystem der Korrektur Mandant Sender: Name. Create the next programs in the system. Program ZZDZTRAN Include ZZDZTRA1 3. Create user TRANSPORT 4.

. xxxK90xxxx <-.) Body Zeitpunkt SS:MM Auftrag --> BEGINN xxxK90xxxx xxxK90xxxx . Command line parameters are: . Peter Dzvonyar To find out transports released from a specified system in the last specified nu mber of days using in the specified transport directory. Send a mail in the following format to user TRANSPORT : Title Must be started with the next string: @4A@ (It will be displayed later as the transport icon.. Zeitpunkt eingeben! ! DIESE ZEILE NICHT ?NDERN! ! DIESE ZEILE NICHT ?NDERN! ! DIESE ZEILE NICHT ?NDERN! Kommentar Kommentar Kommentar ! DIESE ZEILE NICHT ?NDERN! Zeitpunkt SS:MM = Time hour:minute ( The request will be imported later than hou r:minute) Auftrag = Change request Ziel = target Mand = Client Kommentar = Comments DIESE ZEILE NICHT ?NDERN = DO NOT CHANGE THIS LINE Fill out SS:MM and all the x-es as required.ENDE Ziel System Mand xxx xxx xxx xxx xxx xxx <Hier evtl.10 Min Program name ZZDZTRAN ZZDZTRAN Parameter C30 P30 C30: Test system P30: Production system 5. The program will read the mail and import the change requests into the target sy stems.

Number of days: $1 Source system : $2 Transport dir : $3 (if different from /usr/sap/trans) #!/bin/sh if [ $# != 4 ] then echo "Incorrect usage.-----------------------" fi cd ${LOGDIR} for TP in `cat ${TEMPFILE1}` do echo "" var1=`ls -l ${DATADIR}/*${TP}* aw Exported on ----------- Import date ------------- awk '{print $6" " $7" " $8}'` if [ ${OUTPUT_FORMAT} = 'W' ] then echo "${SOURCE_SYSTEM}K${TP} Exported out of ${SOURCE_SYSTEM} on ${var1} " echo "------------------------------------------------------------------" fi ls -1 ${SOURCE_SYSTEM}I${TP}* > ${TEMPFILE2} for LOGS in `cat ${TEMPFILE2}` do var2=`ls -l ${LOGS}* awk '{print $6" " $7" " $8}'` if [ ${OUTPUT_FORMAT} = 'W' ] then .' '{print $1}' > ${TEMPFILE1} if [ ${OUTPUT_FORMAT} = 'E' ] then echo "Transport Source system Import time" echo "--------. Usage: $0 <Number of days> <Source system> <DIR_TRANS> <O utput format [E]xcel/[W]ord>" exit 0 fi NUMBER_OF_DAYS=$1 SOURCE_SYSTEM=$2 DIR_TRANS=$3 OUTPUT_FORMAT=$4 echo "Listing the transports released from ${SOURCE_SYSTEM} in the last ${NUMBER _OF_DAYS} days" DATADIR=${DIR_TRANS}/data LOGDIR=${DIR_TRANS}/log COFILEDIR=${DIR_TRANS}/cofiles TEMPFILE1=/tmp/tempfile1 TEMPFILE2=/tmp/tempfile2 find ${DATADIR} -name "*.${SOURCE_SYSTEM}" -mtime -${NUMBER_OF_DAYS} -print k -F'R' '{print $2}' awk -F'.

echo "Imported to `echo $LOGS on ${var2}" else awk -F'.' '{print $2}'` ${var2}" fi done done From http://www.com/ .' '{print $2}'` #echo "Transport ${SOURCE_SYSTEM}K${TP} Exported from ${ SOURCE_SYSTEM} at ${var1} & Imported to `echo $LOGS awk -F'.basisguru.' '{print $2}'` on ${var2}" echo "${SOURCE_SYSTEM}K${TP} ${SOURCE_SYSTEM} ${var1} `echo $LOGS awk -F'.

Sign up to vote on this title
UsefulNot useful