SAP Basis Notes
SAP Basis Notes
SAP Basis Notes
Password : abap123
GOLADARI
Nandan@54
-> SAP Business suite 7 includes SAP ERP 6 (Enterprise Resourse Planning), CRM 7.0
(Customer Relationship Management), SCM 7.0 (Supply Chain Management), SRM 7.0
(Supplier Relationship Management) and PLM 7.0 (Product Lifecycle Management)
-> ABAP programs use OpenSQL to interact with underlying database via a database
interface
-> Transaction Codes
1. SM52 - Provides overview of configured Java VMC
2. SM53 - Java VMC administration
3. SMICM - ICM Administration
4. SICF - Manage ICF services
5. SM50 - SAP workprocess overview
6. SM51 - SAP application server overview
7. SM66 - Global workprocess overview
8. SMGW - Gateway monitor
9. SMMS - Message server monitor
10. SM01 - Transaction codes list
11. RZ10 - Edit SAP system profile parameters
12. RZ11 - Display SAP profile paramters
13. DD02L - SAP Tables
14. DD02T - SAP Tables Text
15. ST11 - Log the trace files in the /usr/sap/<SID>/DVEBMGS<XX>/Work
Directory
16. SM59 - Used to create new RFC cunnection or alter existing
17. SCOT - Settup SAPConnect
18. SU01 - Maintain email addresses of the users to whom SAPConnect will send
emails.
19. SOST - Monitor sent jobs
20. WE81 - Shows all message types
21. SE11 - Data Disctionary
22. SE93 - List of Transaction codes in TSTC table
-> SAP profiles are operating system files that contain SAP instance setup
information.
1. Start Profile - This parameter file will define which SAP services will be
started.
2. Default Profile - This paramter file will define the profile parameters
applicable for all instances of the system.
3. Instance Profile - This paramter file define the profile for the specific
instance, which allows individual applications to be configured differently for
specific tasks and users.
-> SAP table TSTC lists all transaction codes of a SAP system
-> The simplest Java cluster architechture installation involves the following
components:
1. Java central instance with a dispatcher and atleast one server process
2. Software Deployment Manager (SDM)
3. Central Services Instance
- It comproses Message server and Enqueue Server
- Message server
- Event notification in the Java Cluster
- Load balancing
- Broadcasting messages in the Java Cluster
- Enqueue Server
- Managing locks in Java Cluster
- Managing Synchronization in the Java Cluster
4. Database
-> SAP solution integration with EDI and other External Vendors
- SAP solution Manager integrates and exchanges data with external vendors
EDI systems using integration products such as Gentran.
- Gentran is one of the leading EDI and data translation solutions.
To Do
1. Client Administration
000
001
006
Create Client
Client Copy (Remote/Local)
Client Import/Export
-> CPIC : CPIC stands for Common Programming Interface Communication and includes
standard functions and services for program-to-program
communication with the ABAP programming language.
-> Transaction: A transaction is an operation that lets a user make changes to a
database. In SAP a set of dialog steps makes a transaction.
-> The SAP client is defined as a self-contained unit in an SAP instance with its
own dataset and set of tables
No-Periodic Job
Periodic Job
Event Based job
-> SAPCAR
- To list the contents of SAR files.
sapcar -tvf <your-SAR-file>
- To extract the contents of SAR files
sapcar -xvf <your-SAR-file>
- To compress files to SAR files
sapcar -cvf <your-SAR-file> <file-to-compress>
April 4
-> Homogeneous and Heterogeneous System Copy for SAP Systems Based on SAP Web
Application Server ABAP 6.40 SR1
- When a homogeneous system copy is performed, the target SAP system is
installed on the same operating system and the same database system
as the source SAP system. The contents of the database are copied from the
source to the target system. During a heterogeneous system copy,
the operating system or the database system is changed. Migration is a
synonym for heterogeneous system copy.
SSCR Keys
System Refresh:
- System from which copy is being done is Source System
- System in which data to be copied is Target System
Monitoring:
- Why?
- To ensure that system is working efficiently.
- To ensure system security and stability.
- To take preventive actions for a smooth business process
Kernal Upgrade:
1. Download the media and extract the archive into a directory.
2. Take backup of current Kernel
3. Shutdown the system
4. Copy new Kernal files to usr/sap/<SID>/SYS/exe/uc
5. Restart the system,sapcpe program will copy kernel files from the central
repositories to the local exe directory.
Spool Overflow:
1. There is a limit to the number of spool requests that can be created in SAP
System. The standard SAP system will have a limit of 32000
2. Run SAP programs RSPO0041 or RSPO1041 to delete any spool request that are no
longer needed
3. Increase Spool request limit using the TCode SNRO. Adjust the upper limit of
interval SPO_NUM
ABAP Dumps:
1. TSV_TNEW_PAGE_ALLOC_FAILED - Process goes to PRIV mode due to lack of memory
2. TSV_TNEW_OCCURS_NO_ROLL_MEMORY - Roll buffer has been exausted, we can check
roll buffer with ST02-> History-> Page
Roll buffer can be increased
with parameter rdisp/ROLL_MAXFS
3. CALL_FUNCTION_SIGNON_INCOMPL - RFC call with incorrect or missing data
4. CALL_FUNCTION_NOT_FOUND - Buffered function has errors
5. Message_Type_X - GUI error
DB Refresh:
1) Take full offline backup of database using BRTOOLS/DB13.
Brbackup –u –p init<sid>.sap –d disk –t offline –m all
2) Generate the control file
SQL> alter database backup controlfile to trace;
Get the trace file from user trace directory and modify the file as
following
è Rename the file to control.sql.
è Remove all the content above the line STARTUP NOMOUNT and below
CHARACTER SET URF8;
è Replace NORESETLOGS with RESETLOGS.
è Replace ARCHIVELOG with NOARCHIVELOG.
è Replace S_sid with T_sid.
3) Change the S_sid with T_sid in b***.afd backup log file.
4) Change the S_sid with T_sid in the first file of backup folder
and rename to target sid.
5) Restore the database using the command
Brrestore –u 0b b***.afd -d disk –k yes -m all
6) Login to database start the database(startup nomount).
7) Run @contro.sql file.
SQL>select status from v$instance; it is in mounted state.
SQL>alter database open resetlogs; now it goes to open status.
SQL> select username from dba_users;
8) Now copy ORADBUSR.SQL file from installation folder copy to sap
backup directory and run.
SQL> @ORADBUSR.SQL
Enter value for 1: schema owner ID SAPSR3
2: file system NT
3: host name
4: SAP SID
Now again check the users
SQL>select username from dba_users;
Now you can see target system users only. Remove the source system
users.
9) Drop user
OPS$HOSTNAME\SIDADM cascade.
10) Now provide the permission to the target system users.
SQL> grant connect sapdba to “OPS$Hostname/SIDADM”;SAPSERVICESID;
SQL>grant dba to “OPS$Hostname/SIDADM”;SAPSERVICESID;
11) Now start the SAP system and is working or not.