SAP SD_TZONE_ADDRESS Function Module for NOTRANSL: Zeitzone einer Adresse ermitteln









SD_TZONE_ADDRESS is a standard sd tzone address SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Zeitzone einer Adresse ermitteln processing and below is the pattern details for this FM, 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 sd tzone address FM, simply by entering the name SD_TZONE_ADDRESS into the relevant SAP transaction such as SE37 or SE38.

Function Group: V03C
Program Name: SAPLV03C
Main Program: SAPLV03C
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SD_TZONE_ADDRESS 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 'SD_TZONE_ADDRESS'"NOTRANSL: Zeitzone einer Adresse ermitteln
EXPORTING
* IF_ADDRNUMBER = "Address Number
* IF_CUSTOMER = "Debtor Number 1
* IF_PLANT = "Plant

IMPORTING
EF_TIMEZONE = "Address Time Zone

EXCEPTIONS
PARAMETER_ERROR = 1 NO_TIMEZONE = 2 CUSTOMER_DOES_NOT_EXIST = 3 PLANT_DOES_NOT_EXIST = 4 ADDRESS_DOES_NOT_EXIST = 5 INTERNAL_ERROR = 6
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLV03C_APOINT_001 Scheduling: Populate User Exit with Additional R/3 Attributes

IMPORTING Parameters details for SD_TZONE_ADDRESS

IF_ADDRNUMBER - Address Number

Data type: ADRC-ADDRNUMBER
Optional: Yes
Call by Reference: Yes

IF_CUSTOMER - Debtor Number 1

Data type: KNA1-KUNNR
Optional: Yes
Call by Reference: Yes

IF_PLANT - Plant

Data type: T001W-WERKS
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for SD_TZONE_ADDRESS

EF_TIMEZONE - Address Time Zone

Data type: ADRC-TIME_ZONE
Optional: No
Call by Reference: Yes

EXCEPTIONS details

PARAMETER_ERROR -

Data type:
Optional: No
Call by Reference: Yes

NO_TIMEZONE -

Data type:
Optional: No
Call by Reference: Yes

CUSTOMER_DOES_NOT_EXIST -

Data type:
Optional: No
Call by Reference: Yes

PLANT_DOES_NOT_EXIST -

Data type:
Optional: No
Call by Reference: Yes

ADDRESS_DOES_NOT_EXIST -

Data type:
Optional: No
Call by Reference: Yes

INTERNAL_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SD_TZONE_ADDRESS 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_ef_timezone  TYPE ADRC-TIME_ZONE, "   
lv_if_addrnumber  TYPE ADRC-ADDRNUMBER, "   
lv_parameter_error  TYPE ADRC, "   
lv_if_customer  TYPE KNA1-KUNNR, "   
lv_no_timezone  TYPE KNA1, "   
lv_if_plant  TYPE T001W-WERKS, "   
lv_customer_does_not_exist  TYPE T001W, "   
lv_plant_does_not_exist  TYPE T001W, "   
lv_address_does_not_exist  TYPE T001W, "   
lv_internal_error  TYPE T001W. "   

  CALL FUNCTION 'SD_TZONE_ADDRESS'  "NOTRANSL: Zeitzone einer Adresse ermitteln
    EXPORTING
         IF_ADDRNUMBER = lv_if_addrnumber
         IF_CUSTOMER = lv_if_customer
         IF_PLANT = lv_if_plant
    IMPORTING
         EF_TIMEZONE = lv_ef_timezone
    EXCEPTIONS
        PARAMETER_ERROR = 1
        NO_TIMEZONE = 2
        CUSTOMER_DOES_NOT_EXIST = 3
        PLANT_DOES_NOT_EXIST = 4
        ADDRESS_DOES_NOT_EXIST = 5
        INTERNAL_ERROR = 6
. " SD_TZONE_ADDRESS




ABAP code using 7.40 inline data declarations to call FM SD_TZONE_ADDRESS

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 TIME_ZONE FROM ADRC INTO @DATA(ld_ef_timezone).
 
"SELECT single ADDRNUMBER FROM ADRC INTO @DATA(ld_if_addrnumber).
 
 
"SELECT single KUNNR FROM KNA1 INTO @DATA(ld_if_customer).
 
 
"SELECT single WERKS FROM T001W INTO @DATA(ld_if_plant).
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!