SAP Tips
SAP Tips
If you have a new landscape in your network and need to set up all of the printers (output devices) you have in your other landscape, you can transfer them in seconds! Instead of creating a transport with all the printers, simply export them to a text file and import them in your new systems. To EXPORT all output devices: 1. 2. 3. 4. 4. 5. 6. 7. Run transaction SPAD. Select Utilities -> for output devices -> Export devices. Enter a filename. Choose Frontend computer under File sytem info. Choose Export under Operation. Check Execute export under Options. Enter * in Output Device under Objects for export. Click Execute.
To IMPORT all output devices: 1. Repeat the steps above but choose Import and Execute import under Operation and Options respectively. The text file generated by the export looks like this: VERSION = "0.1" TIME = "20050727110101" SYSTEM = "DEV" RELEASE = "620" * DEVICE = { NAME = "ariel" PADEST = "ARIE" PATYPE = "HPLJ4" PAMODEL = "HP LaserJet 4" PACLASS = "" PAARCHIVER = "" PALANGU = "E" PADISABLED = "" PANOQUERY = "" PADUPCOPY = "" PADUPLEX = "" PASTORELOC = "" PADFLTUTTL = "" PADFLTSTTL = "" PASYNC = "" PAMONI = "" PASTANDORT = "Plant 7 Supply Room" PAMSG = "Plant 7 Supply Room"
PAMSSERVER = "myspooler" PAMETHOD = "C" PAPROSNAME = "\\prnserver\ariel" PALOMS = "" PALPRCMD = "" PALPDHOST = "" PALPDPORT = "0" PACONNTIME = "0" PAREADTIME = "0" PATRAYS = "0" PAXSHIFT = "0" PAYSHIFT = "0" PAXSHUNIT = "MM" PAYSHUNIT = "MM" PACRYPTMOD = "" PACRYPTMET = "" PANOVSERVR = "" PAPOOLART = "" PATRACE2 = "" PATRACEF = "" PAPROTDATA = "" PAPROTCMD = "" PAPROTRES = "" PAKEEPFILE = "" CHGNAME1 = "DEVADM" CHGTSTMP1 = "20020417222059" CHGSAPREL1 = "45B" CHGSAPSYS1 = "DEV" PADEVGRP = "" COLORPRT = "" PRINTMODE = "" INPUTTRAY = "" PANOCHOICE = "" } This is a very easy and clean way to transfer all printers. No more transports or manual typing! Vote for this tip at searchSAP.com!
Activating this parameter in your system will make you look good if you get audited! How about exceptional logins? In case you're wondering how to allow multiple logins for certain key users you can implement parameter login/multi_login_users. You can list the user IDs that should be ignored if the parameter above is active in your system.
Within SAP, you can use either SE11 or SE16 to browse the table contents. Make sure you enter "A0" as the "HEX01 data element for SYST" starting value and "A9" as the ending value. This will list all the transactions locked in the system. Note: The CINFO field description is "HEX01 data element for SYST".
SAPGUI 4.6x introduced the "new visual design" or "enjoySAP" look and feel. As you know, users can switch back and forth the new visual design or the "light" look and feel. They simply use the "SAP Configuration" applet in Control Panel. However, you the administrator might need to control what they set up on their PCs in order to have a uniform platform. The Windows registry controls this setting: HKEY_LOCAL_MACHINE\Software\SAP\General\Enjoy\Active By the default, it is set to "On". When the user changes it to the light version using the SAP Configuration icon that is on the desktop or Control Panel, then the registry value changes to "Off". You can hide the SAP Configuration applet. You can even do this when setting up SAPGUI. You can edit the file SAPSETUP.NID and comment out these two lines: !InstallFileList('%WINSYSDIR%') %SAPsourceDir%\sapgui\sapfcpl.cpl EndProc/U/TS In SAPGUI 4.6D the line above is number 1,459. !CreateIconOrLink('SAP Configuration','%WINSYSDIR %\sapfcpl.cpl ','%SAPworkDir%','sapfcpl.cpl,0','Desktop\',' ',cgAsCommon)/TS In SAPGUI 4.6D the line above is number 1,645.
Don't lock yourself out, though! Use exceptions for super user accounts in your update statement. Notice that 4.6b and above have made improvements to this kind of task, making the locking/unlocking a bit easier. However, changing at the database level is much faster and it is just one simple query.
[Message Server] O01=oss001.wdf.sap-ag.de 3. Open the SAPLogon program (it is part of the SAP FrontEnd software -SAPGUI, on your PC). 4. Click on the "Groups" button. 5. Click on the down arrow for "SAP Router for" and select your SAPServX from the list. 6. Click on the "Generate list" button. 7. Select "1_PUBLIC" from the list of groups. 8. Click on the "Add and Logon" button. You're done! You can change the name of the SAPNet session in SAPLogon if you want to. No more typing OSS1!
Check if your SAP servers are alive from the Command Prompt
This is a very useful tip that can help you check if an SAP R/3 server is up and running. This way, you don't have to log on to the system just to find out. Additionally, you can create another script that uses the FOR command to check ALL your servers so you don't have to check one by one. Have the script do the job for you. The key to this script is the command SAPINFO.exe, which comes on the SAPFrontEnd CD (SAPGUI). It's part of the SDK. If you don't have the file, e-mail me and I'll send it to you. The syntax of SAPINFO is: sapinfo ashost=host sysnr=nn When used in a batch file (.bat or .cmd) you can check the errorlevel returned by the program. If it is 1 then the system is not up and running. My script below first checks if the system is on the network by 'pinging' it and expecting a reply. If you want to check all your systems, then create another script (example: checkallrfcs.bat) and use this command:
FOR /F %%i in (SAPsystems.txt) do call checkrfc %%i 00 The command above reads the file SAPsystems.txt, which should have a list of all the servers (one server name per line) and then it invokes the script 'checkrfc' passing the server name as a parameter. The 00 indicates the instance number. I believe you will find it extremely useful and it will save you tons of time. Now, you can just run the script, sit back and watch it report the status of the systems. Script code: @echo off rem =========================================================== =========== rem Script: CheckRFC.BAT rem It uses SAPINFO from the RFC-SDK (SAPGUI) to check an RFC destination. rem It needs two parameters: 1. Hostname 2. Instance Number rem A ping is sent to the host. If successful an RFC check is carried out. rem By: Giovanni Davila rem =========================================================== =========== if "%2"=="" goto NoParameter echo Pinging %1 ... ping %1 -n 2 | find /i "reply" >nul && goto CheckRFC echo System does not exist on the network! & goto Bye :CheckRFC sapinfo ashost=%1 sysnr=%2 & if errorlevel 1 goto System_Down echo ---------------------------echo System is up. RFC checks OK! echo ---------------------------goto Bye :System_Down echo --------------echo System is down! echo --------------goto Bye :NoParameter
---------------------------------------------You did not specify at least one parameter! Syntax: checkrfc "hostname" "instance number" Example: checkrfc mydev 00 ----------------------------------------------