As many SAP transactions are date-bound the date entered on the screen is validated against the system date. For example, if Testimony records a financial posting on 1st May, but the playback is run on 5th May, then the posting transaction will fail in the playback with a “Cannot post in the past error” as the playback will try to post with the recorded date of 1st May.
Therefore, to enable the playback to run smoothly then the date and time, primarily the date of the system needs to be reset to the same as the recording. To achieve this Basis Technologies recommends that you utilise TimeShiftX as per the steps below.
Firstly, you should ensure that you are familiar with the manual for the correct version of the TimeShiftX product for your Operating System.
Identify all the OS user accounts that run the SAP system, the DB, and any OS-level users that facilitate the operation of the system, such as SIDADM, SAPserviceSID, SMDAgent, etc . Time travel will need to be activated for these accounts later in the process.
Shutdown both the SAP system app servers and the Database.
Note: replace sidadm with the OS User accounts identified as running the SAP system.
# su - <sid>adm
$ tsx set -u <sid>adm -d -4
The time and date should be four days in the past. The number after the -d indicates how many days you want to shift time by -4 means minus 4 days.
When the SAP target system is restarted you should check the target system is time travelling correctly as per the topic here.
Again should you require more complex time travelling on your system please consult the TimeShiftX manual for your version of that product.
To reset the time travelling of a system the syntax is as below:
$ tsx reset
The present time and date should be displayed.
If you have serious issues then please email email@example.com