Friday, 17 June 2022

Details about Savepoint in SAP HANA database


 Savepoints

what is savepoint in the context of SAP HANA database and how it works.

Changes of pages from the last savepoint were written to the converter table (mapping of physical and logical pages).

If a savepoint is triggered this data will be read out of the table and the changes persisted to the data area.

In every of these procedures there is a critical phase. In this phase the locks of the affected objects taking place to identify the log position.

If the critical phase takes too long, the DB decides to trigger it at a later point in time when the workload is lower.

The time limit for the critical phase will be defined by the parameter "savepoint_pre_critical_flush_retry_threshold". HANA will try to under beat this value (default: 3 seconds). If this value is reached the DB is try it to a later point in time.

To avoid the risk of an endless loop there is a parameter savepoint_max_pre_critical_flush_duration => by default 900 seconds. The critical phase will be triggered hard after this time.

The topic of savepoint is more complex as just write changes to disk and some locks.

More details can be found in HA200 training or in books like “HANA Administration” (*).

For now we must not know more about it:

Changes from the last savepoint will be persisted

There is something called critical phase which should not take long time limit for critical phase hard trigger after 900 sec without savepoint.

Thursday, 16 June 2022

How to Switch HANA Database Log Mode, Normal or Overwrite

 


SAP HANA database, we can run the log modes either in normal or overwrite. You can refer to below details and differences between the both log modes.

Log Modes:-

Normal:-

1. Default value and it is recommended to set as normal.
2. Log segments are backup automatically.

Overwrite:-
1. It is not recommended for the production system.
2. No log backups are created.
3. Log area space will not grow excessively.

Open SAP HANA Studio. Login With SYSTEM DB with required rights then open Configuration tab    --> Global.ini --> Persistence --> Log_mode or use the search filter for log_mode.


You can now change the value from normal to overwrite or vice versa.


Click on Save and it will immediately activate the changes.









Thursday, 9 June 2022

How to Start SAP AS Java to Start Automatically

 



If you want the startup SAP AS JAVA to automatically when the operating system is started.

Go to the system profiles directory

/usr/sap/<SID>/SYS/profile

Open the DEFAULT.PFL file with a text editor.

Also add the below line to the end of the file,

Autostart=1

Save the DEFAULT.PFL and restart the SAP AS JAVA.

Now when ever we start the SAP JAVA Server  Operating System level Server will Start automatically.

Thursday, 3 February 2022

How to enable Transaction code field on SAP webgui?

 


How to enable Transaction code field on SAP webgui?


or 

How to turn on the OK Code field in the SAP Webgui?

By default, the OK Code field or Transaction code field is not visible in SAP Belize theme - mean that you cannot enter a transaction code on the SAP webgui screen.




In order to display the OK Code field in the SAP Belize theme, you have to navigate through the toolbar menu and click on "Show OK Code Field" as per below path:

More > GUI Actions and Settings > Settings



Enable the --> Show ok field and save.






Now we can able see the Transaction Code field on SAP Webgui.

A few things to remember:

This is a one time configuration (as long as you don't clear your browser cache) and has to be done individually for each user.

If you clear your browser cache, the OK Code field will be hidden again.

The OK code field is NOT available in the SAP S/4HANA Cloud Edition. 





Thursday, 7 October 2021

How to Activate/Deactivate SAP Table Logging

 

You can use parameter rec/client to activate or deactivate the table logging (changes) in the SAP system. You can set the parameter via transaction code RZ10.

Find the below Options for activate and deactivate.

rec/client = off

Deactivate the table logging.

rec/client = all

Activate the table logging for the entire clients/system.

rec/client = clientNo.xxx   like 000/100/200 etc

 Activate the table logging for only specific client.

To see the logs, execute transaction code SCU3. Click on Evaluate Logs.





If you are looking for a step to disable logging on a specific table, follow below steps,

In transaction code SE13, click on change mode. Uncheck the log data changes. Activate to apply the changes.


Disable Logging for several tables:

Until release SAP_BASIS 731 use the procedure described in SAP Knowledge Base Article 2164574

As of release SAP_BASIS 740 use the procedure described in SAP Knowledge Base Article 2341818

Note:
Recommended to set the parameter rec/client with option client specific. If you set the parameter with all options, performance issue will be arise.

SAP Note 1916Logging of table changes in R/3
SAP Note 2437986 – SCU3 | How to enable logging in the system
SAP Note 3000730 – Impact on enabling table logging with profile parameter rec/client
SAP Note 1834803 – Disable logging of changes on customizing tables




Wednesday, 6 October 2021

SAP Technical Job Repository in SAP S/4HANA

 



SAP Technical Job Repository  in SAP S/4HANA


SAP Standard Jobs Schedule function (transaction SM36) is obsolete in SAP S/4HANA for SAP Technical jobs. Instead of it, we have a new easy way: Technical Job Repository. Technical Job Repository carries out the scheduling of periodic technical sap jobs in the client also this mechanism is carried out automatically by the system. You do not need any interaction and scheduling, unlike the earlier Standard Jobs function in SM36.

New Job Repository function calls the transaction SJOBREPO. SJOBREPO displays an overview of all job definitions delivered and scheduled by SAP in the technical job repository. You can use SJOBREPO to change a job definition within certain limits or to completely deactivate it.



There is a hourly working trigger for technical background job generation. SAP Kernel parameter is responsible for this (rdisp/job_repo_activate_time). These generations logs are stored in table BTCCTL for the last execution time.


More Details refere Snote : 2190119 also find the attachment PDF in this snote.