Ansicht
Dokumentation

BANK_TMC_GENERAL_ACCESS - Include BANK_TMC_GENERAL_ACCESS

BANK_TMC_GENERAL_ACCESS - Include BANK_TMC_GENERAL_ACCESS

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Purpose

To ensure meaningful use of test environments, it is often necessary to be able to simulate the system date, system time, time stamps and so on, at the points where operational or process-controlling queries are made for data and time details. These requirements are realized in package BANK_TMC.

Short Description

The simulation details are defined as the difference from the actual time in days and seconds. This means it is possible to simulate time periods of any length in the future and past, across several days with real time zone processing, also with several application servers in different time zones.

Under no circumstances may it be possible to inadvertently use simulated time details in productive operation. For this reason, function modules for accessing simulated time difference are not supplied tothe customer. The call up location of the function module required for the simulation (BANK_TMC_DB_DIM_GET) involves an existence check accordingly.

Additional security is provided by the query for the live indicator (database table T000) for the current client. This means that simulation is only possible if the function module exists in the system and the live indicator is not set for the client.

Warning
Tests involving time differences can result in side effects of varying complexity. These can affect any other following tests and falsify their results.Depending on the application, inconsistencies in the data positions of the test environment can also occur. Always bear these side effects in mind.For optimum test preparation, it is advisable to create a new test client.

The functions for determining the simulated time details are implemented in a global class. This class has the protected attributes

  • DIFFERENCE_DAYS ,,(difference: number of days)
  • DIFFERENCE_SECONDS ,,(difference: number of seconds)
  • SIMULATION ,,,,(pushbutton for the simulation mode X/space)

and provides methods for creating the simulated time details.

Macros are provided via include BANK_TMC_GENERAL_ACCESS that return either actual or simulated time details, depending on the SIMULATION attribute. You can use these macros instead of the following accesses:

  1. Access to SY-DATUM
  2. Access to SY-TIME
  3. Access to SY-DATLO
  4. Access to SY-TIMLO
  5. Get Time Stamp field
  6. Get Time field (get time without the supplement field remains unchanged)

Integration

Prerequisites

Features

Selection

Standard Variants

Output

Activities

Example






General Data in Customer Master   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 3201 Date: 20240520 Time: 065325     sap01-206 ( 58 ms )