Friday, 31 October 2014

File sharing between windows host and VMware windows system.



When we are working as a SAP Basis administrator or system administrator we need to install some software components in to VMware virtual machine.
So that time we need to copy those files to VMware machine and start installing where we have the file in our original host machine and it’s a time consuming process to do so.
instead we can share the folder/file which we required in our virtual work station and here I am using windows 7 machines as host system and windows 2003 server as VMware virtual machine.
Make sure you have installed VMware tools in your virtual machine before you share any files with your virtual system

Follow the below steps to do it.

1. Go to VMware and click VM then settings option

2. Now go to options tab in the settings screen

3. Select shared folders and click “always enabled” option right side of the window and check “Map as a network drive in Windows guests” right below

4. Now you need to add sharing file link which you need to access from VMware virtual machine
In the same screen click “Add” button àclick “Next” and select the folder/file which you wish to access it and click “Next” button

5. Click the “Enable this share” and “Read only” check boxes in the next screen and then click finsh button

6. Now you can see the folder link is added from your host machine to virtual machine

7. Now click “OK” button in the screen and check your virtual machine My computer where your shared folder is added as a shared network drive

8. Here you no need to restart your virtual machine to take effect and now enjoy directly accessing your required host files from your virtual machine instead copying it

Disable Windows Server Shutdown event tracker

One of the major frustrations faced by windows server admins/users is windows server shutdown event tracker while they shutdown/restart the server.
Every time you need enter comments why the system required restart/shutdown etc.
Option will be like below shown in the image.

Here how you have to disable this option
This option is enabled mostly in windows server edition and other windows 7, windows 8 or windows XP in “not configured” or “disabled” state.
1. Goto RUN and enter command “gpedit.msc” and hit enter and You will get a popup window i.e group policy editor

2. Select Administrative Templates and click System option and you will get below screen

3. In the right side you can see an option called “Display Shutdown Event Tracker” and right click and goto properties option

4. Here you need to set the option as “Disabled” and click OK button or Apply
5. That’s it you have done it and now after it will not ask you to enter comments when you are trying to shutdown/restart your machine.
6. Same way you can enable this option if you required in your windows systems.


Wednesday, 29 October 2014

Step by Step Single Role Creation in SAP



1. Goto tcode PFCG and enter your role name as per your company naming convention and  click single role button along with short description



2. Enter detailed description for role in the description tab like below and save it

3. It should have details like who created and when its created and what are the authorizations are available in the role, so it will give clear idea about role purpose and it can be easily understandable by new security consultant
4. Goto Menu tab and enter the tcode which you need by clicking Transaction button




5. Click “Assign Transactions” button and now your Menu tab status will turn to green color

6. Now goto Authorizations tab and click Hand icon to create profile name automatically along with description

7. Now save the changes and click “Change authorization Data” option to get authorization mapping screen like below where you can add/maintain authorization objects/tcode/company codes etc.

8. Now click the circular button to generate the profile

9. Now your Authorizations tab status will turn to green color

10. Now we have successfully created a role and now assign the role to required users, once you assigned the role to users and “Users” Tab status will turn to green color
Do user master comparison if the status light is yellow color and will turn to green color

Hope this will be helpful for you.


Tuesday, 28 October 2014

SAP Transport Management System Question and Answers

1. How to import a transport request at os level?
Logon to the target system and make sure request is released
Add TR to your buffer:
tp addtobuffer <TRANSPORT-REQUEST> <SID> Client=<CLIENT-NUMBER>
pf=/usr/sap/trans/bin/TP_DOMAIN_<DOMAIN_SID>.PFL
Example:
tp addtobuffer DEV12345 QAS Client=000
pf=/usr/sap/trans/bin/TP_DOMAIN_DEV.PFL
Import the request:
tp pf=/usr/sap/trans/bin/TP_DOMAIN_<DOMAIN_SID>.PFL
import <TRANSPORT-REQUEST> <SID> U128 client=<CLIENT-NUMBER>
Example:
tp pf=/usr/sap/trans/bin/TP_DOMAIN_DEV.PFL
import DEV12345 QAS U128 client=000

2. How to lock TMS?
Login to domain controller
Goto STMS tcode and click system overview
Select a system which you want to lock and goto menu and select lock
Confirm and distribute to activate

3. How to unlock TMS?
Login to domain controller
Goto STMS tcode and click system overview
Select a system which you want to unlock and goto menu and select unlock
Confirm and distribute to activate
How to delete system from TMS?
Login to domain controller
Goto STMS tcode and click system overview
Select the system which you want to delete TMS and click trash button/click delete option in menu
Confirm and distribute to activate

4. How to import Transport request different client within a single system?
Use SCC1 tcode to achieve it

5. How to disable IMPORT ALL option in transport queue?
Go to STMS Tcode in DC
Click systems Overview & click on systems which you want to disable import all
Go to Transport Tool Tab or double click it
Click Change button
Click ADD new row button
Insert the parameter NO_IMPORT_ALL with value 1.
Save it.
IMPORT_ALL icon will be disabled from stms_import tcode for a particular system and you have to do it for all system in the DC one by one

6. How to troubleshoot a TR is running longtime?
Check whether file system is having enough space in sapmnt
Update is activated/deactivated in SM13
Check there is available background work process is available to import TR in SM50
How to terminate a TR which is running for long time?
Check whether are you able to cancel it in import queue or goto SM50 tcode and identify which work process assigned for particular TR
Select the work process and cancel it with core or without core
If you are not able to cancel it in SM50 go to os level and kill the process which is assigned to it
Linux and unix
Kill -9 pid
For windows use taskkill command

7. What are common transport errors?
Return code (4) indicates imported ended with warning.
Ex:
1. Generation of programs and screens
2. Column missing and Rows missing
Return code (8) indicates not imported ended with error
Ex:
1. Syntax error
2. Program generation error
3. Dictionary activation error
4. Method execution error
Return code (12) indicates import is cancelled.
Ex:
1. Import is cancelled due to object missing
2. Objects are not active
3. Program terminated due to job? RDDEXECL? is not
working
Return code (16) indicates import is cancelled.
Ex:
1. Import cancelled due to system down while importing
2. Import cancelled due to user expires while importing
3. Import cancelled due to insufficient roles

8. What is domain controller?
Domain controller is the central place where you can administrate TMS.
It acts as a leader and controls all system in the landscape, where it contains details about all systems in the landscape

9. How to change password of all TMS RFC usernames using a report?
TMS_UPDATE_PWD_OF_TMSADM

10. What is the default authorization profile assigned to TMSADM user?
S.A_SYSTEM