41
What is private mode? When does user switch to user mode? Private mode is a mode where the heap data is getting exclusively allocated by the user and is no more shared across the system. This happens when your extended memory is exhausted. What is osp$ mean? What if user is given with this authorisation? OPS$ is the mechanism the <SID>adm users uses to connect to the database . Why do you use DDIC user not SAP* for Support Packs and SPam? Do _NOT_ use neither DDIC nor SAP* for applying support packages. Copy DDIC to a separate user and use that user to apply them. Can you kill a Job? Yes - SM37 - select - kill If you have a long running Job, how do you analyse? Use transaction SE30. How to uncar car/sar files in a single shot? on Unix: $ for i in *.SAR; do SAPCAR -xvf $i; done When we should use Transactional RFC ? A "transactional RFC" means, that either both parties agree that the data was correctly transfered - or not. There is no "half data transfer". What is the use of Trusted system. I know that there is no need of UID and PWD to communicate with partner system. In what situation it is good to go for Trusted system ? E. g. if you have an R/3 system and a BW system and don't want to maintain passwords. Same goes for CRM and a lot of other systems/applications. Let me know if my understanding below is correct: 1) By default the RFC destination is synchronous 2) Asynchronous RFC is used incase if the system initiated the RFC call no need to wait for the response before it proceeds to something else.

sap_basis

Embed Size (px)

Citation preview

Page 1: sap_basis

What is private mode? When does user switch to user mode?

Private mode is a mode where the heap data is getting exclusively allocated by the user and is no more shared across the system. This happens when your extended memory is exhausted. What is osp$ mean? What if user is given with this authorisation?

OPS$ is the mechanism the <SID>adm users uses to connect to the database .

Why do you use DDIC user not SAP* for Support Packs and SPam?

Do _NOT_ use neither DDIC nor SAP* for applying support packages. Copy DDIC to a separate user and use that user to apply them.

Can you kill a Job?

Yes - SM37 - select - kill

If you have a long running Job, how do you analyse?

Use transaction SE30.

How to uncar car/sar files in a single shot?

on Unix: $ for i in *.SAR; do SAPCAR -xvf $i; done

When we should use Transactional RFC ?

A "transactional RFC" means, that either both parties agree that the data was correctly transfered - or not. There is no "half data transfer".

What is the use of Trusted system. I know that there is no need of UID and PWD to communicate with partner system. In what situation it is good to go for Trusted system ?

E. g. if you have an R/3 system and a BW system and don't want to maintain passwords. Same goes for CRM and a lot of other systems/applications.

Let me know if my understanding below is correct: 1) By default the RFC destination is synchronous 2) Asynchronous RFC is used incase if the system initiated the RFC call no need to wait for the response before it proceeds to something else.

Page 2: sap_basis

Yes - that's right.

But keep in mind, that it's not only a technical issue whether to switch to asynchronous. The application must also be able to handle that correctly.

Which table contains the details related to Q defined in SPAM? Is there a way to revert back the Q defined? If yes, How?

There is a "delete" button when you define the queue. If you already started the import it's no more possible since the system will become inconsistent.

What is a developer key? and how to generate a developer key?

The developer key is a combination of you installation number, your license key (that you get from http://service.sap.com/licensekey) and the user name. You need this for each person that will make changes (Dictionary or programs) in the system.

What is XI3.0 ? EXPLAIN XI = Exchange Infrastructure - Part of Netweaver 2004.

SAP Exchange Infrastructure (SAP XI) is SAP's enterprise application integration (EAI) software, a component of the NetWeaver product group used to facilitate the exchange of information among a company's internal software and systems and those of external parties. Like other NetWeaver components, SAP XI is compatible with software products of other companies.

SAP calls XI an integration broker because it mediates between entities with varying requirements in terms of connectivity, format, and protocols. According to SAP, XI reduces integration costs by providing a common repository for interfaces. The central component of SAP XI is the SAP Integration Server, which facilitates interaction between diverse operating systems and applications across internal and external networked computer systems.

How to see when were the optimizer stats last time run? We are using win2k, oracle 9, sapr346c.

Assumed DB=Oracle Select any table lets take MARA here but you should do the same for MSEG and few others to see whether the dates match or not.Run the following command on the command prompt:-

Page 3: sap_basis

select last_analyzed from dba_tables where table_name like '%MARA%'; This gives you a straight answer .Else you can always fish around in DB14 for seeing when the optimzer stats were updated. *-- Ankan

Automatic CTS

Even though SAP does not recommend automatic imports, it is the most practical way of moving transports from a development system to a QA environment or to a special development system (although I wouldn't recommend auto imports to a production system for obvious reasons).

There are various methods for doing this. The most effective and simple method is using an OS script (shell/perl etc.) scheduled using cron for user sidadm. There are a couple of steps you need to take before setting up automatic imports.

1. Your entire project team should agree upon the overall strategy, frequency of imports etc.

2. Resolve any issues with transport approvals (many shops don't care about traffic between DEV and QA)

3. Who is responsible for watching for errors and corrective actions (an email to the developer works in this case)

Configuring outbound SAP to Internet mail Gateway (R/3 4.0 and above)

Step 1 (UNIX SETUP) Logon to your <DB_SERVER> as sidadm Change directory to /sapmnt/SID/global (or any directory globally available across all application servers) Create the following entries in file SAP_EMAIL_GATEWAY.sh and save the file#!/bin/sh GWCONFIG=/sapmnt/SID/global/SAP_EMAIL_GATEWAY.cfg export GWCONFIG /sapmnt/SID/exe/mlunxsnd $*Execute the command: mlosmadm SAP_EMAIL_GATEWAY.cfg (enter the following information)

Page 4: sap_basis

System name : SID Client : 200 Username : MAILADM Password : initpass Language : E Loadbalancing : Y Message Server : <central_instance_host_ Group name : LOGON GROUP1 Using SAPROUTER : N Trace Level (inBoound) : 0 Sendmail Command : <accept default> Codepage : <accept default Trace Level (Outbound) : 0 Update file : YStep 2 (SAP SETUP)

Logon to SAPSYSTEM (SID) via SAPGUI Transaction SU01, create user MAILADM and password initpass, usertype CPIC Transaction SM59, Click Create

RFC Destination : SAP 4.5 INTERNET MAIL GATEWAY Connection Type : T Description : INTERNET EMAIL GATEWAY Hit RETURN Click EXPLICIT HOST Enter /sapmnt/P21/global/ SAP_EMAIL_GATEWAY.sh Save your entriesTransaction SCOT, click Edit--> CREATE NODESNode : EMAIL Description : SAP CONNECT NODE FOR EMAIL (continue) RFC DESTINATION: (choose SAP 4.5 INTERNET MAIL GATEWAY from the pull down menu) Choose radio button Internet Address area : *DOMAIN (your intranet domain) Ccontinue Format : DOC, DAT, R3F, TXT, RAW,PPT,XLS (continue) Continue Set further address types : N Minimum waiting : 5 minutes Check both Node is in use', Node can resolve path references

Page 5: sap_basis

Continue Choose Goto--> Schedule Background Job Enter name for the job & save

Configuring outbound SAP to Internet mail Gateway (Upto R/3 3.1I)

SAP can be configured to send and receive emails from different sources. This section explains how to integrate SAPOffice with an external email system. This is in no way supplementing the online documentation available on the online documentation CD supplied by SAP but simplyfies the process to the bare Internet email must be configured and running prior to this. Email from SAP is forwarded to the users external email client such as Eudora, Outlook etc.

You can configure inbound and outbound forwarding. Outbound flow forwards a SAP message (eg:update termination) via UNIX sendmail to the intended recepient. Inbound accepts a message from sendmail and places it in the users SAPOffice inbox. Many SAP shops prefer to configure outbound only.

Configuring outbound forwarding

SAP configuration

1. Create your RFC destination for outbound email using transaction SM59

RFC Destination : SAP_INTERNET_GATEWAYConnection Type : TDescription : SAP internet mail gatewayClick on 'Explicit Host' if you want on demand gateway dameon invocation.Program : /sapmnt/SID/exe/mlunxsndTarget Host : Enter hostname that runs your central instance.Click 'Test Connection' and you should see a successfull message.

Choose menu Tools-->Administration-->Management-->Process Technology-->Office-->Office Settings

Click Internet Gateway

Gateway Destination : SAP_INTERNET_GATEWAYPath for configuration file : /sapmnt/SID/exe/sap_mailSID.cfgReturn Address : <your company domain>.com

5. Click Internet Settings and fill in the following fields

Page 6: sap_basis

6. Save the settings

7. Click Back

8. Choose menu Office-->Addresses-->Communication Types

9. Type in INT over the Comm. type and Internet Mail over description.

10.. Check Maintain and Send checkboxes and Save your entries.

UNIX configuration

11.. cd /sapmnt/SID/exe

12..mlosadm sap_mailSID.cfg13.Client 00014.Username : MAILADM15.Password : MAILADM16.Language : E17.System name : SID18.System number : <instance_number>19.Hostname : <hostname>20.Gateway hostname: <central_instance_hostname>21.Gateway server sapgw<instance number>22.Sendmail Command : <path_to_sendmail_command>23.Update file : Y

Testing

1. Logon to SAP

2. Execute transaction SO01

3. Write a message and send it to <your_internet_email_address>

If you don't see the mail in your internet mailbox, go back and review steps 1-12

FTP from ABAP

There are 2 ways of executing FTP from an ABAP (online or batch mode),

Page 7: sap_basis

Initiated from the operating system. A script is available in the utility repository that explains how to do this very easily.Initiated from the ABAP itself An example is given below.

1. Create a logical OS command 'zftp' using transaction SM69. Make sure that you enable 'comand line parameter allowed' checkbox

2. Create a shell script called 'zftp' with the following lines

RMTHOST=`echo $2 | tr '[A-Z]' '[a-z]'`ftp -v $RMTHOST << EOF > /out/zftp.$$ 2>&1lcd /output $1byeEOF

3. Use the SXPG_COMMAND_EXECUTE function module to call this script (zftp) with the filename you want to transfer as the parameter. Eg:

call function 'SXPG_COMMAND_EXECUTE'exportingcommandname =tablesexec_protocol =exceptionsno_permission = 1command_not_found = 2parameters_too_long = 3...

Enable web based online documentaion (R/3 4.0 or above)

1. Install Netscape webserver or use an existing web server (requires administrators privelege)

2. Create a directory called SAPDOCS4 under your web server document root.

Page 8: sap_basis

3. Mount the CDROM containing online documentation on your PC or your UNIX server.

4. Recursively copy all files under /cdrom/docs/ to the SAPDOC4 directory under the web server root.

5. Create the following entries in your /usr/sap/SID/SYS/profile/DEFAULT.PFL

eu/iwb/installed_languages = EN eu/iwb/help_type=2 eu/iwb/server_win32=webserver.domain.com eu/iwb/path_win32=saphelp/helpdata

Restart your SAP system

How to access an external database from ABAP via DBLINK (ORACLE)

1. Using transaction SE11, create a table (ZTABLE) with the same fields as the table in the external database, make sure that the type and lengths of the fields are identical.

2. Using transaction SE11, create a view (ZTABLE_VIEW, projection view) using BASIS table ZTABLE

3. Using SVRMGRL>

create dblink REMOTE_DB as connect to remote_user identified by password; (database link created) drop table ZTABLE; (table dropped) create synonym ZTABLE for ZTABLE@REMOTE_DB; (synonym created)

Using transaction SE16 , type in ZTABLE_VIEW and hit RETURN

Enter value in key fields and hit execute. (displays rows from the remote table)

Tips and Tricks

1. To see the complete text of an error/warning message on the SAPGUI status bar, right click on the message and drag left.

Page 9: sap_basis

2. To prevent your spool requests getting deleted from the BASIS cleanup jobs, you need to uncheck the Delete after print checkbox in the print control screen, execute transaction SP01, find your spool#, click on Attributes and change the Delete After date

3. Short cuts using the OK-code box.

%sc Search in page

%pc Download do local file

p+ Page upp- Page downp++ Top of pagep-- End of page

Use transaction AL11 to browse the application servers directory structure.

What is th difference between Sap lock and database lock?

A "SAP lock" is named "enqueue lock", the enqueue is on a much higher level, e. g. a complete sales document is locked there whereas in the datbase usually only row locks exist. Since SAP runs on more database than Oracle (thanx god) one needed to have a mechanism, that is database independent and on a higher level.

What is the diff between clients 000 and 001?

Client 000 is the SAP source client, client 001 exists only on certain installations (e. g. solution Manager). *-- Markus

I would like to know is there anyway to transport roles from Production to Development or Sandbox.

Goto PFCG and enter the role which you want to transfer to other system. goto utilities->Mass download it will ask the path where to download/save that role on local desktop give the location and save it. Next logon to the system where you want that particular role. PFCG-> Role -> upload. Give the path where the role is saved. it accepts and generates successfully. *-- Mahesh

Page 10: sap_basis

What is the need of having Development system?

To develop and custamize SAP to companies requirement. say if you dont have DEV, after go-live(started using SAP (PRD}) if you want to do some changes to application, you cannot do changes directly to PRD server, which may cause problem the PRD server live data. so you do the required changes on DEV first and test them on QAS, if it works fine them transport the same to PRD.

Difference between Application server and Central Instance?

AS: Is just a dialog instance. CI: Is Dialog instance + Database Instance.

What is Transport domain and Domain controller?

TD: is the collection of transport controller, trans directory and all other systems in the group.

TC: A system which will have trans directory, and in which the total landscape is designed and maintained. in stms you can see all these. *-- Suneel

What are SNOTES ? How to apply them in SAP ?

The name of the transaction is SNOTE. A "note" in general is a hint, documentation, error/bug description and may contain code corrections, that are applied with the transaction SNOTE.

What is OSS ?

OSS is the old name of the nowadays "sapnet" which contains everything you need to run SAP a program, patches, installation/upgrade documentation etc.

What are different modules used like EP, XI, CRM ,BW, etc?

Those are not different modules but different products.

EP = Enterprise Portal XI = Exchange Infrastructure CRM = Customer Relationship Management BW = Business Warehouse (that is the old term), it's now call BI (Business Intelligence)

Page 11: sap_basis

What is the correct use of SPAM, SAINT, SPAD and SPDD transactions. When should we use each?

SPAM is for installing support packages, SAINT is used to install new addons. SPAD is for creating printers (I assume you meant SPAU) and SPDD is for adjusting modification to dictionary objects.

Is it possible to update Support Release packages from OS level?

No - you can import them but the full process will require additional steps the tools "tp" and "R3trans" are not aware of. The way is to use SPAM - but SPAM has the possibility to schedule those imports in the background.

After doing any Support Package update in SPAM, are there any further steps to carry out for this update to take effect?

No, they are active immediately. *-- Markus

What is the use of profile paramater ztta/roll_area?

The value specifies the size of the roll area in bytes. The roll area is one of several memory areas, which satisfies the user requests of user programs. For technical reasons, however, the first 250 KB or so of a user context are always stored in the roll area, further data - up to the roll area limit ztta/roll_first, - in the extended memory, up to the limit ztta/roll_extension or if extended memory is exhausted, then - again in the roll area, until the roll area is full, then - in the local process area, up to the limit abap/heap_area_dia or abap/heap_area_total or until the address space or the swap space is exhausted.

Followed by termination with errors like STORAGE_PARAMETERS_WRONG_SET an error code, that points to memory bottleneck Minimum data transfer with context change; however, the increase helps to avoid problems (address space, swap space, operating system paging). *-- Anupam Sharma

What is R/3? and what is basis version?

SAP Basis: - Provides the runtime environment for all SAP applications - Optimally embeds the application in the system environment - Defines a stable architecture framework for system enhancements

Page 12: sap_basis

- Contains the tools for administering the entire system - Allows the distribution of resources and system components - Provides interfaces for decentralized system parts and external products.

An R/3 instance is a group of R/3 services that are started and stopped as a unit (by an R/3 dispatcher) and have a common instance profile. The name of an R/3 instance is composed of letters standing for the relevant services, and an instance number which is unique for each computer. The services may be D, V, E, B, M, G, or S, which respectively stand for dialogue, update, enqueue, background, message, gateway, and spool services.

Tips by : Suresh Babu

I would like to know the version or name of SAP that is implemented in real time?

This is a very generic question and really depends on what you are implementing (modules).

The history of the "R/3" is

3.0D Basis 300 3.0E Basis 300 3.0F Basis 300 3.1H Basis 310 3.1I Basis 310 4.0B Basis 400 4.5B Basis 450 4.6C Basis 460 4.71 Basis 6.20 4.72 Basis 6.20 5.00 Basis 6.40 (ECC 5.0 - Enterprise Core components) 6.00 Basis 7.00 (ECC 6.0) - actually in RampUp

All of those have increased business functionality and interfaces to other systems (CRM, BW etc.)

What is mysap?

It's a term for all the systems that in a contract (e. g. a MySAP business suite consist of ERP2005, CRM2005, SRM2005).

What is the systems configuration required to implement SAP.. i.e for production,development and QAS servers the hard disk space, RAM,

Page 13: sap_basis

Processor

This also depends on what your are implementing, how many users will work on the system, how many records in what area are created etc.

We need a BIG database system and an even bigger application server for ~ 900 users and 12 languages.

What is ASAP?

It's an old term for an implementation strategy. Blueprint -> prototype -> goLive (if you want to say it in one sentence).

How should I set priority for Printing say like user, teamlead, project manager?

There's nothing like "priority" settings for spool processes. Just define more (profile parameter rdisp/wp_no_spool) processes so people don't need to wait.

Using Tc SGEN I have generated 74% job and later I have terminated the job. I wish to start generating from where it stopped I have refreshed but to no chance nothing was done. How should I further proceed so as to complete the remaining job..

Start SGEN again and select the same you have selected before. It will popup and ask if you want to start from scratch or generate the just the remaining.

What is your system landscape?What are you roles and responsibilities in your company?What are versions of SAP & R/3, Oracle you are using?Patch numbers of SAP kernel & Oracle you are usingIf a user wants to execute a background job immediately but there is no Background work process available. How u will do?What is common House keeping background jobs that run in your system?What are common transport errors u faced while transporting?How you will do client copy? If SAP * user is not available at all in your system then how u will do client copy?How u will apply OCS patches?What is the database backup strategy in your company?What is upgrade process? And how u will do that?

Page 14: sap_basis

How u will give new authorizations?How to adjust user master records? If user master record doesn’t adjust what will you do?How to check Kernel, tp versions?Briefly explain a recent problem you faced, which u felt proud by solving that? And ho u solved?How you will rate your self in SAP, Oracle from a scale 1 – 10?

What are your daily activities in your company?What are you roles and responsibilities in your company?What are common background jobs that will run in your system?If a background job runs more than the time it should be completed normally then what actions will u take?How to schedule background jobs at OS level?How to add authorizations, how you will maintain profiles?What are common transport errors and their codes?Transport request types and its syntaxWhere will u find transport error logs?How to do transport at OS level?How to transport objects from Production to Development?How to define instances and operation modes?What are Homogenous system copy and Heterogeneous system copy and how you will do that?What is oracle Architecture?At OS level in which directory oracle alerts are stored?If a lock entry is holding more than 24 hours then what will you do? If another user wants to share that lock but the user using that lock haven’t released lock he went for holiday what will u do? This user wants lock ASAP then what will u do?What will you do if u got Update failure?What will you observe in System log (SM21)?How to increase tables space, resizing, backups and when will you do?Various client copy methods and how you will do them?How you will get help from OSS notes?What is the need of having Development system?Difference between Application server and Central Instance?How you will check whether database is active or not from OS level?What is Transport domain and Domain controller?

Page 15: sap_basis

What is Consolidation route and delivery routes?How to lock a client? How to delete a client?How to login in to SAP from command level?How to define Logon groups? And what is Logon load balancing?How you will rate your self in SAP, Oracle from a scale 1 – 10?

What are you roles and responsibilities in your company?How you will do client copy? If SAP* is not available then how u will do? After client copy is table space and database sizes will be increased or not?How to do client copy fast?What are various profiles available for client copy?How to do transport’s between Production and Development?How to apply OCS Patches?

What are you roles and responsibilities in your company?How to do client copy?How to do transports from OS level?Where the transport data files will be placed?How to make security authorization reports?In which table failed user login attempts will be there?How to see the t able entry values?How you will give new authorizations?Have you participated in Kernel upgrading and OCS Patches?Have you done any up gradations?How to configure TMS?What is transport domain?What is Consolidation route and delivery routes? How you will identify them?Transport error codes and their description?The transaction should not be displayed in User Easy access menu but he must execute that transaction how to do that?

Page 16: sap_basis

Welcome to the exciting world of SAP R/3 BASIS. The term BASIS (foundation) is no misnomer. All application modules of an SAP R/3 system are integrated using the BASIS technology and comprise of four major areas.

Application administration: ABAP, Security, Correction and Transport System, Implementation guide, Workflow, SAPOffice, external interface configuration, upgrades etc. are some of the major sub-areas.Database administration: database interface, space management, performance, capacity planning, upgrades.Operating System administration: OS and SAP kernel, communication, disk, memory, printers etc.Infrastructure administration such as hardware, network planning, high availability, archiving, language support

Automatic CTS

Even though SAP does not recommend automatic imports, it is the most practical way of moving transports from a development system to a QA environment or to a special development system (although I wouldn't recommend auto imports to a production system for obvious reasons).

There are various methods for doing this. The most effective and simple method is using an OS script (shell/perl etc.) scheculed using cron for user sidadm. There are a couple of steps you need to take before setting up automatic imports.

1. Your entire project team should agree upon the overall strategy, frequency of imports etc.

2. Resolve any issues with transport approvals (many shops don't care about traffic between DEV and QA)

3. Who is responsible for watching for errors and corrective actions (an email to the developer works in this case)

Configuring outbound SAP to Internet mail Gateway (R/3 4.0 and above)

Page 17: sap_basis

Step 1 (UNIX SETUP)Logon to your <DB_SERVER> as sidadmChange directory to /sapmnt/SID/global (or any directory globally available across all application servers)Create the following entries in file SAP_EMAIL_GATEWAY.sh and save the file

#!/bin/shGWCONFIG=/sapmnt/SID/global/SAP_EMAIL_GATEWAY.cfgexport GWCONFIG/sapmnt/SID/exe/mlunxsnd $*

Execute the command: mlosmadm SAP_EMAIL_GATEWAY.cfg (enter the following information)

System name : SIDClient : 200Username : MAILADMPassword : initpassLanguage : ELoadbalancing : YMessage Server : <central_instance_host_Group name : LOGON GROUP1Using SAPROUTER : NTrace Level (inBoound) : 0Sendmail Command : <accept default>Codepage : <accept defaultTrace Level (Outbound) : 0Update file : Y

Step 2 (SAP SETUP)

Logon to SAPSYSTEM (SID) via SAPGUITransaction SU01, create user MAILADM and password initpass, usertype CPIC Transaction SM59, Click Create

RFC Destination : SAP 4.5 INTERNET MAIL GATEWAY Connection Type : TDescription : INTERNET EMAIL GATEWAYHit RETURNClick EXPLICIT HOST

Page 18: sap_basis

Enter /sapmnt/P21/global/ SAP_EMAIL_GATEWAY.shSave your entries

Transaction SCOT, click Edit--> CREATE NODES

Node : EMAIL Description : SAP CONNECT NODE FOR EMAIL (continue)RFC DESTINATION: (choose SAP 4.5 INTERNET MAIL GATEWAY from the pull down menu)Choose radio button InternetAddress area : *DOMAIN (your intranet domain)CcontinueFormat : DOC, DAT, R3F, TXT, RAW,PPT,XLS (continue)ContinueSet further address types : NMinimum waiting : 5 minutesCheck both Node is in use', Node can resolve path references ContinueChoose Goto--> Schedule Background JobEnter name for the job & save

Configuring outbound SAP to Internet mail Gateway (Upto R/3 3.1I)

SAP can be configured to send and receive emails from different sources. This section explains how to integrate SAPOffice with an external email system. This is in no way supplementing the online documentation available on the online documentation CD supplied by SAP but simplyfies the process to the bare Internet email must be configured and running prior to this. Email from SAP is forwarded to the users external email client such as Eudora, Outlook etc.

You can configure inbound and outbound forwarding. Outbound flow forwards a SAP message (eg:update termination) via UNIX sendmail to the intended recepient. Inbound accepts a message from sendmail and places it in the users SAPOffice inbox. Many SAP shops prefer to configure outbound only.

Configuring outbound forwarding

SAP configuration

1. Create your RFC destination for outbound email using

Page 19: sap_basis

transaction SM59

RFC Destination : SAP_INTERNET_GATEWAYConnection Type : TDescription : SAP internet mail gatewayClick on 'Explicit Host' if you want on demand gateway dameon invocation.Program : /sapmnt/SID/exe/mlunxsndTarget Host : Enter hostname that runs your central instance.Click 'Test Connection' and you should see a successfull message.

Choose menu Tools-->Administration-->Management-->Process Technology-->Office-->Office Settings

Click Internet Gateway

Gateway Destination : SAP_INTERNET_GATEWAYPath for configuration file : /sapmnt/SID/exe/sap_mailSID.cfgReturn Address : <your company domain>.com

5. Click Internet Settings and fill in the following fields

6. Save the settings

7. Click Back

8. Choose menu Office-->Addresses-->Communication Types

9. Type in INT over the Comm. type and Internet Mail over description.

10.. Check Maintain and Send checkboxes and Save your entries.

UNIX configuration

11.. cd /sapmnt/SID/exe

12..mlosadm sap_mailSID.cfg13.Client 00014.Username : MAILADM15.Password : MAILADM16.Language : E17.System name : SID18.System number : <instance_number>19.Hostname : <hostname>

Page 20: sap_basis

20.Gateway hostname: <central_instance_hostname>21.Gateway server sapgw<instance number>22.Sendmail Command : <path_to_sendmail_command>23.Update file : Y

Testing

1. Logon to SAP

2. Execute transaction SO01

3. Write a message and send it to <your_internet_email_address>

4. If you don't see the mail in your internet mailbox, go back and review steps 1-12

Back to Top

FTP from ABAP

There are 2 ways of executing FTP from an ABAP (online or batch mode),

Initiated from the operating system. A script is available in the utility repository that explains how to do this very easily.Initiated from the ABAP itself An example is given below.

1. Create a logical OS command 'zftp' using transaction SM69. Make sure that you enable 'comand line parameter allowed' checkbox

2. Create a shell script called 'zftp' with the following lines

RMTHOST=`echo $2 | tr '[A-Z]' '[a-z]'`ftp -v $RMTHOST << EOF > /out/zftp.$$ 2>&1lcd /output $1byeEOF

3. Use the SXPG_COMMAND_EXECUTE function module to call this script (zftp) with the filename you want to transfer as the parameter. Eg:

Page 21: sap_basis

call function 'SXPG_COMMAND_EXECUTE'exportingcommandname =tablesexec_protocol =exceptionsno_permission = 1command_not_found = 2parameters_too_long = 3...

Back to Top

Enable web based online documentaion (R/3 4.0 or above)

1. Install Netscape webserver or use an existing web server (requires administrators privelege)

2. Create a directory called SAPDOCS4 under your web server document root.

3. Mount the CDROM containing online documentation on your PC or your UNIX server.

4. Recursively copy all files under /cdrom/docs/ to the SAPDOC4 directory under the web server root.

5. Create the following entries in your /usr/sap/SID/SYS/profile/DEFAULT.PFL

eu/iwb/installed_languages = ENeu/iwb/help_type=2eu/iwb/server_win32=webserver.domain.comeu/iwb/path_win32=saphelp/helpdata

Restart your SAP system

Back to Top

How to access an external database from ABAP via DBLINK (ORACLE)

1. Using transaction SE11, create a table (ZTABLE) with the same

Page 22: sap_basis

fields as the table in the external database, make sure that the type and lengths of the fields are identical.

2. Using transaction SE11, create a view (ZTABLE_VIEW, projection view) using BASIS table ZTABLE

3. Using SVRMGRL>

create dblink REMOTE_DB as connect to remote_user identified by password; (database link created)drop table ZTABLE; (table dropped)create synonym ZTABLE for ZTABLE@REMOTE_DB; (synonym created)

Using transaction SE16 , type in ZTABLE_VIEW and hit RETURN

Enter value in key fields and hit execute. (displays rows from the remote table)

Tips and Tricks

1. To see the complete text of an error/warning message on the SAPGUI status bar, right click on the message and drag left.

2. To prevent your spool requests getting deleted from the BASIS cleanup jobs, you need to uncheck the Delete after print checkbox in the print control screen, execute transaction SP01, find your spool#, click on Attributes and change the Delete After date

3. Short cuts using the OK-code box.

%sc Search in page

%pc Download do local file

p+ Page upp- Page downp++ Top of pagep-- End of page

Page 23: sap_basis

Use transaction AL11 to browse the application servers directory structure

1) What is the maximum value for Line-Size in the Report?2) How many methods are there in BDC? Which methods you know well?3) What is the difference between Report and Script?4) What are control commands in Scripts?5) What is the use of PROTECT and ENDPROTECT?6) Can we display text with color in SAP Script? If yes how can we do that?7) What is the use of event AT SELECTION-SCREEN ON FIELD?8) What is the use of CHAIN and ENDCHAIN statement?9) How can you set rows and columns for Table control in a screen?10) what is an user exit?11) What is table maintenance generator?12) How can you call a subroutine which is located in program A from program B?13) What is RFC function module?14) How many types of RFCs are there?15)Can we use CALL SCREEN in RFC?

How do I assign Authorization Groups to Tables?

Assign a Table to a Group

1) SM31

2) Enter ==> TDDAT in Table Name

3) Execute

4) Select Assign authorization groups to tables/views

5) Check Table name box and execute

6) Enter Table name (s) (can use wildcards) and execute

7) Enter ==> New authorization group(s)

8) Check box in front of modified tables

9) Select Save icon

Page 24: sap_basis

10) Create Change Request, enter description, execute, execute

11) Select Back icon

Why is it that when I use SUIM to see who can run certain transactions I get a certain list of users. But one or more users are missing that I know have access to run that transaction?

Up to now the report did not take into account the transactions whichare executable due to customizing with the help of the SU24 / SU25

What is client 000 in SAP R/3? Client 000 is defined as the SAP standard and the customer cannot change it. This client serves as a copy template for the creation of further clients.

What are the different type of work process ?The following work process in SAP R/3

Dialog (D): each dispatcher needs at least 2 dialog work processes (not shown above)

Spool (S): at least 1 per R/3 System (more than 1 per dispatcher allowed)

Update (V): at least 1 per R/3 System (more than 1 per dispatcher allowed)

Background (B): at least 2 per R/3 System (more than 1 per dispatcher allowed)

Enqueue (E): exactly 1 per R/3 System (only 1 E work process is required and allowed)

How do you start SAP R/3?To start R/3, run the shell script startsap from the home directory of user <sid>adm. startsap starts the saposcol process, which is the statistics collector for operating system resource data, if it is not yet running.

Page 25: sap_basis

startsap calls the script startdb, which starts the database if it is not already started.

startsap then starts the central instance.

The R/3 System administrator can start additional instances and application servers. To start the instances independently of the database, use the script startsap.

startsap has the following options:

startsap r3: Checks if the database is running; if it is, only the instance is started

startsap db: Starts only the database

startsap all: Default entry; starts both the database and the R/3 instance

In what sequence are profile parameter read?R/3 processes read the appropriate parameters from a C source in the R/3 kernel

The default profile /usr/sap/<SID>/SYS/profile/DEFAULT.PFL is read; profile values already defined in the C source are replaced with the values in the default profile

The instance profile /usr/sap/<SID>/SYS/profile/<SID>_<instance>_<hostname> is read; profile values already defined in the default profile or in the C source are replaced with the values defined in the instance profile

This procedure ensures that system parameter values reflect the instance profile and the values in the default profile and the C source.

What are the step involved before stopping R/3 system?Before stopping any R/3 system following steps are basic

Page 26: sap_basis

steps to be performed.

Before the R/3 System is stopped, the R/3 System administrator should check the:

Check if any background jobs from any application server are active or have been triggered externally. Use transaction SM37

Check if the background work process BTC is running in any application server.

Check if any update records are open when the system is stopped, the records are rolled back and set to status init. At startup, the records are processed again.

The administrator must decide whether to interrupt the jobs or wait until they are finished.

Give system users advance warning of the system shutdown. To create a system message, you can use transaction SM02.

Before shutting down the system, use transaction SM04 to check whether users are still logged on, and ask them to log off.

The R/3 System administrator and administrators of external systems should also inform one another about data transfers between their respective systems.

How do you check the work process from UNIX?Use the following commands.To check all the work processes:ps -ef | grep <SID> | grep dwTo check the message server: ps -ef | grep <SID> | grep ms

To check the SAP OS collector:ps -ef | grep sapos

How do you display the server name?

Page 27: sap_basis

To display the server name, use transaction SM51. Information about the process types is also displayed. For further information, select one of the instances and choose Processes. Alternatively, to display the system processes, use transaction SM66.

How do you display all active users in your system?To display the overview of all active users on the instance where you are logged on, use transaction SM04. For a user overview of the whole system, call transaction AL08.

Performance Analysis

Q. What happens to locks when the enqueue server is restarted?A. If they have not been saved to disk in the backup file, they will be lost. The locks that are inherited by the update task when COMMIT WORK is executed after CALL FUNCTION .. IN UPDATE TASK are saved to the disk. The locks are saved to disk when the update request becomes valid, that is, with the COMMIT WORK. Each time the enqueue server is restarted, the lock entries saved on the disk are reloaded to the lock table. A lock is saved to disk at the point at which the backup flag is set.

Q. The enqueue server is a single-point-of-failure in the SAP System. Can I guarantee high availability for the Enqueue Server?A. To guarantee this you must use the standalone Enqueue Server with the Replication Server. This is described in the documentation Standalone Enqueue Server.

SAP note 524816 contains the prerequisites that must be fulfilled for using the standalone Enqueue Servers with the Replication Server.

Q. Where is the lock table stored?A. In the main memory (shared memory) of the enqueue server. All work processes on the enqueue server has access

Page 28: sap_basis

to the table. External application servers execute their lock operations in the enqueue process on the enqueue server. Communication in this case takes place via the relevant dispatchers and the message server.

Q. Can locks exist directly after startup? A. Yes, the saved locks, which were inherited by the update task, are reloaded to the lock table during startup (see first question).

Q. How fast are lock operations?A. In work processes on the enqueue server, a few 100 microseconds. In work processes of external application servers you have to include network communications and process changes. Depending on CPU and network load this amounts to a few milliseconds.

Q. What should I do first if a problem arises?A. Use the diagnosis functions:sm12 Extras ® Diagnosis and thensm12 Extras ® Diagnosis in updateIf a problem is reported, back up the trace files dev_w*, dev_disp, dev_eq* and check the Syslog.

Q. The following message is displayed in the diagnosis details in SM12:Lock management operation mode Internal lock management in same process What does this message mean and what are the other options? A. "Internal lock management in same work process" in the diagnosis function means that you are logged onto the enqueue server and your work process can access the lock table straight away. You do not have to delegate enqueue requests to an enqueue process on a remote enqueue server. If you are logged onto an application server that is not an enqueue server, the diagnosis function will provide

Page 29: sap_basis

you with the name of the enqueue server. Each SAP System has exactly one application server that functions as an enqueue server. This enqueue server maintains the lock table, which is located in a shared memory segment. All of the work processes on the enqueue server can access the lock table. All work processes on other application servers delegate their enqueue requests to a special enqueue work process on the enqueue server. This procedure is configured automatically. The parameter line "rdisp/enqname =<application server name>" in the default profile DEFAULT.PFL indicates which application server is currently acting as the enqueue server. When an application server detects that its name matches the name of the enqueue server, it creates the lock table and all of its work processes process enqueue requests inline. If an application server detects that its name does not match the name of the enqueue server, it sends all enqueue requests to the enqueue server. Work processes of the type "enqueue" guarantee that incoming requests are processed immediately. One enqueue process is usually sufficient. In very large SAP Systems with many application servers, a second process can be beneficial. However, it is not expedient to define more than two enqueue processes. If the transaction SM50 -> [CPU] shows that only the first enqueue process is being used, the bottleneck is due to something else.

Q.Why is an enqueue work process required in a central system? Don't all work processes have the same access to the shared memory and thus to the lock table?A. Although the enqueue process is not used in a central system, it does not do any harm. Since almost all customers install an application server sooner or later, problems will inevitably arise if the enqueue process is missing. For this reason, the enqueue diagnosis function will output an error if an enqueue process has not been configured.

Page 30: sap_basis

Q. Are the locks in the lock table also set at the database level? If not, database functions could be used to process objects locked in the SAP system.A. Locks are not set on the database. The lock table is stored in the main memory of the enqueue server.

Q. Is a lock table built if an enqueue work process is not started on the enqueue server in the instance profile?A. Yes, because the work processes on the enqueue server use the lock table directly, and not via the enqueue process. The latter is only responsible for lock requests from external application servers.

Q.How can I find out who is currently holding the ungranted lock? In other words, how can check the program after an ENQUEUE to determine which use is currently holding the lock so that I can let him or her know?A. When the ENQUEUE_... function module is returned, the name of the lock owner is listed in SY-MSGV1.

Q. Can I use special characters in my lock argument (especially the ‘at’ sign (@))?A. The ‘at’ symbol is used as a wildcard in SAP locks (enqueues). In other words, it can stand for any other character during collision checks. For example, the parameter value 12345@ locks the quantities 123450 to 123459, 12345a to 12345z, and 12345A to 12345Z, and all other values with any special character in the 6th character position. This is described in detail in the section Lock Collisions.In order to prevent the wildcard mechanism from being activated in SAP locks when it is not required, you need to ensure when enqueue function modules are called that key value parameters do not contain any wildcard characters. If key values that you want to use to lock individual entities do contain wildcard characters, you have to replace the

Page 31: sap_basis

wildcards with different characters before the enqueue is called.

Q. With a single-process system as an enqueue server, we have reached X SD Benchmark users. Can this number be increased by using a multiprocessor system (message server on the same machine as the enqueue server)? Can we assume that scaling is linear (number of CPUs * X SD users)? How many processes are advisable if message servers, dispatchers, one dialog, and two enqueue processes are to run on the system?A. A significant increase in the enqueue server throughput can be expected by using several processors. The CPU load on the enqueue server is distributed relatively evenly between message server, dispatchers, and enqueue work processes, which means that up to 3 processors can be occupied simultaneously. Dispatchers and message server represent the bottleneck with the enqueue. Linear scaling can be expected for up to 3 processors, even if lock requests are so frequent that message server, dispatchers, and work processes are occupied simultaneously. Due to asynchronous system processes (for example, syncer), using more processors can further enhance throughput.

Q. The Syslog often contains messages such as "Enqueue: total wait time during locking: 2500 seconds". How should I analyze this problem? Or is the entry not critical? (There are no records of terminations or timeouts.)A. The message is output for information purposes only but may indicate parallel processing errors with ABAP programs. The specified wait time is the time that has elapsed since startup due to the use of the WAIT parameter when the enqueue function module was called. The WAIT parameter enables a lock attempt to be repeated a number of times, for example, so that the update task

Page 32: sap_basis

does not have to be cancelled when a lock is set temporarily by other programs. The work process remains busy between the lock attempts.

Q. User cannot connect to SAP A. Check SAP logon settings, ping the host, check message server, check dispatcher, etc

Q. User cannot print A. See if the user has proper authoriztion. check SAP user setup, check SPAD, check spools, check unix queue or print queue at the os level, etc

Q. Why do you get "GetProcessList failed: 80004005" error while starting SAP console management A. You have selected one of the Process List nodes in the tree. Then you closed MMC and clicked "Yes" in the dialog "Save console settings to SAPMMC?". Now when you open again the MMC and those processes are not started, you get this error.

Solution: Start MMC and select SAP Systems in the tree. Then close it and choose "Yes" in the dialog "Save console settings to SAPMMC?". Now you won't get this annoying error on every start.

T-CODESDevelopment Transaction CodesS001 Abap WorkbenchSE09 Workbenche organizer (Transports)SE11 ABAP/4 DictionarySE16 Data browserSE24 Class builderSE30 ABAP Runtime analyzesSE32 ABAP/4 Text Element MaintenanceSE35 ABAP/4 Dialog Modules MaintenanceSE36 Logical DatabasesSE37 Function builder

SE38 ABAP/4 Editor

Page 33: sap_basis

SE39 Program ComparisonSE41 Menu PainterSE43 Area Menu editorSE48 Call hierarchySE49 Program analysis: Table ManipulationSE51 Screen Painter: Initial Screen.SE55 Table maintenance dialogSE80 Repository browserSE91 Message ClassesSE93 Maintain transaction

SHDB Batch input recorderSM30 Maintain table viewsSM35 Monitor batch input

ST22 Short dump analysis

2. Monitoring

ST05 SQL Trace

ST07 Application monitor

Do i need user ID and password to enter into the OSS?Yes, you need an User ID and Password to enter into the site. It will be provided by the BASIS Team in the Project. When they create SAP User ID, they will create OSS notes ID also.You can also register individually in the site.

What is OSS Notes number?After entering into SAP notes search, you can search for the problem using keyword appropriate for your problem. If you have specific OSS notes number with you, then you can directly enter the OSS notes number and you can see the Notes explanation.

How to apply OSS notes number?

Page 34: sap_basis

Before applying OSS notes number into your SAP system. You need to check whether it is already implemented in your SAP system or not. If it is not implemented you can go ahead.

There are some OSS notes, which we should implement manually, that means we need to change the code in the programs/objects ourselves according to the steps mentioned in the problem.

I did not find any OSS notes appropriate for my problem or bug. What i have to do?If the OSS notes displayed are not helpful to solve your problem. You can write to SAP Service describing your problem. You problem will be answered by SAP Support team.How to apply OSS notes in my SAP system? What is the T-code and what are the steps. In next post we will see it.OSS stands for On-line Service System.What is the use of OSS?In day-to day business customers who are using SAP software encounters problem or bugs with SAP software. To resolve the issues faced by customers SAP has provided an on-line solution.What? SAP software is having problems or bugs? Yes, any software product is not 100% pool-proof. SAP is continuously updating the versions for better performance and options.

Where can i access SAP OSS?Log on to www.service.sap.com. Under the SAP Support Portal, click on SAP notes search.

Do i need user ID and password to enter into the OSS?Yes, you need an User ID and Password to enter into the site. It will be

Page 35: sap_basis

provided by the BASIS Team in the Project. When they create SAP User ID, they will create OSS notes ID also.You can also register individually in the site.

What is OSS Notes number?After entering into SAP notes search, you can search for the problem using keyword appropriate for your problem. If you have specific OSS notes number with you, then you can directly enter the OSS notes number and you can see the Notes explanation.

How to apply OSS notes number?Before applying OSS notes number into your SAP system. You need to check whether it is already implemented in your SAP system or not. If it is not implemented you can go ahead.

There are some OSS notes, which we should implement manually, that means we need to change the code in the programs/objects ourselves according to the steps mentioned in the problem.

I did not find any OSS notes appropriate for my problem or bug. What i have to do?If the OSS notes displayed are not helpful to solve your problem. You can write to SAP Service describing your problem. You problem will be answered by SAP Support team.How to apply OSS notes in my SAP system? What is the T-code and what are the steps. In next post we will see it.Types of Consultants:The most common question being asked in interviews is ' What are your roles and responsibilities?'.Before answering the above question, let me explain the difference between Functional consultant and Technical consultant.Roles and responsibilities differ from functional consultant to Technical consultant.Functional Consultant:

Page 36: sap_basis

* Functional consultants are responsible for designing the SAP implementation solution based on the requirements of your company.* Functional consultants are business process experts.* Functional consultants normally use their process knowledge to calculate the impact of the SAP implementation on the company's processes.* Functional consultants are thus concerned with SAP functions and processes that will generate the data and output for business.* Functional consultants interact with end users of the company to gather requirements and based on the requirements they customize the SAP implementation.

Technical Consultant:* Technical consultants are experts in information technology.* Technical consultants normally assist in configuration of the SAP R3 installation. In many SAP implementations, technical consultants help in designing interfaces and customizations in R3. Finally, the SAP R3 technical consultants would be responsible for migration of data from the legacy system to the new SAP ERP implementation.

* Here i will discuss major roles and responsibilities of a technical consultant:

1) Designing technical specification by looking at the functinal specification you have recieved.Usually senior developers having 3 years or more than 3 years of experience involves in preparing technical specifications.

2) Developing objects using ABAP workbench tools. That may be a report program or an on-line program or a custom table.Remember the development work starts after the technical specification is approved by your team leader.

Page 37: sap_basis

3) Preparing the Unit test case document.In unit test case document, we document the results and test cases performed on the developed object.

4) Peer Reviewif you are a senior developer you can perform peer review. I.e review the code written by your peers.

5) Working on Problem TicketsIf you are working in a support project, you should solve the tickets assigned to you. Tickets are nothing but the problems occured in production environment.

The above mentioned are the major roles and responsibilities for a technical consultant.

System Landscape:The system landscape contains all systems that were installed. The customer can choose any landscapeaccording to the requirements.If the customer is very big, one can implement four system landscapes. Mid size customers can go for twosystem landscape.Now we will see different system landscapes:

Four System Landscape:In this landscape, we will find four systems,1) development system2) test system3) pre-production system4) production systemIn development system, we find three clients100140180100 can be used as configuration client. 140 can be used for development. 180 can be used for testingpurpose in development system.The Test system contains two clients010

Page 38: sap_basis

040010 can be used for testing, where as 040can be used for training purposes.The pre-production system is the one which behaves exactly as production system. It contains data similar toproduction system. We can test with similar production data.Production system contains one client where the end users will be working with real time data supporting dayto day business.

CTS (Change and Transport System) :

The CTS is the central tool for managing changes to customizing and repository data that we make in the IMG or ABAP workbench.

As we have discussed earlier, a transport request cab be either customizing request or ABAP workbench request.

A customizing request can be created by the customizing tool IMG.

An ABAP workbench request can be created by ABAP workbench tool. Any changes or objects we develop through ABAP workbench are stored in Repository tables of SAP database.

As an ABAP developer you will be working with ABAP workbench and thus you create work bench requests.

A functional consultant works with configuration tool IMG (SAP Implementation Guide) T-code SPRO, thus creating customizing requests.

Transport organizer:

Transport organizer is the tool provided by SAP which records and

Page 39: sap_basis

documents all changes to objects in the repository and customizing. The transaction code for transport organizer is SE10 or SE09.

Transport organizer is fully integrated with ABAP workbench and customizing tool IMG. That means you can navigate in both directions from transport organizer to ABAP workbench and reverse also.

Development class:

Development classes are used to group similar work objects that are being developed in a project.

While creating development class we must assign it to the transport layer.

All the objects assigned to that development class can be transported according to the routes defined in the transport layer.

Defining transport layer and routes is SAP BASIS administrator job. The transport layer defines transport route between the systems included in system landscape.

The development classes are themselves objects in the ABAP workbench.

The development class of a development class is always itself.Change Request:

Information source in the transport organizer that records and manages all changes made to repository objects and customizing settings during a development project.

Task:

A task is assigned to a change request.

It is the information carrier in the transport organizer for entering and

Page 40: sap_basis

managing all changes to repository objects and customizing settings performed by employees within a development projectVPN (Virtual Private Network)Where are your SAP servers located? You might have faced this question in interviews. The answer is simple. In general the servers will be located at client side. You may be working for any company like Wipro, IBM, TCS or Infosys. That IT company may be implementing the SAP for a customer in UK. Though you work from IT company, the servers will be located at client side only.

How do you connect to SAP servers which are at client side, if you are working from offshore?We can connect through Internet or Private lines. If you use Internet, it is not secure because of its accessibility to public. Private Lines are costly for the companies. Here VPN comes into picture.

As the name itself tells us that it is secure. We will see what exactly it is.A Virtual private Network is a private communications network used within a company, or by several companies or organizations to communicate confidentially over non-private network.

From the above definition it is clear that VPN also uses non-private network like Internet. But it creates a virtual netwoTell me the example VPN software names?AT&T and Citrix. There are many VPN softwares in the market.

In general, you will be given with a User name and Password for VPN. By using the User name and password you can connect to VPN.Then you have to use the SAP User ID and Password to connect to the SAP server.Now it is clear that VPN User id different from SAP user ID.Types of Projects:We can divide the SAP projects into three categories. They are

Page 41: sap_basis

1) SAP Implementation Projects2) SAP Support Projects3) SAP Migration Projects

1) SAP Implementation ProjectsIn this type of projects, Customers are moving towards SAP software. Previously they might be using some other software.

2) SAP Support ProjectsOnce SAP project is implemented, it should be supported by the consultants in day-to-day business. In Support projects, the support team helps the customer in day-to-day business.

3) SAP Migration ProjectsAs we see, SAP is continuously upgrading the R/3 software. Customers are moving from the older versions to new versions. When the customer decides to new version, it is called SAP Migration Projects.Now-a-days many customers are migrating from older versions like 4.5 or 4.6b, 4.6c to ECC 5.0 or ECC 6.0 versions.