Visualizzazione post con etichetta Sap. Mostra tutti i post
Visualizzazione post con etichetta Sap. Mostra tutti i post

martedì 27 maggio 2008

Integrated ITS: installation and activation

The integrated ITS is part of the SAP Web Application Server 6.40. It is automatically installed together with the SAP kernel. To be able to use a service via the integrated ITS, you must first follow the standard procedures for activation and configuration of the Internet Communication Manager (ICM). For more information, see Administration of the Internet Communication Manager.

In addition, you must activate the service you want to execute and the service default_host/sap/public/bc/its/mimes in the Internet Communication Framework (ICF). For further information refer to Activating an SICF Service.

Make sure that besides the Internet service to be used also the two Internet services system and webgui (also known as SAP GUI for HTML) have been published to site INTERNAL, because objects of these services may also be used by other services.

The ICF path for the webgui service is /default_host/sap/bc/gui/sap/its/. You can use this path to search for the service in transaction SICF. HTTP requests with /sap/bc/gui/sap/its/webguispecified as path are forwarded to the request handler of the integrated ITS. The complete URL for access to the SAP system with SAP GUI for HTML is
http(s)://<icman-host>:<icman-port>/sap/bc/gui/sap/its/webgui

When using the integrated ITS, two profile parameters (see also Changing and Switching Profile Parameters) are of special importance:

● itsp/enable

You use this parameter to deactivate (0) or activate (1) the integrated ITS. Even if the integrated ITS is activated, it only accesses system resources when it is actually used. Nevertheless, it can make sense to deactivate it to prevent users from accessing the SAP system with SAP GUI for HTML via special application servers (such as batch or update instances). Since the conversion of SAP screens into HTML pages uses additional CPU time, it makes sense to reserve a number of dedicated application servers to be used with SAP GUI for HTML and to use a special logon group to balance the load between them.

● em/global_area_MB

The “global area“ is a memory shared by all work processes of the SAP kernel. The integrated ITS uses it for the runtime version of the HTML Business templates ("preparsed templates"). The memory required depends on the number and size of the templates used to display the services called by the users. The default value is large enough to use SAP GUI for HTML with one browser version in one logon language. If your users access the ITS with different languages or browsers (for example, Microsoft Internet Explorer and Netscape Navigator), or if they need additional services apart from SAP GUI for HTML, then the number of used templates will increase and you will have to adapt em/global_area_MB accordingly. You find information on when and how you should adapt this parameter in note 742048.

sabato 3 maggio 2008

upg Ora 817 to 920 WIN

30/04/2008
Restore di A1P su A1S alle WED, APR 30, 2008 01:20:00 AM
utenza produzione: gruppomm / ******
Dopo db copy: pulizia tabelle IACORDES IACORSITE TWPURLSVR - nota 313486 per la pubblicazione su ITS
All services, templates, and mimes have been overwritten by the current version of the component system. Therefore, you have to modify the service files of the bbpstart, bbpvendor, bbpwi services on the ITS server as described in SAP Note 0307782 <-- APPLICATA (A parte il logo, probabilmente modificato direttamente su file system, ITS e' ok)

Aggiornamento kernel alla versione 620 level 674 (nota 580772)

## Oracle Upg 02/05/2008 ##
estensione tablespace SYSTEM da 350 a 650 MB (AUTOEXTEND ON)
backup registry e 817 Ora sw - stop SAP e servizi relativi e servizi antivirus
passaggio US7ASCII --> WE8DEC (nota 102402)

installazione sw 920 nella nuova ORACLE_HOME (A1S920 - k:\oracle\A1S\920)

installazione del current patch set (9.2.0.8, nota 539921 e 578683)
CAUTION - >=9.2.0.7
Make sure that the _OPTIM_PEEK_USER_BINDS Oracle parameter is set to FALSE before you upgrade to Oracle 9.2.0.7 or higher. Otherwise, serious performance problems are very likely. See also the corresponding point in Note 176754.

installazione ultima fix disponibile con Opatch (K:\oracle\A1S\920\OPatch): 6867138
Per l'uso di Opatch e' stato necessario installare ActivePerl-5.10.0 ...
K:\6867138>C:\Perl\bin\perl K:\oracle\A1S\920\OPatch\opatch.pl apply
K:\6867138>C:\Perl\bin\perl K:\oracle\A1S\920\OPatch\opatch.pl lsInventory

passaggio US7ASCII --> UTF8 (nota 669902)

 DUA_1

avvio servizi Ora (quello di A1S e i 2 listener) cancellazione ORACLE_HOME dal profilo di <sid>adm e lancio DUA
ATTENZIONE: prendere i listener.ora sqlnet.ora tnsnames.ora della 8.1.7 e copiarli sulla 9.20, modificare opportunamente i puntamenti interni per la ORACLE_HOME. La variabile PATH deve presentare entrambe le ORACLE_HOME (prima la 8.1.7 e poi la 9.20) - Prima di lanciare il DUA con <sid>adm modificare il file MEP.CFG situato in %ORACLE_HOME%\assistants\dbma della 920, sostituiendo la stringa <Datafile name ="{ORACLE_BASE}/oradata/{DB_NAME}/odma_rbs.dbf"/> con ad es. <Datafile name ="j:\oracle\DWP\odma_rbs.dbf"/>
ATTENZIONE 2: lanciare il DUA tramite PcAnywhere: con remote desktop si riceve comunque un "TNS protocol adapter error" ...
a fine procedura DUA, post-processing come da manuale, tra cui:
> variabili d'ambiente
> K:\usr\sap\A1S\sys\exe\run>sqlplus /nolog @sapdba_role A1S NT (Nota 134592)
> brtools (fatto girare lo script oradbusr.sql, il comando brconnect -u / -f check va a buon fine)

lunedì 17 dicembre 2007

Password change behavior

The password change behavior for SYSTEM users is adjusted to that of the SERVICE user. The new (from 4.6C) matrix then appears as follows:
                       | SAPGUI capable  |  Not interactive
-----------------------|-----------------|-----------------------
Password change: Yes   | Type: Dialog    |  Type:  Communication
                       |                 |
-----------------------|-----------------|-----------------------
Password change: No    | Type: Service   |  Type:  System
 
 
You use the parameter login/password_expiration_time because you want users to change their password every xx days. However, you want it so that some users don't have to change their password. At database level (not in R/3), you can easily solve this problem: in the table USR02, just set a date far in the future for the field BCDA1 (password last change).
For example, if you want to set it so user SMITH does not have to change his password until 2010, you can use the following SQL script:
update USR02 set BCDA1 = '20101231' where BNAME='SMITH'
Just replace the values for BCDA1 and BNAME with your own values! This script is for MS SQL Server + R/3 46B and 46C, but the syntax should not be very different for other database systems and R/3 versions.

lunedì 18 giugno 2007

XI little help

Performing Initial Adapter Engine Cache Refresh. Perform the initial cache refresh of the Adapter Engine by executing the following URL: http://<host>:<Java-Port>/CPACache/refresh?mode=full Where <host> is the Adapter Engine host and <Java-Port> is the HTTP port of the J2EE engine (The following naming convention applies: 5<Java_instance_number>00. 50000, for example, if your Java instance is 00).
Log on data: XIDIRUSER with password
Check that the response indicates that the cache refresh has been successfully executed.

Example: http://sap358:55800/CPACache/refresh?mode=full

Patching XI server (nota 750511):

  1. Create a database backup.
  2. Import the latest kernel patch (refer to note 19466).
  3. Import the Support Package for SAP Basis 6.40 that matches your XI target Support Package (refer to notes 83458 and 672651). BASIS & ABA
  4. Import the Support Package for your SAP J2EE Engine which is included in the corresponding Support Package Stack.
  5. Check if the Software Delivery Manager (SDM) runs in integrated mode, that is, dependently of the J2EE engine. This mode enables SDM to control the J2EE status during deployment.
    For this purpose, execute the following three commands:
    Windows (in the \usr\sap\<SID>\<instance>\SDM\program folder)
    StopServer.bat
    sdm.bat jstartup "mode=integrated"
    StartServer.bat
    Unix (in the /usr/sap/<SID>/<instance>/SDM/program folder)
    StopServer.sh
    sdm.sh jstartup mode=integrated
    StartServer.sh

  6. Start the RemoteGui of the SDM and deploy the archives:

  • SAPXIAFCnn_m.sca of the software component XI ADAPTER FRAMEWORK CORE 3.0
  • SAPXIAFnn_m.sca of the software component XI ADAPTER FRAMEWORK 3.0
  • SAPXITOOLnn_m.sca of the software component XI TOOLS 3.0

in one deployment action (see note 656711). SDM will control the J2EE for the offline deployment of SAPXIAFCnn_m.sca. In addition to the RemoteGui status information you may tail sdmlog.log in the "/usr/sap/<SID>//SDM/program/log" folder for detailed deployment status including J2EE shutdown and restart. 7. Import the relevant content for the XI Support Package release, that is, the SAPBASISnn_m.zip archive of the XI CONTENT SAP_BASIS 6.40 software component (see note 705541).

  • Note 750511 - SAP Exchange Infrastructure 3.0: Patch procedure >= SP04 | Support package stack guide <-- PDF
  • kernel update su NW04 e superiori: gli eseguibili vanno aggiornati su piu' locazioni (3)
  • Note 656711 - Deploying Java Support Packages with SDM
  • Note 705541 - XI 3.0 (Support Package 1 and higher): Importing XI Content

integration builder: tcode SXMB_IFR

XI high level process flow. I assume you already know the components and terminologies before we proceed into this section. In a nutshell the end to end process flow of SAP XI is depicted over here:

  1. Create products, software component versions, technical systems, business systems in the System Landscape Directory (SLD).
  2. Import the software component version into the Integration Repository (IR) from the SLD and start developing the source/target messages, source/target message interfaces and mapping between source and target systems.
  3. Import the business systems into the Integration Directory (ID) and start configuring the sender/receiver communication channels, agreements, receiver and interface determination that binds the interfaces and the routing.
  4. Once the configuration is complete we need to test the interface and see if the message is sent from the sender to the receiver successfully or correct the error if it occurred. You do it through the monitoring the tools Runtime Work Bench in the Integration Builder and using sxmb_moni transaction code in the ABAP stack of SAP XI.

Rationale for isolating various components in SAP XI:
One of the most frequent questions that might arise about the architecture is that rationale behind isolating various components. The reason is simple Reusability of the Integration Content. I need an example whenever some one enlightens me with their knowledge. The best example for this case is the separation of integration repository and integration directory allows you to re-use the message interfaces and mapping logics for any system landscape. All you just need to do is to import the .tpz file into any repository and configure it according to the customer system landscape. Do you agree with me?

What happens when a message reaches SAP XI?
This is some thing who wants to learn SAP XI has to understand for trouble shooting the errors that might occur in the message life cycle. Refer Message Lifecycle in SAP XI.

Configurations that has to be set in SAP XI system:
After the SAP XI system is installed by your SAP Basis you need to do some configuration and system readiness check before the starting the developments of SAP XI. Configurations are usually done by SAP basis but these links might be handy to understand weird errors that occur commonly in SAP XI. Refer the links SAP XI configuration and the SAP note 817920 for system readiness check.XI_flow

giovedì 22 marzo 2007

HowTo upgrade a Sap instance

Premessa

Questa documentazione descrive quali sono gli step generali che si devono obbligatoriamente seguire per eseguire un upgrade con successo di una release di SAP

  • Passi Preliminari

Qui vengono descritti i passi preliminari con un ordine specifico da seguire prima di arrivare alla esecuzione delle fasi di prepare dell’upgrade

a) identificazione di release di partenza e di arrivo

b) reperire il manuale di upgrade alla release di arrivo

c) check delle note in esso contenute e dei relativi rimandi ad altre note

d) particolare attenzione al livello di support package attuali, se sono particolarmente elevati nel sistema di arrivo si deve studiare un livello di patch da inserire durante l’upgrade per prevenire problemi di perdita di correzioni utili

e) Non consentire di modificare il livello di support package di produzione DOPO aver eseguito l’upgrade nel sistema di TEST al fine di non trovarsi in una situazione inaspettata

f) porre attenzione alla release del database richiesto per eseguire correttemente la fase di prepare

g) Documentare OPPORTUNAMENTE qualsiasi passo di preparazione per non trovarsi spiazzati nell’upgrade di produzione

  • Passi di preparazione

In un landscape standard SVILUPPO-TEST-PRODUZIONE il modo corretto di procedere e’

1) refresh ambiente di produzione sull’ambiente di TEST. Pareggiamento profili d’istanza con i parametri presenti nella produzione per avere il piu’ possibile un ambiente speculare alla produzione. Tenere conto delle risorse del sistema di test per la parametrizzazione dei buffer SAP e parametrizzazione Oracle.

2) Adeguamento parametrizzazione Sistema Operativo secondo gli ultimi dettami SAP e soprattutto se il sistema operativo e’ supportato per la release di arrivo sia di SAP che di oracle

3) Accertarsi di avere tutte le librerie specifiche richieste dall’upgrade e di avere un release di java installata, funzionante ed il cui path e’ presente nel path dell’utente [sid]adm

4) Scarico delle support package richieste e relativo unpacking nella EPS/in del sistema in questione. Molte procedure di upgrade richiedono anche di inserire nella EPS/in sia la SPAM update del sistema di arrivo che quella di partenza. Per quest ultima e’ opportuno caricarla prima della partenza della prepare

5) Scaricare sempre l’ultima versione del tool di upgrade (R3up SAPup etc etc ) da porre nella /bin e di conseguenza anche le relative FIX . Devono essere ENTRAMBE all’ultima versione.

6) Scaricare i CD possibilmente in un'unica cartella e o filesystem denominando ogni singolo CD con una nomenclatura di facile interpretazione (eg KERNELCD , EXPORT1 , LANG1 etc etc )

7) Porre attenzione ad eventuali script ( in particolare per oracle) che possano accelerare alcune fasi di upgrade. Al termine dell’upgrade eseguire gli script di ripristino della situazione esistente

8) Predisporre sempre un backup offline del DB , dei file di environment di SIDADM (nel caso di sistemi windows fare backup anche del registry) , e del kernel PRIMA di partire con la PREPARE e prima anche del lancio dell’UPGRADE .

  • Passi di esecuzione PREPARE

1) Creare una upgrade directory di almeno 7 GB . Posizionarsi nella upgrade directory e da li' lanciare il PREPARE . Dopo questo lancio dare l’exit , sostiture nella bin il nuovo tool di trasporto e rilanciare la procedura .

2) Far chiudere tutte le CR in stato modificabile sul sistema ed aprire il customizing da SCC4 . Lasciarlo aperto per tutto il periodo dell’upgrade

3) Eseguire backup della tabella dei WAGE TYPE (buste paga) come richiesto da molti manuali di upgrade

4) Essere in possesso delle password di DDIC sul client 000 e SYSTEM, fondamentali per le fasi di input iniziali. Da NON modificare durante nessuna fase dell’upgrade. Puo’ accadere che in alcune fasi dell’upgrade sia richiesto il logon con DDIC e compaia un prompt di modifica password. In tal caso re-imputare la stessa.

5) Eseguire TUTTE le fasi della PREPARE, comprese quelle opzionali, e porre particolare attenzione alle fase opzionali di salvataggio delle varianti. Si consiglia per queste fasi di SALVARE tutto il possibile . Per i sistemi BW questa fase e’ fondamentale visto che molte query BW vengono reintrodotte proprio con le fasi finali dell’upgrade.

6) Una delle fasi piu’ delicate e’ la BIND_PATCH. Nelle release piu’ recenti SAP molti plug-in sono gia’ inseriti nei CD standard di SAP e quindi a fronte della dicitura INST/UPG WITH STD CD il SAPup (o R3up) ha GIA’ trovato come procedere per questi plug-in e quindi dare semplicemente OK alla fase (senza flaggare nulla). Se dovesse comparire una dicitura del tipo UNDECIDED in tal caso bisogna scaricare il .SAR relativo da OSS e caricarlo nella EPS/in e procedere all’upgrade mediante SAINT. Non far cancellare il plug-in all’upgrade. Sono ASSOLUTAMENTE critici i PI e gli ST-PI che, se cancellati durante l’upgrade, rendono inconsistente l’upgrade stesso. Leggere le note relative, utilizzare come chiave “upgrade with PI “. A margine delle note principali in genere c’è sempre un rimando.

7) Aggiornare sempre le statistiche del DB ponendo attenzione alla modalita particolare con cui il brconnect ad esempio deve essere lanciato per l’oracle 10

  • Passi dell’upgrade .

1) Eseguire sempre backup OFFLINE dell’istanza e della UPGDIR prima del lancio dell’upgrade.

2) Non modificare alcun input delle fasi di prepare e mettere Db in NOARCHIVE MODE

3) A fronte di un errore non documentato esaminare il log della fase nella upgdir/log e/o tmp . Tentare un rilancio della fase.

4) In caso di errori particolari cercare la fase (nome tecnico, descrizione) su SAPOSS, SDN, Motori di ricerca.

5) Porre molta attenzione all’analisi del LONGPOST

  • Passi post-upgrade

1) Eseguire backup offline al termine dell’upgrade

2) cancellare le tablespace della vecchia release

3) seguire tutti i passi richiesti dal manuale come post-action

4) ricordarsi di reimportare le entries della tabella dei wage types come richiesto dal manuale

SP-stack su NW2004s

Applicazione SP-stack su NW2004s
1. al download dello "stack" (service.sap.com/sp-stacks) voluto ricordare di scaricare anche il file di definizione xml dello stack (tasto SAVE AS)
2. copiare tutte le patch e il file di definizione xml dello stack nella EPS/in del sistema
3. settare il timeout dell'SDM opportunamente (v. Note 739190 - Timeout when starting or stopping the J2EE engine). E' possibile usare il file sdm_for_patching.bat (vedere lo script sotto) da [Drive]:\usr\sap\[SID]\[INSTANCE]\SDM\program (su WIN)
4. lanciare la JSPM (/usr/sap/[SID]/[Central instance name]/j2ee/JSPM/go)
5. installare come single support package l'aggiornamento della JSPM (normalmente selezionare l'indicatore No NWDI control)
6. rilanciare la JSPM (v. 4.)
7. installare con l'opzione support package stack (normalmente selezionare l'indicatore No NWDI control)
 
link all'help: Jspm patching
 
Troubleshooting
1.
Nel caso in cui il deploy si arresta con messaggio del tipo "Cannot start OS services, SCS instance and J2EE engine..." e' possibile sia un errore al restart dei servizi SAP dovuto alla password dell'utente SAPservice: andare sui servizi (SAP_xx) modificare la password (inserita durante l'installazione) e eseguire il restart. Da MMC fare restart dell'istanza e riprendere con il resume dalla JSPM.
 
2.
L'applicazione del pacchetto KMC-BC va in errore per un problema sull'indice KMC_AP_IHR: applicare la Note 978042 - KMC upgrade fails on Oracle - DROP INDEX 'KMC_AP_IHR'. La cosa puo' anche essere fatta in modo preventivo
 
3.
In qualche caso e' necessario applicare la Note 701654 - Deployment aborts due to wrong J2EE Engine login information (setting della pwd di Administrator dal Config Tool)
 
Allegato (sdm_for_patching.bat)
REM sdm for patching NW2004s
StopServer
sdm jstartup "mode=standalone"
sdm j2eeenginestartstop "timeoutmillisec=7200000"
sdm jstartup "mode=integrated"
StartServer

venerdì 23 febbraio 2007

Sap J2EE engine logging

To view global configuration for logging of Sap J2EE engine (from version 6.40):
 
Log onto the Visual Administrator. First navigate to "Global Configuration -> Server -> Kernel -> LogManager" and check whether the properties
 
- ConsoleLogs_UseSapAPI = YES
- ForceSingleTraceFile = YES
- SingleTraceFile_UnrestrictedLocations = [empty]
 
have their preset values. With these properties, you can remove trace entries from the shared file trace, so that they are included in other files in the file system instead of here (./log/defaultTrace.trc). You should only ever do this for development purposes, never in live systems. Use only the default values for these three properties on all server nodes!
 
Caution: If these parameters are set directly on a server node "N" under "Cluster -> Server [N]-> Kernel -> Log Manager", the global settings are overridden. Therefore ensure that the properties on the affected server node have the values described above.
 
In the next step to modify severity level, navigate to the "Log Configurator" Service -> "Locations". Open the branch you want there and change the trace level in the field "severity" to (for example) DEBUG. Select "Copy Severity to Subtree" and save your entry. You have now set all Java components under that tree to the DEBUG level.
 
If you can isolate the error to particular parts of the J2EE engine set the trace level for the desired subcomponents only. In this way, you avoid unnecessary tracing. Make sure that you reset the trace level of the branch selected to ERROR, propagate this to the subtree, and then save.
 
For every server node N, the trace file appears in the file system under
 
/usr/sap/[SID]/[Instanz]/j2ee/cluster/server[N]/log/defaultTrace.[n].trc
 
The n trace files are written cyclically. You can change their size, number, and location in the file system using the kernel properties of the Log Manager (see above). Once a cycle is written, the files are zipped together and then saved for every server node in the directory
 
/usr/sap/[SID]/[Instanz]/j2ee/cluster/server[N]/log/archive
 
Tips and tricks:
- If the problem is so serious that the Visual Administrator Tool no longer starts or its performance is bad, use the "standalone log viewer" to display the log and trace files.
Start this under:
 
/usr/sap/[SID]/[Instanz]/j2ee/admin/logviewer-standalone/logviewer
 
With the standalone log viewer, you can display trace files (a) locally on the hard disk, (b) using the p4 port (5[Inst.Nr]04, for example, 50004 if your J2EE instance number is 00) or (c) connect to a LogViewer server. Detailed information about this is available in the "Logviewer_Userguide.pdf" in the directory mentioned above.
With the standalone log viewer, you cannot change the severity of a location. The standalone log viewer otherwise has exactly the same functions as the "integrated log viewer" of the Visual Administrator.
 
- The "command line log viewer" (lv.bat or lv.sh) is in the same directory as the standalone log viewer. You can use this tool to convert the default trace into a readable format. For example, call the script for this using
 
lv.bat defaultTrace1.trc -o defaultTrace1.txt -format %d %t %l %s %m
 
Use "lv -help" to help you find additional information about this tool.
 
- IMPORTANT: In addition to the default trace files described above, in the directory
 
/usr/sap/[SID]/[Instanz]/j2ee/cluster/server[N]/log/system
 
trace files are especially reserved for the J2EE Engine especially files (server.[i].log, database.[i].log, security.[i].log, userinterface.[i].log). Important information is often contained in "server.[i].log" if errors occur.
Use the mouse to select both the default trace and the "server.[i].log" in the standalone or integrated log. In the context menu of the right mouse key, select "Merge files and display". The displayed trace contains the information of both traces files (sorted according to date).
 
- The "Location" column of the trace files is very important for the developer analysis. Use "drag and drop" to drag the "Location" column of the log viewer to the third position beside the "time" and "date" columns. You can use the context menu of the right mouse button to select which columns should be displayed (click on the column names).
 
- Very often, you only need to send us individual rows of the trace (such as ERROR messages or stack traces) for an initial analysis. To do this, select the corresponding row(s) in the trace file display of the log viewer and choose "Copy" in the context menu (right mouse button). Send us this information directly using the SAP Service Marketplace. You can convert a trace row message (by double-clicking on the row) using the indicator "Use OSS Copy" directly to a format that is 72 characters wide.
 
Release Status: Released for Customer
Released on: 19.11.2004 13:39:22
Priority: Recommendations/additional info