SAP Patch Theory


Patches Theory : -
The import process is divided into the following modules
Preparation Module:- All the preparatory and test steps (including the test import and add-on conflict check) are performed in this module. This module can run during production operation.
Module Import 1:-
Dictionary objects are imported and activated in this module.
Module Import 2
including activation of inactive Dictionary nametabs. no production operation can take place while this module is running.
Clean Up Module
The most important of these is the adjustment of modifications in the repository objects

Authorization :-
To use all Support Package Manager functions, you require the following authorizations:
      S_TRANSPRT
      S_CTS_ADMIN
Both authorizations are in the authorization profile S_A.SYSTEM.

The following Support Package types are offered:
      SPAM/SAINT Update
A SPAM/SAINT Update (PAT) contains updates and improvements to Support Package Manager and Add-On Installation Tool.
      Component Support Package
A Component Support Package (CSP) is valid for one software component (such as SAP_BASIS, SAP_HR, SAP_APPL or Add-On Software Component) and contains quality improvements for Repository and Dictionary objects in this software component only.

Support Package Manager Settings 
Scenario
When choosing the scenario, you determine which activities you want to be performed when the Support Package is imported.
·                Standard
You use the standard scenario to import Support Packages completely. All steps are performed.
·                Import Mode Downtime-Minimized
If you choose the standard scenario, you can also choose import mode downtime-minimized to reduce the downtime. The default setting is for this option to be deactivated. The packages are imported using the conventional import method.

To find the most suitable import mode for your system, check the prerequisites under Import Mode: Downtime-Minimized.
·                Test
Use the test scenario to determine if a modification adjustment is required before the Support Package is actually imported, or if any conflicts need to be resolved before the import. The test scenario does not import data into your SAP system.
There is no test scenario for SPAM/SAINT updates. A SPAM/SAINT import ignores the scenario you select.

Importing Support Packages with Support Package Manager 
Prerequisites
User:
      You have the relevant authorizations in Support Package Manager.
      You are logged on in client 000.
      You have called Support Package Manager.
The initial screen provides an overview of the status of the last queue imported. If the Support Package import is incomplete, the last (terminated) phase processed by Support Package Manager appears.
System:
      You have checked the correct configuration of the transport tools by choosing Utilities ® Check Transport Tools.
      You have ensured that there is enough space in the transport directory (size of the files multiplied by 2). (Use transaction AL11 to see the profile parameter DIR_TRANS, or use transaction SE38 and the report RSPARAM.) It is particularly important that there is enough space in subdirectories trans/EPS/in and trans/data.
      You have imported the most recent SPAM/SAINT update.
To do this, you have checked whether the SPAM/SAINT update in SAP Support Portal is newer than the one in your system. (The version of the SPAM/SAINT update in your system appears in the title bar of the Support Package Manager screen.)

To avoid problems while importing Support Packages, we recommend that you always import the most recent SPAM/SAINT update first.
      You must not have any incompletely imported Support Packages in your system.
To check this, you have called transaction SPAM, selected Terminated Support Packages under Directory and chosen Display. No Support Packages should appear. The status should display a green light.
If this is not the case, look at the detailed status and log information for all Support Packages found in the system. To do this, choose Directory ® All Support Packages ® Display, or Goto ® Status or Goto ® Log.

Activities

       2.      Defining a Queue
       3.      Importing a Queue
       4.      If required: Adjusting Modifications
      5.      Checking Logs
       6.      Confirming the Queue

Importing a SPAM/SAINT Update 

 Prerequisites

You can only import a SPAM update if there are no terminated packages in the system.
A dialog box informs you if there are any terminated packages. You then have two options:
      Import the entire queue to begin with and then the SPAM update.
      Delete the queue, import the SPAM update, then import the queue.

You can only delete the queue if module Import 1 has not yet started (up to phase SCHEDULE_RDDIMPDP).

Procedure

1.              1.      Call Support Package Manager (transaction SPAM).
2.              2.      Check if the SPAM update offered is newer than the one in your system.
3.              3.      To import the most recent SPAM update, choose Support Package ® Import SPAM update.
SPAM updates are automatically confirmed once they have been imported.


Loading Support Packages from SAP Support Portal or from CDs


1.       Load the Support Packages from SAP Support Portal or mount the relevant CD.
2.         Log on using the following user:


Operating System
User
UNIX
<sid>adm
IBM eServer iSeries
<SID>OFR
Windows
<SID>adm
       3.      Switch to the following subdirectory in your system:
Operating System
Subdirectory
UNIX and IBM eServer iSeries
trans
Windows
TRANS
       4.      Use the following command to unpack the archive containing the Support Packages:
Operating System
Command
UNIX
SAPCAR -xvf /<CD_DIR>/<PATH>/<ARCHIVE>.CAR
IBM eServer iSeries
SAPCAR '-xvf /QOPT/<VOLID>/<PATH>/<ARCHIVE>.CAR'
Windows
SAPCAR –xvf <CD_DRIVE>:\<PATH>\<ARCHIVE>.CAR
The unpacked Support Packages automatically appear in the EPS inbox of your transport directory (UNIX and IBM eServer iSeries: /usr/sap/trans/EPS/in; Windows: <DRIVE>:\usr\sap\trans\EPS\in).
5.      Load the Support Packages into your system by choosing Support Package ® Load Package ®    From Application Server.
You now see a list of the uploaded Support Packages that are now known in the SAP System together with their attributes. These can now be handled correctly by Support Package Manager.
       6.      To return to the Support Package Manager initial screen, choose Back.
       7.      Define the Queue.

Definfg Queue :-

Procedure

4.                    1.      On the initial screen in Support Package Manager, choose Display/Define.
The Component Selection dialog box appears. A list of installed software components (for example, SAP_BASIS, SAP_HR, SAP_BW) is displayed.
5.                    2.      Select the required components.
6.                    3.      The current queue appears. This queue contains the Support Packages available for the selected component in your system, and, if necessary, Support Packages of other components, Conflict Resolution Transports (CRTs) and other Add-On Support Packages.
If you want to define the queue for another software component, choose Other Component.

If errors occur when you define the queue based on a software component, you can try to use a target Support Package to define the queue. In this way, you can get detailed information about the error.
7.                    4.      You can now do the following:
·                You can limit the queue selection. To do this, select the Support Package that you want to be last in the queue. This recalculates the queue. You can also do this explicitly by choosing Recalculate queue.

You can only select Support Packages that belong to the software components that you have selected (the cursor changes its appearance accordingly). The Support Packages that belong to the queue are highlighted in green. The highest Support Package selected for the selected software component is also flagged with a green check mark. The Support Packages that no longer belong to the queue are still visible in the list, from where you can select them again.
·                If the displayed queue meets your requirements, you can confirm it by choosing Confirm Queue and closing this window.

Importing a Queue 

Importing a Queue in the Test Scenario

1.         ...
8.                    1.      To set the test scenario, choose Extras ®Settings.
9.                    2.      On the Import Queue tab page, choose Test and define the other settings for the import.
10.                 3.      Choose Support Package ® Import Queue.
You can also use this function to restart a terminated import.
The status line informs you of the progress of the test import and the current Support Package Manager phase. You may have to perform a modification adjustment during the import (with transactions SPDD or SPAU). Note that the modification adjustment is only available in display mode. You can only perform it if you are importing the Support Packages in the standard scenario.

Importing a Queue in the Standard Scenario

2.         ...
       1.      To set the standard scenario, choose Extras ®Settings.
       2.      On the Import Queue tab page, choose Standard and define the other Settings for the import.
      3.      Choose the import mode you require.
       4.      Choose Support Package ® Import Queue.
You can also use this function to restart a terminated import.
       5.      A dialog box appears, enabling you to select the Start Options. Define the start options you require and confirm the dialog box.
Support Package Manager continues processing with your chosen import mode and start options.
Conventional Import Mode
If you have accepted the default start options, Support Package Manager now performs the entire process in the dialog. The status line informs you of the progress of the import and the current Support Package Manager phase. At this stage, your system should no longer be in production operation.
If you have selected a start time or Continue Manuallyfor module Import 2, your system can stay in production operation until module Import 2 starts.
Import Mode Downtime-Minimized
If you have accepted the default start options, your system can remain productive, as Support Package Manager tells you explicitly when to stop production operation.
Support Package Manager runs through the normal preparations and checks (module Preparation). It then runs through the import for inactive objects that can be performed while your system is in production operation (module Import 1).
The development environment is blocked at the start of module Import 1, in order to prevent changes being made to objects, which would put the consistency of the system at risk.
Support Package Manager then displays a dialog box prompting you to stop production operation for the next import module (Import 2).
1.         ...
       To stop the import and change the state of the system, choose Cancel.
Terminate any background jobs that are running. Prompt all users to close any transactions they are working in and to log off from the SAP System.
2.         ...
3.         ..
       To proceed with the import, choose Continue.
This module (Import 2) activates the inactively imported objects and imports the remaining objects from the Support Packages in the queue.
Once this module has been completed, Support Package Manager informs you that you can restart production operation in your system.

This applies only if you have made either no or very few modifications to SAP objects.
  6.      If you have made modifications to SAP objects, Support Package Manager prompts you to perform a modification adjustment.
You must adjust Dictionary objects immediately (with transaction SPDD). As far as Repository objects are concerned, you can either adjust them now or later (with transaction SPAU). To do this, proceed as described under Adjusting Modifications.
       7.      To complete the import process, choose Import Queue again.
During the next import module (Clean Up), post processing steps are performed. The import process is complete.
Confirming the Queue 
Use
Confirm that the queue has been imported successfully into your system. This allows you to import more Support Packages in future. You will not be able to import any more Support Packages if you do not confirm the queue.

·                     If you have not yet confirmed Support Packages that have been imported successfully, you will be prompted to do this when you upgrade the system.


For More Help
http://help.sap.com/saphelp_nw04/helpdata/en/29/ff9036e1e4b603e10000009b38f889/frameset.htm