DAYLIGHT SAVING TIME OPTIONS IN SAP SYSTEM

Similar documents
SAP Master Data Governance- Hiding fields in the change request User Interface

Business One in Action - How can we post bank fees and charges while posting Incoming or Outgoing Payment transactions?

Maintaining Different Addresses and Ids for a Business Partner via CRM Web UI

TM111. ERP Integration for Order Management (Shipper Specific) COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Alert Notification in SAP Supply Network Collaboration. SNC Extension Guide

NetWeaver Business Client (NWBC) for Incentives and Commissions Management (ICM)

Table of Contents. How to Find Database Index usage per ABAP Report and Creating an Index

Data Archiving in CRM: a Brief Overview

Enterprise Software - Applications, Technologies and Programming

Integrating Easy Document Management System in SAP DMS

SAPFIN. Overview of SAP ERP Financials COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Understanding HR Schema and PCR with an Example

Data Source Enhancement Using User Exit

HR400 SAP ERP HCM Payroll Configuration

Sending Additional Files from SAP Netweaver PI to third Party System

Process Archiving using NetWeaver Business Process Management

Budget Control by Cost Center

Log Analysis Tool for SAP NetWeaver AS Java

AC200. Basics of Customizing for Financial Accounting: General Ledger, Accounts Receivable, Accounts Payable COURSE OUTLINE

R/3 and J2EE Setup for Digital Signature on Form 16 in HR Systems

UI Framework Logo exchange without skin copy. SAP Enhancement Package 1 for SAP CRM 7.0

Variable Exit in Sap BI How to Start

Third Party Digital Asset Management Integration

Consume an External Web Service in a Nutshell with good old ABAP

How to Create a Support Message in SAP Service Marketplace

Business Requirements... 3 Analytics... 3 Typical Use Cases... 8 Related Content... 9 Copyright... 10

Integration of SAP Netweaver User Management with LDAP

User Experience in Custom Apps

K in Identify the differences between the universe design tool and the information design tool

USDL XG WP3 SAP use case. Kay Kadner

Portfolio and Project Management 5.0: Excel Integration for Financial and Capacity Planning

UI Framework Simple Search in CRM WebClient based on NetWeaver Enterprise Search (ABAP) SAP Enhancement Package 1 for SAP CRM 7.0

UI Framework Task Based User Interface. SAP Enhancement Package 1 for SAP CRM 7.0

How to Add an Attribute to a Case, Record and a Document in NW Folder Management (ex-records Management)

Using User Exit for Variables in BEx Reporting

SAP NetWeaver BRM 7.3

Compliant, Business-Driven Identity Management using. SAP NetWeaver Identity Management and SBOP Access Control. February 2010

Mass Maintenance of Procurement Data in SAP

Single Sign-On between SAP Portal and SuccessFactors

Sample Universe on Microsoft OLAP Cube

How to Schedule Report Execution and Mailing

BW Workspaces Use Cases

Integration of Universal Worklist into Microsoft Office SharePoint

Application Lifecycle Management

SAP Sustainability Solutions: Achieving Customer Strategies

Secure MobiLink Synchronization using Microsoft IIS and the MobiLink Redirector

How To Use the BPC Mass User Management Tool in BPC 10.0 NW

Xcelsius Dashboards on SAP NetWaver BW Implementation Best Practices

Business Process Change Analyzer in SAP Solution Manager 7.1

SAP DSM/BRFPlus System Architecture Considerations

Duet Enterprise Add SAP ERP Reports and SAP BI Queries/Workbooks to Duet Enterprise Configuration

ERP Quotation and Sales Order in CRM WebClient UI Detailed View. SAP Enhancement Package 1 for SAP CRM 7.0 CRM Sales - SFA

Configuring Single Sign-on for SAP HANA

AP Integration with BRFplus VERSION V APRIL SAP AG

How-to-Guide: Middleware Settings for Download of IPC Configuration (KB) Data from R/3 to CRM System

LO Extraction Part 1: SD Application Short Overview

Accounts Receivable. SAP Best Practices

Intelligent Business Operations Chapter 1: Overview & Strategy

How To Use the ESR Eclipse Tool with the Enterprise Service Repository

SAP Business ByDesign Reference Systems. Scenario Outline. SAP ERP Integration Scenarios

Download and Install Crystal Reports for Eclipse via the Eclipse Software Update Manager

Fixed Asset in SAP Business One 9.0

SAP Central Process Scheduling (CPS) 8.0 by Redwood

SAP Service Tools for Performance Analysis

Sales Planning Detailed View. SAP Enhancement Package 1 for SAP CRM 7.0 CRM Sales - SFA

OData in a Nutshell. August 2011 INTERNAL

SAP Cloud Strategy - Timeless Software. Frank Stienhans on behalf of Kaj van de Loo SAP

Learning Series: SAP NetWeaver Process Orchestration, secure connectivity add-on 1c SFTP Adapter

How to Configure Access Control for Exchange using PowerShell Cmdlets A Step-by-Step guide

Supporting SAP POS Best Practices Setting Log File Sizes and Retention

Installation Guide Customized Installation of SQL Server 2008 for an SAP System with SQL4SAP.VBS

Production Subcontracting (External Processing) SAP Best Practices

Project Governance The Role Of The Business Process Owner

Unified Service Description Language Enabling the Internet of Services

Delta Queue Demystification

Query, Read, Create and Update CLOUD FOR CUSTOMER ODATA SERVICE QUERY, READ, CREATE AND UPDATE

SAP Portfolio and Project Management

Run SAP like a Factory

Quick Guide EDI/IDoc Interfacing to SAP ECC from External System

SOP through Long Term Planning Transfer to LIS/PIS/Capacity. SAP Best Practices

Finding the Leak Access Logging for Sensitive Data. SAP Product Management Security

Certificate SAP INTEGRATION CERTIFICATION

LO Extraction Part 2 Database Update Logic

RUN BETTER Become a Best-Run Business with Remote Support Platform for SAP Business One

SAP HANA Cloud Integration Document Version: Template Guide for SAP Sales and Operations Planning

Configuring Distribution List in Compliant User Provisioning

Ariba Network Integration to SAP ECC

ABAP Custom Code Security

SAP How-To Guide: Develop a Custom Master Data Object in SAP MDG (Master Data Governance)

BW362. SAP BW powered by SAP HANA COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

Learning Series: SAP NetWeaver Process Orchestration, business to business add-on EDI Separator Adapter

How to Set Up an Authorization for a Business Partner in Customer Relationship Management (CRM) Internet Sales: Sample Case

Supplier Master Data Governance

Matthias Steiner SAP. SAP HANA Cloud Platform A guided tour

SAP NetWeaver BPM Tutorial for Beginners: My Name and Age BPM Tutorial

BICS Connectivity for Web Intelligence in SAP BI 4.0. John Mrozek / AGS December 01, 2011

Next Generation Digital Banking with SAP

Implementing SSO between the Enterprise Portal and the EPM Add-In

Analyzing Sales Data for Choosing Forecast Strategies

Transcription:

DAYLIGHT SAVING TIME OPTIONS IN SAP SYSTEM WHITE PAPER Version: 06/09/2011 Applies to: SAP NetWeaver, BC-ABA-LA Syntax, Compiler, Runtime, BC-SRV-TIM Time and Scheduling functions. Summary There are three ways to deal with Daylight Saving Time: A Two hour downtime method: Completely avoid running SAP system during this double hour. B One hour downtime method: See Note 102088 C Zero downtime method: Use the default stretched time.. Author: Zhi Lue Company: SAP AG Created on: 24 January 2012 Author Bio Zhi Lue works in development NetWeaver, SAP AG, where he is responsible in program management. 2012 SAP AG 1

Table of Contents What is the problem?... 3 Solutions... 4 Information for the ABAP Developer... 5 Minor Defects:... 5 What Every ABAP Developer Should Do... 5 Class CL_ABAP_TSTMP may help... 5 Useful links for the ABAP Developer... 6 Related SAP Notes... 6 Copyright... 7 2012 SAP AG 2

What is the problem? For time zones with daylight saving time (DST), at the end of DST, you are required to move your clock one hour backwards. For example, in Europe, on the last Sunday in October, the clock at DST 2:59:59 will be reset in the next second to winter time 2:00:00. The hour running from 2:00:00 to 2:59:59 on the wall (local time) will be run twice. Like all the software that deal with local time will be confused when the computer clock traverses twice through the same points in time, SAP system is no exception. With many delivered SAP systems, the "system time", that is, "wall clock time", accessible via SY-UZEIT, SY-DATUM, is used for control-relevant timestamps. With double hours this could lead to consistency problems. If, for example, timestamp1 is taken at point 2:30 summer time and timestamp2 is taken at point 2:15 winter time, the timestamp comparison timestamp1 > timestamp2 leads to an incorrect result. These inconsistent records are stored in the database, and cannot be solved by system reboot. Example: We know, for example, that there is a problem with generating ABAP caused by the "double hours". A DDIC object, which should be regenerated, may not be triggered. Similar cases exist in APAP applications as well. The first suggestion from SAP was, to shut down SAP system for the entire duration of the double hour, and bring it up only after the double hour has passed. Thus, the SAP Kernel does not have to deal with any possible mismatch of standard time and local time. However, we know that many customers don t do this. The inconsistencies that arose were solved by support colleagues, presumably without ever having found out the real reason for them. Therefore, SAP has invented the so-called "stretched time" method. Here, the system time is slowed down the time by half, during the double hour, so that the 2 hour period is treated as one hour. The "double hour" is in this case just one continuous half-speed hour. "Stretched time" has the advantage that it is continuous and the inconsistency problems mentioned above cannot occur. But it has a disadvantage. It is not the correct time. It does not match the "wall clock time". Two types of error can occur: 1. Applications that synchronize the stretched time with an external "wall clock time", eg - by RFC in other systems (SAP or non-sap) - by data storage (file, DB,...), which was filled by others (non-sap) applications - 2. Applications where the time must be correct, for example: - Hospital: The time when a patient arrived at a hospital must be correct (a real example for a hospital in Austria) However, we have decided to make the "stretched time" the default. All customers have this setting, so that the inconsistency problems no longer occur. 2012 SAP AG 3

Solutions There are three ways to deal with Daylight Saving Time. The method that you adopt will depend on your specific environment well as your tolerance for system downtime. A Two hour downtime method: Completely avoid running SAP system during this double hour. B One hour downtime method: See Note 102088 C Zero downtime method: Use the default stretched time. For customers who choose the way A, a switch is provided to shut off the stretched time. For details please see Note 102088. As the "stretched time" is set as the default, all customers should decide for themselves whether they can accept the disadvantages of the "stretched time". If they can, the system can continue to run. If not, the customer needs to choose way either A or B. Be aware of that, "stretched time" is first introduced since release 46C. For older releases there is no such a choice. How to code with stretched time by your own, so that it could run during the double hours, please see the Information for the ABAP Developer. We know of at least one example of an application which cannot work with the "stretched time": Component "IS-H," SAP Patient Management (see customer message 0000298268 120 050 410 2005). "Letting the double hours run first, and then dealing with any possible errors" is a rather risky approach. Type 1) errors are not very likely to occur, but type 2) errors are almost certain to occur. You need to analyze your situation exactly in order to choose the right method for you. 2012 SAP AG 4

Information for the ABAP Developer In general, most of the ABAP components should work with the retarded time model. In theory, there are some cases where this may lead to problems. These cases are listed below. Serious Problems: Statically stored offsets of the system time to any other time not containing the retarded time model; Comparison of time spans of system time stamps (retarded time) with UTC time stamps; Transformations from UTC time stamps to system time stamps (retarded time) lead to the "wrong" results. This should not happen very frequently, since the information about the system time zone is not easy to find (table TTZCU); Real time problems (statistics, timeout checks) ; Comparisons of system times or time stamps (retarded time) and external local times: Examples: 1. storing the difference between SY-TIMLO and SY-UZEIT and thinking it will remain constant. 2. comparing SY-UZEIT with times yielded from ABAP time zones: a. using "GET TIME STAMP FIELD tstmp TIME ZONE anytimezone" b. then converting time stamp "tstmp" to a date/time pair with "CONVERT TIME STAMP tstmp INTO DATE date TIME time.". c. Finally, calculating the difference between "time" and SY-UZEIT, thinking that it will remain constant. Minor Defects: presentation of the system time (retarded time) to the user selections within the system time (retarded time) If you detect more problems like the above that may also affect other components please do not hesitate to contact us. What Every ABAP Developer Should Do Please refer to the ToDo-List for the serious problems mentioned above. After that you should consider whether the minor defects mentioned above might be relevant. Class CL_ABAP_TSTMP may help In the class CL_ABAP_TSTMP you will find a few static methods that may help you if you have encountered problems in your project, that is.: IsDoubleInterval: Method to detect the "Double Interval" SystemTstmp_Syst2Loc: Method to convert from retarded (system) time to local wall clock time SystemTstmp_Loc2Syst: Method to convert from local wall clock time to retarded (system) time SystemTstmp_UTC2Syst: Method to convert from UTC time to retarded (system) time SystemTstmp_Syst2UTC: Method to convert from retarded (system) time to UTC time. If you need even more functionality please do not hesitate to contact us. 2012 SAP AG 5

Useful links for the ABAP Developer NetWeaver doc: DST Safe Kernel (SAP Library - SAP High Availability) Blogs: Wiki: Code sample: SAP Network Blog: ABAP Geek 8 Summertime (Blues) SAP CDT - DateTime SAP Global Data Types Retrieval Tool Related SAP Notes Note 7417 - Conversion between winter time and daylight saving time Note 102088 - Reducing downtime when changing from summer to winter time Note 398374 - Problems when converting summer time <-> winter time Note 950114 - Profile parameter zdate/dstswitch_contloctime Note 438660 - End of daylight-saving time coming soon, be ready! 2012 SAP AG 6

Copyright Copyright 2012 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9, iseries, pseries, xseries, zseries, eserver, z/vm, z/os, i5/os, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server, PowerVM, Power Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER, OpenPower, PowerPC, BatchPipes, BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX, Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM Corporation. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries. Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Oracle Corporation. JavaScript is a registered trademark of Oracle Corporation, used under license for technology invented and implemented by Netscape. SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP Business ByDesign, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries. Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects S.A. in the United States and in other countries. Business Objects is an SAP company. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. 2012 SAP AG 7