Sie sind auf Seite 1von 179

Thrinath Soma Sap Basis Consultant

What is SAP Kernel and SAP Kernel upgrade what is sap kernel R/3 consists of 2 parts, the database and the kernel. The Kernel consists of the executable programs that reside under the path /sapmnt/<SID>/exe. These files are responsible to startup the R/3 system, initialize the memory, create buffers and start managing the requests from users and effectively utilizing the hardware resources to do so. The kernel is also responsible for starting and stopping all the application services like dispatcher, message server, collector etc. The kernel provides latest upgrade to driver files used for printing etc.,hence need to be upgraded constantly to better utilize the hardware resources and new functionality released by SAP. what is sap kernel upgrade The Database part consists of the ABAP Repository which consists of programs, tables, structures, domains, data elements etc., they reside inside the database software under the instance name <SID>. They may also be accessed partly through standard database tools. However, it is not recommended to make any modifications to the database directly because, direct modifications to database are not reflected in the ABAP data dictionary. The Database Release and the R/3 kernel release may differ. Always the kernel release should be equal to or greater than the database release. SAP releases the various kernel and their downward compatibility in R/3 notes. These notes are frequently updated and hence it is required that though you might have obtained a hard copy long time back, it is still mandatory for you to access the same note again to understand if there are any changes. The downward compatibility matrix shows what is the lowest release of R/3 database that the kernel can work with. Before you can upgrade to a higher kernel version, it must be checked whether your existing Operating System release and Database release are compatible. Otherwise, you will definitely need to upgrade them before upgrading the kernel. How to upgrade the kernel is also available as a note on the R/3 Online Support System. However, before upgrade of the kernel, the old kernel should be backup so that it can be used to revert back to old status in case of any problem. How to Find out current kernel version sap 1. Start transaction SM51. Position the cursor on the server from which you want the current kernel version and patch level, then choose function Release notes. You will get a list containing information about the current R/3 kernel as well as the supported environment and a listing of all the patch texts with their corresponding note numbers. 2. From the operating system level - change to the directory that contains the SAP executables, i.e., /sapmnt/<SAPSID>/exe, and execute disp+work V.

This procedure should allow the Basis team to Stop or Start SAP Service on a Unix/Linux server.

Thrinath Soma Sap Basis Consultant

1. Logon to server using telnet with any id. 2. login to user <SIDADM> using command su - <sid>adm 3. To start SAP Services use command startsap a 4. To stop SAP Services use command stopsap 5. To log off from server use command exit

Step by Step Procedure to create a copy of a client locally in the same SAP server. 1. 2. 3. 4. 5. 6. Logon to SAP server Use Transaction Code SCC4 Go to change mode Create a new client, assign client number & description as per request Logoff from current client. Login to newly created client using the following credentials : i. ii. iii. 7. 8. 9. Client Number User Id Password : Newly created one : SAP* : PASS

Use Transaction Code SCCL for local client copy Give reference client for copy and profile as per the request Use SCC3 Transaction code to monitor progress of Client Copy.

Golden rules for CLIENT Copies 1. Master data can not be copied without copying transactional data and transactional data can not be copied without copying master data.

Thrinath Soma Sap Basis Consultant

2.

Application data (transactional and master) should not be copied without copying configuration data.

3. Client copy requires a valid client as the destination client. Make sure that the client exists in T000 table and you can logon to that client. 4. The transport system and the transport management system of 4.0 are the only proper tool to be use to keep multiple systems in sync by transporting development and customizing changes to another instance. 5. When you copy a client from one system to another, client-independent tables should only be copied if they are not yet modified in the target system. 6. We recommend the users to read all the OSS notes regarding client copy that applies to their SAP release. It is always better to schedule the client copy job in the background for the night run when normal work is not taking place. 7. Always check the database space before performing a client copy.

8. To avoid data inconsistencies all the users working in the source and target clients should logoff from the system. 9. RSCLICHK program should be run in the target system remotely before doing a client export. This program will give information about the missing definitions from the data dictionary in the target. After executing this program and getting successful results you can ensure that the client copy will have no problems. In case some tables are different; you can use SE11 to compare and adjust the table structure in both the system before the client copy. A remote test client copy also can be executed to know the differences between source client and target client. 10. If you are not in release 2.2 then do not use R3trans to copy a client. See Also: Remote Client Copy SCC9 Creating RFC Connection Transporting a Client Modifying System Parameters

1.

Log on to any client in the appropriate SAP system.

Thrinath Soma Sap Basis Consultant

2.

Go to transaction RZ10.

3. On the Edit Profiles screen, select the <SID>_DVEBMGS00_SAP<SID> Profilefrom the dropdown, or whatever instance profile you need to change. In theEdit profile section, click the radio button to the left of Extended maintenance. Click the Change button.

4. On the Maintain R/3 Profile screen, locate the parameter that needs to be changed in the Parameter name column. Change the matching value underParameter value to the new value. Click the Copy button. Click the white arrow on green picture-icon.

5.

On the Edit Profiles screen, click the Save picture-icon.

6.

On the Save profile popup, click the No button.

7.

On the Activate profile popup, click the Yes button.

8.

On the Edit Profiles popup, click the green button.

9.

On the Caution! Caution! Caution! popup, click the green button.

10. If you receive a Possible Inconsistencies in OP Modes screen, double click over the <No> unless you are unsure of why this message has been displayed.

11.

You will not get a confirmation message. You may now leave the RZ10transaction.

Stopping Run-Away or Bad Work Processes

Thrinath Soma Sap Basis Consultant

1.

Log on to any client in the appropriate SAP system.

2.

Go to transaction SM50.

3.

On the Process Overview screen, find the process which must be stopped. Place a in the to the left of the process number to be stopped by pressing Space. On the top-most menu bar, click the Process Cancel without core.

4.

Click the blue arrow circle picture-icon to refresh the Process Overview screen until the stopped process has cleared from the display.

5.

You may now leave the SM50 transaction.

If this does not kill the process, you can go to transaction SM04 and kill the users session. If this does not kill the process, you can log on to the server, open a Task Manager session, and End the Process. If this does not kill the session, there is an executable in the RUN directory on the server called sapntkill.exe. Run it providing the process ID number. If none of the above work, you have no choice but to bounce the SAP instance and/or possibly the serve. This procedure should allow the Basis team to create a RFC connection in any SAP server.

1. 2. 3.

Logon to SAP server Use Transaction Code SM59 On SM59 screen click on Create button

Thrinath Soma Sap Basis Consultant

4. On the new screen, give RFC destination name Name by which the identified 5. Give Connection Type ( 3 for any SAP to SAP communication ) F4 Help will list types of connections 6. Give Description for the RFC Connection Generally the purpose of the mentioned here 7. 8. 9. Click SAVE Give IP address/Host name and system number for destination server in Click SAVE

connection would be down all possible

connection is

Technical Settings tab

10. Use Test Connection to check RFC. 11. If Trusted RFC connection is required, give user credentials in Logon/Security Find below steps to Reset the OCS queue while applying add on / support packs. While applying add on or support packs, if process hang up in IMPORT_PROPER phase of DDIC activation phase etc and if you are not able to re import or reset the queue, please follow below procedure. At command line on <sidadm> prompt Run below command tp r3i all <SID> pf=/usr/sap/trans/bin/TP_DOMAIN_<SID>.PFL tag=spam -Dclientcascade=yes Drepeatonerror=8 After this it will again come on your <sidadm> prompt. Then go in se37 run below program ocs_reset_queue Hit F8 Give following parameter IV_TOOL = SPAM / SAINT IV_FORCE = X Hit execute. tab

Thrinath Soma Sap Basis Consultant

Now run SPAM or SAINT and redefine your queue. Language Installation in SAP with SMLT

Steps to install extra languages in to a SAP system.

1. Download Language DVD from SAP Service Market Place suitable to your SAP ECC version(e.g SAP 4.7, ECC 6.0 etc)

2.Place .PAT files to EPS/in folder.

3.Login to SAP in client 000 with Admin user.

4. Execute SE38

5. Execute program RSCPINST

6.Add an entry for the language you are willing to install.

7. Execute transaction SMLT

8. Create a new entry in SMLT for the required language. Give Supplementation language as English.

9.Click on the Import Language/Package symbol next to newly created entry for your language.

Thrinath Soma Sap Basis Consultant

10.Default path is set to EPS/in folder, where it will search for the .PAT file required.

11.Found language should show either Green or Yellow button. If it is showing Red button it means you have downloaded the wrong source. Double check on SAP Service Market Place and download the right source files.

12. Press Execute to install the selected Language.

13.Monitor the import process in SM37 and Import transport logs.

14.Once installation get finished go to SE38, execute RSCPINST.

15. Click on Simulate button and copy new value for parameter zcsa/installed_languages.

16.Go back and activate the settings.

17. Go to RZ10 and change instance profile.Add new parameter zcsa/installed_languages and set its value as suggested in point 15 above.

18.Restart the SAP instance and try login with new Language. 19. Go to SE38 Execute RSTLAN_IMPORT_OCS Select the newly installed language and press OK It will show you the support packages whose language parts you want to import.

Thrinath Soma Sap Basis Consultant

20.

GO to Next screen.

Copy the PAR or CAR files to EPS/in folder for all support packages showing in RED. This will import the language specific parts of those support packages. Press Import Language Data and Overwrite. It will show you the message The Support Package Language Data was imported correctly.All system languages are up to date.

21. Next step is to copy the client specific data to required client. Login to yr non default client or product client. Go to SE38 and execute RSREFILL.

22. Refference Language Update Log Directory \sapmnt\trans\*.snd to be

Language updated Mode Newly installed

EN one I

23. Go Execute Select your language

to

SE38 RSTLAN_SUPPLEMENT_UNI from drop down

Press Client Maintenance with Customizing Translations what is sap note

what is SAP Note

Thrinath Soma Sap Basis Consultant

10

Notes are released by SAP to correct errors or to provide some missing functionality. They also serve as a knowledge bank of procedure for some activities in the SAP system that is not available with the documentation. These Notes may require the end-users to make some corrections to the source code. The Note would also mention at what support package level the error is corrected in. Sometimes it is not possible to apply all the support packages. Then the corrections have to be performed manually. It is a good idea to document and make the corrections in an orderly fashion. This will be of help at a later point of time during an upgrade or when further support packages are being applied, which may affect the same programs. Whenever a line is being inserted or deleted, SAP recommends that the note number (that suggested the change) be typed on the same line. This will be very helpful later during the application of further corrections. It is also recommended that the ABAP modification assistant is activated to be able to track changes. _ _ _

Download SAP Note

SAP Notes can be download from SAP Service Market Place SMP (OSS Online SAP Support) from below sap notes link : Download SAP Note Link : service.sap.com/notes _ _ _

How to apply SAP Note

Types of SAP Note : Implementable : One can download Implementable SAP Note and apply in the system from SNOTE Transaction. Which will make the changes in SAP notes to the SAP system automatically. When you will download from SAP Notes browser it will show in In processing status and once implemented it will show Successfully Implemented. Can not be implement : This type of sap note may contain either manual changes which will be carried out by SAP consultants or contains only knowledge bank of procedures for some activities. One can download this type of note to SAP system but will not be able to implement. support pack in SAP - SPAM Keywords: support packages in sap support pack upgrade sap

Thrinath Soma Sap Basis Consultant

11

support packs in sap

What is Support Packs in SAP:

SAP releases Support packs, which are a collection of advanced corrections. Types of Support Packages are listed below: HR Support Package ABAP Support Package APPL Support Package Basis Support Package Add-on Support Packages

These are available for download directly from the SAP Service marketplace at below link SPAM package download: service.sap.com/patches On demand the Support packs available are sent in form of CDs to SAPs customers. The system should be update by the designated personnel as early as possible. The support packages have certain dependencies and the same is to be checked on. Basis and ABAP support packages can be loaded independently whereas special care is to be taken while loading application support packages to include the CRTs of addon packages otherwise some conflict can arise and system can go to an unstable state. _ _ _

How to apply Support Packs (SPAM package) to SAP :

After collecting the required information on CRTs and the like, the Support packs can either be downloaded from the SAPNET or uploaded from (Support packages) CD into the usr/sap/trans/EPS/in directory. The CAR files will also have to be extracted to the same directory.

Thrinath Soma Sap Basis Consultant

12

Login to the system on client 000 - With any user-id other than SAP* or DDIC. The login-id should have SAPALL and SAP-NEW authorizations. Run transaction code SPAM to invoke the SAP Patch manager. You can choose the upload button to upload data directly from /usr/sap/trans/EPS/in directory on the server or from a path on your local Front end. Execute the SPAM transaction again. You will now be able to see the support packs window. Use the drop down box menu to verify the queue. The support packs will be in the queue followed by their corresponding CRTs for the different add-on. Press the consistency check button to verify the queue is okay. Go to the Menu Option settings on the SPAM screen and change the settings from S to T (Standard to Test mode) The queue may be applied in test mode to check if it has conflict with any object that is already modified in the system. If there are any modifications to the program that the hot pack is also affecting, then the hot pack will create versions for the same. It will make the program delivered by it to be the current request the active version. Transaction SPAU (SAP Adjustments) will need to be run to make the required adjustments. If CIN programs are also affected, please check with SAP India. _ _ _ Please Note: Make sure that you have applied the latest SPAM update before you apply any other patches. Always apply patches to your test system before you start to apply them to your production system! Only the system administrator should be able to download, apply, confirm, or reset the status of patches. To use all the SPAM functions, you require the authorizations.S_CTS_TR_ALL and S_CTS_ADMIN. You can find both of them in the authorization profile S_A.SYSTEM Ensure that you are logged into client 000 with the proper authorizations. If you log into another client, or do not have the correct authorizations, you can only use the display functions. Make all the users log off before you apply patches in scenario S. During the patch application steps, the R/3 system must not be in use, i.e. only the system administrator is allowed to be logged on. Otherwise you risk program terminations. Shut down all application servers except the central one for the duration of the import. Otherwise, buffer synchronization problems with program terminations, and possibly data inconsistency, may result. You cannot have any incompletely applied patches in your system. To check this, under Directory choose Aborted patches and then choose Display. No patches should be displayed. Under the section Patch, the status should display a green traffic light.

Thrinath Soma Sap Basis Consultant

13

Check the logs before confirming the patch application. Never apply patches directly with tp. You will lose all of your modifications and overwrite your Add-On, if you have installed one. If you have made a modification adjustment for the Patch Queue in your test system, ensure that you do not import the resulting modification adjustment transport into further systems until you have applied the same patches to these systems. While a patch is being applied the session is blocked. Open a second session before you apply the patch to avoid logging on again. Transporting a Client

Procedure: To transport clients from one system to another, go to System Administration then choose Tools -> Administration -> Client admin->Client transport -> Client export or transaction SCC8. In the client transport screen you can select a copy profile that matches your requirements and the target system in your CTS pipeline. Then you can execute the client export in the background or online. Before the client export starts, a popup screen shows all the information about the command files that will be created after the client export is done. After the process starts. You can watch the export process in client copy log using transaction SCC3. After the client export procedure is completed, if you chose the client independent data then three transports are created in /usr/sap/trans/cofiles or there will be two transports: <sid>KO<no> for the client-independent data ( if selected). For example if the client export is done from development client 100 then the file will look like DEVKO0001. <sid>KT<no> for the client-specific data. For example DEVKT0001 <sid>KX<no> for the SAPscript objects as Texts and forms. For example DEVKX0001 The data export is performed automatically. The output of the export includes the name of the COMMFILE that has to be imported. The following data files will be created in/usr/sap/trans/data directory using the same example given above: For client /usr/sap/trans/data/DX00001.DEV dependent data: /usr/sap/trans/data/RT00001.DEV

For client independent customizing data: /usr/sap/trans/data/RO00001.DEV For SAPscript data of a client: /usr/sap/trans/data/SX00011.DEV Tips: Make sure that all the cofiles and the datafiles exist in the data and cofile directories before starting the import phase.

Thrinath Soma Sap Basis Consultant

14

Then add all the command files to the buffer by using the TP command in /usr/sap/trans/bin directory as following: tp addtobuffer <cofile name> <target sid name> Using the above example cofile: tp addtobuffer devkt00001 qas (if qas is our target system) tp addtobuffer devko00001 qas tp addtobuffer devkx00001 qas Then logon as <sid>adm to the target system and then use then import the transports as following: tp import devkt00001 qas client100 u148 For tp import devko00001 qas client100 u148 For client independent data the client dependent data

(In the above example QAS is the target system and 100 is the target client) After you import a client from another system, you must perform post-processing, activities in order to adapt the runtime environment to the current state of the data. To execute post-processing, choose Tools -> Administration- >Client admin ->Client transport->client import or transaction SCC7. Transaction SCC7 will take you to the client import post-processing screen . In that screen the transport from the last tp import is proposed. Please check the transport number and if every thing is according to the order then press enter and that will take care of the post processing activities. You can also use SCC2 to execute the same process as in transaction SCC7. During this process, the SAPscript texts are imported and application reports are generated. If there are inconsistencies, you need to repeat the import after checking the log. If you get any problem importing the SAPscript objects then use the RSTXR3TR program in the target client to import those. In this screen you can enter the transport request for the SAPscript object. According to the above example devkx00001. In the second line you need to enter the path for the SAPscript data file as following: /usr/sap/trans/data/<data file for /usr/sap/trans/SX00001.DEV (using the above example) the SAPscript objects>

You can choose the import option from the mode option. Then you can continue to execute the program and it will successfully complete the import of SAPscript objects to the target client. Up to release 3.0, RSCLIEXP program can be used to create the command files. The tp command is used to do the import as we have seen before and the RSCLIIMP program is executed for the post-processing activities and the consistency of data. Using the transport procedure in 4.0 In 4.0 after the client is exported from the source system using transaction SCC8 as we have seen in the client export section, the following transport files are created. <sid>KO<no>: For the client-independent data (if the copy profile selected includes client independent data: <sid>KR<no>: For the client-specific data.

Thrinath Soma Sap Basis Consultant

15

<sid>KX<no>: For the Texts and forms. When all the above transports get released from the source system, the data is exported to the data files of /usr/sap/trans/data directory automatically. The cofiles are also created in the /usr/sap/trans/cofiles directory. Then the command files need to be added to the buffer for the import using the format from the cofiles as following:

Logon to the target system as <sid>adm cd /usr/sap/trans/bin - Change to the transport directory tp addtobuffer <command file-name> <target-sys-id> - Adds to the buffer

If you are transporting to a new client then the new client should be created in the target system. Then you can start the import into the target system as shown in the following UNIX example: tp import <target-sys-id> client<target-client> from /usr/sap/trans/bin directory After the tp import process completes successfully, start transaction SCC2 and then execute the import into the target client. This process imports all the SAPscript objects and generates all the programs. After the client is imported successfully, you should perform the post-processing activities by using the following path: Tools ->Administration->Client admin->Client transport->Post-process import. After the post processing is done, we recommend doing table compare between the source client and the target client to check all the client dependent and independent tables for consistency. Step by Step Procedure to copy a Client to the Remote SAP Server.

Logon to destination SAP server Use Transaction Code SCC4 Go to change mode Create a new client, assign client number & description as per request Logoff from current client. Login to newly created client in destination SAP server using the following credentials : i. ii iii Client Number User Id Password : Newly created one : SAP* : PASS

Thrinath Soma Sap Basis Consultant

16

Use Transaction Code SM59 to create a RFC Connection for client copy if does not exist already. RFC Connection should have Target Server as Destination and the test results should say Connection test OK Use SCC9 Transaction code to go to client copy screen.

Give profile as per the request. Select RFC destination created for the purpose for the source client to client copy Use Transaction code SCC3 for monitoring the progress of client copy

___________________________________________________________________ Golden rules for CLIENT Copies

1. Master data can not be copied without copying transactional data and transactional data can not be copied without copying master data. 2. Application data (transactional and master) should not be copied without copying configuration data.

3. Client copy requires a valid client as the destination client. Make sure that the client exists in T000 table and you can logon to that client. 4. The transport system and the transport management system of 4.0 are the only proper tool to be use to keep multiple systems in sync by transporting development and customizing changes to another instance. 5. When you copy a client from one system to another, client-independent tables should only be copied if they are not yet modified in the target system. 6. We recommend the users to read all the OSS notes regarding client copy that applies to their SAP release. It is always better to schedule the client copy job in the background for the night run when normal work is not taking place. 7. Always check the database space before performing a client copy.

8. To avoid data inconsistencies all the users working in the source and target clients should logoff from the system.

Thrinath Soma Sap Basis Consultant

17

9. RSCLICHK program should be run in the target system remotely before doing a client export. This program will give information about the missing definitions from the data dictionary in the target. After executing this program and getting successful results you can ensure that the client copy will have no problems. In case some tables are different; you can use SE11 to compare and adjust the table structure in both the system before the client copy. A remote test client copy also can be executed to know the differences between source client and target client. 10. If you are not in release 2.2 then do not use R3trans to copy a client. SAP BASIS Interview Questions: Q. What is difference between Application Server & central instance? Ans. Central instance have message server and dialog, update, spool, enque, gateway, background work processes. Application server has only Dialog, update, spool, gateway and Background workprocess. Note: SAP server has only one message server and Enque server.

Q. What is difference between consolidated & delivery routs. Ans. In a 3 system landscape, transports from development and quality is called Consolidation Route (this can have target groups & CTC). Transports route from Quality to production is called delivery route.

Q. What are the prerequisites for applying a support pack? What is the Procedure for applying support packs?

Download the Support Patches from market place.

Thrinath Soma Sap Basis Consultant

18

Login through 000 client with user DDIC. Go to Transaction SAPM. From the menu support packages - > load package -> from Front End.. Then Select display button in the screen and select the patch and gives import. Import the Package queue. Take care that no users are in online while u upload the support packages.

Q. Auto Start SAP on Windows Instance

Use transaction RZ10 to edit your startup profile. Add the following entry:

Autostart = 1

Then save the profile. Next time your server reboots, your SAP instance will come up automatically!

Q. What is the procedure for applying sap notes to sap system?

Goto Tcode SNOTE. GOTO Menu -> Download SAPNote.

Thrinath Soma Sap Basis Consultant

19

Give the Note No. After downloading check the status. If it shows that it can be implemented. Then Select that Note goto Menu SAPNote -> implement Note.

Q. How to lock SAP Client? Is there any Tcode to lock the particular Client?

Execute Transaction code SE37. Enter the Functional Module SCCR_LOCK_CLIENT. Execute this and enter the client u need to lock.

Q. Change the default Support Pack Path

It is because the path is defined in the parameter DIR_EPS_ROOT.

Q. SAP ECC6.0 Installation Steps

1. Once the Linux OS is over u configure the network card and change the Host name . 2. Install JDK and saplocales. 3. Then add the java home in profile file. 4. Modify the parameters in sysctl.conf. 5. Before install oracle u have to change the parameters in limits.conf. (Installation guide for oracle in linux is available from oracle site) 6. Install SAP by executing sapinst.

Thrinath Soma Sap Basis Consultant

20

7. In the 3rd phase it will ask u to create user for oracle (user should be ora<ianstancename>). Suppose if u r going to install oracle in middle of sapinstallation only. Rest SAP will handle own its own.

Q. STAT, STAD and ST03N tcode is showing error RFC error, No performance data collected.

Start SAP standard job SAP_COLLECTOR_FOR_PERFMONITOR(program RSCOLL00).

Q. What is the difference between client 000 & 001? Why we use client 000 for client copy, why dont 001?

000 client is standard client and contain client independent setting. 000 client contain simple organizational structure of test company and include all parameter for application, standard setting

001 client is copy of 000 client. It is reserve for the activity for preparing the system for production system.

Q. Which are the default SAP background jobs run for Basis data?

SAP_REORG_JOBS SAP_REORG_SPOOL SAP_REORG_BATCHINPUT SAP_REORG_ABAPDUMPS SAP_COLLECTOR_FOR_JOBSTATISTIC SAP_COLLECTOR_FOR_PERFMONITOR

Thrinath Soma Sap Basis Consultant

21

RSPO1043

Q. What are Homogenous system copy and Heterogeneous system copy and how you will do that?

Homogenous- Same OS +Same DB Heterogeneous- Different OS+ Different DB or Same DB.

Q. What is SAPS?

The SAP Application Performance Standard (SAPS) is a hardware-independent unit that describes the performance of a system configuration in the SAP environment.

Q. Which table space, gets filled frequently and we add datafile to that?

PSAPBTABD/I, PSAPSTABD/I, PSCAPLUCD etc.

Q.

What is SAP NETWEAVER, SAP XI, SAP BIW, SAP WAS and SAP BI.

What is difference between these?

Thrinath Soma Sap Basis Consultant

22

1. SAPNW - Netweaver is a web based technology includes java, based on your installation choices during software installation. It includes BI/XI/EP and different level of its configuration. 2. BI: It is an OLAP (on line analytical processing), which provides a plate form to collect the data and user extract the data from BI or BW (older version) to analyze it

3. EP: Enterprise portal provides web based secure access to all the application, services and information. you can log in to EP using host name:port#/ <service name> and user name and password

4. SAP -XI: Exchange Infrastructure is used to establish a cross system connections between system by different vendors and versions

5. Web AS: Web Application Server is the platform for ABAP and J2EE stacks in Netweaver. UNIX commands used for SAP administration:

1. stopsap/startsap for stopping/starting SAP+ DB, stopsap r3/startsap r3 for stopping/starting R3

2. Cdpro for checking the profiles path SAPMNT/<SID>/profile

3. Cdexe for checking the kernel folder

4. find . -name filename -print for checking the file in the present directory

5. dpmon pf= <Instance profile path>, jcmon pf=<instance profile path>

6. df -k, bdf for checking all file system usages; df -k ., bdf. for individual file usages

Thrinath Soma Sap Basis Consultant

23

7. ls -lrt for listing of files according to the date modified

8. du -a | sort -k 1n,1 for sorting the files in a recursive manner.

9. h for listing previous used commands.

10. rm < file> for removing file, gzip <file> for zipping the file.

11. Ps -ef is to check the how many running process and Kill any running process

12. gunzip to unzip file

13. tar -xvzf file name to run the zip folder of file content

14. mv mo from one path to another

15. Rf remove forcifully any file

16. Make command to effect any coading content

17. make clean to clean the effect of make command

Thrinath Soma Sap Basis Consultant

24

18. cp coppy from one location to another

19. pwd check the current directory Steps for SAP System Copy.

1. Take offline backup of both the server (source and target servers)

2. Verify the backup is successfully done.

3. Run the following command on source system.

a. Login as adm b. svrmgrl c. connect internal d. alter database backup controlfile to trace; e. exit; f. Above command will generate a .trc file in /oracle/P01/saptrance/usertrace directory. file. g. Copy the text from CREATE CONTROLFILE until the (;) and paste it in to any new .sql or controlfile.sql

h. Copy the controlfile.sql to target system.. i. Edit the file and replace the entire source SID to target SID. j.. Edit the reuse database command with the set database command

4. Copy the generated during the backup file from the source system to target system. (/oracle//sapbackup)

Thrinath Soma Sap Basis Consultant

25

a. Change all the source to target . b. Only dont change the backup volume name it must be target system . c. Copy the above aft file name line from the source back.log to target.log file.

5. Shutdown the target server instance.

6. From this onwards all the command on the target system only. a. Login as Orasid b. run the brtools c. select Restore/Recovery d. select Full restore and recovery e. select Select backup type f. Select the offline backup which you want to restore. g. It will take some time to restore. h. Once the database is restored login as orasid and run the i. svrmgrl j. connect internal; k. startup nomount (if the database is already mounted shutdown it using the shutdown command) l. run the following command m. @controlfile.sql (file name of the control file contains the CREATE CONTROLFILE statement) n. After the run the above command it should give the Statement Processed) o. alter database open resetlogs

Thrinath Soma Sap Basis Consultant

26

p. shutdown q. Start the database and SAP services using startup.

7. After this you have to reconfigure the STMS.

8. All the jobs also you have to reconfigure and reschedule.

9. Reconfigure all the printers.

10. If you want to change the Client number then use the local copy tool and remove the original client after successful import to new client.

Background Jobs

SM36

Define Background Job

SM37

Background Job Overview

SM39

Job Analysis

SM49

Execute External OS commands

SM62

Maintain Events

Thrinath Soma Sap Basis Consultant

27

SM64

Release of an Event

SM65

Background Processing Analysis Tool

SM69

Maintain External OS Commands

Database Administration

DB01

Analyze exclusive lockwaits

DB02

Analyze tables and indexes

DB12

DB Backup Monitor

DB13

DBA Planning Calendar

DB15

Data Archiving: Database Tables

Configuration

FILE

Cross-Client File Names/Paths

RZ04

Maintain Operation Modes and Instances

RZ10

Maintenance of Profile Parameters

Thrinath Soma Sap Basis Consultant

28

RZ11

Profile parameter maintenance

SE93

Maintain Transaction Codes

SM63

Display/Maintain Operating Mode Sets

SPRO

Customizing: Initial Screen

SWU3

Consistency check: Customizing

Alert Monitoring

AL01

SAP Alert Monitor

AL02

Database alert monitor

AL04

Monitor call distribution

AL05

Monitor current workload

AL16

Local Alert Monitor for Operat.Syst.

AL18

Local File System Monitor

Thrinath Soma Sap Basis Consultant

29

RZ20

CCMS Monitoring

Administration

AL11

Display SAP Directories

BD54

Maintain Logical Systems

OSS1

Logon to Online Service System

SALE

IMG Application Link Enabling

SARA

Archive Management

SCC3

Copy Analysis Log

SCC4

Client Administration

SCC5

Client Delete

SCC7

Client Import Post-Processing

Thrinath Soma Sap Basis Consultant

30

SCC8

Client Export

SCC9

Remote client copy

SCCL

Local Client Copy

SCU0

Customizing Cross-System Viewer

SICK

Installation Check

SM01

Lock Transactions

SM02

System Messages

SM04

User Overview

SM12

Display and Delete Locks

SM13

Display Update Records

SM14

Update Program Administration

SM21

System Log

Thrinath Soma Sap Basis Consultant

31

SM35

Batch Input Monitoring

SM50

Work Process Overview

SM51

List of SAP Servers

SM56

Number Range Buffer

SM58

Asynchronous RFC Error Log

SM59

RFC Destinations (Display/Maintain)

SM66

System Wide Work Process Overview

SAINT

SAP Add-on Installation Tool

SPAM

SAP Patch Manager (SPAM)

SNOTE Note Assistant

SPAU

Display modified DE objects

Thrinath Soma Sap Basis Consultant

32

SPDD

Display modified DDIC objects

ST11

Display Developer Traces

ST22

ABAP/4 Runtime Error Analysis

SU56

Analyze User Buffer

System Monitoring

AL08

Current Active Users

OS01

LAN check with ping

RZ01

Job Scheduling Monitor

RZ03

Presentation, Control SAP Instances

ST01

System Trace

ST02

Setups/Tune Buffers

ST04

Select DB activities

Thrinath Soma Sap Basis Consultant

33

ST05

Performance trace

ST06

Operating System Monitor

ST10

Table call statistics

ST03

Performance, SAP Statistics, Workload

ST07

Application monitor

STAT

Local transaction statistics

STUN

Performance Monitoring (not available in R/3 4.6x)

SP01

Spool Output Cotroller

SP11

TemSe directory

SP12

TemSe Administration

SPAD

Spool Administration

Transports Management System (TMS)

Thrinath Soma Sap Basis Consultant

34

SCC1

Client Copy - Special Selections

SE01

Transport Organizer

SE06

Set Up Workbench Organizer

SE07

CTS Status Display

SE09

Workbench Organizer

SE10

Customizing Organizer

SE11

ABAP/4 Dictionary Maintenance

SE16

Data Browser

SE80

Repository Browser

SM30

Call View Maintenance

SM31

Table Maintenance

STMS

Transport Management System

Thrinath Soma Sap Basis Consultant

35

User Administration

PFCG

Profile Generator (Activity Group Maintenance)

PFUD

User Master Data Reconciliation

SMLT BDLS BD54 SFW5 SCPR20

Language Management Conversion of Logical System Names Change/View Logical systems Activate the Business Functions Activate BC (Business Configuration) Sets

SU01

User Maintenance

SU01D

User Display

SU02

Maintain Authorization Profiles

SU03

Maintain Authorizations

SU05

Maintain Internet users

SU10

User Mass Maintenance

Thrinath Soma Sap Basis Consultant

36

SM19 Security Audit Configuration

SMLG

Maintain Logon Group

SUPC

Profiles for activity groups

SUIM

Infosystem Authorizations

Other Transactions

AL22

Dependent objects display

BAOV

Add-On Version Information

SA38

ABAP reporting

SE38

ABAP Editor

HIER

Internal Application Component Hierarchy Maintenance

ICON

Display Icons

WEDI

IDoc and EDI Basis

Thrinath Soma Sap Basis Consultant

37

WE02

IDoc display

WE07

IDoc statistics

WE20

Partner profiles

WE21

Port definition

WE46

IDoc administration

WE47

Status Maintenance

$TAB

Refreshes the table buffers

$SYNC

Refreshes all buffers, except the program buffer

Profile Parameters for Client Login and password security (RZ10, RZ11):

login/accept_sso2_ticket login/certificate_request_ca_url login/certificate_request_subject login/create_sso2_ticket login/disable_cpic

Thrinath Soma Sap Basis Consultant

38

login/disable_multi_gui_login login/disable_multi_rfc_login login/disable_password_logon login/failed_user_auto_unlock login/fails_to_session_end login/fails_to_user_lock login/min_password_diff login/min_password_digits login/min_password_letters login/min_password_lng login/min_password_specials login/no_automatic_user_sapstar login/password_change_for_SSO login/password_expiration_time login/password_logon_usergroup login/password_max_new_valid login/password_max_reset_valid login/system_client login/ticket_expiration_time login/ticket_only_by_https login/ticket_only_to_host login/ticketcache_entries_max login/ticketcache_off

Thrinath Soma Sap Basis Consultant

39

login/update_logon_timestamp Replace SAP Splash Logo : Change default SAP Logo on front screen.. 1. Identify a picture to replace the existing SAP logo. This picture can be in any valid picture format - gif, bmp, jpg. But convert it to jpg since that is the smallest available picture type. Store the picture somewhere on your workstation.

2. Go to transaction SMW0.

3. On the SAP Web Repository: Initial Screen, click on the radio button for Binary data for WebRFC applications, and click the Find icon or press F8. On the SAP Web Repository: Objection selection screen, click the Execute icon or press F8.

4. On the SAP Web Repository: Object display screen, first make sure that the mime extension exists for your picture type. Click Settings -> Maintain MIME types. Look to the far right of the Data Browser: Table MIMETYPES Select Entries screen, and if you dont see your file type - gif, jpg, bmp - then you need to add it. Once you at done, back out to SAP Web Repository: Object display screen.

5. Now you can upload your picture. Click the Create icon or press F5. Fill in the name of your picture and a brief description and click the Import icon. Then provide the location of your picture and load it in.

6. Go to transaction SM30. Fill in the table name SSM_CUST and click Maintain.

7. On the Change View Set Values for the Session Manager / Profile Generator screen, click New Entries and add an entry called START_IMAGE and set the value to the name of your picture created in step #5. Then press the Save icon.

You have replaced the SAP splash screen picture. Log off and back on to view your work! 1. Download the two necessary archives - SAPEXE.SAR and SAPEXEDB.SAR - from SAP MarketPlace. There files can be found at http://service.sap.com/patches. Be careful that your Basis level is high enough to

Thrinath Soma Sap Basis Consultant

40

use the patch level of the files you download. For example, if your SAP instance is on Basis level 39 and the description of one of the SAPEXE.SAR files is Stack 42, you need to download a SAPEXE.SAR of a lower level.

2. Once both files have been downloaded, log on to the UNIX server as <sid>adm and copy them up to a directory on the UNIX server - I use one called /usr/sap/trans/NewKernel. unCAR the files with SAPCAR command sapcar -xvf SAPEXE*.SAR.

3. As <sid>adm, stop the SAP instance. Log on as ora<sid> and stop the TNS listener, and log on as root and stop saposcol.

4. Make a backup of your run directory before patching. I usually create /usr/sap/<SID>/SYS/exe/backup_run and copy all the files in /usr/sap/<SID>/SYS/exe/run to it.

5.

Copy all the files unCARed in step 2 to /usr/sap/<SID>/SYS/exe/run. If prompted, overwrite all.

6.

Change the owner of saposcol to root, sapdba & all br* files to ora<sid>, and all the rest to <sid>adm.

7.

Start saposcol, the TNS listeners, and the SAP instance.

Thrinath Soma Sap Basis Consultant

41

8. You have patched your UNIX SAP kernel. If you run into any problems starting your SAP instances, stop everything, rename the directories /usr/sap/<SID>/SYS/exe/run to /usr/sap/<SID>/SYS/exe/bad_run and /usr/sap/<SID>/SYS/exe/backup_run to /usr/sap/<SID>/SYS/exe/run to restore your old kernel. Add an Object to a Transport

To add an object to a existing unreleased transport, you must do the following:

1.

Log on to the client in which the main transport was created.

2.

Go to transaction se10 and pull up a list containing the main transport.

3.

High-light the main transport in the list - not the subtasks contained in the list - and click Ctrl+F11.

4. Turn on the radio button Freely selected objects that appears in the popup and press Enter or click the Copy button.

5. In the Include objects in request screen, turn on the Selected Objects in the Selection by type and name section.

6. Check on the check box on the appropriate line, and enter the name of the object to be added to the transport - ZPROGRAM in our case. Click the Execute button or press F8.

Thrinath Soma Sap Basis Consultant

42

7. On the Include objects in request screen, click the Include Request button or press F9. You will see a confirmation message in the status bar at the bottom of the screen.

Now you can release your transport and let it move to QAS! How to set-up and open a REMOTE SERVICE CONNECTION WITH SAP

1. 2. 3. 4.

Set-up a remote network connection to SAP. Install SAP router on a Windows machine. Install SAPCRYPTOLIB on the same machine. Check the saprouttab file : a) you should have only one in your system and b) it should look like this:

P 10.1.1.* 194.117.106.129 * P 10.1.1.* 194.117.106.130 * P 194.117.106.129 10.1.1.61 3200

5. Test you connection to SAP by DOS cd: ping sapserv1. 6. Go to http://service.sap.com/system-data. 7. Go to the Problem Solving tab. 8. Go to the Connecting to SAP tab. 9. Click on Maintain Connections 10. Click on Display all systems 11. Double click on your system ID 12. The Service Connection-System ID page opens. 13. Click on Systemdata next to Logbook 14. Under System tab, scroll down to SAP-router, and look for an edit icon to the right. Click on the edit icon, and enter the saprouters NETBIOS name, and under Service-port enter 3299.

Thrinath Soma Sap Basis Consultant

43

15. Under DB server tab click on the change icon and enter the NETBIOS name of the server, along with the local IP address. Unless you have two saprouters, do not enter anything under Additional SAP-Router field. 16. Under Appl.Server tab do the same thing. If you have a system that has the db server and the application server running on it, then the IP address will be the same. 17. On a workstation (Windows XP) that has the SAP GUI, install Service Connector from SAPs site. 18. Install on the same machine LOP (Line Opener program). 19. To set-up the maximum time for SAP connection, click on Semi-Automatic Opening and enter the number of days for connecting to SAP. When you are done installing then, run first SAPServiceConnector, and the LOP.After less than a minute, you can check on the SAP website if the connection is open. SAPConnect SMTP Setup: Sending email out of SAP using SMTP

1. First, make sure your SAP Server has the SMTP service installed and that the service is active. 2. Activate the SMTP service using SICF. 3. Using the SCOT transaction, click View -> System Status.

1. Click Settings -> Default Domain. Enter your email domain WITHOUT the @ sign. For example. The domain for SAP Super Users would be sapsuperusers.com. Save the information and go back to the main SCOT page. 2. Double-click on the SMTP node under INT. Change the Mail Host and Mail Port information, and turn Node in Use on. Click the Set button beside Internet in the Support address types section. Put an * in the firstline of Address area. Confirm your way back to the main screen. 3. Back on the main SCOT screen, click View -> Jobs. Click the create button and fill in a name for the email send job then click on the green check mark. Highlight the variant you want to use I use SAP&CONNECTALL then click the Schedule button. Fill in the start date and time, and then click Schedule periodically. Fill in the correct periodic information and click Create. Your job has been added. Receiving email into SAP using SMTP

1.

Complete the tasks in Sending email out of SAP using SMTP.

Thrinath Soma Sap Basis Consultant

44

2.

Using transaction RZ10, add these parameters to your instance profile: PROT=SMTP,PORT=<port>

icm/server_port_<*> = is/SMTP/virt_host_<*> = <host>:<port>,<port>,;

The second parameter is only necessary if you are going to have multiple clients in the same SAP system receiving email. Here is an example of how these parameters can be configured: rdisp/start_icman = icm/server_port_2 = PROT=SMTP,PORT=25000,TIMEOUT=180 PROT=SMTP,PORT=25001,TIMEOUT=180 is/SMTP/virt_host_0 is/SMTP/virt_host_1 = *:25001; true icm/server_port_3 = = *:25000;

If multiple clients in your SAP system need to receive External email, your must create a unique is/SMTP/virt_host_<*> parameter for each client.

3. Using transaction SU01, create a SAPEmail system user with the S_A.SCON profile. And make sure all the users who will be receiving email have a valid email address in their SU01 profile.

4. Using transaction SICF, each client to receive email must be assigned an SMTP server. There is one already provided as a template. If only one client will be receiving email you only need to use the template. Make these changes: a.Change the Host Data to contain the proper Profile Parameter Number. See step 2. b.Change the Logon Data to contain the information about the user created in step 3. c.Change the Handler List to SMTP_EXT_SAPCONNECT on line 1.

5. Save your changes, deactivate the SAPconnect service andthen re-activate it. Technical Table Characteristics

Thrinath Soma Sap Basis Consultant

45

Data class The data class defines the physical area of the database (for ORACLE the TABLESPACE) in which your table is logically stored. If you choose a data class correctly, your table will automatically be assigned to the correct area when it is created on the database. The most important data classes are (other than the system data): APPL0 APPL1 APPL2 Organisational and customizing data Master Transaction data data

Master data is data which is frequently read, but rarely updated. Transaction data is data which is frequently updated. Organizational and customizing data is data which is defined when the system is initialized and then rarely changed. There are two more data classes available, USR and USR1. These are reserved for user developments. The tables assigned to these data classes are stored in a tablespace for user developments. Note:The data class only has an effect on table storage for the database systems ORACLE and INFORMIX.

Size category The size category determines the probable space requirement for a table in the database. You can select the categories 0 to 4 for your table. Each category is assigned a specific fixed storage area value in the database. When you create a table, initial space is saved for it in the database. If more space is required later as a result of data that has been entered, the storage space is increased in accordance with the category selected. Press F4 on the field Size category to see the number of data records that can be maintained for the individual categories of your table without complications ensuing. These complications could be for example a reorganization becoming necessary because the maximum space to be reserved for the table was exceeded due to the maintained size category.

Buffering status The buffering status specifies whether or not a table may be buffered. This depends on how the table is used, for example on the expected volume of data in the table or on the type

Thrinath Soma Sap Basis Consultant

46

of access to a table. (mainly read or mainly write access to the table. In the latter case, for example, one would not select buffering). You should therefore select: Buffering not allowed if a table may not be buffered. - Buffering allowed but not activated if buffering is principally allowed for a table, but at the moment no buffering should be active. The buffering type specified in this case is only a suggestion. - Buffering allowed if the table should be buffered. In this case a buffering type must be specified.

Buffering type The buffering type defines whether There are the following types of buffering: single-record generic full buffering and how the table should be buffered.

area

buffering buffering

In generic area buffering, a number of key fields between 1 and no. of key fields-1 must be specified.

Log data changes The logging flag defines whether changes to the data records of a table should be logged. If logging is activated, every change (with UPDATE, DELETE) to an existing data record by a user or an application program is recorded in a log table in the database. Note: Activating logging slows down accesses that change the table. First of all, a record must be written in the log table for each change. Secondly, many users access this log table in parallel. This could cause lock situations even though the users are working with different application tables.

Thrinath Soma Sap Basis Consultant

47

Logging Dependencies Logging only takes place if parameter rec/client in the system profile is set correctly. Setting the flag on its own does not cause the table changes to be logged. The existing logs can be displayed with Transaction Table history (SCU3).

Convert to transparent table or maintain transparency This flag shows that a table should be transparent and that this attribute should be kept even after a change of release or an upgrade.

Transparent Table Use You can convert pooled tables into transparent tables in a simple manner using the transparent flag. The pooled table must have active status. Activate the technical settings after setting the flag. You can now decide whether the table should be converted to a transparent table in the background or interactively for a pooled table. If you want to change the type of a table whose transparent flag has been set, you must first reset the flag and activate the technical settings. The table type must then be changed explicitly and the table must be converted using the database utility. Note: Only use the transparent flag if the table type is to change from pooled to transparent. You should never use the flag for other table conversions. Resolve problems with SAPGUI history

SAPGUI has a handy feature that remembers fields contents, This is pretty useful especially when loging into SAP. I simply type the first letter of my UserID, press the Arrow-Down key and finally press ENTER. There ya go, my whole userID is typed for me. Unfortunately, sometimes SAP stops showing old entries. Heres how to troubleshoot this:

Thrinath Soma Sap Basis Consultant

48

Basic steps: Press ALT-F12 (or click the color-monitor icon) Choose OPTIONS Click on the LOCAL DATA tab. Make sure that History is set to ON - Make sure that Directory for Local Data really exists. if unsure, change that to C:\ - If anything was changed, click on OK, stop your all SAPGUI sessions and do not forget to shutdown SAPLOGON (or SAPLOGON PAD) - restart SAPGUI/SAPLOGON and check if all works

Low-Speed in SAPLOGON, click once on the Click on Click - Make sure that LOW-SPEED CONNECTION is not checked. entry on you CHANGE wish to connect ITEM ADVANCED

Corrupted MDB - in the directory Directory for Local data found in Alt-F12, You should find a SAPhistory*.MDB and SAPhistory*.LDB files, these may be corrupted. Close down SAPGUI and SAPLOGON Delete all these files - Note that all history will be lost but it may re-enable the functionnality

Corrupted DAO files

- SAPGUI uses the MsJet Access database engine to store history. These files may get ruined by another application. possible solution is to re-install SAPGUI from scratch

Thrinath Soma Sap Basis Consultant

49

- other possibility is to re-install DAO. These files are available in the DAO35 or DAO36 folder of the SAPGUI installation CD. You can also get it Here

Additional steps Make sure read - try rebooting your PC! that SAPGUI is Note fully patched 199527.

OSS

Troubleshooting SAP Startup Problems in Windows Theres probably nothing worse than not being able to start your SAP system Especially the production system! Aside from the operating system and the database server you must pay close attention to certain places in SAP to find out what caused the problem and how to solve it. Here are the two places you will definitely need to check: EventViewer (Application and System logs) and the SAP Management Console (MMC). EventViewer can provide useful information and it may help you pinpoint where the problem resides. The SAP MMC gives you the ability to visually see the system status (green, yellow or red lights), view the work processes status and view the developer traces, which are stored in the work directory. Example: \usr\sap\TST\DVEBMGS00\work. For a central SAP instance to start successfully, both the message server and the dispatcher need to start. If one of them or both fail to start, users cannot log in to the system. The following scenarios will illustrate possible causes of why an SAP instance might not start and the reason of the message: *** DISPATCHER EMERGENCY SHUTDOWN ***. Things you need to get familiar with: Developer Traces: dev_disp Dispatcher dev_ms Message Server dev_wp0 Work process 0 developer trace developer developer trace trace

The services file, which contains TCP and UDP services and their respective port numbers. This plain-text configuration file is located under %winnt%/system32/drivers/etc. Windows Dispatcher Task (DPMON.exe), Manager located under (TASKMGR.exe). \usr\sap\<SID>\sys\exe\run.

Monitor

which

is

Thrinath Soma Sap Basis Consultant

50

Database EventViewer (EVENTVWR.exe).

logs.

TROUBLESHOOTING SAP STARTUP PROBLEMS

Scenario 1: Dispatcher does not start due to a port conflict Symptoms No work processes (disp+work.exe) exist in Task Manager. Dispatcher shows status stopped in the SAP MMC. Errors found in dev_disp: ***LOG Q0I=> NiPBind: bind (10048: WSAEADDRINUSE: Address already in use) [ninti.c 1488] *** ERROR => NiIBind: service sapdp00 in use [nixxi.c 3936] *** ERROR => NiIDgBind: NiBind (rc=-4) [nixxi.c 3505] *** ERROR => DpCommInit: NiDgBind [dpxxdisp.c 7326] *** DP_FATAL_ERROR => DpSapEnvInit: DpCommInit *** DISPATCHER EMERGENCY SHUTDOWN *** Problem Analysis Possible causes for error messages above: Address already in use Service sapdp00 in use The TCP port number assigned in the services file is being occupied by another application. Due to the conflict, the dispatcher shuts down. Solution If your server has a firewall client, disable it and attempt to start the SAP instance again. If the instance starts successfully you can enable the client firewall back again. If there is no firewall client at all, or if disabling it did not resolve the problem, edit the services file and check what port the appropriate sapdp is using.

Thrinath Soma Sap Basis Consultant

51

If the instance number is 00, look for sapdp00. If the instance number is 01 look for sapdp01 and so on. You can use the following OS command to help you resolve port conflicts: netstat -p TCP There are also utilities on the Internet that can help you list all the TCP and UDP ports a system is using.

Scenario 2: Dispatcher dies due to a database connection problem Symptoms No database connections. No work processes. SAP MMC -> WP Table shows all processes as ended. Errors found in dev_disp: C setuser tst failed connect terminated C failed to establish conn. 0 M ***LOG R19=> tskh_init, db_connect (DB-Connect 000256) [thxxhead.c 1102] M in_ThErrHandle: 1 M *** ERROR => tskh_init: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c 8437] *** ERROR => W0 (pid 2460) died [dpxxdisp.c 11651] *** ERROR => W1 (pid 2468) died [dpxxdisp.c 11651] *** ERROR => W2 (pid 2476) died [dpxxdisp.c 11651] . . . *** ERROR => W11 (pid 2552) died [dpxxdisp.c 11651] *** ERROR => W12 (pid 2592) died [dpxxdisp.c 11651] my types changed after wp death/restart 0xbf > 080 *** DP_FATAL_ERROR => DpEnvCheck: no more work processes *** DISPATCHER EMERGENCY SHUTDOWN *** DpModState: change server state from STARTING to SHUTDOWN Problem Analysis A connection to the database could not be established because either the SQL login specified in parameter dbs/mss/schema is set incorrectly or the SQL login was deleted from the database server. This parameter needs to be set in the DEFAULT.pfl system profile (under \usr\sap\<SID>\sys\profile). In the messages above, we see that the SQL login tst is expected but it does not exist at the database level.

Thrinath Soma Sap Basis Consultant

52

Solution Set the entry to the appropriate database owner. If the system is based on Basis <= 4.6 or if the system was upgraded from 4.x to 4.7 the database owner should be dbo. But, if the system was installed from scratch and its based on the Web AS 6.x the database owner should match the SID name in lower case. Example: if the SID is TST then the database owner should be tst. If the parameter is set correctly in the DEFAULT.pfl profile check at the database level if the SQL login exists. If it doesnt, create it and give it database ownership to the <SID>.

Scenario 3: SAP does not start at all: no message server and no dispatcher Symptoms The message server and the dispatcher do not start at all in the SAP MMC. The following error when trying to view the developer traces within the SAP MMC: The network path was not found. No new developer traces written to disk (under the work directory.) Problem Analysis The network shares saploc and sapmnt do not exist. That explains the network path not found message when attempting to view the developer traces within the SAP MMC. Solution Re-create the saploc and sapmnt network shares. Both need to be created on the \usr\sap directory.

Scenario 4: Users get No logon possible messages when they attempt to log in Symptoms Work processes start but no logins are possible. Users get the login screen but the system does not log them in. Instead, they get this error: No logon possible (no hw ID received by mssg server). In the SAP MMC, the message server (msg_server.exe) shows status stopped.

Thrinath Soma Sap Basis Consultant

53

The dev_ms file reports these errors: [Thr 2548] *** ERROR => MsCommInit: NiBufListen(sapmsTST) (rc=NIESERV_UNKNOWN) [msxxserv.c 8163] [Thr 2548] *** ERROR => MsSInit: MsSCommInit [msxxserv.c 1561] [Thr 2548] *** ERROR => main: MsSInit [msxxserv.c 5023] [Thr 2548] ***LOG Q02=> MsSHalt, MSStop (Msg Server 2900) [msxxserv.c 5078] Problem Analysis Work processes were able to start but the message server was not. The reason is because the services file is missing the SAP System Message Port entry. Example: SAPmsTST 3600/tcp Solution Edit the services file and add the entry. Then, re-start the instance. Make sure you specify the appropriate TCP port (e.g. 3600) for the message server.

Scenario 5: The message server starts but the dispatcher doesnt Symptoms The dispatcher shows status stopped in the SAP MMC. The dev_disp file shows these errors: ***LOG Q0A=> NiIServToNo, service_unknown (sapdp00) [nixxi.c 2580] *** ERROR => DpCommInit: NiDgBind [dpxxdisp.c 7326] *** DP_FATAL_ERROR => DpSapEnvInit: DpCommInit *** DISPATCHER EMERGENCY SHUTDOWN *** Problem Analysis The keyword in the messages above is service unknown followed by the entry name sapdp00. The dispatcher entry sapdp00 is missing in the services file. Example: sapdp00 3200/tcp Solution Add the necessary entry in the services file. Example: sapdp00 3200/tcp Then, re-start the instance.

Thrinath Soma Sap Basis Consultant

54

Scenario 6: Work processes die soon after they start Symptoms All work processes die right after The SAP MMC shows work processes with status ended. Only one work process shows status wait. An ABAP dump saying PXA_NO_SHARED_MEMORY is generated as soon as a user logs in. The SAP MMC Syslog shows the following error multiple times: SAP-Basis System: Shared Memory for PXA buffer not available. Problem Analysis The instance profile contains misconfigured memory-related parameters. Most likely the abap/buffersize instance profile parameter is set to high. Solution Edit the instance system profile at the OS level under \usr\sap\<SID>\sys\profile and lower the value assigned to abap/buffersize. Then, restart the instance. Also, its important to find out if any other memory parameter were changed. If not, the system should start once the adequate memory allocation has been set to the the abap/buffersize parameter. Understanding the Two Internet OSS Links the instance is started.

Explain the two most common OSS link options offered by SAP. I believe that the frame relay is still offered but it is way expensive so we are going to concentrate on the two internet options: VPN and SNC.

If VPN is your choice for connection to SAP, you will need the help of your IT staff to make the adjustments to the companys current VPN mapping. You provide an IP address for your VPN and your saprouter server IP address to SAP, and they FAX you back an information sheet with data similiar to this: Once the proper configuration of the VPN has been done, you just install the saprouter software - I usually install it on the DEV server - test it out, and you are done.

Thrinath Soma Sap Basis Consultant

55

The second alternative is SNC over the internet. In this case, you need a server with a public IP address placed in your DMZ - a real DMZ which means that the server is not behind a firewall. SAP will be looking for a connection from the public IP address and no other IP address in your network. Once the server is in the DMZ and ready to go, you send your information to SAP - the server public IP address and the server name - and SAP will send you information regarding how to install and configure the saprouter software, SAP cryptograhic software, and SNC. The instructions are pretty easy to follow so you should be ready to test before you know it. I generally use a very open saprouttab for testing, and tighten it later. So you can test with: PHP Code: P * * * KT p:CN=sapserv2, OU=SAProuter, O=SAP, C=DE 194.39.131.34 * This saprouttab opens permission for all servers to go out to sapserv2. So, that is really all there is to it. Hopefully, you can explain this procedure with better understanding to your current and future employers/clients. Send an Instant Message in R/3

Ever wanted to send a message to a single logged on user but dont know their email address or phone number? Run function TH_POPUP from SE37 and enter the client, message (128 chars max) and username. The message immediately appears on that users screen.

Change Data In Table Without Authorization Using Transaction SE16

There is a way to change entries of a table with SE16 even if you dont have the authorization: Go in SE16, enter your table Name (ex: USR02). Display the entry (or entries) you want to modify. When you have your entry, write /h to go in debug mode. Cross the line you want to modify and press F7 (display function). Here, you are in the code Press F7 again to skip some code Now Refresh If Set you Titlebar should Code TAB With see = Name the code: Exclude_Tab. SHOW. anzeigen(100).

Thrinath Soma Sap Basis Consultant

56

Elseif

Code

EDIT.

Change the value from SHOW to EDIT, click Change FLD Contents, and press F8 or to delete an entry Change the value from SHOW to DELE, click Change FLD Contents, and press F8 Here we are You can change the value to what you want, and dont forget to save! Trace a Users Activity Creating a User Audit Profile

1. Log on to any client in the appropriate SAP system. 2. Go to transaction SM19. 3. From the top-most menu Profile screen, click Profile -> Create. 4. On the Create the green picture-icon. new profile bar on the Security Audit: Administer Audit

popup,

type

in

new

Profile

name

and

click

5. On the Filter 1 tab of the Security Audit: Administer Audit Profile screen, click the to the left of Filter active to place a in the box. In the Selection criteria section, select the Clients and User names to be traced. In the Audit classes section, click on all the auditing functions you need for this profile. In the Events section, click the radio button to the left of the level of auditing you need. Once you have entered all your trace information, click the Save picture-icon. You will receive an Audit profile saved in the status bar at the bottom of the screen. 6. Please note that while the yet active. To activate the a User Audit Profile. 7. You may now leave the SM19 transaction. user user trace profile trace, see has the been next saved, it is not section Activating

Thrinath Soma Sap Basis Consultant

57

Activating a User Audit Profile

1. Log on to any client in the appropriate SAP system. 2. Go to transaction SM19. 3. On the Security Audit: Administer Audit Profile screen, profile to be activated from the Profile dropdown. Click picture-icon to activate it. You will receive an Audit for next system start in the status bar at the bottom The audit will not begin until after the SAP instance has been recycled. 4. You may now leave the SM19 transaction. select the audit the lit match profile activated of the screen.

Viewing the Audit Analysis Report

1. Log on to any client in the appropriate SAP system. 2. Go to transaction SM20. 3. In the Selection, Audit Security Audit Log: Local filter the audit information. specific user, be sure to audit log button. 4. The methods. resulting list is classes, and Events to select sections of the Analysis screen, provide your information to If you need to trace the activities of a include that users ID. Click the Re-read

displayed.

This

list

can

be

printed

using

the

usual

5. You may now leave the SM20 transaction. A SAP instance is all the components created by the SAPinst program who all share the same database. There are three mandatory sub-instances; the Database Instance (DB), the Central Instance (CI), and the Dialog Instance (DI) aka Application Server. This is the minimum configuration of any SAP instance. There can be multiple DIs but only one DB and only one Active CI which means that a copy of the CI can exist for High Availability but only one of the CIs can be active at any given time. You will hear about SAP being multitiered and that term is referancing these three layers. Sometimes you might see other SAP tiers like ITS but that really isnt a separate tier, it used to be an additional piece of software working with IIS, and now ITS is

Thrinath Soma Sap Basis Consultant

58

part of Basis/WAS so it is part of the CI Tier. These layers, plus other SAP written software, are also known as the SAP Business Framework.

You can probably guess at what the DB contains. There are any number of tables in a SAP instance, from 21,000 to 38,000. Many have four or five character names that are usually abbreviations of things like USR for user, MANDT for client, etc. You could guess that USR is short for user. But MANDT? So, we add one more variable to the equation those four or five character names are abbreviations of German words. Needless to say, trying to look at SAP from a typical DBA prospective is almost impossible. Fortunately, SAP supplies the tools for you to manage all these tables.

The Central Instance is a lump term for all the SAP executables, the installed OS file structure, and anything that is placed on the OS to support and communicate with the SAP instance. It talks to the database, handles requests made by the application server(s), and sends back the information. Other software products often call this the middleware layer.

The Dialog Instance connects the users to the CI, passes the issued requests to the CI, and sends the returned results to the users session. SAP uses a client piece called SAPGui which handles the user-to-DI communication on the users workstation.

These are the three main pieces of a SAP instance installation. There are other parts that can be added for various sub-access and external tasks. For a Development SAP instance or a Quality & Assurance or Test SAP instance, all three layers are normally installed on the same server. For a Production SAP instance, the DB/CI are often installed on one server and the DI on another server for load balancing purposes. It should be noted that the installation of a CI instance automatically installs a DI which can be used by everyone if needed, be used only as needed by Basis staff, or never be used.

Instance can be a difficult term to understand almost every major database applies this term to the installation of the database software. So if you see reference to an Oracle instance, this means the installation of the Oracle software. An Oracle database is the creation of a new empty database within that Oracle instance.

Understanding the Startup and Shutdown prodedures may help solidify this layer concept.

Thrinath Soma Sap Basis Consultant

59

The normal SAP instance start up consists of three parts: starting the SAP OS Collector, starting the Oracle Listener, and starting the SAP instance. The process mainly goes like this: ora<sid> logs on and starts the Oracle Listener then <sid>adm logs on and runs the startsap script. What Needs to Be Backed Up? The PRD Instance

Daily backup should be made for these SAP specific directories:

/usr/sap/<SID> /sapmnt/<SID> /usr/sap/trans on the TMS Domain Controller Server Any directories containing flat files that are used by the SAP instance

Daily backups should be made for these Oracle specific directories:

/oracle Directory holding redo logs if not in the /oracle structure

Weekly backup should be made for these OS specific directories:

Root /etc /dev

Thrinath Soma Sap Basis Consultant

60

For Oracle, the entire /oracle directory should be backed up daily if there is only one Oracle Instance on the server, and each separate /oracle/<SID> directory if there is more than one instance on the server.

It is also recommended that a full offline image of the entire server be made before the monthly closing cycle.

The DEV and QAS Instances

Weekly backup should be made for these SAP specific directories:

/usr/sap/<SID> /sapmnt/<SID> Any directories containing flat files that are used by the SAP instance

Weekly backups should be made for these Oracle specific directories:

/oracle Directory holding redo logs if not in the /oracle structure

Monthly backup should be made for these OS specific directories:

Root /etc /dev

Thrinath Soma Sap Basis Consultant

61

For Oracle, the entire /oracle directory should be backed up daily if there is only one Oracle Instance on the server, and each separate /oracle/<SID> directory if there is more than one instance on the server.

It is also recommended that a full offline image of the entire server be made at the same time every month. Working with saprouter

Starting saprouter (OSS Link)

1. 2. 3. 4.

Log on to the appropriate server as <sid>adm. Click Start Administrative Tools Services to open a Services window. Right-click on the SAPROUTER service and click Start. You may now log off the server.

Verifying the Status of saprouter

If you have previously successfully established SAPNet (OSS) communications with SAP via saprouter in the past, there can only be three reasons for a broken SAPNet connection to SAP: the SAP VPN is down (which rarely happens); your saprouter configuration has been incorrectly changed (also very rare); or your saprouter is not running (happens all the time).

1. 2.

Log on to the appropriate server as <sid>adm. Click Start Administrative Tools Services to open a Services window.

Thrinath Soma Sap Basis Consultant

62

3.

SAPROUTER service. If is not started, right-click to start the service. If it is started, right-click & Stop the service and then right-click & Start the service. This should bounce your saprouter instance. 4. You may now log off the server.

Look

at

the

1. 2. 3. 4.

Log on to the appropriate server as <sid>adm. Click Start Administrative Tools Services to open a Services window. Right-click on the SAPROUTER service and click Stop. You may now log off the server.

What is SAP Client? A client is organizational and legal entity in the SAP system. All the business management data is protected here because other clients can not access them. The main objective of the client is to keep the data isolated. The data in a client can be only visible within that client; it can not be displayed or changed from another client. In a physical SAP system there can be multiple clients. Each of these clients can have different objective or each client represents a unique work environment. In a development environment one client can be used as sandbox client (developers learn how to configuration using SAP environment), one can be used as prototype client (users do the customizing according to the companys requirements and testing) and another one can be used as the master development and configuration client (where the final configuration is done). A client has its own set of tables and user data. To know whether a table is client dependant or independent you can search for a field MANDT. The client dependant tables always include the client field MANDT as a part of the primary key. There can be multiple clients in each of the system of SAP system landscape as we have already seen in chapter 5. It is better to understand the customizing process in the CTS pipeline before designing a good client strategy for the SAP systems. Customizing is a method in the SAP R/3 system that helps the user to configure the functionality from SAP, according to the customer requirements. When the SAP objects are just used by only one client, we define them as client dependant data. There are some objects as ABAP/4 programs, which are used by all the clients in a SAP system. Those objects are called client independent data. The functional changes resulting from customizing can be client specific (client dependant) or general (client independent). You must know the fact that client independent customizing can create problems if the authorizations and the client strategy are not defined properly. For example if you have three clients in a development environment then the role of each client should be defined properly. One of these three clients should be used for client independent customizing and in other clients, users will not have the authority to do any client independent configuration. About SAP Clients With a standard installation, SAP delivers 000, 001 and 066 clients. Client 000 is considered to be a SAP reference client and it should not be changed or deleted at anytime from the system. After a SAP system is installed, you can create other clients from 000 by using the client copy procedure. For some important

Thrinath Soma Sap Basis Consultant

63

configuration you have to logon to client 000. For example, if you want to configure your CTS system then this client must be used. Client 000 also plays a very important role in upgrade process. Every time you do upgrade client dependant changes will be automatically upgraded in this client and later on the changes can be copied to other clients. The customer uses client 001 as a SAP sample client. After a new installation both 000 and 001 clients are identical, but after an upgrade 000 will have additional customizing data. Lot of customer sites does not use 001 client at all. Client 066 is there for SAP Early Watch service. This client enables SAP to remotely access the customer system. SAP provides this service to the customer to improve the system performance. After Early Watch group goes through the checking methodology, a system performance summery and recommendations to improve performance report are provided to the customer. SAP recommends to go for an Early Watch session before your project goes live and another one sometime after the go live date. Client 066 should not be changed or deleted from the system. In case this client was deleted from the system, then you have to follow the instructions in OSS note 7312 to download the client data from sapserv3 and import this data to create 066 client. Creating a client and setting up the client attributes To create a client you have to maintain T000 table. From 3.0 onward, transaction SCC4can be used to maintain T000 table. Also you can chose Administration-> Client admin -> Client Maintenance from the initial screen to do the same. In client table T000, SAP system displays all the clients available, their names, currency used and when the client was changed last as shown in Figure 9.1. If the system is in display mode then you must change it to the change mode by selecting the display/change icon to create a new client. When you click display/change button, a warning is displayed as Warning: the table is client-independent. The New entries icon should be clicked to create a new client as shown in Figure 9.2. Figure 9.1 shows Client overview in SCC4 transaction In the new client creation screen to define a new client you must fill all the required entries. The client number and the name are entered first. Then in the second line the location of the SAP system is defined. Logical system is defined next. SAP uses logical system concept in ALE (Application Link Enabling), workflow and EDI areas. The logical system must be unique through out the company and any other ALE system group can not use it. You must be careful changing the logical system entry. SAP treats a logical system as a client. You can use transaction BD54 to create a logical system and then enter that entry in the logical system box while creating a client. Next entry standard currency can be defined according to the country. For example USD can be used as a standard currency for USA. To enter a category of a client you must know the objective of that client beforehand. For example if this client will be used as a customizing client then customizing entry should be used from the options. In the next category Changes and transports for client-dependent objects, there are four options. If you want to use this client as a sandbox client; and you do not want to record or create a change request every time a change happens to the client then Changes W/O automatic recording is the right option. If all the changes to the client should be recorded in a change request then Automatic recording of changes is the right option. You must choose this option for your master configuration client. If No changes allowed is chosen, then no changes will be allowed to this client. You must chose his option for clients in the production environment to protect your system. No transport option is used when you do not want any user to create a transport from this client.

Thrinath Soma Sap Basis Consultant

64

Figure 9.2 shows the client create screen The Client-independent object changes category determines if the client independent data maintenance is allowed in this new client. You get following four options in this category:

Changes to Repository and client-ind. customizing allowed No changes to client-independent customizing objects No changes to Repository objects No changes to Repository and client-independent custom. obj.

To choose the right option from Client-independent object changes category, you must know the definition of Clint independent customizing objects and repository objects. The examples of SAP repository objects are data dictionary objects, module pools and screens. Client independent objects apply to all the clients. The factory calendar is an example of client independent object of customizing. For sandbox client, where user learns how to do the customizing, you must not allow the client independent customizing. Changes to Repository and client-ind. customizing allowed: Both client independent customizing objects and SAP repository objects can be maintained. Usually this option is selected in a master-customizing client. No changes to client-independent customizing objects: No change is allowed for client independent customizing objects but changes to repository objects are allowed. This option can be used for a sand box client. No changes to Repository objects: If you select this option, then no changes are allowed to the Repository objects but the client independent customizing is allowed. When you want to protect the repository objects in a client, this is the right option to use. No changes to Repository and client-independent custom. Obj: This option does not allow any changes to client independent customizing objects and repository objects. You should use this option for a consolidation and production client where the security of client independent objects and repository objects are necessary. In the restriction category of the Change View Clients: Details screen, there are four options. You are allowed to maintain only the following three options as shown in Figure 9.2:

Protection against overwrite by copying: If you chose this option, a client copy can not overwrite the new client. You should chose this option for a master-customizing client or for an important client as production. Start of CATT processes allowed: This option determines whether you want to allow the CATT (Computer Aided Test Tool) process in the client or not. Computer Aided Test Tool (CATT) is tool provided by SAP to test different functionality of the SAP system. To run the CATT tool you can execute transaction SCAT. CATT process changes the database extensively and requires lot of system resources. So we recommend not to chose this option if you are in the production environment. Protection against SAP upgrade: If you chose this option, then this client will be not updated in time of upgrade. You should use this option for a client that is used for backup purposes or client 066 (Early Watch client) that is used by SAP for customers SAP system performance. If you chose this option for any client, the upgrade will not provide any data to this client and it can not be used as a regular customizing client. You need S_CTS_ALL authorization to maintain this option.

System-level control in transaction SE06 You can use the system change option to control the system level access to different types of users in a SAP project. To use system change option screen you can chose SE06 and then system change option or use SE03 and then go to for setting the system category and chose set system change options. The option you chose

Thrinath Soma Sap Basis Consultant

65

here directly affects ABAP/4 workbench, Workbench Organizer and the transport system. You need all access to Workbench Organizer to change the system change options as shown in Figure 9.3. There are some TP commands that can be used to control the system level access. System change option in se06 figure9.3 The following are the four system change options:

Objects cannot be changed: If you select this option then no changes of any kind are allowed for any objects in the SAP system. The SAP customers use this option in the consolidation and production environment. Using this option you can control the developers and the customizing people directly changing any development objects and customizing objects in the consolidation and production environment. So the users use the transport method to move the objects from development system to other systems instead of directly creating or maintaining them in the target systems. The tp command tp lock_eu <sapsid> can be used in the operating system level to set the system to cannot be changed and the command tp unlock_eu<sapsid> puts the system back to where it was when the lock command was executed. Only original objects (w. Workbench Organizer): If you go for this option then only original objects those are created in this system can be changed. If the original object exists in some other system and you have a copy of that object in this system then you can not change that object. In special cases you can use this option for the QA or test system. All the changes are recorded in Workbench Organizer. All customer objects (w. Workbench Organizer): This option allows you to edit or repair an object though it is not the original object of the current system. Any changes to customer objects are allowed. The changes are controlled and recorded by the Workbench Organizer. This option does not allow changing the objects came from SAP originally. You can use this option in a training system. All objects (w. Workbench Organizer): With this option you can change or repair any objects in the system. Now the system is totally open for any changes to all the objects. With this option also every change is recorded and controlled by the Workbench Organizer. This option is generally selected in a development or sandbox environment.

From 4.0 version the se06 change option looks as following: Pre-Configured Client from SAP The pre-configured client from SAP has pre-configured customizing objects for a simple organizational structure. The pre-configured settings of the client help a customer to configure a system quickly. SAP recommends the customers to install the pre-configured client in their system if they want to go for a rapid implementation using ASAP (Accelerated SAP) methodology. In the ASAP chapter we are going to give you an extensive definition about this methodology. Now instead of starting from client 001 copy, you can start from a pre-configured client that will provide more configured features. SAP provides the transports and help documentation to create a pre-configured client. The pre-configured client for FI/CO, SD, AM, MM, HR and PP modules is already available from SAP. According to SAP, customers that have used the pre-configured client saved 4 to 6 weeks of project implementation time. The way pre-configured client is designed; some of the small companies can run the pre-configured client for production after the out of the box installation. Following procedure is used to create a pre-configured client: A client is created in T000 table

Thrinath Soma Sap Basis Consultant

66

Copying client 000 to the new client Copying the data files and cofiles from SAP to your system Adding those change requests to the buffer and then importing them to the target client We recommend to check your number ranges after the import Creating a user and assigning SAP_ALL and SAP_NEW profiles Run the SCAT transaction for CATT tool to test the pre-configured client. This tool is a great tool for those users, who want to learn about SAP functionality and, what a pre-configured client can do for them? The pre-configured client comes with non-matric units of mass, area, length and volume and a sample factory calendar is pre-configured with the ten US government holidays.

Client COPY Procedures After the SAP system is installed, the client copy is a common thing to do for creating new clients. A client copy can be done from one system to another or within one system. A client copy can affect the database and current users in the system; so you need to be aware of the following important information before scheduling a client copy. For the stability of the system, always schedule the client copy in the nighttime when the users are not working in the system. To avoid data inconsistency you should not keep on working in the source or target clients when the client copy is going on. For the best performance, always schedule the client copy in the background. Try to examine the maximum online runtime parameter max_wp_run_time in the instance profile. You might need to increase this for a large table copy. You should have proper authorizations to run the client copy. As a basis system administrator you should have SAP_ALL profile to complete a client copy successfully. If you do not want a generic id to run the client copy; we recommend using SAP*. The internal user SAP* has all the authorizations needed by the client copy. Always check the database resources before executing a client copy. You can do that by running a test run client copy. The test run will provide all the information about the necessary database table spaces that you need in the target client. The main memory plays a significant role in the client copy. Make sure that you have enough memory to finish the client copy without any problem. When you are planning the hardware requirement for the SAP installation, it is always better to install memory recommended by SAP. Version 3.X and 4.X require more memory for memory management and client copy. When you trying to copy a large productive client, it better to copy the cluster tables first. You should look for all the OSS notes that apply to the client copy in a particular version of SAP. For example according to OSS note number 34547, SAP_USR client copy parameter that suppose to copy only user data in the background also copies customizing data in the background for release 3.0B.

Thrinath Soma Sap Basis Consultant

67

If the client copy is locked by another client copy run, then check the log before deleting the lock entry in SM12 to remove the lock. In 2.2 release of SAP R3trans is used for client copy, client export and client import. You should not do the same in 3.0 or 4.0 release of SAP. You can use R3trans to remove a client in 3.0 and 4.0 also and we will see the procedure in the deleting a client part of this chapter. R3trans can be used also for some other important jobs as described in chapter 10. It is very important to know that the number ranges have to be reset in the target client if you are just copying the customizing data. Though the client copy utility has been improved a lot still we get problems with number ranges. We recommend checking the OSS notes about number ranges before dealing with them. When you perform a client copy, it is very important to know the three levels of data in SAP system and how they affect the client copy. The client dependent application data is created from the master and transaction data of the system during the application system operation. The client dependant customizing data is created during the development process of a SAP project and this data depend upon the client dependent application data. The client independent customizing data applies to the entire client. The client copy procedure copies the client dependent application data and client dependent customizing data unless you specify to copy the client independent customizing. To maintain the consistency you should follow some SAP rules. When you are copying the customizing data, you should copy the application data (master and transaction data). If you just want to copy the customizing data then remember that all the application tables are reset in the process and this reset process can guarantee the consistency of the client Creating custom PROFILES to copy Clients Client copy profiles are used to copy specific data from one client to another. SAP provides some custom profiles to perform a client copy. The following are the example of profiles provided by SAP. SAP_ALL: All data of SAP_APPL: Customizing, master and SAP_CUST: Customizing SAP_UAPP: Customizing, master&transact.data, SAP_UCUS: Customizing data, SAP_USR: Authorizations and user masters a transaction user user client data data masters masters

The objective of above client copy profiles is defined clearly. What profile you are going to use; depends on what you want to copy from one client to another. For example you want to copy the entire data of a client then you want to choose SAP_ALL as your copy profile. you can select a profile name from the profile input field possible entries and then chose Profile -> Display profile from the menu. You can create a custom profile according to your requirement. To create a custom profile you need to chose the path Profile-> Create profile from client copy or client export screen. Profile: Here you define the profile name. The name should be according to the SAP standard; so it should start with either Z or Y. Last changed by and last changed on: These fields show the information about the person who last changed the profile and the time it was changed.

Thrinath Soma Sap Basis Consultant

68

In the data selection category we have the following three selections: User masters: If you chose this option then the user master records will be copied from the source client to the target client. Customizing data: If you want to copy all customizing data then chose this option. Appl. Data. Initialization. Cust. Data: This option copies master, transaction and customizing data from the source client to the target client. Important tips: It is very important for you to understand the data selection procedure before the client copy. In SAP environment it is not possible to copy selected parts of the application and customizing alone. If you want to copy application data, we recommend doing it in batch input. With batch input consistency is ensured. In the copy mode category the following options are displayed: Initialize Recreate: This option is grayed out and already selected. This option allows the system to delete all the tables (not selected in the client copy process) in the target client and initialize them. You can use the path Extras -> No initialization to have an option for not choosing this option. We recommend not doing that; it might create instability in the target client. Copy variants: If you want to include variants in the client copy then chose this option. In transport between 2 systems category there is one option: Client Independent data: If you chose this option then the client independent data will be copied from one client to another. We recommend executing the client copy remote compare program RSCLICMP, before choosing this option to do a client copy. This program provides all the information regarding the differences between the source and target systems client independent tables. The other options are:

Default source client: You define the default source client for the client copy in the profile. You can change the client after choosing this profile before starting the client copy. Default source client user master record: You can enter the client number from where the user master records will be copied to the target client. You can also change this like default source client.

Comment: You should provide a meaningful description for the profile here. Client COPY within a system SCC0 or RSCLICOP (SCCL as of 3.1 release) In 3.0 SAP uses RSCLICOP program in transaction SCC0 to copy the customizing environment from one client to another. This will copy clientdependent tables, match codes, number ranges and resolve the logical dependencies between tables and programs. RSCLIC01 or RSCLIC02 were used to copy clients in 2.0 release.

Thrinath Soma Sap Basis Consultant

69

These programs use to create command files and the basis administrator was running R3trans utility to transport the data files. Those programs are not supported in 3.0 anymore. For the mass data transfer and large number of table copy, we recommend you to run the RSCLICOP program in the background. Tips: Trace information about each client copy run is stored in table CCCFLOW. Use program RSCCPROT to display information about the client copy. You can run RDDANATB program in the background to get the information about the size of all the tables in all the clients. If you start the RSCLICOP in restart mode then try to check the checkentries in table CCCFLOW. The copy procedure using SCCL If you are planning to copy the source client to a new client then you must create a new client in SCC4 or table T000 before starting the client copy. Logon to the target client and chose transaction SCCL or use the path Tools ->Administration->Choose Administration ->Client admin->Client copy ->Local copy and you will see a initial client copy screen as shown in Figure 9.6. The current client is your target client so it is already selected for you in the first line. In the second line select the appropriate profile you want to use for the client copy. You choose the source client in the third line. In fourth line you can define the client from which you want to copy the user master records. The Source Client User Master does not have to be same as source client. Then if you want to run the local client copy to get the information about the storage requirements or a complete table statistics then select the test run flag. We recommend you to run the client copy using the test run mode first. In test run phase, database updates are not performed. You should schedule the client copy in the background after all the parameters are selected as shown in figure Figure 9.6. You can run a client copy online if you are just copying the user master records; because when you copy only user master records very limited data is copied form a client and it does not take that long to copy those data. Figure 9.6 local copy transaction sccl If the client copy fails for some reason then you can restart the client copy in the restart mode after the fixing the problems. In this case the client copy will start exactly from the same point where it failed. A pre-analysis phase requires sometime determining the restart point. SAP recommends to set the restart flag in the Execute in background screen when you plan to copy a large client. Tips: We recommend to reset the buffers by entering /SYNC in the OK code on all the application servers after executing the RSCLACOP or SCC0 for the client copy. RSCLICOP compares the contents of each table in the source client with that in the target client. Client COPY from one system to another Client copy from SCC1, SCC2, SCC7, SCC8, RSCLIEXP, RSCLIIMP one system to another:

Thrinath Soma Sap Basis Consultant

70

The client export/import and remote client copy procedures are commonly used to copy a client from one system to another. The client can be exported from the system using transaction SCC8 and then importing the client using SCC7 or using the transaction SCC2 for both export and import process, the second procedure is to do a remote client copy from one system to another. If you are copying a production size client we recommend performing the client copy using the first procedure. The following are the steps in the whole procedure:

First the data from the client in the source system is exported from the database to a transport file on hard disk. Before you transport a client from the source client database, you need to know exactly what you want to transport and you use SAP delivered profiles accordingly. Then the SAP delivered TP command is used for the import to the target system client database. The post processing procedure is run in the target client to successfully complete the client import.

You have to be very careful when copying the client independent data, because client-dependent customizing objects are dependent on entries in client-independent tables. SAP recommends that you should not copy the client independent tables if they are not yet modified in the target system. If the customizing is being done in a system regularly then you have to be very careful taking the client independent customizing to that system; otherwise you might overwrite the whole client independent customizing settings and the system will become inconsistent. We recommend to consult the customizing team of a project before copying the client independent customizing tables. Transporting a Client Procedure: To transport clients from one system to another, go to System Administration then choose Tools -> Administration -> Client admin->Client transport -> Client export or transaction SCC8. In the client transport screen you can select a copy profile that matches your requirements and the target system in your CTS pipeline as shown in figure 9.7. Then you can execute the client export in the background or online. Before the client export starts, a popup screen shows all the information about the command files that will be created after the client export is done. After the process starts. You can watch the export process in client copy log using transaction SCC3. Figure 9.7 showing transaction SCC8 After the client export procedure is completed, if you chose the client independent data then three transports are created in /usr/sap/trans/cofiles or there will be two transports: <sid>KO<no> for the client-independent data ( if selected). For example if the client export is done from development client 100 then the file will look like DEVKO0001. <sid>KT<no> for the client-specific data. For example DEVKT0001 <sid>KX<no> for the SAPscript objects as Texts and forms. For example DEVKX0001

Thrinath Soma Sap Basis Consultant

71

The data export is performed automatically. The output of the export includes the name of the COMMFILE that has to be imported. The following data files will be created in/usr/sap/trans/data directory using the same example given above: For client /usr/sap/trans/data/DX00001.DEV dependent data: /usr/sap/trans/data/RT00001.DEV

For client independent customizing data: /usr/sap/trans/data/RO00001.DEV For SAPscript data of a client: /usr/sap/trans/data/SX00011.DEV Tips: Make sure that all the cofiles and the datafiles exist in the data and cofile directories before starting the import phase. Then add all the command files to the buffer by using the TP command in /usr/sap/trans/bin directory as following: tp addtobuffer <cofile name> <target sid name> Using the above example cofile: tp addtobuffer devkt00001 qas (if qas is our target system) tp addtobuffer devko00001 qas tp addtobuffer devkx00001 qas Then logon as <sid>adm to the target system and then use then import the transports as following: tp import devkt00001 qas client100 u148 For tp import devko00001 qas client100 u148 For client independent data the client dependent data

(In the above example QAS is the target system and 100 is the target client) After you import a client from another system, you must perform post-processing, activities in order to adapt the runtime environment to the current state of the data. To execute post-processing, choose Tools -> Administration- >Client admin ->Client transport->client import or transaction SCC7. Transaction SCC7 will take you to the client import post-processing screen . In that screen the transport from the last tp import is proposed. Please check the transport number and if every thing is according to the order then press enter and that will take care of the post processing activities. You can also use SCC2 to execute the same process as in transaction SCC7. During this process, the SAPscript texts are imported and application reports are generated. If there are inconsistencies, you need to repeat the import after checking the log. If you get any problem importing the SAPscript objects then use the RSTXR3TR program in the target client to import those. In this screen you can enter the transport request for the SAPscript object. According to the above example devkx00001. In the second line you need to enter the path for the SAPscript data file as following: /usr/sap/trans/data/<data file for /usr/sap/trans/SX00001.DEV (using the above example) the SAPscript objects>

Thrinath Soma Sap Basis Consultant

72

You can choose the import option from the mode option. Then you can continue to execute the program and it will successfully complete the import of SAPscript objects to the target client. Up to release 3.0, RSCLIEXP program can be used to create the command files. The tp command is used to do the import as we have seen before and the RSCLIIMP program is executed for the post-processing activities and the consistency of data. Using the transport procedure in 4.0 In 4.0 after the client is exported from the source system using transaction SCC8 as we have seen in the client export section, the following transport files are created. <sid>KO<no>: For the client-independent data (if the copy profile selected includes client independent data: <sid>KR<no>: For the client-specific data. <sid>KX<no>: For the Texts and forms. When all the above transports get released from the source system, the data is exported to the data files of /usr/sap/trans/data directory automatically. The cofiles are also created in the /usr/sap/trans/cofiles directory. Then the command files need to be added to the buffer for the import using the format from the cofiles as following:

Logon to the target system as <sid>adm cd /usr/sap/trans/bin - Change to the transport directory tp addtobuffer <command file-name> <target-sys-id> - Adds to the buffer

If you are transporting to a new client then the new client should be created in the target system. Then you can start the import into the target system as shown in the following UNIX example: tp import <target-sys-id> client<target-client> from /usr/sap/trans/bin directory After the tp import process completes successfully, start transaction SCC2 and then execute the import into the target client. This process imports all the SAPscript objects and generates all the programs. After the client is imported successfully, you should perform the post-processing activities by using the following path: Tools ->Administration->Client admin->Client transport->Post-process import. After the post processing is done, we recommend doing table compare between the source client and the target client to check all the client dependent and independent tables for consistency. Remote CLIENT Copy SCC9 transaction

Thrinath Soma Sap Basis Consultant

73

Overview of a remote client copy: Remote client copy is done using the RFC connection between two systems. You might get errors if you do not have all the proper authorization you need including user administration authorization. Tips: A remote copy requires as much memory as needed by the largest table in the system. Upto 4.0, remote copy can not handle large volume of data. Remote client copy reads the entire table from the source system and then copies that to the target system using RFC connection. For big tables as BSEG, it takes more time then the RFC wait time; so it might not copy the big table at all. For the same RFC wait time constraint, large quantity of texts can not be copied and remote client copy might terminate without any error. You are not going to see this problem in 4.0 release, because the tables are copied in blocks by RFC. You should check the memory parameters for memory and MAX_wprun_time for run time before starting the remote client copy. Try to add the big tables to the exception list by executing RSCCEXPT report. In 4.0 an inconsistency check is performed automatically during the remote client copy; if any inconsistency is there then the system returns an error. We recommend avoiding big client copies using remote client copy procedure until release 4.0. In the beginning of a development project upto 3.1I release you can use remote client copy for the smaller clients; when the client gets real big it is better to run client export/ import procedure instead. Remote client copy procedure: Before you perform a client copy, the RFC destination for the source system needs to be defined using transaction SM59. In transaction SM59 screen chose R/3 connections under RFC destinations. Now you click on the create button to create a RFC connection as shown in Figure 9.9. Figure 9.9 picture of creating a RFC destination After the RFC connection for the source system is created, you are ready to perform a remote client copy. You can chose SCC9 or the menu path Tools ->Administration->Client admin->Client copy ->Remote copy. First line shows the target client, which is the current client as shown in Figure 9.10. Now you select a copy profile according your requirements. We have already seen how to create a profile and what is their objective. In the fourth line enter the source client (from where you are copying). If click the enter button the fifth line Source Client User Master will be filled with the same number as source client. You can change it if you want to. Enter the source system name or RFC destination name that you created in SM59. You can execute the remote client copy in the test mode by selecting the test run flag. After you are done with all the selection you can click on the Execute in backgrd. button to start the remote client copy procedure as a background job. Figure 9.10 to show the remote client copy screen Deleting a CLIENT You need to perform two steps to delete a client. First you need to delete the complete client from database and then delete it from client maintenance table T000.

Thrinath Soma Sap Basis Consultant

74

To delete a client from a SAP system: First log on to the client to be deleted with the proper authorization to delete a client. Then choose path Tools ->Administration->Client admin->Special functions->Delete client or transaction SCC5 and you are going to see a delete client screen as shown in figure 9.11. In this screen you are going to find two entries; test run and also delete from T000. If you want to run a client delete process to find out information about all the tables that will be deleted then test run is the right option to use. If you do not want to copy another client to this client and get rid of this client forever then delete from T000 is the right option to use. You can delete the client in SCC5 by executing it online or in the background. You can choose either one of these options and in the verification popup screen you can check all the parameters for client deletion. After the client deletion process starts you can use SCC3 log entries to check the client deletion process. Figure 9.11 to show the client delete screen of SCC5 In all the SAP releases so far you can use R3trans to delete a client. We have seen significant timesaving in this way of deleting a client. If you use the R3trans command in the operating system level to delete a client then the first step is to create the command file in /usr/sap/trans/bin (it does not have to be /use/sap/trans/bin as long as you provide the right path in the OS level) with the following contents: Clientremove Client Select *

100

For the above example the command file name = del100 and the client we want to delete = 100 are used Then in /usr/sap/trans/bin directory run the following command to delete the client: R3trans w <log file for the deletion> -u 1 <path name and the command file> For our example here you run: R3trans -w del100.log u 1 del100 You can VI to the del100.log to anytime to the progress in the deletion process. Tips: For the database performance, we recommend to do database reorganization after you delete a production size client from the system. To check the contents of the log: Choose Tools ->Administration ->Choose Administration ->Client admin->Copy logs then Select a client by double clicking on it and select a copy process by double-clicking on it. The transaction for the log selection is SCC3 transaction. You also can run the program RSCCPROT to get the same result. You can select one of the client copy entry from Client copy log analysis second screen, following three buttons are provided as shown in figure 9.13.

Thrinath Soma Sap Basis Consultant

75

Log Monitor Refresh System Resource Analysis Figure 9.13 for the client copy log screen

log

If you select a Log button from the Client copy log analysis third screen, then not only you get the general information about the client copy but also the following information for each of the table copied in the process. Table Delivery Development Number of entries in Number of inserts necessary Number of Number of Additional space required by the copied table in bytes name class class client client updates deletes

in

the

the

source current

The following is an example of what you will see in a log display screen. Table ANKA ANKP ANKT ANKV T009Y T082A T082H Dev.cl AA AA AA AA AA AA AA Class C C C C C C C nbr-all 35 0 43 0 2 16 27 -ins 0 0 0 0 0 0 0 -upd 35 0 43 0 2 16 27 -del COPY COPY COPY COPY COPY COPY COPY bytes 13 0 8 0 0 0 1 sec 1 0 1 0 0 0 0

The above example shows the class C. The class represents the delivery class. Through the delivery class you can know the kind of data the table has or what environment the table belongs to. For example, all the tables shown in the above display belongs to the customizing environment or they have customizing data. The following are the examples of the delivery classes and their definitions. Delivery Class A C L Description Application table includes the master and transaction data Customizing table Table for storing temporary data

Thrinath Soma Sap Basis Consultant

76

G E S W

Customizing table. It is protected against SAP Update Control table System table. They are only maintained by SAP System table. Contents transportable via separate TR objects

The table information, all the additional storage required in Kbytes, the run time for the client copy and the end of processing time are also shown as following example in the client copy log analysis.

Selected tables: 5,672 Copied tables: 5,671 Tables deleted: 0 Storage required (Kbytes): 260,444 Program ran successfully Runtime (seconds): 10,123 End of processing: 13:37:24

You can click on the Monitor button and watch the progress of the client copy real time. The Refresh button always refreshes the screen to show you the up to date information. The System log button takes you to the system log screen to show you all the system messages. The next button Resource analysis is a very important utility to show you all the data base resources you need to run the client copy in the table space level. In the resource analysis utility you can get realistic picture of deletes and inserts calculation for the database. Memory requirements can also be found out by this utility. Tips: You should always check SM21 (the system log) for all the client copy problems. Ten Golden rules for CLIENT Copies 1. Master data can not be copied without copying transactional data and transactional data can not be copied without copying master data. 2. Application data (transactional and master) should not be copied without copying configuration data.

3. Client copy requires a valid client as the destination client. Make sure that the client exists in T000 table and you can logon to that client. 4. The transport system and the transport management system of 4.0 are the only proper tool to be use to keep multiple systems in sync by transporting development and customizing changes to another instance. 5. When you copy a client from one system to another, client-independent tables should only be copied if they are not yet modified in the target system. 6. We recommend the users to read all the OSS notes regarding client copy that applies to their SAP release. It is always better to schedule the client copy job in the background for the night run when normal work is not taking place.

Thrinath Soma Sap Basis Consultant

77

7.

Always check the database space before performing a client copy.

8. To avoid data inconsistencies all the users working in the source and target clients should logoff from the system. 9. RSCLICHK program should be run in the target system remotely before doing a client export. This program will give information about the missing definitions from the data dictionary in the target. After executing this program and getting successful results you can ensure that the client copy will have no problems. In case some tables are different; you can use SE11 to compare and adjust the table structure in both the system before the client copy. A remote test client copy also can be executed to know the differences between source client and target client. 10. If you are not in release 2.2 then do not use R3trans to copy a client.

Simple method for copying VARIANTS The VARI, VARID and VARIT tables contain all the variants in the SAP system. Those variants can be copied in the client copy time using an appropriate client copy profile. If you just want to copy the variants then R3trans can be used to copy those very quickly. To copy the variants from one client to another in a system using R3trans, follow the following procedure: First create a control file with the following contains: clientcopy source client target client select select select * from VARID

= * *

<

<source target from from

client client

number> number> VARI VARIT

The second step is to logon as <sid>adm and use the controls file with R3trans as shown in the client export and import section of this chapter. This procedure will copy all the variants from the source client to the target client as defined in the control file. To copy all the variants between clients between two different systems: First create a control file for R3trans with the following contents to create a data file: export client file = <the select select select * from VARID = * * <source file and from from client> name> VARI VARIT

path

for

the

data

the

file

Thrinath Soma Sap Basis Consultant

78

The second step is to logon as <sid>adm in the source system and use R3trans as shown before to execute the control file. The process will create a data file as defined in the control file. The third step is to define a import control file for R3trans with the following contents: Import client = file = <the path for the data file and the file name> <target client>

After the control file is created, logon as <sid>admin the target system and execute R3trans command with the control file to import all the variants to the target system. Important client management tips We recommend deleting the large cluster tables first from a client using R3trans client remove command before going for the deletion of entire client. To increase the client copy performance it is also better to copy the cluster tables first using the R3trans command. Then use the RSCCEXPT report to exclude all the cluster tables before doing the client copy. To get a list of cluster tables use transaction SE85, then chose other objects -> select pooled/cluster tables. The following control files are for both the above examples: To copy the cluster tables: clientcopy source target select select * from .. client client * = = xxx YYY BSEG

from

To delete the cluster table before deleting the whole client: client client select * from BSEG (XXX and YYY represent the client numbers) Refer to chapter 10 to understand how to execute a R3trans command. In each database, the rollback segments needs to be extended so that the largest table in the system can be copied without any problem. In release it only applies to client transports or copies and deleting the tables. In release 4.0 it only applies to transports. SAP does not support a non-numeric client. If you get a message The client copy is locked by another run and you want to kill the current process to start a new client copy then call transaction SM12 and check the entry RSCLICOP and then delete it. Make sure = remove XXX

Thrinath Soma Sap Basis Consultant

79

to check if any clientcopy job is running in the background before deleting the lock. If a job is still running, you should wait till it finishes because you can not start another client copy run. After the client export is done, the command file might not be created for the SAPscript objects in /usr/sap/trans/cofiles directory, you only find the data file in /usr/sap/trans/data directory. Sometimes the SAPscript objects can be locked properly and the transport request does not get released. To release the SAPscript change request, logon to the source client and execute SE01. Then enter the transport number and try to release it from there. If there is a lock problem then solve it and then release the request. Transporting from 4.0 to 3.0: You have to be very careful while doing the transport of a logical database in 4.0. In release 4.0 the buffer of the logical database is changed. Always run RSLDB400 after the import of a logical database. Before transporting the repository objects from release 4.0 to 3.1 you need to know that the names of the repository objects in release 4.0 are extended. Always check the current version of R3trans; you might need for your system to transport objects from 4.0 to 3.1 releases. If your system has SAP release other than 3.1I; you can not transport SAPscript objects from 4.0 to 3.0. The internal buffer is also changed in release 4.0, so GUI screens can not be transported from 4.0 to 3.0.

1.

Log on to the SAP Marketplace using an OSS ID with Administration rights http://service.sap.com/message.

2.

On the Create Customer Messages screen, click on the Start Message Wizardbutton.

3.

On the Customer messages Create screen, click the Select a Systembutton.

4. On the System Selection popup, click on the + sign next to Show systemsto see a list of your SAP systems registered with SAP. From the expanded list of system, click on the radio button just left of the <SID> for which you are reporting the problem. Click the Choose button and you will be returned to the Customer messages Create screen.

5. On the Customer messages Create screen, click on the radio button to the left of the System type which has the problem: development system,test system, or production system. From the Release dropdown, select the appropriate SAP software release. Click the Continue hyperlink.

Thrinath Soma Sap Basis Consultant

80

6. On the next Customer messages Create screen, scroll down to the bottom of the screen. If the problem involves an add-on, select the appropriateAdd-on and Add-on release from the dropdowns; if an add-on is not involved, leave these dropdowns blank. Verify that the information showing in theOper. System, Database, and Frontend dropdowns is correct. If it is not correct, selection your SAP systems information from the appropriate dropdowns. Click the Continue hyperlink.

7. On the next Customer messages Create screen, scroll down to the bottom of the screen. From the Priority dropdown, select the appropriate priority of Low, Medium, High, or Very High. From the Component dropdown, select which SAP component is having the problem. Once you select a component, a secondary Component dropdown will appear. Select a secondary component and a third component as well. Do the best you can to make all three component pieces fit your problem as closely as possible. Click the Continuehyperlink.

8. On the next Customer messages Create screen, scroll down to the bottom of the screen. Select a language from the Language dropdown, type a short but descriptive summary of your problem in the Short description box, and type a more detailed description of your problem in the Long test box.

9. If there are logs or other files which might assist SAP in resolving the issue, rename them all so that they have a suffix of .log and use the Add attachment hyperlink and the Attachments popup to attach them to the message. After attaching all the necessary files, click the Closehyperlink to return to the Customer messages Create screen.

10.

When you have provided as much information as possible, click the Send to SAP hyperlink.

11. You will receive a confirmation screen with a generation problem number. Write this problem number down for later use.

12.

You may now leave the Message Wizard and close the web browser window. Marketplace using an OSS ID with Administration rights

1. Log on to the SAP http://service.sap.com/sscr.

Thrinath Soma Sap Basis Consultant

81

2.

In the navigator tree on the right-hand side of the SSCR screen, click onRegistration.

3. On the SSCR Registration screen, click the Register developer radio button and click an Installation hyperlink. Make sure you select the correct Installation Number for the SAP flavor you need or the generated key will not work.

4. On the SSCR Register Developer screen, type in the developers SAP user ID and click the Register button.

5. A new Details section will appear. Note the generated developers key or cut-and-paste for other storage.

6.

You may now close your web browser session.

Before opening a service connection for SAP, be sure that the SAPAG client has been added to the appropriate SAP system and Client, and that a Security Audit Trace has been activated for the SAPAG ID.

Before a Service Connection to a SAP server via your saprouter can be created, the saprouter must run the LOP Line Opener Program to initiate the mode of SAP connection. Please LOPInstalltion.exe on your saprouter server before trying to add and open any Service Connections.

1. Log on to the SAP Marketplace http://service.sap.com/serviceconnection. 2.

using

an

OSS

ID

with

Administration

rights

On the Service Connections screen, click the Service Connections button.

3. On the Service Connections Overview screen, scroll down the page and find the SAP instance you want to open. Click on the red X in that instances line. 4. In the Enter Data for the systems semi-automatic opening popup, set the days, hours, and minutes you want the service connection to stay open. Click the Continue button.

Thrinath Soma Sap Basis Consultant

82

Local or frontend printing is sometimes confusing in concept but actually very easy to understand. As a rule, local printer is simply another way of saying that the user is going to print to the default printer designated on his/her workstation. You probably do this all the time with Windows to printerspreadsheets, Word documents, etc without thinking about it. You can do the same thing using SAP.

1.

Log on to any client in the appropriate SAP system.

2.

Go to transaction SPAD.

3.

On the Spool Administration: Initial Screen screen, click the Output Devices button.

4.

On the Spool Administration: List of Output Devices screen, click the Change button and then the Create button.

5.

On the Spool Administration: Create Output Device screen, fill in the Output Name and Short name - I normally use a short name of DESK for Desktop Printing but alot of people use a Short name SWIN or LOCL as well. Use the following DeviceAttributes fields: Device Device Class = standard printer type = SWIN

And the following Access Method fields:

Thrinath Soma Sap Basis Consultant

83

Host spool access method = F: Printing on frontend computer Host printer = __DEFAULT. That is _ _ D EFAULT

Save the printer.

6.

You may now leave the SPAD transaction.

Using this printer will cause print to go to SAPLPD which will use the default printer of the current workstation. Job profile for SAP BASIS Administrator 1. SAP Administration

Starting and Stopping SAP instance/(s) User Administration Setup & Maintenance Authorization/Role/ Profiles Setup & Maintenance Setup SAP Security Maintenance of Systems Health Monitor System Performance and Logs Spool and Print Administration Maintain System Landscape Transport Management Systems Manage Change Requests Create/Manage Batch Jobs Backup Schedule,run & Monitor Backup of SAP Apply Patches,Kernel & OSS Notes

2. Database Administration

Database Space Management Database Backup Database Recovery Database log (Redo log, Archive Log) management Database Performance Tunning

3. Operation System Administration

Thrinath Soma Sap Basis Consultant

84

Operatin System Security Operation System Performance Tunning OS Space management OS level background Job Management OS level backup and recovery

4. Overall System Monitoring


Monitoring R3 Servers and Instances Monitoring Users and Authorizations Monitoring Security Part Monitoring workload analysis Monitoring Processes Monitoring Buffers Monitoring Operating system Monitoring Database Monitoring Backups

Types of work processes:

Message : Coordinates the communication between different instances of a single SAP R/3 system. Used for Logon purpose and load balancing. Dispatcher : Redirect the request from GUI client to free process. Dialog : Interpreting the ABAP code and execute the business logic. Used for interactive online processing. Batch : For Background jobs. Enqueue : Single Central Lock Management Service that controls the locking mechanism between the different application servers and the database.

Update : Responsible for consistency in asynchronous data changes. Gateway : Used for transport of bigger amount of data between application servers as well as external (non SAP) systems that communicate with SAP.

Local or frontend printing is sometimes confusing in concept but actually very easy to understand. As a rule, local printer is simply another way of saying that the user is going to print to the default printer designated on

Thrinath Soma Sap Basis Consultant

85

his/her workstation. You probably do this all the time with Windows to printerspreadsheets, Word documents, etc without thinking about it. You can do the same thing using SAP.

1.

Log on to any client in the appropriate SAP system.

2.

Go to transaction SPAD.

3.

On the Spool Administration: Initial Screen screen, click the Output Devices button.

4.

On the Spool Administration: List of Output Devices screen, click the Change button and then the Create button.

5.

On the Spool Administration: Create Output Device screen, fill in the Output Name and Short name - I normally use a short name of DESK for Desktop Printing but alot of people use a Short name SWIN or LOCL as well. Use the following DeviceAttributes fields: Device Device Class = standard printer type = SWIN

And the following Access Method fields: Host spool access method = F: Printing on frontend computer Host printer = __DEFAULT. That is _ _ D EFAULT

Thrinath Soma Sap Basis Consultant

86

Save the printer.

6.

You may now leave the SPAD transaction.

Using this printer will cause print to go to SAPLPD which will use the default printer of the current workstation. About SAP Clients With a standard installation, SAP delivers 000, 001 and 066 clients. Client 000 is considered to be a SAP reference client and it should not be changed or deleted at anytime from the system. After a SAP system is installed, you can create other clients from 000 by using the client copy procedure. For some important configuration you have to logon to client 000. For example, if you want to configure your CTS system then this client must be used. Client 000 also plays a very important role in upgrade process. Every time you do upgrade client dependant changes will be automatically upgraded in this client and later on the changes can be copied to other clients. The customer uses client 001 as a SAP sample client. After a new installation both 000 and 001 clients are identical, but after an upgrade 000 will have additional customizing data. Lot of customer sites does not use 001 client at all. Client 066 is there for SAP Early Watch service. This client enables SAP to remotely access the customer system. SAP provides this service to the customer to improve the system performance. After Early Watch group goes through the checking methodology, a system performance summery and recommendations to improve performance report are provided to the customer. SAP recommends to go for an Early Watch session before your project goes live and another one sometime after the go live date. Client 066 should not be changed or deleted from the system. Creating a client and setting up the client attributes

To create a client you have to maintain T000 table. From 3.0 onward, transaction SCC4can be used to maintain T000 table. Also you can chose Administration-> Client admin -> Client Maintenance from the initial screen to do the same. In client table T000, SAP system displays all the clients available, their names, currency used and when the client was changed last. If the system is in display mode then you must change it to the change mode by selecting the display/change icon to create a new client. When you click display/change button, a warning is displayed as Warning: the table is client-independent. The New entries icon should be clicked to create a new client.

Thrinath Soma Sap Basis Consultant

87

In the new client creation screen to define a new client you must fill all the required entries. The client number and the name are entered first. Then in the second line the location of the SAP system is defined.

Logical system is defined next. SAP uses logical system concept in ALE (Application Link Enabling), workflow and EDI areas. The logical system must be unique through out the company and any other ALE system group can not use it. You must be careful changing the logical system entry. SAP treats a logical system as a client. You can use transaction BD54 to create a logical system and then enter that entry in the logical system box while creating a client.

Next entry standard currency can be defined according to the country. For example USD can be used as a standard currency for USA. To enter a category of a client you must know the objective of that client beforehand. For example if this client will be used as a customizing client then customizing entry should be used from the options. In the next category Changes and transports for client-dependent objects, there are four options. If you want to use this client as a sandbox client; and you do not want to record or create a change request every time a change happens to the client then Changes W/O automatic recording is the right option. If all the changes to the client should be recorded in a change request then Automatic recording of changes is the right option. You must choose this option for your master configuration client. If No changes allowed is chosen, then no changes will be allowed to this client. You must chose his option for clients in the production environment to protect your system. No transport option is used when you do not want any user to create a transport from this client.

The Client-independent object changes category determines if the client independent data maintenance is allowed in this new client. You get following four options in this category:

Changes to Repository and client-ind. customizing allowed No changes to client-independent customizing objects No changes to Repository objects No changes to Repository and client-independent custom. obj.

To choose the right option from Client-independent object changes category, you must know the definition of Clint independent customizing objects and repository objects. The examples of SAP repository objects are data dictionary objects, module pools and screens. Client independent objects apply to all the clients. The factory calendar is an example of client independent object of customizing. For sandbox client, where user learns how to do the customizing, you must not allow the client independent customizing. Changes to Repository and client-ind. customizing allowed: Both client independent customizing objects and SAP repository objects can be maintained. Usually this option is selected in a master-customizing client.

Thrinath Soma Sap Basis Consultant

88

No changes to client-independent customizing objects: No change is allowed for client independent customizing objects but changes to repository objects are allowed. This option can be used for a sand box client. No changes to Repository objects: If you select this option, then no changes are allowed to the Repository objects but the client independent customizing is allowed. When you want to protect the repository objects in a client, this is the right option to use. No changes to Repository and client-independent custom. Obj: This option does not allow any changes to client independent customizing objects and repository objects. You should use this option for a consolidation and production client where the security of client independent objects and repository objects are necessary. In the restriction category of the Change View Clients: Details screen, there are four options. You are allowed to maintain only the following three options.

Protection against overwrite by copying: If you chose this option, a client copy can not overwrite the new client. You should chose this option for a master-customizing client or for an important client as production.

Start of CATT processes allowed: This option determines whether you want to allow the CATT (Computer Aided Test Tool) process in the client or not. Computer Aided Test Tool (CATT) is tool provided by SAP to test different functionality of the SAP system. To run the CATT tool you can execute transaction SCAT. CATT process changes the database extensively and requires lot of system resources. So we recommend not to chose this option if you are in the production environment.

Protection against SAP upgrade: If you chose this option, then this client will be not updated in time of upgrade. You should use this option for a client that is used for backup purposes or client 066 (Early Watch client) that is used by SAP for customers SAP system performance. If you chose this option for any client, the upgrade will not provide any data to this client and it can not be used as a regular customizing client. You need S_CTS_ALL authorization to maintain this option.

Step by Step Procedure to create a copy of a client locally in the same SAP server. 1. 2. 3. 4. 5. Logon to SAP server Use Transaction Code SCC4 Go to change mode Create a new client, assign client number & description as per request Logoff from current client.

Thrinath Soma Sap Basis Consultant

89

6.

Login to newly created client using the following credentials : i. ii. iii. Client Number User Id Password : Newly created one : SAP* : PASS

7. 8. 9.

Use Transaction Code SCCL for local client copy Give reference client for copy and profile as per the request Use SCC3 Transaction code to monitor progress of Client Copy.

Golden rules for CLIENT Copies 1. Master data can not be copied without copying transactional data and transactional data can not be copied without copying master data.

2.

Application data (transactional and master) should not be copied without copying configuration data.

3. Client copy requires a valid client as the destination client. Make sure that the client exists in T000 table and you can logon to that client. 4. The transport system and the transport management system of 4.0 are the only proper tool to be use to keep multiple systems in sync by transporting development and customizing changes to another instance. 5. When you copy a client from one system to another, client-independent tables should only be copied if they are not yet modified in the target system. 6. We recommend the users to read all the OSS notes regarding client copy that applies to their SAP release. It is always better to schedule the client copy job in the background for the night run when normal work is not taking place. 7. Always check the database space before performing a client copy.

8. To avoid data inconsistencies all the users working in the source and target clients should logoff from the system.

Thrinath Soma Sap Basis Consultant

90

9. RSCLICHK program should be run in the target system remotely before doing a client export. This program will give information about the missing definitions from the data dictionary in the target. After executing this program and getting successful results you can ensure that the client copy will have no problems. In case some tables are different; you can use SE11 to compare and adjust the table structure in both the system before the client copy. A remote test client copy also can be executed to know the differences between source client and target client. 10. If you are not in release 2.2 then do not use R3trans to copy a client.

Useful Tips:

Logging on without being authorized

Client 066 usually exists in a SAP system because of EarlyWatch services. Often this client does not have master users. If it is true, anyone can log into the system using the client 066, user SAP*, and password PASS. Enjoy yourself.

Locking the whole system

Using the command tp locksys SysID only the user SAP* will be allowed to login. The commandtp unlocksys SysID cancels the lock.

Connection between SAP R/3 and operating system : Release SAP Job from OS

The command sapevt can be used to trigger an event from the operation system.

Thrinath Soma Sap Basis Consultant

91

Thus, a job previously defined within R/3 will be released.

SQL code help

Run the command oerr ora error number under user oraSysID.

Direct input logs

The transaction BMV0 (direct input logs) shows all direct input logs.

Oracle import and export explanations

Run the command imp help=yes under user oraSysID. This format can also be used with exp,impst, and expst.

Table analyses between two systems

The contents of a table between two systems can be checked through the transaction OY19.

Thrinath Soma Sap Basis Consultant

92

Setting up module FI/CO without using IMG

Almost all parameters can be set using the transactions ORFA (Asset Accounting), ORFB (Financial Accounting), and ORKS (Cost Center Accounting).

Long messages on footer

Click on the message and hold the mouse button. After moving the mouse to the left side.

Graphics on SAPscript

The program RSTXLDMC can be used to upload graphics (file extension .tif on PC files) into individual standard text.

Deleting cost elements and cost centers

Since they have no postings you can use the transaction KA04 for deleting cost elements and KS04 for deleting cost centers.

Thrinath Soma Sap Basis Consultant

93

Filling up an empty date field quickly

Strike the key F4 (or click on matchcode symbol) and press ESCAPE. The current date is automaticly set.

Displaying check object when not authorized

Soon after the lock try to access the transaction SU53. It reports the last objects verified and also the respective values.

Correction and transport system

The transaction SE10 provides the easiest way to manage any request/transport and corrections.

Helpful reports

RSCLTCOP Copy RSAVGL00 Table

tables adjustment

across across

clients clients

Thrinath Soma Sap Basis Consultant

94

RSINCL00 Extended RSBDCSUB Release batch-input RSTXSCRP Transport SAPscript RSORAREL Get the RGUGBR00 Substitution/Validation RSPARAM Display all RSUSR003 Check the passwords of users RSUSR006 List users last login

program files

sessions Oracle

across

instance SAP* and

DDIC

in

list automaticly systems Release utility parameters all clients

Reapplying hot packages

If you accidently applied hot packages out of sequence for instance. Use the transaction SM31 to modify table PAT03. You have to choose the desired patch and click on delete entry.

Scheduling of system maintenance jobs

RSBTCDEL Clean the old background job records RSDBCREO Clean batch input session log RSPO0041 Removing old spooling objects RSSNAPDL Clean the old ABAP error dumps

Thrinath Soma Sap Basis Consultant

95

List of most used SAP extensions and their components

CUST1 MENUS000+C01 Customer option in the Office menu CUST2 MENUS000+C02 Customer option in the Logistics menu CUST3 MENUS000+C03 Customer option in the Accounting menu CUST4 MENUS000+C04 Customer option in the Human Resources menu CUST5 MENUS000+C05 Customer option in the Information Systems menu CUST6 MENUS000+C06 Customer option in the Tools menu CUST7 MENUS000+C07 Customer option in the System menu ZXUSRU01 Exit_saplsusf_001 At login time SAPMF02D Exit_sapmf02d_001 When saving customer master data SAPMF02K Exit_sapmf02k_001 When saving vendor master data M61X0001 Exit_saplm61c_001 When processing MRP planning M61X0001 Exit_sapmm61x_001 When processing MRP planning FYTX0001 Exit_saplv61a_001 Modifications in pricing procedures MBCF0002 Exit_sapmm07m_001 Checks for materials documents SDVFX002 Exit_saplv60b_002 Link between SD and FI documents M06B0003 Exit_sapmm06b_001 When saving MM documents

Before going live It is highly advisable to increase the next extends size of some tables and their indexes even before initial loadings

FI - BKPF, BSEG, BSIS, BSAD, BSAK, BSID and BSIK CO - COEJ, COEP, COKS, COSS and T811* AM - ANL* MM - MKPF, MSEG and BSIM SD - VBAP, VBAK, VBEP, VBPA, LIKP, LIPS, VBRK, VBRP, VBKD, VBUK, VBUP and VBSS PP - RESB and MDTB Accross - ATAB, TST03, TSP01, MCSI, KNVP, ACCTIT, COEP, APQD, RFBLG, CDCLS, SDBAD and from S000 to S999 module Adding a New SAP Instance to Existing TMS DC 1. Log on to client 000 in the SAP instance you want to add to the existing TMS Domain.

Thrinath Soma Sap Basis Consultant

96

2.

Go to transaction SE06.

3.

Click on the Perform Post Installation Actions button.

4.

Go to transaction STMS.

5. You should see Domain. Press F6 Transport Domain popup.

popup box until you

with see

the title TMS: Configure Transport a TMS: Include System in

6. Fill in the TMS: Include System Description, Target Host, and System Controller then click Save.

in

Transport number of

Domain popup the TMS

with the Domain

7. You should see a included in the Transport Domain.

message

that

says SAP

System

waiting

to

be

8. Log on to client 000 of the Transport Domain Controller and go to transaction STMS, keeping your original session in the other SAP instance open.

9. On the Transport Management System screen, click Overview Systems. Highlight the System you just added and then click SAP System Approve. Then confirm all the messages.

10. Back on the Transport Management System screen, click Environment Transport Routes.

Thrinath Soma Sap Basis Consultant

97

11. On the Display Transport Routes screen, click the Display<>Change button to toggle into Change Mode. Click on Edit Transport Route Create.

12. On the Create Transport Route popup, use the Consolidation boxes to enter the SID of the transport domain, create a Z* transport layer, and the SID of the system you are adding. Click Save and confirm. Back out to the main Transport Management Screen.

13. Back on the Transport Management System screen, click Overview Systems. Double-click on the new system, and click on the Communications tab. Make sure that the Transport Group name is the name of the original transport domain. If not, change it. Click the Transport Tool tab. Verify that the information on the tab is correct and click the Insert Row button. Add a Parameter of CTC and a Value of 1. Click the Save button.

14. You can switch back to the new instance, and confirm that the SAP System waiting to be included in the Transport Domain has disappeard. SAP BASIS Interview Questions: Q. What is difference between Application Server & central instance?

Ans.

Thrinath Soma Sap Basis Consultant

98

Central instance have message server and dialog, update, spool, enque, gateway, background work processes. Application server has only Dialog, update, spool, gateway and Background workprocess. Note: SAP server has only one message server and Enque server.

Q. What is difference between consolidated & delivery routs. Ans. In a 3 system landscape, transports from development and quality is called Consolidation Route (this can have target groups & CTC). Transports route from Quality to production is called delivery route.

Q. What are the prerequisites for applying a support pack? What is the Procedure for applying support packs?

Download the Support Patches from market place. Login through 000 client with user DDIC. Go to Transaction SAPM. From the menu support packages - > load package -> from Front End.. Then Select display button in the screen and select the patch and gives import. Import the Package queue. Take care that no users are in online while u upload the support packages.

Thrinath Soma Sap Basis Consultant

99

Q. Auto Start SAP on Windows Instance

Use transaction RZ10 to edit your startup profile. Add the following entry:

Autostart = 1

Then save the profile. Next time your server reboots, your SAP instance will come up automatically!

Q. What is the procedure for applying sap notes to sap system?

Goto Tcode SNOTE. GOTO Menu -> Download SAPNote. Give the Note No. After downloading check the status. If it shows that it can be implemented. Then Select that Note goto Menu SAPNote -> implement Note.

Q. How to lock SAP Client? Is there any Tcode to lock the particular Client?

Execute Transaction code SE37. Enter the Functional Module SCCR_LOCK_CLIENT.

Thrinath Soma Sap Basis Consultant

100

Execute this and enter the client u need to lock.

Q. Change the default Support Pack Path

It is because the path is defined in the parameter DIR_EPS_ROOT.

Q. SAP ECC6.0 Installation Steps

1. Once the Linux OS is over u configure the network card and change the Host name . 2. Install JDK and saplocales. 3. Then add the java home in profile file. 4. Modify the parameters in sysctl.conf. 5. Before install oracle u have to change the parameters in limits.conf. (Installation guide for oracle in linux is available from oracle site) 6. Install SAP by executing sapinst. 7. In the 3rd phase it will ask u to create user for oracle (user should be ora<ianstancename>). Suppose if u r going to install oracle in middle of sapinstallation only. Rest SAP will handle own its own.

Q. STAT, STAD and ST03N tcode is showing error RFC error, No performance data collected.

Start SAP standard job SAP_COLLECTOR_FOR_PERFMONITOR(program RSCOLL00).

Thrinath Soma Sap Basis Consultant

101

Q. What is the difference between client 000 & 001? Why we use client 000 for client copy, why dont 001?

000 client is standard client and contain client independent setting. 000 client contain simple organizational structure of test company and include all parameter for application, standard setting

001 client is copy of 000 client. It is reserve for the activity for preparing the system for production system.

Q. Which are the default SAP background jobs run for Basis data?

SAP_REORG_JOBS SAP_REORG_SPOOL SAP_REORG_BATCHINPUT SAP_REORG_ABAPDUMPS SAP_COLLECTOR_FOR_JOBSTATISTIC SAP_COLLECTOR_FOR_PERFMONITOR RSPO1043

Q. What are Homogenous system copy and Heterogeneous system copy and how you will do that?

Homogenous- Same OS +Same DB Heterogeneous- Different OS+ Different DB or Same DB.

Thrinath Soma Sap Basis Consultant

102

Q. What is SAPS?

The SAP Application Performance Standard (SAPS) is a hardware-independent unit that describes the performance of a system configuration in the SAP environment.

Q. Which table space, gets filled frequently and we add datafile to that?

PSAPBTABD/I, PSAPSTABD/I, PSCAPLUCD etc.

Q.

What is SAP NETWEAVER, SAP XI, SAP BIW, SAP WAS and SAP BI.

What is difference between these?

1. SAPNW - Netweaver is a web based technology includes java, based on your installation choices during software installation. It includes BI/XI/EP and different level of its configuration. 2. BI: It is an OLAP (on line analytical processing), which provides a plate form to collect the data and user extract the data from BI or BW (older version) to analyze it

3. EP: Enterprise portal provides web based secure access to all the application, services and information. you can log in to EP using host name:port#/ <service name> and user name and password

4. SAP -XI: Exchange Infrastructure is used to establish a cross system connections between system by different vendors and versions

Thrinath Soma Sap Basis Consultant

103

5. Web AS: Web Application Server is the platform for ABAP and J2EE stacks in Netweaver. Disable Multiple Logins in the Same Client Disable Multiple Logins in the Same Client To disable multiple user logins within the same client implement this parameter in the instance profile: login/disable_multi_gui_login = 1 If you do not use this parameter in your system, users have the ability to ignore the warning window at the time they try to login to the same client. Activating this parameter in your system will make you look good if you get audited! How about exceptional logins? In case youre wondering how to allow multiple logins for certain key users you can implement parameterlogin/multi_login_users. You can list the user IDs that should be ignored if the parameter above is active in your system. View Locked Transactions As you know, you can lock/unlock transaction codes via SM01. But, how do you go about viewing You need to look in field CINFO, table TSTC. the transactions that are locked in the 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. You can logon to SAPNet -R/3 FrontEnd without using transaction OSS1. This way you dont have to open an SAP session just to log on to SAPNet. Here is how to do it: 1. Create the file saproute.ini under the %winnt% directory and add the following two entries: [Router] sapservX=/H/your-SAProuter-internal-IP-address/H/SAPServX-IP-address/H/

Thrinath Soma Sap Basis Consultant

104

Example: sapserv4=/H/200.10.10.24/H/204.79.199.2/H/ 200.10.10.24 is my 204.79.199.2 is SAPServ4s IP address. SAP routers IP address.

2. Create the file sapmsg.ini under the %winnt% directory and add the following two entries: [Message 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. Youre done! You can change the name of the SAPNet session in SAPLogon if you want to. No more typing OSS1! Server]

Fast Logon to an SAP Server You can log on to an SAP server quickly using the SAPGUI executable. This way, you do not even need SAPLogon. At the command prompt type: sapgui hostname instnumber Example: sapgui myprd 00 The example above lets you log on to the server myprd with instance number 00.

Thrinath Soma Sap Basis Consultant

105

The SAPGUI.exe is located under the SAPgui directory. You either need to put this directory in your systems path or change to the directory to be able to log on as indicated above.

Saving Passwords for SAP shortcuts Passwords are not saved in shortcuts created within SAPGUI. In fact, when you edit a shortcut the password field is grayed out. Why? Because you need to first register the SAPshortcuts using: sapshcut -register SAPSHCUT.exe is located under the SAPpcsapgui directory. In SAPGUI 4.0 it was called SAPSH.exe. Once you do the registration you need to open the registry (regedit or regedt32) and change the value data of EnablePassword to 1 under: HKCU\Software\SAP\SAPShortcut\Security Then, you will be able to type and save your passwords. It is very easy to obtain the patch level of some core R/3 executables such as: disp+work, tp and r3trans. Many people would like to know how to do this. Here, I will show you how to do it for R/3 systems running on Windows and SQL Server environments. 1. Go to 2. Change to the run directory 3. Run the following three commands: dsp+work -V | find patch number tp -V | find patch number r3trans -V | find patch number If you want to see all the release information, then do not filter for the patch number. Now that you know how to do this, you can get creative and write a little script that reads the names of all your SAP servers from a text file and then it runs the three commands listed above. This way, you can get the patch level of all your systems by just running a script. This becomes in handy when youre consulting or putting reports together. SAPGUI 4.6x introduced the new visual design or enjoySAP look and feel. the SAP command prompt. (cd \usr\sap\<SID>\sys\exe\run).

of

your

instance

Thrinath Soma Sap Basis Consultant

106

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. Locking/Unlocking accounts - Behind the scenes User accounts can be locked/unlocked via SU01 (User Maintenance.) But, what goes on behind the scenes? What does the system do to actually set this? The table USR02 gets updated. The field UFLAG determines if the user account is locked or unlocked. The value 64 indicates that the user account is locked. The value 0 that the user account is unlocked. Knowing this, you can then issue an update statement at the database level that locks all users in mass. Dont 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. SAP table with Version and Instance name USAP R/3 stores its version, instance name and OS platform in tables! This is excellent as you can then query the <SID> database to get the R/3 version, Instance Name and OS platform as follows:

Thrinath Soma Sap Basis Consultant

107

select * from SVERS select * from TSLE4 You dont even have to log on to the application to get this info. The above query gives it to you in less than 1 second. This is a very useful tip that can help you check if an SAP R/3 server is up and running. This way, you dont 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 dont 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). Its part of the SDK. If you dont have the file, e-mail me and Ill send it to you. The syntax sapinfo ashost=host sysnr=nn of SAPINFO is:

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 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 tons of time.

rem

ping

is

sent

to

the

host.

If

successful

an

RFC

check

is

carried

out.

Thrinath Soma Sap Basis Consultant

108

rem By: Giovanni rem ====================================================================== if %2==" echo Pinging ping %1 -n 2 | find /i echo System does not exist on the network! & goto Bye :CheckRFC sapinfo echo echo echo goto Bye goto reply %1 >nul

Davila

&&

goto

NoParameter CheckRFC

ashost=%1 System

sysnr=%2 is

&

if up.

errorlevel RFC

goto System_Down checks OK! -

:System_Down echo echo echo goto Bye

System

is

down!

:NoParameter echo echo You did not echo Syntax: checkrfc echo Example: echo :Bye Lock a Client to Prevent Logons

specify

at hostname checkrfc

least one parameter! instance number mydev 00

Do you need to do maintenance on a system and want to make sure nobody logs on to it while youre working on it? You can lock a system at the OS level by running: tp locksys <SID> pf=tpprofile Example: To lock your DEV system pf=saptranshostsapmnttransbintp_domain_dev.pfl enter this command: tp locksys DEV

Users will get this message if they attempt to log on: Upgrade still running. Logon not possible. Notice that the message is not exactly accurate. TP locksys is mainly used during release upgrades so the message is kind of generic. But, it works! To unlock the system, run: tp unlocksys <SID> pf=tpprofile

Thrinath Soma Sap Basis Consultant

109

Now you can tell your boss that you know how to keep the users off the system! Only SAP* and DDIC can log on to any of the clients in the system that has been locked. Creating a Printer Device

1.

Log on to any client in the appropriate SAP system.

2.

Go to transaction SPAD.

3. On the Spool Administration: Initial Screen screen, under theDevices/servers tab click the Output devices button.

4. On the Spool Administration: List of Output Devices screen, click the pencil picture-icon to switch into change mode. The easiest way to create a new printer is to copy an existing one. Click on a similar printer in the output devices screen then click the create with template picture-icon.

5. On the Spool Administration: Create Output Device screen, fill in theOutput device and Short name. Make any changes that are unique for the new printer on the Device Attributes and Host Spool Acc Method tabs. When all the required data has been changed/added, click the Save picture-icon.

6. You will receive an Output device was saved message in the status bar at the bottom of the screen. Click the lit match picture-icon to activate the printer.

7. 1.

You may now leave the SPAD transaction. Log on to any client in the appropriate SAP system.

2.

Go to transaction SPAD.

Thrinath Soma Sap Basis Consultant

110

3. On the Spool Administration: Initial Screen screen, under theDevices/servers tab click the Output devices button.

4. On the Spool Administration: List of Output Devices screen, click the pencil picture-icon to switch into change mode. Double click on the output device to be changed.

5. On the Spool Administration: Output Device (Change) screen, make any necessary changes on the Device Attributes and Host Spool Acc Method tabs. When all the required data has been changed/added, click the Save picture-icon.

6. You will receive an Output device was saved message in the status bar at the bottom of the screen. Click the lit match picture-icon to activate the printer.

7. 1.

You may now leave the SPAD transaction. Log on to any client in the appropriate SAP system.

2.

Go to transaction SPAD.

3. On the Spool Administration: Initial Screen screen, under theDevices/servers tab click the Output devices button.

4. On the Spool Administration: List of Output Devices screen, click the pencil picture-icon to switch into change mode. Click on the output device to be deleted and then click the trash can picture-icon.

5. On the Spool admin.: Delete screen, verify that the correct printer is about to be deleted. Click the Yes button.

Thrinath Soma Sap Basis Consultant

111

6. You will receive an Output device deleted message in the status bar at the bottom of the screen. You may now leave the SPAD transaction. Transporting a Printer or a Group of Printers

1.

Log on to any client in the appropriate SAP system.

2.

Go to transaction SPAD.

3. On the Spool Administration: Initial Screen screen, under theDevices/servers tab click the Output devices button.

4. On the Spool Administration: List of Output Devices screen, click the pencil picture-icon to switch into change mode.

5.

Click on an output device to be transported and then click the truck picture-icon.

6.

On the Spool Administration: List of Output Devices (Change) popup, click the green picture-icon.

7. On the Prompt for Workbench request popup, click the blank page picture-icon to create a new change request. On the Create Request popup, fill in the Short description and click the Save picture-icon. You will be returned to the Prompt for transportable Workbench request popup which contains the generated change request number for this system change. Click the green to continue.

8. You will receive an Entry is made in transport request message in the status bar at the bottom of the screen. Repeat steps 11 through 14 as many times as necessary, using the same transport request for all printers.

Thrinath Soma Sap Basis Consultant

112

9.

You may now leave the SPAD transaction.

Resetting the Cache for a Printer

1.

Log on to any client in the appropriate SAP system.

2.

Go to transaction SPAD.

3. On the Spool Administration: Initial Screen screen, under theDevices/servers tab click the Output devices button.

4. On the Spool Administration: List of Output Devices screen, double click on the printer you need to reset.

5. On the Spool Administration: Output Device (Display) screen, click on the pencil picture-icon to switch from display mode to change mode.

6. On the Administration: click Edit Reactivate.

Output

Device

(Change)

screen,

on

the

top-most

menu

bar

7. On the same Administration: Output Device (Display) screen, on the top-most menu bar click Edit Reset Cache.

8. On the same Administration: Output Device (Display) screen, on the top-most menu bar click Edit NI Reset.

Thrinath Soma Sap Basis Consultant

113

9.

You may now leave the SPAD transaction.

************************************************************************ Creating a Local Frontend Printer or Desktop Printer Local or frontend printing is sometimes confusing in concept but actually very easy to understand. As a rule, local printer is simply another way of saying that the user is going to print to the default printer designated on his/her workstation. You probably do this all the time with Windows to printerspreadsheets, Word documents, etc without thinking about it. You can do the same thing using SAP.

1.

Log on to any client in the appropriate SAP system.

2.

Go to transaction SPAD.

3.

On the Spool Administration: Initial Screen screen, click the Output Devices button.

4.

On the Spool Administration: List of Output Devices screen, click the Change button and then the Create button.

5.

On the Spool Administration: Create Output Device screen, fill in the Output Name and Short name - I normally use a short name of DESK for Desktop Printing but alot of people use a Short name SWIN or LOCL as well. Use the following DeviceAttributes fields: Device Device Class = standard printer type = SWIN

Thrinath Soma Sap Basis Consultant

114

And the following Access Method fields: Host spool access method = F: Printing on frontend computer Host printer = __DEFAULT. That is _ _ D EFAULT

Save the printer.

6.

You may now leave the SPAD transaction.

Using this printer will cause print to go to SAPLPD which will use the default printer of the current workstation. Viewing a List of Pending Printer Output Requests for All Printers Viewing a List of Pending Printer Output Requests for All Printers

1.

Log on to any client in the appropriate SAP system.

2.

Go to transaction SP01.

3.

On the Output Controller: Spool request selection Screen screen, click on the Output requests tab.

4. On the Output Controller: Output request selection Screen screen, fill in any information needed to filter the selection results. Then click on the clock picture-icon.

5.

A list of all pending output requests will be displayed.

Thrinath Soma Sap Basis Consultant

115

6.

You may now leave the SP01 transaction.

Viewing a List of Output Requests for a Specific Printer Viewing a List of Output Requests for a Specific Printer

1.

Log on to any client in the appropriate SAP system.

2.

Go to transaction SPAD.

3. On the Spool Administration: Initial Screen screen, under theDevices/servers tab click the Output devices button. On the Spool Administration: List of Output Devices screen, click on the printer where you need to check the output requests. Then click on the printer and page picture-icon.

4.

A list of all pending output requests for the selected printer will be displayed.

5.

You may now leave the SPAD transaction.

Reprinting a Document

1.

Log on to any client in the appropriate SAP system.

2.

Go to transaction SP01.

3. On the Output Controller: Spool request selection Screen screen, fill in any information needed to filter the selection results. Then click on the clock picture-icon.

Thrinath Soma Sap Basis Consultant

116

4.

A list of all spool requests will be displayed. Double click on the spool request that is to be reprinted.

5. Click on the printer picture-icon. An Output request created message should appear in the bottom status bar.

6.

You may now leave the SP01 transaction.

Re-routing Print to a Different Printer 1. Log on to any client in the appropriate SAP system.

2.

Go to transaction SP01.

3. On the Output Controller: Spool request selection Screen screen, fill in any information needed to filter the selection results. Then click on the clock picture-icon.

4.

A list of all spool requests will be displayed. Double click on the spool request that is to be reprinted.

5. Click on the printer with a box outline picture-icon. On the Output controller: Print spool request XXXX screen, tab down to the line readingOutput device and select a new printer. Click on the printer pictureicon.

6.

On the Output control: Save attributes popup, click the Yes button.

7. On the Confirm redirection of output popup, click the Yes button. AnOutput request created message should appear in the bottom status bar.

8.

You may now leave the SP01 transaction.

Thrinath Soma Sap Basis Consultant

117

Deleting Obsolete Temporary Objects and Reclaiming the Space Deleting Obsolete Temporary Objects and Reclaiming the Space

1.

Log on to any client in the appropriate SAP system.

2.

Go to transaction SP12.

3. On the TemSe Administration of Temporary Sequential Data screen, on the top-most menu bar click TemSe database Reorganization.

4. On the TemSe Administration of Temporary Sequential Data popup, click the All TemSe objects older than option to turn on the radio button to the left. Fill in the Days box with 7 for development and quality assurances SAP systems, and 32 in production SAP systems. Click the Delete button.

5.

On the TemSe objects older than XX days popup, click the Yes button.

6. After the successful deletion of the selected temporary objects, you will be returned to the TemSe Administration of Temporary Sequential Datascreen. There is no task completion message.

7.

You may now leave the SP12 transaction.

Database Administration DB02 DB12 DB13 Database statistics refresh jobs should be scheduled to run twice daily on all the SAP systems. But occasionally a manual refresh needs to be done due to table reorganization, index rebuild, etc.

Thrinath Soma Sap Basis Consultant

118

1. 2. 3. 4. 5. 6.

Log on to the server using the <sid>adm user ID. Open the MS SQL Server Enterprise Manager. Expand the navigator tree until you see the Management entry. Expand it. Right-click on Database Maintenance Plans and click New Maintenance Plan. Use the wizard to create the job you need. You may now close the Enterprise Manager session and log off the server.

1. 2.

Log on to the appropriate SAP instance any client. Go to transaction DB13.

3. On the DBA Planning Calender for Oracle Database <SID>: Maintain screen, double-click on a blank line on any day in the future. 4. On the Schedule Action for <Day>. DD.MM.YYYY popup, use the radio button to turn on the task you want to do. For each action, you need to fill in the Start Time in military time format, the Period (Weeks) which is how many weeks between running of this job blank for one time only, 1 for weekly, 2 for bi-weekly, etc. and Calender if you want to use any calendar except the SAP supplied standard Factory calendar.

These are the details for each action:

Whole database offline + redo log or Whole database offline backup or Whole database online + redo log or Whole database online backup Generic tape names for database backup Database backup profile usually init<SID>.sap

Thrinath Soma Sap Basis Consultant

119

Options for ReDo log backup Redo log backup Generic tape names for database backup Options for ReDo log backup Partial database offline backup or Partial database online backup Tablespace names to be included in the back up Generic tape names for database backup Database backup profile usually init<SID>.sap Check and update optimizer status Tablespace names to be included in the statistics run Adapt next extents Tablespace names for next extents adaption Check database N/A Verify database Tablespace names to be verified Database backup profile usually init<SID>.sap Cleanup logs N/A

5.

You may now leave the DB13 transaction.

Thrinath Soma Sap Basis Consultant

120

1. Log on to the appropriate SAP instance and client using BATCH_USER. 2. Go to transaction SM36. 3. On the Define Background Job screen, fill in the Job name field with the new job name. Select a Job Class priority of A for High, B for Medium, and C for Low. It is SAPs recommendation that all client-owned jobs begin with a Z for identification purposes. And most Basis people recommend the next two characters be the initials for the SAP module for which the SAP instance runs. Like ZBC* for a Basis job, and ZHR* for a Human Resources job. Click on the Specify start condition button or press F5. 4. On the Start Time popup, click the Immediate button to start the job right away, or click the Date/Time button to specify a date/time in the future for which the job run. Click on the Periodic job radio button and then click the Period values button if you want to schedule to job to run on a periodic basis. Provide the periodic values and click Save back to the main Define Background Job screen. 5. On the main Define Background Job screen, click the Step button. 6. On the Create Step 1 popup, fill in the ABAP program Name and any Variant needed to run the program you had to have created the variant using BATCH_USER before using it here. Then click Save once more. 7. Back on the Define Background Job screen, check that all the job information is correct and then click the Save button one last time.

1. Log on to the appropriate SAP instance and client as either the user ID owning the job or an administrator ID. 2. Go to transaction SM37. 3. On the Simple Job Selection screen, fill in the Job name field or use any of the screens filtering options to produce a list from which you can see the job to be changed. In order for a job to be changed, it has to have a status of Schedule or Released so turn those statuses on and turn the rest off. Click on the Execute button. 4. On the Job Overview screen, click on the line containing the job to be changed and then click Job Change. 5. On the Change Job screen, make your changes and then click Save. If you have more than one occurance of the same job in your list, you must change each job scheduled to run earlier than that job you just changed. Once the job you changed runs, all occurences of the jobs running after that date will be changed as well.

Thrinath Soma Sap Basis Consultant

121

1. Log on to the appropriate SAP instance and client as either the user ID owning the job or an administrator ID. 2. Go to transaction SM37. 3. On the Simple Job Selection screen, fill in the Job name field or use any of the screens filtering options to produce a list from which you can see the job to be deleted. In order for all occurances of a job to be deleted, all statuses of the job should be checked on. And enter an all-encompassing date like 01-01-1990 through 1231-2010. Click on the Execute button. 4. On the Job Overview screen, click on all the perpetent line containing the job(s) to be deleted and then click on the Delete job from database button. 5. On the Delete Scheduled Jobs? popup, confirm the deletion.

1. Log on to the appropriate SAP instance and client as either the user ID owning the job or an administrator ID. 2. Go to transaction SM37. 3. On the Simple Job Selection screen, fill in the Job name field or use any of the screens filtering options to produce a list from which you can see the job you want to view. In order for all occurances of a job to be viewed, all statuses of the job should be checked on. Click on the Execute button.

Deleting an Active aka Runaway Job

Opinions on this topic vary so these are good guidelines to use. These are pretty much in the order they should be tried: 1. Kill the session via SM37 or SM04. 2. Try End session through SM50 or cancel program from SM66. 3. If the Work Process in SM50 is in stopped state then killing it will not help much or quickly, you need to identify why it is stopped (running a program on another server, runing in parallel etc.) Try and end those. 4. Kill Work Process in SM50 without core. 5. Kill process or PID via program RSBDCOS0. 6. If all else fails, restart the SAP instance server. The most important things to remember when killing a WP are:

Thrinath Soma Sap Basis Consultant

122

1. Change to restart = no as otherwise the session can jump back in sometimes as most of its memory is not actually living in the WP. 2. Allow it a long time to stop, there is no need to do it twice or 50 times as I have seen some people do, the poor old thing is just trying to recover rollback and reinitialize itself.

1. Log on to the appropriate SAP instance and client. 2. Go to transaction SE38 and type in Program name RSBTCDEL and click on the Execute button. 3. On the Delete batch jobs screen, fill in the filtering information you need. It is suggested that Delete with forced mode be on. Click on the Execute button. 4. A status message will appear in the bottom Status Bar as the list of job logs to be deleted is built. Once all the specified job logs have been deleted, a final total of jobs logs cleaned will appear in the bottom Status Bar. SAP Troubleshooting - BASIS Issues 1. What has changed since the performance is poor?

System Parameter Changes (RZ10)? Increase in the number of users? Kernel patch? Support Packages? Linux and Oracle patches? Hardware Changes?

2.

Any signs of general problems in the System Log - SM21?

3.

Places to look:

SM50: Process Trace Components is there a Trace level set? Is it greater than 1? What is the utilization of the work processes? Click the white clock picture-icon. Is the total CPU for the last dialog process > 10 minutes?

Thrinath Soma Sap Basis Consultant

123

ST04: Is the database monitor activated? If yes, it should deactivated it in normal operation. ST02: Check the buffering quality. If paging occurs in a buffer, the corresponding parameter should be increased. Also refer to SAP Note 121625 in this context. ST03: Select a server Todays Workload: What are the response times? In the case of poor response times, where is most of the time needed? Button Top Time: Are there a lot of different transactions with poor response times or are there only a few? Is a certain transaction always slow or only sometimes? ST06: Detail analysis menu Hardware Info. To which extent are the hardware resources utilized? CallST06 at times with poor system performance. What is the CPU utilization? Goto Current Data Snapshot Top CPU processes and display the main CPU consumers. What is the utilization of the disks? How high is the paging in the base pool?

4. If only few transactions are affected by the performance problem, you should additionally note the following points:

1. 2. 3.

Check whether modifications were made in the affected or related transactions. ST03: Display the corresponding performance records. SE30: Carry out a runtime analysis for the affected transactions.

4. ST05: If the database times are high, you should generate an SQL trace of the affected transactions to find out whether the database access is carried out in a useful way.

5. Look for tables that have experienced unusual monthly growth.

1. 2. 3. 4. 5.

DB02 Space Statistics button Press Enter on the Tables and Indexes popup History All objects off/on Click the Months button Click on the first number under the Rows Chg/Month header and click the Sort button.

6. The sorted results shows the top tables when it comes to rows changes per month. These tables are your database hogs.

Thrinath Soma Sap Basis Consultant

124

6. What is considered normal response time?

Performance Standards:

Response time 1 second (dialog), < 1 second (update) CPU time Wait time Load time approx 40% of average response time < 1% of average response time < 10% of average response time

DB request time approx 40% of average response time

Database Standards:

Direct reads

< 10 ms

Sequential reads < 40 ms Changes < 25 ms

High Value Indications:

DB request time - Database or index problems Load time Wait time Buffer problems Not enough work processes Locked tasks

Thrinath Soma Sap Basis Consultant

125

Long running transactions

Whether you are trying to start a brand new SAP instance, or an old one, there are some very specific places to look for information.

If this is a brand new SAP instance, and the installation completed 100% successfully, you know that the instance itself must be viable. If your installaion was never able to complete due to the instance not being able to start up, the issue is probably due to lack of resources. Use the sapinst directory to search the installation logs and find your problem. Sort them with ls ltr is see the list sorted in descending order for the ease of viewing. If you have a test searching tool, look for error in all files with the suffix .log.

If your SAP instance has been up and running fine for a good while, then something has probably changed that makes it not come up.

have you changed any instance paramters? did you do a kernel replacement for some reason? have there been SAP Support Packages applied that might necessitate a kernel replacement?

have there been OS patches? is the database archiver stuck or hosed? has a crucial directory run out of space? has a semaphore or ipc segment gotten stuck from a previous run? is your memory so fragmented that it cant get enough primary space to start the instance? has someone changes the directory privileges?

Thrinath Soma Sap Basis Consultant

126

To investigate an unsuccessful start up, look at the logs in the /home/<sid>adm directory. Sort them with ls ltr is see the list sorted in descending order for the ease of viewing.

If nothing obvious is found, go to the /usr/sap/<SID>/DVEBMGS00/work directory and do the same thing in this directory. The most useful information can be found in the dev_wx, dev_ms, dev_disp, dev_rfcx, and stderrx files.

If all else fails, zip the contains of the /usr/sap/<SID>/DVEBMGS00/work directory, open a problem with SAP, and attach the zipped file to it. Also provide them with the answers to the above questions as well as your current hardware and database platforms, patch level for SAP support packages, kernel, and the OS, and anything else you might think useful. The Delicate Art of SAP Note Search

How often have you seen a posted message saying I have searched through SAP Notes and can find nothing related to this matter.? And how often have you gone to SAP Marketplace and done a search yourself and found a hit? If we only had a had a nickle Searching SAP Notes (formerly known as OSS notes) is a science as well as an art. Lets use this error message as an example: BR051I BRBACKUP BR055I Start of database backup: BR602W No valid SAP license found - please contact SAP 6.10 bdmsqjbi.anf 2004-02-27 (80) 00.05.42

First, you should search the specific error message BR602W No valid SAP license found. If you get at least one hit, you should read the SAP Note even if it didnt look as if it pertained 100%. Why? Because it might contain information leading to other notes that did pertain, or give you new ideas for more search terms to help narrow the scope of my query. If you didnt find a note that matched the problem, you could make your next search a little less specifc, like brbackup No valid SAP license found. First you could search for the phrase, and if you had no luck, you could search for all words. And if that produced nothing tangible, you could make it even less specific as in brbackup SAP license error or SAP license error. Normally a very specific query will get you the results you need. But sometimes things get lost in translation. For example, you are applying support packages and get an import error with the following message Panic! Panic! Panic! theres no object header. Since we speak English and we realize that the SAP product was designed and implemented in Germany, we have to guess that the English word Panic! somehow was translated from the German word Warning! and that we can temporarily delay a panick attack until we can research the error. Moral of the story? Realize that some things just dont translate correctly from language to

Thrinath Soma Sap Basis Consultant

127

language, and search accordingly. If you searched for Panic! Panic! Panic! and got no hits, you could try warning message no object header.

Last, and not least, read and become familiar with your SAP Notes. There are certain notes that you pull over and over again due to some task that needs fresh, current and precise information. These are mostly lists of supported printer devices, known problems with applying patches, etc.

If a user seems to be experiencing SAPGui errors, several things need to be checked:

Is the operating system on the users workstation patched to the level recommended by SAP? Is the user using a version of SAPGui that is too old for his workstation? Is the user using a version of SAPGui that is not certified for his operating system? Is the users workstation having resource problems? Is the users workstation connected to the LAN? Can a different user reproduce the same error on the same workstation? Are there any SAPGui patches that have not been applied?

Most SAPGui problems can be solved by either a) deleting and reinstalling SAPGui on the workstation, or b) deleting and installing a newer version of SAPGui.

Make sure that these lines were added to the services file on the users workstation:

Thrinath Soma Sap Basis Consultant

128

After you have successfully configured your SAPGui, add these three lines to the bottom of your \Windows\system32\drivers\etc\services file:

sapdp00 sapmsR3I #

3200/tcp 3600/tcp

If you have SAP Instances using System Numbers other than 00, you will have to add their equivalents to the services file as well. Also, check if you are having connection problems due to firewall restrictions. And, be sure that your Insert Key is set so that you can type your password in properly you can delete whatever is in the password field in order to enter your password.

If you have never tested connectivity to a SAP instance on the workstation having the connection problem, first you need to make sure that the workstation can connect to the SAP server in some non-SAPGui way. Lets say your user us trying to connect to System ID (SID) DEV, System Number 00, and IP address 10.1.10.11. Open a DOS-Windows and type this:

telnet 10.1.10.11 3200 If the screen rolls and goes totally blank then your dispatcher is reachable. You can close the DOS session. If your window never goes completely blank and you set a Connecting To 10.1.10.11 Could not open connection to the host, on port 3200: Connect failed error message right under the command you entered, the dispatcher is not reachable. Also, make sure the \Windows\system32\drivers\etc\hosts file on the workstation is correct.

For information regarding operating system, resource, and hardware requirements for running SAPGui, see SAP Note 26417 -SAP GUI Resources: Hardware and software. the CUA Parent Client

Thrinath Soma Sap Basis Consultant

129

If CUA stops sending changes from DEV to QAS or PRD, something in the RFC setup has changed. Either the password or the user type for RFC_USER was changed, or the SM59 RFC connection to was changed and is no longer working.

Use SCUL in DEV in your DEV CUA parent to list the errors that are occurring. Look for the user you tried to transport but could not. You might see You are not authorized to change users in group or No authorization for group users in role. This does not mean that YOU are not authorized, it means that the RFC_USER doing the ALE communication between the SAP systems is not authorized.

First, reset the RFC_USER password in DEV, QAS, and PRD. And make sure that the user type is Communication and not dialog. Now go to sm59 and do remote logins using the QAS RFC connections. If they work (ie nothing seems to happen after you click the remote logon button) everything should now be fixed. If you get a logon screen for QAS, change the password in the sm59 screen to the same password you changed RFC_USER to in DEV and QAS.

Retry your user change. If it still doesnt go to QAS, maybe the QAS system is hosed and down.

Important SAP Marketplace Links

Inbox

http://service.sap.com/inbox

Read messages from SAP to you Download SAP product installation

Installation Guides guides License Keys Messages to SAP QuickLinks Page Oracle DBA Page

http://service.sap.com/instguides

http://service.sap.com/licensekey http://service.sap.com/message http://service.sap.com/quicklinks http://service.sap.com/dbaora

Request New Permanent License Key Open problems with SAP An index of SAP links Page for Oracle DBA Material

Thrinath Soma Sap Basis Consultant

130

OSS Notes Patches

http://service.sap.com/notes http://service.sap.com/patches

Search the SAP Notes Database Download SAP software patches

Remote Connection http://service.sap.com/remoteconnection Learn about the OSS connection and order it from SAP Service Connection http://service.sap.com/serviceconnection Open a Service Connection for SAP to access your SAP landscape Software Distribution http://service.sap.com/swdc Download new images of

Installation CDs & DVDs SSCR http://service.sap.com/sscr Register Developers and Changes

made against SAP objects User Administration http://service.sap.com/user-admin Reporting a Problem to SAP 1. Log on to the SAP Marketplace using an OSS ID with Administration rights http://service.sap.com/message. Add/Change OSS ID user information

2.

On the Create Customer Messages screen, click on the Start Message Wizardbutton.

3.

On the Customer messages Create screen, click the Select a Systembutton.

4. On the System Selection popup, click on the + sign next to Show systemsto see a list of your SAP systems registered with SAP. From the expanded list of system, click on the radio button just left of the <SID> for which you are reporting the problem. Click the Choose button and you will be returned to the Customer messages Create screen.

Thrinath Soma Sap Basis Consultant

131

5. On the Customer messages Create screen, click on the radio button to the left of the System type which has the problem: development system,test system, or production system. From the Release dropdown, select the appropriate SAP software release. Click the Continue hyperlink.

6. On the next Customer messages Create screen, scroll down to the bottom of the screen. If the problem involves an add-on, select the appropriateAdd-on and Add-on release from the dropdowns; if an add-on is not involved, leave these dropdowns blank. Verify that the information showing in theOper. System, Database, and Frontend dropdowns is correct. If it is not correct, selection your SAP systems information from the appropriate dropdowns. Click the Continue hyperlink.

7. On the next Customer messages Create screen, scroll down to the bottom of the screen. From the Priority dropdown, select the appropriate priority of Low, Medium, High, or Very High. From the Component dropdown, select which SAP component is having the problem. Once you select a component, a secondary Component dropdown will appear. Select a secondary component and a third component as well. Do the best you can to make all three component pieces fit your problem as closely as possible. Click the Continuehyperlink.

8. On the next Customer messages Create screen, scroll down to the bottom of the screen. Select a language from the Language dropdown, type a short but descriptive summary of your problem in the Short description box, and type a more detailed description of your problem in the Long test box.

9. If there are logs or other files which might assist SAP in resolving the issue, rename them all so that they have a suffix of .log and use the Add attachment hyperlink and the Attachments popup to attach them to the message. After attaching all the necessary files, click the Closehyperlink to return to the Customer messages Create screen.

10.

When you have provided as much information as possible, click the Send to SAP hyperlink.

11. You will receive a confirmation screen with a generation problem number. Write this problem number down for later use.

12.

You may now leave the Message Wizard and close the web browser window.

Thrinath Soma Sap Basis Consultant

132

SAP BASIS Configuration Security - All SAP - Check SAP* and DDIC Passwords

Ever forget if you changed the SAP* user password to something other than the 06071992 default? Or wonder if the password is the same in all your clients? SAP provides a program called RSUSR003 that gives a good report on the status of your SAP*, DDIC, SAPCPIC, and EARLYWATCH user IDs across all clients of a SAP instance as well as information on these login instance parameters:

login/accept_sso2_ticket login/certificate_request_ca_url login/certificate_request_subject login/create_sso2_ticket login/disable_cpic login/disable_multi_gui_login login/disable_multi_rfc_login login/disable_password_logon login/failed_user_auto_unlock login/fails_to_session_end login/fails_to_user_lock login/min_password_diff login/min_password_digits login/min_password_letters login/min_password_lng login/min_password_specials login/no_automatic_user_sapstar login/password_change_for_SSO login/password_expiration_time login/password_logon_usergroup login/password_max_new_valid login/password_max_reset_valid login/system_client login/ticket_expiration_time login/ticket_only_by_https login/ticket_only_to_host login/ticketcache_entries_max login/ticketcache_off login/update_logon_timestamp

Thrinath Soma Sap Basis Consultant

133

0081 - General - All SAP - Replace SAP Splash Logo

If you want to replace the default SAP splash screen, do the following: 1. Identify a picture to replace the existing SAP logo. This picture can be in any valid picture format - gif, bmp, jpg. But I would convert it to jpg since that is the smallest available picture type. Store the picture somewhere on your workstation. 2. Go to transaction SMW0. 3. On the SAP Web Repository: Initial Screen, click on the radio button for Binary data for WebRFC applications, and click the Find icon or press F8.

3. On the SAP Web Repository: Objection selection screen, click the Execute icon or press F8. 4. On the SAP Web Repository: Object display screen, first make sure that the mime extension exists for your picture type. Click Settings -> Maintain MIME types. Look to the far right of the Data Browser: Table MIMETYPES Select Entries screen, and if you dont see your file type - gif, jpg, bmp - then you need to add it. Once you at done, back out to SAP Web Repository: Object display screen. 5. Now you can upload your picture. Click the Create icon or press F5. Fill in the name of your picture and a brief description and click the Import icon. Then provide the location of your picture and load it in. 6. Go to transaction SM30. Fill in the table name SSM_CUST and click Maintain. 7. On the Change View Set Values for the Session Manager / Profile Generator screen, click New Entries and add an entry called START_IMAGE and set the value to the name of your picture created in step #5. Then press the Save icon.

Thrinath Soma Sap Basis Consultant

134

You have replaced the SAP splash screen picture. Log off and back on to view your work!

0083 - UNIX - All SAP - UNIX Kernel Patch

UNIX Kernel Replacement

1. Download the two necessary archives - SAPEXE.SAR and SAPEXEDB.SAR - from SAP MarketPlace. There files can be found at http://service.sap.com/patches. Be careful that your Basis level is high enough to use the patch level of the files you download. For example, if your SAP instance is on Basis level 39 and the description of one of the SAPEXE.SAR files is Stack 42, you need to download a SAPEXE.SAR of a lower level.2. Once both files have been downloaded, log on to the UNIX server as <sid>adm and copy them up to a directory on the UNIX server - I use one called /usr/sap/trans/NewKernel. unCAR the files with SAPCAR command sapcar -xvf SAPEXE*.SAR.3. As <sid>adm, stop the SAP instance. Log on as ora<sid> and stop the TNS listener, and log on as root and stop saposcol.4. Make a backup of your run directory before patching. I usually create a /usr/sap/<SID>/SYS/exe/backup_run and copy all the files in /usr/sap/<SID>/SYS/exe/run to it.5. Copy all the files unCARed in step 2 to /usr/sap/<SID>/SYS/exe/run. If prompted, overwrite all.6. Change the owner of saposcol to root, sapdba & all br* files to ora<sid>, and all the rest to <sid>adm. 7. Start saposcol, the TNS listeners, and the SAP instance.

Thrinath Soma Sap Basis Consultant

135

You have patched your UNIX SAP kernel. If you run into any problems starting your SAP instances, stop everything, rename the directories /usr/sap/<SID>/SYS/exe/run to /usr/sap/<SID>/SYS/exe/bad_run and /usr/sap/<SID>/SYS/exe/backup_run to /usr/sap/<SID>/SYS/exe/run to restore your old kernel.

0087 - Basis - All SAP - Auto Start your Windows Instance

This one is easy but sometime hard to find. And it only works for Windows. Use transaction RZ10 to edit your startup profile. Add the following entry:

Autostart = 1

Then save the profile. Next time your server reboots, your SAP instance will come up automatically!

0105 - General - All SAP - Use CTRL+Y to Copy SAP Screen Text

This TKR is dedicated to Brosser, who helped me see the light I confess I feel like one of Richies Tuly Idiots for not knowing this one. I knew about CTRL+C, CTRL+V, and CTRL+X but somehow I never used CTRL+Y back in the old DOS days so this command meant nothing to me. Maybe it is because CTRL+Y is used for Redo and CTRL+Z for Undo in so many programs like Notepad, Word, etc.

Thrinath Soma Sap Basis Consultant

136

Now that I am a convert, it is time to spread the word! It all started when I posted a blurb in the Whats Messed Up in SAP forums about wishing you could use CTRL+C in st22 so you could copy the OSS Note search terms and not have to type them out by hand. And someone asked why I didnt use CTRL+Y. CTRL+Y works similarly to Edit -> Mark from a DOS prompt only you can to a CTRL+C afterwards. The data you mark for copying does not have to be just a line or two, you can copy any part of a text screen. And what you copy keeps the spacing, etc. that is shown on the original screen.

So, I have done my good deed of the day. Enjoy!

0110 - Transport - All SAP - Add an Object to a Transport

So, you just finished a project and everything is contained in one big transport. Before releasing it to be transported to QAS, you look through the object lists just to make sure you got everything. And, low and behold, you see that you are missing program ZPROGRAM. What do you do? You want everything to be contained in one transport but there is no transport for ZPROGRAM! As long as the main transport has not been released, you can add the ZPROGRAM to it. If it has been released, you need to use se03 to create a new main transport. If you dont know how to do this, please see 0074 - TMS All SAP - Recover Local Transport Request in this Technical Knowledge Repository before reading the rest of this TKR posting.

To add an object to a existing unreleased transport, you must do the following:

1. Log on to the client in which the main transport was created. 2. Go to transaction se10 and pull up a list containing the main transport. 3. High-light the main transport in the list - not the subtasks contained in the list - and click Ctrl+F11. 4. Turn on the radio button Freely selected objects that appears in the popup and press Enter or click the Copy button.

Thrinath Soma Sap Basis Consultant

137

5. In the Include objects in request screen, turn on the Selected Objects in the Selection by type and name section. 6. Check on the check box on the appropriate line, and enter the name of the object to be added to the transport - ZPROGRAM in our case. Click the Execute button or press F8. 7. On the Include objects in request screen, click the Include Request button or press F9. You will see a confirmation message in the status bar at the bottom of the screen. Now you can release your transport and let it move to QAS!

How to set-up and open a REMOTE SERVICE CONNECTION WITH SAP As most of you probably know, SAP has changed the way you open your system for SAP to access it remotely. Here is the new way it is done written by Mirella Jolicoeur from Natrol. She learned this method the hard way late one night. 1. Set-up a remote network connection to SAP. 2. Install SAP router on a Windows machine. 3. Install SAPCRYPTOLIB on the same machine. 4. Check the saprouttab file : a) you should have only one in your system and b) it should look like this: Code: P 10.1.1.* 194.117.106.129 * P 10.1.1.* 194.117.106.130 * P 194.117.106.129 10.1.1.61 3200 5. Test you connection to SAP by DOS cd: ping sapserv1. 6. Go to http://service.sap.com/system-data. 7. Go to the Problem Solving tab. 8. Go to the Connecting to SAP tab. 9. Click on Maintain Connections 10. Click on Display all systems 11. Double click on your system ID 12. The Service Connection-System ID page opens. 13. Click on Systemdata next to Logbook 14. Under System tab, scroll down to SAP-router, and look for an edit icon to the right. Click on the edit icon, and enter the saprouters NETBIOS name, and under Service-port enter 3299. 15. Under DB server tab click on the change icon and enter the NETBIOS name of the server, along with the local IP address. Unless you have two saprouters, do not enter anything under Additional SAP-Router field. 16. Under Appl.Server tab do the same thing. If you have a system that has the db server and the application server running on it, then the IP address will be the same.

Thrinath Soma Sap Basis Consultant

138

17. On a workstation (Windows XP) that has the SAP GUI, install Service Connector from SAPs site. 18. Install on the same machine LOP (Line Opener program). 19. To set-up the maximum time for SAP connection, click on Semi-Automatic Opening and enter the number of days for connecting to SAP When you are done installing them, run first SAPServiceConnector, and the LOP. After less than a minute, you can check on the SAP website if the connection is open.

0112 - Basis - R/3 6.20+ - SAPConnect SMTP Setup

Sending email out of SAP using SMTP 1. First, make sure your SAP Server has the SMTP service installed and that the service is active. 2. Activate the SMTP service using SICF. 3. Using the SCOT transaction, click View -> System Status. a.Click Settings -> Default Domain. Enter your email domain WITHOUT the @ sign. For example. The domain for SAP Super Users would be sapsuperusers.com. Save the information and go back to the main SCOT page. b.Double-click on the SMTP node under INT. Change the Mail Host and Mail Port information, and turn Node in Use on. Click the Set button beside Internet in the Support address types section. Put an * in the firstline of Address area. Confirm your way back to the main screen. c.Back on the main SCOT screen, click View -> Jobs. Click the create button and fill in a name for the email send job then click on the green check mark. Highlight the variant you want to use I use SAP&CONNECTALL then click the Schedule button. Fill in the start date and time, and then click Schedule periodically. Fill in the correct periodic information and click Create. Your job has been added.

Receiving email into SAP using SMTP

Thrinath Soma Sap Basis Consultant

139

1. Complete the tasks in Sending email out of SAP using SMTP.2. Using transaction RZ10, add these parameters to your instance profile: icm/server_port_<*> = is/SMTP/virt_host_<*> = <host>:<port>,<port>,; PROT=SMTP,PORT=<port>

The second parameter is only necessary if you are going to have multiple clients in the same SAP system receiving email. Here is an example of how these parameters can be configured: rdisp/start_icman = icm/server_port_2 = PROT=SMTP,PORT=25000,TIMEOUT=180 PROT=SMTP,PORT=25001,TIMEOUT=180 is/SMTP/virt_host_0 is/SMTP/virt_host_1 = *:25001; true icm/server_port_3 = = *:25000;

If multiple clients in your SAP system need to receive External email, your must create a unique is/SMTP/virt_host_<*> parameter for each client.

3. Using transaction SU01, create a SAPEmail system user with the S_A.SCON profile. And make sure all the users who will be receiving email have a valid email address in their SU01 profile. 4. Using transaction SICF, each client to receive email must be assigned an SMTP server. There is one already provided as a template. If only one client will be receiving email you only need to use the template. Make these changes: a.Change the Host Data to contain the proper Profile Parameter Number. See step 2. b.Change the Logon Data to contain the information about the user created in step 3. c.Change the Handler List to SMTP_EXT_SAPCONNECT on line 1.

5. Save your changes, deactivate the SAPconnect service andthen re-activate it.

Thrinath Soma Sap Basis Consultant

140

0113 - Basis - All SAP - Technical Table Characteristics

Data class The data class defines the physical area of the database (for ORACLE the TABLESPACE) in which your table is logically stored. If you choose a data class correctly, your table will automatically be assigned to the correct area when it is created on the database.

The most important data classes are (other than the system data): APPL0 APPL1 APPL2 Organisational and customizing data Master Transaction data data

Master data is data which is frequently read, but rarely updated. Transaction data is data which is frequently updated. Organizational and customizing data is data which is defined when the system is initialized and then rarely changed. There are two more data classes available, USR and USR1. These are reserved for user developments. The tables assigned to these data classes are stored in a tablespace for user developments. Note:The data class only has an effect on table storage for the database systems ORACLE and INFORMIX. Size category

The size category determines the probable space requirement for a table in the database. You can select the categories 0 to 4 for your table. Each category is assigned a specific fixed storage area value in the database. When you create a table, initial space is saved for it in the database. If more space is required later as a result of data that has been entered, the storage space is increased in accordance with the category selected. Press F4 on the field Size category to see the number of data records that can be maintained for the individual categories of your table without complications ensuing. These complications could be for example a reorganization becoming necessary because the maximum space to be reserved for the table was exceeded due to the maintained size category. Buffering status

Thrinath Soma Sap Basis Consultant

141

The buffering status specifies whether or not a table may be buffered. This depends on how the table is used, for example on the expected volume of data in the table or on the type of access to a table. (mainly read or mainly write access to the table. In the latter case, for example, one would not select buffering).

You should therefore select: Buffering not allowed if a table may not be buffered. - Buffering allowed but not activated if buffering is principally allowed for a table, but at the moment no buffering should be active. The buffering type specified in this case is only a suggestion. - Buffering allowed if the table should be buffered. In this case a buffering type must be specified. Buffering type The buffering type defines whether There are the following types of buffering: single-record generic full buffering and how the table should be buffered. buffering buffering

area

In generic area buffering, a number of key fields between 1 and no. of key fields-1 must be specified. Log data changes The logging flag defines whether changes to the data records of a table should be logged. If logging is activated, every change (with UPDATE, DELETE) to an existing data record by a user or an application program is recorded in a log table in the database. Note: Activating logging slows down accesses that change the table.

First of all, a record must be written in the log table for each change. Secondly, many users access this log table in parallel. This could cause lock situations even though the users are working with different application tables.

Thrinath Soma Sap Basis Consultant

142

Logging Dependencies Logging only takes place if parameter rec/client in the system profile is set correctly. Setting the flag on its own does not cause the table changes to be logged. The existing logs can be displayed with Transaction Table history (SCU3). Convert to transparent table or maintain transparency This flag shows that a table should be transparent and that this attribute should be kept even after a change of release or an upgrade. Transparent Table Use You can convert pooled tables into transparent tables in a simple manner using the transparent flag. The pooled table must have active status. Activate the technical settings after setting the flag. You can now decide whether the table should be converted to a transparent table in the background or interactively for a pooled table. If you want to change the type of a table whose transparent flag has been set, you must first reset the flag and activate the technical settings. The table type must then be changed explicitly and the table must be converted using the database utility.

Note: Only use the transparent flag if the table type is to change from pooled to transparent. You should never use the flag for other table conversions.

0114 - Basis - All SAP - User/Gateway Disconnect

Thrinath Soma Sap Basis Consultant

143

We support 100+ SAP consultants at my company but there have always been one or two who have a problem staying connected to our internal SAP systems. They appear as Connection to user ** (*******), terminal ** (*****) lost errors in the sm21 log. Immediately following this message is a gethostbyaddr failed message. This implies that something is wrong with the DNS server or the entries therein. In order to correct this problem, check the C:\windows\system32\drivers\etc\hosts file and see if there is an entry for the server on which the disconnecting SAP system resides. Say, the server is IP address 10.1.1.3, its name is sapserver, and it belongs to the SPACELEY.COM domain. Look for this entry: 10.1.1.3 sapserver SAPSERVER.SPACELEY.COM

If it isnt there, add it using notepad and make sure there is a blank line right after it. See if this fixes your disconnect problem. I thought it was a really long shot I found a really obscure OSS note re: something similiar and it seems to correct the problem. And it is easier than getting the IT folks to correct the problem with the DNS server.

0115 - Basis - All SAP - Resolve problems with SAPGUI history

SAPGUI has a handy feature that remembers fields contents, This is pretty useful especially when loging into SAP. I simply type the first letter of my UserID, press the Arrow-Down key and finally press ENTER. There ya go, my whole userID is typed for me. Unfortunately, sometimes SAP stops showing old entries. Heres how to troubleshoot this: Basic steps: Press ALT-F12 (or click the color-monitor icon) Choose OPTIONS Click on the LOCAL DATA tab. Make sure that History is set to ON - Make sure that Directory for Local Data really exists. if unsure, change that to C:\ - If anything was changed, click on OK, stop your all SAPGUI sessions and do not forget to shutdown

Thrinath Soma Sap Basis Consultant

144

SAPLOGON (or - restart SAPGUI/SAPLOGON and check if all works Low-Speed in SAPLOGON, click once on the Click on Click - Make sure that LOW-SPEED CONNECTION is not checked.

SAPLOGON

PAD)

entry on

you CHANGE

wish

to

connect ITEM ADVANCED

Corrupted MDB - in the directory Directory for Local data found in Alt-F12, You should find a SAPhistory*.MDB and SAPhistory*.LDB files, these may be corrupted. Close down SAPGUI and SAPLOGON Delete all these files - Note that all history will be lost but it may re-enable the functionnality

Corrupted DAO files - SAPGUI uses the MsJet Access database engine to store history. These files may get ruined by another application. possible solution is to re-install SAPGUI from scratch - other possibility is to re-install DAO. These files are available in the DAO35 or DAO36 folder of the SAPGUI installation CD. You can also get it Here Additional Make sure read - try rebooting your PC! that SAPGUI is Note fully steps patched 199527.

OSS

__________________ SAP NetWeaver 04 SAP Web AS for ORACLE certified

Thrinath Soma Sap Basis Consultant

145

0116 - Basis - All SAP - Troubleshooting SAP Startup Problems in Windows

Checklist: Troubleshooting SAP startup by Giovanni Davila edited by SSULibrarian at www.sapsuperusers.com

problems in Windows at www.sapadministration.com

Theres probably nothing worse than not being able to start your SAP system Especially the production system! Aside from the operating system and the database server you must pay close attention to certain places in SAP to find out what caused the problem and how to solve it. Here are the two places you will definitely need to check: EventViewer (Application and System logs) and the SAP Management Console (MMC). EventViewer can provide useful information and it may help you pinpoint where the problem resides. The SAP MMC gives you the ability to visually see the system status (green, yellow or red lights), view the work processes status and view the developer traces, which are stored in the work directory. Example: \usr\sap\TST\DVEBMGS00\work. For a central SAP instance to start successfully, both the message server and the dispatcher need to start. If one of them or both fail to start, users cannot log in to the system. The following scenarios will illustrate possible causes of why an SAP instance might not start and the reason of the message: *** DISPATCHER EMERGENCY SHUTDOWN ***.

Things you need to get familiar with: Developer Traces: dev_disp Dispatcher dev_ms Message Server dev_wp0 Work process 0 developer trace developer developer trace trace

The services file, which contains TCP and UDP services and their respective port numbers. This plain-text configuration file is located under %winnt%/system32/drivers/etc.

Thrinath Soma Sap Basis Consultant

146

Windows Task Dispatcher Monitor (DPMON.exe), Database EventViewer (EVENTVWR.exe).

which

is

Manager located under

(TASKMGR.exe). \usr\sap\<SID>\sys\exe\run. logs.

TROUBLESHOOTING SAP STARTUP PROBLEMS Scenario 1: Dispatcher does not start due to a port conflict Symptoms No work processes (disp+work.exe) exist in Task Manager.

Dispatcher shows status stopped in the SAP MMC. Errors found in dev_disp: ***LOG Q0I=> NiPBind: bind (10048: WSAEADDRINUSE: Address already in use) [ninti.c 1488] *** ERROR => NiIBind: service sapdp00 in use [nixxi.c 3936] *** ERROR => NiIDgBind: NiBind (rc=-4) [nixxi.c 3505] *** ERROR => DpCommInit: NiDgBind [dpxxdisp.c 7326] *** DP_FATAL_ERROR => DpSapEnvInit: DpCommInit *** DISPATCHER EMERGENCY SHUTDOWN *** Problem Analysis Possible causes for error messages above: Address already in use Service sapdp00 in use The TCP port number assigned in the services file is being occupied by another application. Due to the conflict, the dispatcher shuts down. Solution If your server has a firewall client, disable it and attempt to start the SAP instance again. If the instance starts successfully you can enable the client firewall back again. If there is no firewall client at all, or if disabling it did not resolve the problem, edit the services file and check what port the appropriate sapdp is using. If the instance number is 00, look for sapdp00. If the instance number is 01 look for sapdp01 and so on. You can use the following OS command to help you resolve port conflicts:

Thrinath Soma Sap Basis Consultant

147

netstat -p TCP There are also utilities on the Internet that can help you list all the TCP and UDP ports a system is using. Scenario 2: Dispatcher dies due to a database connection problem Symptoms No database connections. No work processes. SAP MMC -> WP Table shows all processes as ended. Errors found in dev_disp: C setuser tst failed connect terminated C failed to establish conn. 0 M ***LOG R19=> tskh_init, db_connect (DB-Connect 000256) [thxxhead.c 1102] M in_ThErrHandle: 1 M *** ERROR => tskh_init: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c 8437] *** ERROR => W0 (pid 2460) died [dpxxdisp.c 11651] *** ERROR => W1 (pid 2468) died [dpxxdisp.c 11651] *** ERROR => W2 (pid 2476) died [dpxxdisp.c 11651] . . . *** ERROR => W11 (pid 2552) died [dpxxdisp.c 11651] *** ERROR => W12 (pid 2592) died [dpxxdisp.c 11651] my types changed after wp death/restart 0xbf > 080 *** DP_FATAL_ERROR => DpEnvCheck: no more work processes *** DISPATCHER EMERGENCY SHUTDOWN *** DpModState: change server state from STARTING to SHUTDOWN Problem Analysis A connection to the database could not be established because either the SQL login specified in parameter dbs/mss/schema is set incorrectly or the SQL login was deleted from the database server. This parameter needs to be set in the DEFAULT.pfl system profile (under \usr\sap\<SID>\sys\profile). In the messages above, we see that the SQL login tst is expected but it does not exist at the database level. Solution Set the entry to the appropriate database owner. If the system is based on Basis <= 4.6 or if the system was upgraded from 4.x to 4.7 the database owner should be dbo. But, if the system was installed from scratch and its based on the Web AS 6.x the database owner should match the SID name in lower case. Example: if the SID is TST then the database owner should be tst. If the parameter is set correctly in the DEFAULT.pfl

Thrinath Soma Sap Basis Consultant

148

profile check at the database level if the SQL login exists. If it doesnt, create it and give it database ownership to the <SID>. Scenario 3: SAP does not start at all: no message server and no dispatcher Symptoms The message server and the dispatcher do not start at all in the SAP MMC. The following error when trying to view the developer traces within the SAP MMC: The network path was not found. No new developer traces written to disk (under the work directory.) Problem Analysis The network shares saploc and sapmnt do not exist. That explains the network path not found message when attempting to view the developer traces within the SAP MMC. Solution Re-create the saploc and sapmnt network shares. Both need to be created on the \usr\sap directory. Scenario 4: Users get No logon possible messages when they attempt to log in Symptoms Work processes start but no logins are possible. Users get the login screen but the system does not log them in. Instead, they get this error: No logon possible (no hw ID received by mssg server). In the SAP MMC, the message server (msg_server.exe) shows status stopped. The dev_ms file reports these errors: [Thr 2548] *** ERROR => MsCommInit: NiBufListen(sapmsTST) (rc=NIESERV_UNKNOWN) [msxxserv.c 8163] [Thr 2548] *** ERROR => MsSInit: MsSCommInit [msxxserv.c 1561] [Thr 2548] *** ERROR => main: MsSInit [msxxserv.c 5023] [Thr 2548] ***LOG Q02=> MsSHalt, MSStop (Msg Server 2900) [msxxserv.c 5078] Problem Analysis Work processes were able to start but the message server was not. The reason is because the services file is missing the SAP System Message Port entry. Example: SAPmsTST 3600/tcp

Thrinath Soma Sap Basis Consultant

149

Solution Edit the services file and add the entry. Then, re-start the instance. Make sure you specify the appropriate TCP port (e.g. 3600) for the message server. Scenario 5: The message server starts but the dispatcher doesnt Symptoms The dispatcher shows status stopped in the SAP MMC. The dev_disp file shows these errors: ***LOG Q0A=> NiIServToNo, service_unknown (sapdp00) [nixxi.c 2580] *** ERROR => DpCommInit: NiDgBind [dpxxdisp.c 7326] *** DP_FATAL_ERROR => DpSapEnvInit: DpCommInit *** DISPATCHER EMERGENCY SHUTDOWN *** Problem Analysis The keyword in the messages above is service unknown followed by the entry name sapdp00. The dispatcher entry sapdp00 is missing in the services file. Example: sapdp00 3200/tcp Solution Add the necessary entry in the services file. Example: sapdp00 3200/tcp Then, re-start the instance. Scenario 6: Work processes die soon after they start Symptoms All work processes die right after The SAP MMC shows work processes with status ended. Only one work process shows status wait. An ABAP dump saying PXA_NO_SHARED_MEMORY is generated as soon as a user logs in. The SAP MMC Syslog shows the following error multiple times: SAP-Basis System: Shared Memory for PXA buffer not available. Problem Analysis The instance profile contains misconfigured memory-related parameters. Most likely the abap/buffersize instance profile parameter is set to high. the instance is started.

Thrinath Soma Sap Basis Consultant

150

Solution

Edit the instance system profile at the OS level under \usr\sap\<SID>\sys\profile and lower the value assigned to abap/buffersize. Then, restart the instance. Also, its important to find out if any other memory parameter were changed. If not, the system should start once the adequate memory allocation has been set to the the abap/buffersize parameter.

0117 - Basis - All SAP - Understanding the Two Internet OSS Links

I am one of those Basis people who give the Remote Connectivity Data Sheet to the IT group on the very first day of my involvement in the project. And I tell them Do this as soon as possible. But I know you wont and eventually the functional team will hit a problem that SAP responds to by saying they need access to your SAP landscape via a service connection. And then all hell will break through until you get the job done. It will be ugly. But, of course, the IT group never does listen. And many times it is partially do to me not being able to explain the two most common OSS link options offered by SAP. I believe that the frame relay is still offered but it is way expensive so we are going to concentrate on the two internet options: VPN and SNC. If VPN is your choice for connection to SAP, you will need the help of your IT staff to make the adjustments to the companys current VPN mapping. You provide an IP address for your VPN and your saprouter server IP address to SAP, and they FAX you back an information sheet with data similiar to this: Once the proper configuration of the VPN has been done, you just install the saprouter software - I usually install it on the DEV server - test it out, and you are done.

Thrinath Soma Sap Basis Consultant

151

The second alternative is SNC over the internet. In this case, you need a server with a public IP address placed in your DMZ - a real DMZ which means that the server is not behind a firewall. SAP will be looking for a connection from the public IP address and no other IP address in your network. Once the server is in the DMZ and ready to go, you send your information to SAP - the server public IP address and the server name - and SAP will send you information regarding how to install and configure the saprouter software, SAP cryptograhic software, and SNC. The instructions are pretty easy to follow so you should be ready to test before you know it.

I generally use a very open saprouttab for testing, and tighten it later. So you can test with: PHP Code: P * * * KT p:CN=sapserv2, OU=SAProuter, O=SAP, C=DE 194.39.131.34 *

This saprouttab opens permission for all servers to go out to sapserv2. So, that is really all there is to it. Hopefully, you can explain this procedure with better understanding to your current and future employers/clients.

Send an Instant Message in R/3 Ever wanted to send a message to a single logged on user but dont know their email address or phone number? Run function TH_POPUP from SE37 and enter the client, message (128 chars max) and username. The message immediately appears on that users screen.

Thrinath Soma Sap Basis Consultant

152

0008 - Hints, Tricks - All R/3s - Change Data In Table Without Authorization Using Transaction se16

There is a way to change entries of a table with SE16 even if you dont have the authorization: Go in SE16, enter your table Name (ex: USR02). Display the entry (or entries) you want to modify. When you have your entry, write /h to go in debug mode. Cross the line you want to modify and press F7 (display function). Here, you are in the code Press F7 again to skip some code Now Refresh If Set Elseif you Titlebar should Code TAB Code With see = = Name the code: Exclude_Tab. SHOW. anzeigen(100). EDIT.

Change the value from SHOW to EDIT, click Change FLD Contents, and press F8 or to delete an entry Change the value from SHOW to DELE, click Change FLD Contents, and press F8

Here we are You can change the value to what you want, and dont forget to save!

Thrinath Soma Sap Basis Consultant

153

0023 - Auditing - All R/3s - Trace A Users Activity

Creating a User Audit Profile 1. Log on to any client in the appropriate SAP system. 2. Go to transaction SM19. 3. From the top-most menu Profile screen, click Profile -> Create. bar on the Security Audit: Administer Audit

4. On the Create the green picture-icon.

new

profile

popup,

type

in

new

Profile

name

and

click

5. On the Filter 1 tab of the Security Audit: Administer Audit Profile screen, click the to the left of Filter active to place a in the box. In the Selection criteria section, select the Clients and User names to be traced. In the Audit classes section, click on all the auditing functions you need for this profile. In the Events section, click the radio button to the left of the level of auditing you need. Once you have entered all your trace information, click the Save picture-icon. You will receive an Audit profile saved in the status bar at the bottom of the screen. 6. Please note that while the yet active. To activate the a User Audit Profile. 7. You may now leave the SM19 transaction. Activating a User Audit Profile 1. Log on to any client in the appropriate SAP system. 2. Go to transaction SM19. user user trace profile trace, see has the been next saved, it is not section Activating

Thrinath Soma Sap Basis Consultant

154

3. On the Security Audit: Administer Audit Profile screen, profile to be activated from the Profile dropdown. Click picture-icon to activate it. You will receive an Audit for next system start in the status bar at the bottom The audit will not begin until after the SAP instance has been recycled. 4. You may now leave the SM19 transaction. Viewing the Audit Analysis Report 1. Log on to any client in the appropriate SAP system. 2. Go to transaction SM20. 3. In the Selection, Audit Security Audit Log: Local filter the audit information. specific user, be sure to audit log button. 4. The methods. resulting list is

select the audit the lit match profile activated of the screen.

classes, and Events to select sections of the Analysis screen, provide your information to If you need to trace the activities of a include that users ID. Click the Re-read

displayed.

This

list

can

be

printed

using

the

usual

5. You may now leave the SM20 transaction. SAP Security Tasks

Creating a user role

The easiest way to create a new user role is to copy an already existing user role, either one of your own or one of the ones provided to you in the installation of SAP. So lets assume that you have none of your own and use one of the SAP role templates provided. It might assist you with picking one of these roles if you have someone dump the appropriate information into a spreadsheet containing the Role Name, Role Description,

Thrinath Soma Sap Basis Consultant

155

Transactions contained in the Role, and the Transaction description. The SQL query would be something like this:

SELECT AGR_TEXTS.AGR_NAME, AGR_TEXTS.TEXT, AGR_TCODES.TCODE, TSTCT.TTEXT FROM AGR_TEXTS, AGR_TCODES, TSTCT WHERE AGR_TEXTS.MANDT = 000 AND AGR_TEXTS.SPRAS = E AND AGR_TEXTS.LINE = 0 AND AGR_TCODES.MANDT = 000 AND AGR_TCODES.AGR_NAME = AGR_TEXTS.AGR_NAME AND TSTCT.SPRSL = E AND TSTCT.TCODE = AGR_TCODES.TCODE ORDER BY AGR_TEXTS.AGR_NAME, AGR_TCODES.TCODE;

This query should be changed based on the details of your SAP instance. Identify the roles(s) to be used as the source for your role copy.

1. 2.

Log on to client needing the role. Go to transaction PFCG.

3. On the Role Maintenance screen, either type in the role name to be copied or select it from a dropdown. Press Enter to confirm that the role exists. 4. Click the Copy role button or press Shift+F11.

5. One the Query popup box, fill in the to role field with the name to be given the new role. Come up with a standard that everyone follows so the base original role is designated in some way so you dont forget where you got the original. The name must begin with Z or Y. Most people will add a Z- in the first two characters of the role name. If you want to only select specific roles from a Composite role, you would click the Copy selectively button, otherwise click the Copy all button. 6. Once the role has been copied, you will be taken back to the original PFCG screen where you will see the name of your new role. Change you Role description and save the new role before working with it any further

Modifying a user role

Thrinath Soma Sap Basis Consultant

156

1. 2.

Log on to client needing the role change. Go to transaction PFCG.

3. On the Role Maintenance screen, either type in the role name to be changed or select it from a dropdown. Press Enter to confirm that the role is found. 4. 5. Click the Change Role little yellow pencil button role button or press F6. Click the Authorizations tab and then the Change Authorization Data button.

6. On the Change Role: Authorizations screen, expand and change the authorizations you need to adjust. When finished click first the Save button and then the Generate button looks like a little red and white beachball. 7. Back out to the Change Roles screen and click the User tab. Click on User Comparison and then Complete Comparison. Once the comparision is done, click Save one more time and you are done!

Deleting a user role.

1. 2.

Log on to client needing the role deletion. Go to transaction PFCG.

3. On the Role Maintenance screen, either type in the role name to be changed or select it from a dropdown. Press Enter to confirm that the role is found. 4. Click the Role Delete button or Shift+F2.

5. On the Delete Role popup, confirm that you wish to delete the deletion. If you get an Information popup, confirm it also. 6. Your deletion will return a successful message in the bottom status bar.

(Transport System Method)

Thrinath Soma Sap Basis Consultant

157

Transporting user roles between clients

When a modification is made to a role in the 100 client, the roles must be transported to the 800 client. One role, several roles, or all roles can be done if needed. They can all be added to the same transport change request. After the roles have been moved to other clients, you will need to log on to each of those clients and do a user comparison. You will also need to do a text comparison in client 100 of the appropriate SAP system.

1. 2.

Log on to client 100 of the appropriate SAP system. Go to transaction PFCG.

3. On the Role maintenance screen, type in the Role name of the first role to be transported. Click the Truck picture-icon. 4. You will see an Information popup. Click the green picture-icon.

5. In the Choose objects popup, unclick the s beside User assignment and Personalization. If you want to transport the users along with the role, profiles, and authorizations, you can the to the left of User assignment. Click the green picture-icon. 6. On the Prompt for Customizing request popup, click the blank page picture-icon to create a new change request. On the Create Request popup, fill in the Short description and click the Save pictureicon. You will be returned to the Prompt for Customizing request popup which contains the generated change request number for this system change. Click the green to continue. 7. You will see a Data entered in change request message in the status bar at the bottom of the screen. Now enter the name of the next role to be transported and click the Truck picture-icon. 8. You will see an Information popup. Click the green picture-icon.

9. In the Choose objects popup, unclick the s beside User assignment and Personalization. If you want to transport the users along with the role, profiles, and authorizations, you can the to the left of User assignment. Click the green picture-icon. 10. On the Prompt for Customizing request popup, continue to use the same transport you created in step 6. Click the green to continue. 11. Continue to perform steps 7 through 10 until all the roles you need to transport have been attached to the transport change request.

Thrinath Soma Sap Basis Consultant

158

12. roles. 13.

The generated transport can now be released and transported into the clients needing the modified You may now leave the PFCG transaction.

Transporting User Roles between Clients (Upload/Download Method)

Central User Administration distributes clients and their information to the other clients connected to the Distribution Model. It does not, however, do the same for roles and role authorizations. So when a modification is made to a role in the 100 client, the roles must be transported to the 800 client. One role, several roles, or all roles can be done if needed. They can all be added to the same transport change request. After the roles have been moved to other clients, you will need to log on to each of those clients and do a user comparison. You will also need to do a text comparison in client 100 of the appropriate SAP system.

1. 2.

Log on to client 100 of the appropriate SAP system. Go to transaction PFCG.

3. On the Role maintenance screen, type in the Role name of the first role to be transported. Click the Truck picture-icon. 4. You will see an Information popup. Click the green picture-icon.

5. In the Choose objects popup, unclick the s beside User assignment and Personalization. If you want to transport the users along with the role, profiles, and authorizations, you can the to the left of User assignment. Click the green picture-icon. 6. On the Prompt for Customizing request popup, click the blank page picture-icon to create a new change request. On the Create Request popup, fill in the Short description and click the Save pictureicon. You will be returned to the Prompt for Customizing request popup which contains the generated change request number for this system change. Click the green to continue. 7. You will see a Data entered in change request message in the status bar at the bottom of the screen. Now enter the name of the next role to be transported and click the Truck picture-icon. 8. You will see an Information popup. Click the green picture-icon.

9. In the Choose objects popup, unclick the s beside User assignment and Personalization. If you want to transport the users along with the role, profiles, and authorizations, you can the to the left of User assignment. Click the green picture-icon. 10. On the Prompt for Customizing request popup, continue to use the same transport you created in step 6. Click the green to continue.

Thrinath Soma Sap Basis Consultant

159

11. Continue to perform steps 7 through 10 until all the roles you need to transport have been attached to the transport change request. 12. roles. 13. The generated transport can now be released and transported into the clients needing the modified

You may now leave the PFCG transaction.

Performing a User Comparison on the Modified Roles

1. 2.

Log on to client 100 of the appropriate SAP system. Go to transaction PFCG.

3. On the Role maintenance screen, type in the Role name of the first role to be transported. Click the Change button. 4. 5. 6. On the Change Roles screen, click the User tab. On the User tab, click the User compare button. On the Compare Role User Master Record popup, click the Complete compare button.

7. You will receive a User master record for role was adjusted message in the status bar at the bottom of the screen. You may now leave the PFCG transaction.

Performing a Text Comparison to Refresh Role Selection Lists

1. 2.

Log on to client 100 of the appropriate SAP system. Go to transaction SU01.

3. On the User Maintenance: Initial Screen screen, type in the user model_user. Click the pencil picture-icon. 4. On the Maintain User screen, click the Text comparison from child Syst. button.

5. On the CUA: Text comparison from Child Systems screen, type LSDEV100 for the Receiving system and LSQAS800 for the to system. This is a range, and since LSPRD300 falls alphabetically between

Thrinath Soma Sap Basis Consultant

160

LSDEV100 and LSQAS800, all three systems will have the text comparison performed. Click the clock pictureicon. 6. On the CUA: Text comparison from Child Systems results screen, you will see a list of the systems compared and the compare results. Click the white arrow on green picture-icon 3 times, or until you have left the SU01 transaction. Users, Roles, and Authorizations

SAP security is based on authorization objects and authorizations. An authorization object is used to indicate that a user can perform a certain activity. An authorization is used to limit the scope of that activity.

For example, a profile contains the S_DEVELOP authorization object. This authorization object allows a user to perform ABAP workbench activities. Some users will need to do all ABAP activites while others will only need to perform a few. So S_DEVELOP has a selection of authorizations you can use: ACTVT, DEVCLASS, OBJNAME, OBJTYPE, and P_GROUP. The authorizations are set to the appropriate values as needed. A tree view of the S_DEVELOP authorization object can be seen below:

S_DEVELOP

ACTVT Create or generate Change Display Delete Activate, generate Execute Create in DB Delete in DB

Thrinath Soma Sap Basis Consultant

161

Convert to DB Administer Copy All Functions Deactivate Mod. assistant DEVCLASS Single Value or Value Range OBJNAME Single Value or Value Range OBJTYPE Single Value or Value Range P_GROUP Single Value or Value Range

The S_DEVELOP authorization object in a profile lets a user perform ABAP workbench activities. But having a S_DEVELOP authorization object with the ACTVT authorization value set to Display (03) means that the user is limited to display only in the ABAP workbench transactions. Thus we see that authorization objects grant while authorizations limit. It is important to remember, however, that a user with a profile having a S_DEVELOP with full authorizations still cannot access an ABAP workbench transaction until a matching S_TCODE (start up transaction code) has been added as well. In other words, a user may have the rights to add, modify and delete ABAP programs but until an entry for SE38 has been added to the S_TCODE authorization object, he cannot access transaction SE38 which is the ABAP Editor.

All authorization objects and authorizations are grouped into profiles before being attached to users. Profiles use a combination of authorization objects and their respective authorizations, and their creation can be complex as well as tedious. In order to simplify the creation of profiles, the Profile Generator (transaction PFCG) was created. Roles are created via a more user-friendly interface which generates profiles based on the information added via this interface.

Thrinath Soma Sap Basis Consultant

162

Manually creating profiles is the old way of doing things. There are times, such as the start of a new SAP landscape where no roles exist, that the use of profiles is handy. But once the landscape has been completed all users, with the exception of the Basis team, should be attached to roles. There should never be a need to manually create a SAP new profile. To add a new role, the easiest method is to copy an existing role that matches your needs as closely as possible and make the changes you need for the new role.

This documentation covers changing user security via both methods.

Adding Authorization Objects and/or Authorizations to a Profile

Remember that profiles are NOT the standard way to implement SAP security

1. 2.

Log on to the appropriate client in the appropriate SAP system. Go to transaction SU02.

3. In the Manually edit authorization profiles section of the Profile: Initial Screen screen, enter the Profile you want to change. Make sure the Active only is checked. Click the Create work area for profiles button. 4. On the Profile List screen, double-click the profile to be changed.

5. A profile can contain authorization objects only (single profile) or one or more other profiles (collective profile). If the next screen is titled Maintain Profile, this is a single profile, and you should proceed to the next step. If the next screen is titled Collect Profiles, this is a collective profile and you should skip to step 13. 6. On the Maintain Profile screen, you must decide if you need to add a new authorization object and one or more of its authorizations, or add a new authorization to an authorization object already in the profile. If you need to add a new authorization to an authorization object already in the profile, skip to step 7. Otherwise, scroll down the Consisting of authorizations list until you find a blank line. Type the authorization object you need to add and press Enter. You will need to scroll through the list again until you find the authorization object you just added (it is was to find since the Authorizationcolumn should still be blank). Once you find the new entry line, use the drop down to fill in the Authorization column. Click on the Save picture-icon. 7. If you need to add another authorization to an authorization object already in the profile list, click on the +Add authorization button.

Thrinath Soma Sap Basis Consultant

163

8. From the Maintain Profiles: Object Classes screen, double-click the Object class of the authorization you are adding. 9. On the Maintain Profiles: List of Authorizations screen, select the authorization you need to add by double-clicking the appropriate line. This will return you to the Maintain Profile screen where you can see that your authorization has been added. 10. On the Maintain Profile screen, click the Save picture-icon. Then click the lit match picture-icon to activate the new profile changes. 11. On the Activate Profile: Execution Screen screen, click on the lit match picture-icon to complete the profile activation process. 12. You may now leave the SU02 transaction.

13. In order the change a profile collection, you must make the changes in one or more of the dependent profiles, save the changes in the dependent profile(s), activate the dependent profile(s), save the collection owner profile, and activate the collection owner profile. On the Collect Profiles screen, double-click on the profile you want to change. 14. You will be taken to the Maintain Profile screen. Perform steps 6 to 11. Then use the white arrow on green picture-icon to go back. 15. On the Collect Profiles screen, click the Save picture-icon. Then click the lit match picture-icon to activate the new profile changes. 16. On the Activate Profile: Execution Screen screen, click on the lit match picture-icon to complete the profile activation process. 17. You may now leave the SU02 transaction.

Adding Authorization Objects and/or Authorizations to a Role

1. 2. 3. 4.

Log on to client 100 in the DEV SAP system. Go to transaction PFCG. On the Role Maintenance screen, enter the Role you want to change. Click the Change button. On the Change Role screen, click the Authorizations tab and then click the pencil picture-icon.

Thrinath Soma Sap Basis Consultant

164

5. If you are only adding a start up transaction to the role, skip to step 10. Otherwise, the assumption is that a new authorization object is to be added. On the Change role: Authorizations screen, click the +Manually button. 6. On the Manual selection of authorizations popup, enter the authorizations objects that need to be added (ie S_DEVELOP, S_PROGRAM, etc.) Click the green when you are finished. 7. Back on the Change role: Authorizations screen, if all the displayed signal lights are green, skip to step 8. Otherwise, fully expand the lines that are yellow and/or red and supply the necessary information. All signal lights should be green before moving to the next step. 8. On the Change role: Authorizations screen, click the Save picture-icon. You will receive a Data saved confirmation message in the status bar at the bottom of the screen. 9. On the Change role: Authorizations screen, click the red-and-white beach ball picture-icon to generate a profile from the saved role. Reply affirmatively if any confirmation popups. You will receive a Profile(s) created message in the status bar at the bottom of the screen. If you do not need to add any start up transactions to the profile, you may now leave thePFCG transaction. 10. On the Change Role: Authorizations screen, expand the Cross-application Authorization Objects Authorization Check for Transaction Start Authorization Check for Transaction Start until you see the Transaction code entry line. Double-click on the entry portion of the Transaction code line. 11. In the Maintain Field Values popup, scroll down the list until you find a blank From and To line. Enter the transaction(s) to be added, and click the Save picture-icon when you have finished. 12. On the Change role: Authorizations screen, click the Save picture-icon. You will receive a Data saved confirmation message in the status bar at the bottom of the screen. 13. On the Change role: Authorizations screen, click the red-and-white beach ball picture-icon to generate a profile from the saved role. Reply affirmatively if any confirmation popups. You will receive a Profile(s) created message in the status bar at the bottom of the screen. 14. You may now leave the PFCG transaction.

Granting Transaction access to a user via profile

*** Since SAP R/3 4.5, this is not the standard for user authorizations.

Thrinath Soma Sap Basis Consultant

165

*** Granting Transaction Access to a User via Role

1. 2.

Log on to the applicable SAP instance and client. Go to transaction SU01.

3. On the User Maintenance: Initial Screen screen, fill in the User ID for the user you want to change, either by typing it in or choosing it from the drop down. Click the little yellow pencil Change button. 4. On the Maintain User screen, click on the Roles tab. Fill in the new available Role field. Press ENTER to confirm that the role exists. Click the Save button. 5. 6. role in the first

Make sure to use transaction PFCG to run a user comparion to rebuilt the role-to-user connections. You may now leave the PFCG transaction.

*** Since SAP R/3 4.5, this is not the standard for user authorizations. *** Revoking Authorizations from a User via Role

Use the same procedure as Adding Authorization Objects and/or Authorizations to a Role

Revoking Transaction Access from a User via Profile

*** Remember that profiles are NOT the standard way to implement SAP security. *** Attaching a Profile to a User

Thrinath Soma Sap Basis Consultant

166

*** Since SAP R/3 4.5, this is not the standard for user authorizations. ***

Attaching a Role to a User

1. 2.

Log on to the applicable SAP instance and client. Go to transaction SU01.

3. On the User Maintenance: Initial Screen screen, fill in the User ID for the user you want to change, either by typing it in or choosing it from the drop down. Click the little yellow pencil Change button. 4. On the Maintain User screen, click on the Roles tab. Fill in the new available Role field. Press ENTER to confirm that the role exists. Click the Save button. 5. 6. role in the first

Make sure to use transaction PFCG to run a user comparion to rebuilt the role-to-user connections. You may now leave the PFCG transaction.

Automate the Transport Process 1. Log on to client 000 of your TMS Domain Controller SAP Instance.

2. Go to transaction STMS.

3. On the Transport System Management screen, click Overview -> Imports. Double-click on the queue for the SAP instance are in.

4. On the Import Queue screen, click the Refresh button. Click on the Import All Requests button.

Thrinath Soma Sap Basis Consultant

167

5. On the Start Import popup, fill in the information for the job. Make sure At Start Time is on. Although Period appears grayed out, you can still change it to the periodic value you need. I recommend every hour in DEV, 4 times a day in QAS, and once an evening in PRD. Click on the green check mark to Continue.

6. You may now leave the STMS transaction. If you ever need to change this job, you must do it via STMS and not SE37. Work process Overview SM50 SM66 Work process Overview SM50 SM66

1.

Log on to any client in the appropriate SAP system.

2.

Go to transaction SM50.

3. On the Process Overview screen, all processing threads for the SAP system are displayed. If a thread is being used, the name of the report running will be displayed as well as the number of seconds that the report has been running, the client in which the report is running, the action the report is currently doing, and, if applicable, the table the report is currently accessing.

4.

Click on the blue arrow circle picture-icon to refresh the process data appearing on the screen.

5. Click the white clock picture-icon to display the amount of CPU time consumed by each process thread so far.

Thrinath Soma Sap Basis Consultant

168

6. Double click any display line containing a report name in order to see more detailed information about the running report. This information includes database access statistics and timings. Use the white arrow on green picture-icon to go back to the Process Overview screen.

7. Click on any process thread and then click the blue cylinder with glasses picture-icon. This will display the Trace Data screen which shows the actual communication between SAP, the operating system, and the database server. This information is useful when tracking process thread problems. Use the white arrow on green picture-icon to go back to the Process Overviewscreen.

8.

You may now leave the SM50 transaction.

Deleting System Parameters 1. Log on to any client in the appropriate SAP system.

2.

Go to transaction RZ10.

3. On the Edit Profiles screen, select the <SID>_DVEBMGS00_SAP<SID> Profilefrom the dropdown, or whatever instance profile you need to change. In theEdit profile section, click the radio button to the left of Extended maintenance. Click the Change button.

4. On the Maintain R/3 Profile screen, locate the parameter you need to delete and click on the Parameter name to high-bright it. On the top-most menu bar, click Parameter Delete.

5. On the next Maintain R/3 Profile popup, make sure that the parameter listed is the one you need to delete. Click the Yes button to delete the parameter. You will receive a Parameter was deleted message in the status bar at the bottom of the screen. Click the Copy button. Click the white arrow on green picture-icon.

6.

On the Edit Profiles screen, click the Save picture-icon.

Thrinath Soma Sap Basis Consultant

169

7.

On the Save profile popup, click the No button.

8.

On the Activate profile popup, click the Yes button.

9.

On the Edit Profiles popup, click the green button.

10.

On the Caution! Caution! Caution! popup, click the green button.

11. If you receive a Possible Inconsistencies in OP Modes screen, double click over the <No> unless you are unsure of why this message has been displayed.

12.

You may now leave the RZ10 transaction.

Modifying System Parameters Modifying System Parameters

1.

Log on to any client in the appropriate SAP system.

2.

Go to transaction RZ10.

3. On the Edit Profiles screen, select the <SID>_DVEBMGS00_SAP<SID> Profilefrom the dropdown, or whatever instance profile you need to change. In theEdit profile section, click the radio button to the left of Extended maintenance. Click the Change button.

Thrinath Soma Sap Basis Consultant

170

4. On the Maintain R/3 Profile screen, locate the parameter that needs to be changed in the Parameter name column. Change the matching value underParameter value to the new value. Click the Copy button. Click the white arrow on green picture-icon.

5.

On the Edit Profiles screen, click the Save picture-icon.

6.

On the Save profile popup, click the No button.

7.

On the Activate profile popup, click the Yes button.

8.

On the Edit Profiles popup, click the green button.

9.

On the Caution! Caution! Caution! popup, click the green button.

10. If you receive a Possible Inconsistencies in OP Modes screen, double click over the <No> unless you are unsure of why this message has been displayed.

11.

You will not get a confirmation message. You may now leave the RZ10transaction.

Creating System Parameters - RZ10 1. Log on to any client in the appropriate SAP system.

2.

Go to transaction RZ10.

3. On the Edit Profiles screen, select the <SID>_DVEBMGS00_SAP<SID> Profilefrom the dropdown, or whatever instance profile you need to change. In theEdit profile section, click the radio button to the left of Extended maintenance. Click the Change button.

Thrinath Soma Sap Basis Consultant

171

4.

On the Maintain R/3 Profile screen, click the Add Parameter button.

5. On the next Maintain R/3 Profile screen, type in the new Parameter nameand Parameter val. Click the Copy button. Click the white arrow on green picture-icon twice.

6.

On the Maintain R/3 Profile popup, click the Yes button to save your changes.

7.

On the Edit Profiles screen, click the Save picture-icon.

8.

On the Save profile popup, click the No button.

9.

On the Activate profile popup, click the Yes button.

10.

On the Edit Profiles popup, click the green button.

11.

On the Caution! Caution! Caution! popup, click the green button.

12. If you receive a Possible Inconsistencies in OP Modes screen, double click over the <No> unless you are unsure of why this message has been displayed.

13.

You will not get a confirmation message. You may now leave the RZ10transaction.

SU01 - SAP User management Creating a User

Thrinath Soma Sap Basis Consultant

172

1. 2.

Log on to the appropriate SAP system and the client where the new user is to be added. Go to transaction SU01.

3. On the User Maintenance: Initial Screen screen, type in the new User name and click the blank page picture-icon. 4. On the Maintain User screen, when all necessary data has been entered, click the Save Picture-icon.

5. You will receive a User saved message in the status bar at the bottom of the screen. You may now leave the SU01transaction.

Copy an Existing user to a new user:

1. 2.

Log on to the appropriate SAP system and the client where the user is to be changed. Go to transaction SU01.

3. On the User Maintenance: Initial Screen screen, type in the User name to be copied and click the double blank page picture-icon. 4. On the Copy User popup, type in the To for the new user and click the Copy button.

5. On the Maintain User screen, click on the tabs and make the changes to the users information. When you are done, click the Save picture-icon. You will receive a User saved message in the status bar at the bottom of the screen. 6. You may now leave the SU01 transaction.

Modifying a User:

Thrinath Soma Sap Basis Consultant

173

1. 2. 3.

Log on to the appropriate SAP system and the client where the user is to be changed. Go to transaction SU01. On the User Maintenance: Initial Screen screen, type in the users name and click the pencil picture-icon.

4. On the Maintain User screen, click on the tabs and make your user information changes. When you are done, click the Save picture-icon. You will receive a User saved message in the status bar at the bottom of the screen. You may now leave the SU01 transaction

Deleting a User:

1. 2.

Log on to the appropriate SAP system and the client where the user is to be deleted. Go to transaction SU01.

3. On the User Maintenance: Initial Screen screen, type in the users name and click the trash can pictureicon. 4. On the Delete user popup, click the Yes button.

5. You will receive a User deleted message in the status bar at the bottom of the screen. You may now leave the SU01transaction.

Locking a User:

Thrinath Soma Sap Basis Consultant

174

1. 2.

Log on to the appropriate SAP system and the client where the user is to be locked. Go to transaction SU01.

3. On the User Maintenance: Initial Screen screen, type in the users name and click the lock/unlock picture-icon. 4. On the Lock user popup, click the lock picture-icon.

5. You will receive a User locked message in the status bar at the bottom of the screen. You may now leave transactionSU01.

Modifying a Users Password:

1. 2.

Log on to the appropriate SAP system and the client where the users password is to be changes. Go to transaction SU01.

3. On the User Maintenance: Initial Screen screen, type in the users name and click the lock/unlock picture-icon. 4. On the Change Password popup, enter the new password in both the New password and Repeat password boxes. Click the green picture-icon. 5. You will receive a The password was changed message in the status bar at the bottom of the screen. You may now leave the SU01 transaction.

Add a Role to a User:

Thrinath Soma Sap Basis Consultant

175

1. Log on to the appropriate SAP system and the client where the user needs the role. Go to transaction SU01. 2. On the User Maintenance: Initial Screen screen, type in the users name and press Enter to confirm that the user exists. 3. Click the Change button or press Shift+F6.

4. On the Maintain User screen, click on the Roles tab. Fill in the name(s) in the field(s) provided, and when done press Enter. 5. Click the Save button.

6. Go to transaction PFCG, and on the Role Maintenance screen, type in the name of the role to which the users where added and press Enter to confirm exist of the role. 7. Click the Change role little yellow pencil button.

8. On the Change Roles screen, click the User tab. Click on User Comparison and then Complete Comparison. Once the comparision is done, click Save one more time and you are done! SU10 - Mass user Changes SU10 - Mass user Changes: 1. 2. Log on to the appropriate SAP system and the client where the user changes are to take place. Go to transaction SU10.

3. On the User Maintenance: Mass Changes Initial Screen screen, you need to select whether you will select users based on Address Data or Authorization Data and click the appropriate button. If you click Address Data, you can find users with any combination of First name, Last name, User ID, Company, City, Building, Room, Extension, Department, and CostCenter. If you opt to use Authorization Data, you can specify a combination of Groups, Reference User, Authorizations, Athorization Objects, and many other fields. For either method, fill in the fields you want to search on in the Users by Complex Selection Criteria screen, and click the Execute button. 4. On the Users by Complex Selection Criteria screen, you can click on the users to be changed, or click the Select Allbutton. Once all the users you want to change have been selected, click the Transfer button.

Thrinath Soma Sap Basis Consultant

176

5. Back on the Maintenance: Mass Changes Initial Screen screen, you can select all the users on the screen again by clicking the Select All button or change your mind and make any last minute corrections. Once you have all the users selected that you want to change, click User Change. 6. On the Mass User Changes screen, scroll through the tabs, changing data and clicking the Add or Remove button for each correction. Please note, each SU10 batch run must use all Adds or all Removes but never a mixture. Do all Adds in one run and then all Removes in another. Once all your changes have been made, click the Save button. 7. On the Mass changes popup, you will see how many users you are about to change. To make the changes, click onYes. 8. On the Log Display screen, you will see a log of the changes you made. Expand the list to see the transactional details. 9. You may now leave the SU10 transaction.

IDoc basics - ALE and EDI technology What is an IDoc? - An IDoc is simply a data container that is used to exchange information between any two processes that can understand the syntax and semantics of the data. - IDoc is not a process. IDocs are stored in the database. In the SAP system, IDocs are stored in database tables. IDocs are independent of the sending and receiving systems. IDocs are independent of the direction of data exchange. The two available process for IDocs are - Outbound Process - Inbound Process

Several SAP applications use the robust IDoc interface. IDocs serve the basic purpose of transferring data from one application to another: - EDI Integration - ALE Integration - Legacy System Integration

Thrinath Soma Sap Basis Consultant

177

- Third-party Product Integration - Workflow Integration - SAP R/2 Integration - Internet Integration

There are basically two types of IDocs: - Basic IDocs (Basic IDoc type defines the structure and format of the business document that is to be exchanged between two systems.) - Extension IDocs (Extending the functionality by adding more segments to existing Basic IDocs.)

To Create Idoc we need to follow the following steps: - Create Segment ( WE31) - Create Idoc Type ( WE30) - Create Message Type ( WE81) - Assign Idoc Type to Message Type ( WE82)

There are three types of records 1. Control Record (contains the key information like destination, IDoc type, message type, port and sender information.) 2. Data Record (This contains two parts: a. Administrative Section: consists of Idoc number, Segment Name, Segment number, Version, Segment Hierarchy etc. b. Data Section: contains the data of respective segment.) 3. Status Record (Whenever a process is taken place, system will generate status records.) What is the main difference between ale and edi? EDI Definition EDI is a technique used to communicate business and information transactions between computer systems of different companies and organizations. These transactions include such documents as purchase orders,

Thrinath Soma Sap Basis Consultant

178

invoices, inquiries, planning, acknowledgements, pricing, order status, scheduling, test results, shipping and receiving, payments, and financial reporting EDI System Components ANSI X12 Transaction Sets Accredited Standards EDIFACT - Electronic Interchange For Administration, Commerce and Transport. Standards Committee X12

EDI Introduction The EDI interface is intended to connect an EDI subsystem with the SAP system. EDI subsystems perform the following tasks related to EDI processing: 1Conversion of data 2.Message and Interchange Handling. 3.Communication 4.Administration of partner profiles 5.Monitoring of processing From the SAP side, the EDI interface is based on IDoc technology, which is independent of EDI standards. All data is transferred in files between the R/3 System and the EDI subsystem. Synchronous RFC (Remote Function Call) is implemented to define the time of transfer for a file between the two systems. EDI Benefits Improves data accuracy With EDI business can eliminate the need to re-enter data from paper documents and thus prevent potential data entry errors. Additionally, the cost of processing an electronic requisition is estimated to be one-tenth the cost of handling its paper equivalent Lowers personnel costsEDI can help companies reduce the need for personnel involved in orders and accounting processing. Speeds up information exchange- EDI systems can shorten the lead time between receipt and fulfillment of orders. When scheduling information is transmitted with ordering data, companies can plan production more accurately and thus reduce stock investments. Reduces technical complexity related to data interchange With EDI companies use standardized data formats to exchange documents. EDI allows companies using different business applications and systems to achieve computer-to-computer electronic exchange of business documents. Application Link Enabling ALE Objectives ALE incorporates controlled exchange of data messages ensuring data consistency across loosely coupled applications. ALE comprises of three layers. Application Services Distribution Services Communication Services Basic principle of ALE is to provide a distributed and fully integrated R/3 system. Each application is selfsufficient. The use of self-sufficient system implies a certain measure of data redundancy.Hence data has to be both distributed and synchronized.

Thrinath Soma Sap Basis Consultant

179

General Steps Involved in Configuring EDI ALE Interface Maintaining the Maintaining the Maintaining the Assign output types to Maintain output - Assign output determination Procedures Condition Access Output the partner determination Table Sequences types functions procedure

Das könnte Ihnen auch gefallen