SAP TZ_SYSTEM_TO_LOCAL Function Module for
TZ_SYSTEM_TO_LOCAL is a standard tz system to local SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for tz system to local FM, simply by entering the name TZ_SYSTEM_TO_LOCAL into the relevant SAP transaction such as SE37 or SE38.
Function Group: TZN0
Program Name: SAPLTZN0
Main Program:
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TZ_SYSTEM_TO_LOCAL pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'TZ_SYSTEM_TO_LOCAL'".
EXPORTING
* DATE_SYSTEM = '00000000' "
* TIMESTAMP_SYSTEM = '00000000000000' "
TIMEZONE = "Time Zone
* TIME_SYSTEM = '000000' "
IMPORTING
DATE_LOCAL = "
TIMESTAMP_LOCAL = "
TIME_LOCAL = "
EXCEPTIONS
NO_PARAMETERS = 1 TOO_MANY_PARAMETERS = 2 CONVERSION_ERROR = 3
IMPORTING Parameters details for TZ_SYSTEM_TO_LOCAL
DATE_SYSTEM -
Data type: SY-DATUMDefault: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TIMESTAMP_SYSTEM -
Data type: TTZDATA-TIMESTAMPDefault: '00000000000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TIMEZONE - Time Zone
Data type: TTZDATA-TZONEOptional: No
Call by Reference: No ( called with pass by value option)
TIME_SYSTEM -
Data type: SY-UZEITDefault: '000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for TZ_SYSTEM_TO_LOCAL
DATE_LOCAL -
Data type: SY-DATLOOptional: No
Call by Reference: No ( called with pass by value option)
TIMESTAMP_LOCAL -
Data type: TTZDATA-TIMESTAMPOptional: No
Call by Reference: No ( called with pass by value option)
TIME_LOCAL -
Data type: SY-TIMLOOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_PARAMETERS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TOO_MANY_PARAMETERS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CONVERSION_ERROR - Conversion Error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TZ_SYSTEM_TO_LOCAL Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_date_local | TYPE SY-DATLO, " | |||
| lv_date_system | TYPE SY-DATUM, " '00000000' | |||
| lv_no_parameters | TYPE SY, " | |||
| lv_timestamp_local | TYPE TTZDATA-TIMESTAMP, " | |||
| lv_timestamp_system | TYPE TTZDATA-TIMESTAMP, " '00000000000000' | |||
| lv_too_many_parameters | TYPE TTZDATA, " | |||
| lv_timezone | TYPE TTZDATA-TZONE, " | |||
| lv_time_local | TYPE SY-TIMLO, " | |||
| lv_conversion_error | TYPE SY, " | |||
| lv_time_system | TYPE SY-UZEIT. " '000000' |
|   CALL FUNCTION 'TZ_SYSTEM_TO_LOCAL' " |
| EXPORTING | ||
| DATE_SYSTEM | = lv_date_system | |
| TIMESTAMP_SYSTEM | = lv_timestamp_system | |
| TIMEZONE | = lv_timezone | |
| TIME_SYSTEM | = lv_time_system | |
| IMPORTING | ||
| DATE_LOCAL | = lv_date_local | |
| TIMESTAMP_LOCAL | = lv_timestamp_local | |
| TIME_LOCAL | = lv_time_local | |
| EXCEPTIONS | ||
| NO_PARAMETERS = 1 | ||
| TOO_MANY_PARAMETERS = 2 | ||
| CONVERSION_ERROR = 3 | ||
| . " TZ_SYSTEM_TO_LOCAL | ||
ABAP code using 7.40 inline data declarations to call FM TZ_SYSTEM_TO_LOCAL
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single DATLO FROM SY INTO @DATA(ld_date_local). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_date_system). | ||||
| DATA(ld_date_system) | = '00000000'. | |||
| "SELECT single TIMESTAMP FROM TTZDATA INTO @DATA(ld_timestamp_local). | ||||
| "SELECT single TIMESTAMP FROM TTZDATA INTO @DATA(ld_timestamp_system). | ||||
| DATA(ld_timestamp_system) | = '00000000000000'. | |||
| "SELECT single TZONE FROM TTZDATA INTO @DATA(ld_timezone). | ||||
| "SELECT single TIMLO FROM SY INTO @DATA(ld_time_local). | ||||
| "SELECT single UZEIT FROM SY INTO @DATA(ld_time_system). | ||||
| DATA(ld_time_system) | = '000000'. | |||
Search for further information about these or an SAP related objects