SAP LOCATION_UPDATE_CUSTOMIZING_WB Function Module for Updadte Plant Data Customizing
LOCATION_UPDATE_CUSTOMIZING_WB is a standard location update customizing wb SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Updadte Plant Data Customizing 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 location update customizing wb FM, simply by entering the name LOCATION_UPDATE_CUSTOMIZING_WB into the relevant SAP transaction such as SE37 or SE38.
Function Group: WR01
Program Name: SAPLWR01
Main Program: SAPLWR01
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update: 1

Function LOCATION_UPDATE_CUSTOMIZING_WB 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 'LOCATION_UPDATE_CUSTOMIZING_WB'"Updadte Plant Data Customizing.
EXPORTING
I_T001W = "
I_TCURM = "
I_REF_KUNNR = "
* I_ZAV_FLAG = ' ' "
* I_ADRC_CHNG = ' ' "Checkbox
* I_TRANSPORT = ' ' "
* I_TRANSPORT_ORDER = ' ' "
I_YT001W = "
I_YT001K = "
I_T001K = "
* I_VKBUR = "Sales Office
* I_VKBUR_OLD = "Sales Office
I_REF_WKFIL = "
* I_SADR = "
* I_YSADR = "
TABLES
* PI_T_CTAB = "
IMPORTING Parameters details for LOCATION_UPDATE_CUSTOMIZING_WB
I_T001W -
Data type: T001WOptional: No
Call by Reference: No ( called with pass by value option)
I_TCURM -
Data type: TCURMOptional: No
Call by Reference: No ( called with pass by value option)
I_REF_KUNNR -
Data type: T001W-KUNNROptional: No
Call by Reference: No ( called with pass by value option)
I_ZAV_FLAG -
Data type: WR02D-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ADRC_CHNG - Checkbox
Data type: WR02D-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TRANSPORT -
Data type: WR02D-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TRANSPORT_ORDER -
Data type: E070-TRKORRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_YT001W -
Data type: T001WOptional: No
Call by Reference: No ( called with pass by value option)
I_YT001K -
Data type: T001KOptional: No
Call by Reference: No ( called with pass by value option)
I_T001K -
Data type: T001KOptional: No
Call by Reference: No ( called with pass by value option)
I_VKBUR - Sales Office
Data type: WRF1-VKBUR_WRKOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VKBUR_OLD - Sales Office
Data type: WRF1-VKBUR_WRKOptional: Yes
Call by Reference: No ( called with pass by value option)
I_REF_WKFIL -
Data type: WR02D-REF_WKFILOptional: No
Call by Reference: No ( called with pass by value option)
I_SADR -
Data type: SADROptional: Yes
Call by Reference: No ( called with pass by value option)
I_YSADR -
Data type: SADROptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for LOCATION_UPDATE_CUSTOMIZING_WB
PI_T_CTAB -
Data type: WR04DOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for LOCATION_UPDATE_CUSTOMIZING_WB 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_i_t001w | TYPE T001W, " | |||
| lt_pi_t_ctab | TYPE STANDARD TABLE OF WR04D, " | |||
| lv_i_tcurm | TYPE TCURM, " | |||
| lv_i_ref_kunnr | TYPE T001W-KUNNR, " | |||
| lv_i_zav_flag | TYPE WR02D-SELKZ, " SPACE | |||
| lv_i_adrc_chng | TYPE WR02D-SELKZ, " SPACE | |||
| lv_i_transport | TYPE WR02D-SELKZ, " SPACE | |||
| lv_i_transport_order | TYPE E070-TRKORR, " SPACE | |||
| lv_i_yt001w | TYPE T001W, " | |||
| lv_i_yt001k | TYPE T001K, " | |||
| lv_i_t001k | TYPE T001K, " | |||
| lv_i_vkbur | TYPE WRF1-VKBUR_WRK, " | |||
| lv_i_vkbur_old | TYPE WRF1-VKBUR_WRK, " | |||
| lv_i_ref_wkfil | TYPE WR02D-REF_WKFIL, " | |||
| lv_i_sadr | TYPE SADR, " | |||
| lv_i_ysadr | TYPE SADR. " |
|   CALL FUNCTION 'LOCATION_UPDATE_CUSTOMIZING_WB' "Updadte Plant Data Customizing |
| EXPORTING | ||
| I_T001W | = lv_i_t001w | |
| I_TCURM | = lv_i_tcurm | |
| I_REF_KUNNR | = lv_i_ref_kunnr | |
| I_ZAV_FLAG | = lv_i_zav_flag | |
| I_ADRC_CHNG | = lv_i_adrc_chng | |
| I_TRANSPORT | = lv_i_transport | |
| I_TRANSPORT_ORDER | = lv_i_transport_order | |
| I_YT001W | = lv_i_yt001w | |
| I_YT001K | = lv_i_yt001k | |
| I_T001K | = lv_i_t001k | |
| I_VKBUR | = lv_i_vkbur | |
| I_VKBUR_OLD | = lv_i_vkbur_old | |
| I_REF_WKFIL | = lv_i_ref_wkfil | |
| I_SADR | = lv_i_sadr | |
| I_YSADR | = lv_i_ysadr | |
| TABLES | ||
| PI_T_CTAB | = lt_pi_t_ctab | |
| . " LOCATION_UPDATE_CUSTOMIZING_WB | ||
ABAP code using 7.40 inline data declarations to call FM LOCATION_UPDATE_CUSTOMIZING_WB
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 KUNNR FROM T001W INTO @DATA(ld_i_ref_kunnr). | ||||
| "SELECT single SELKZ FROM WR02D INTO @DATA(ld_i_zav_flag). | ||||
| DATA(ld_i_zav_flag) | = ' '. | |||
| "SELECT single SELKZ FROM WR02D INTO @DATA(ld_i_adrc_chng). | ||||
| DATA(ld_i_adrc_chng) | = ' '. | |||
| "SELECT single SELKZ FROM WR02D INTO @DATA(ld_i_transport). | ||||
| DATA(ld_i_transport) | = ' '. | |||
| "SELECT single TRKORR FROM E070 INTO @DATA(ld_i_transport_order). | ||||
| DATA(ld_i_transport_order) | = ' '. | |||
| "SELECT single VKBUR_WRK FROM WRF1 INTO @DATA(ld_i_vkbur). | ||||
| "SELECT single VKBUR_WRK FROM WRF1 INTO @DATA(ld_i_vkbur_old). | ||||
| "SELECT single REF_WKFIL FROM WR02D INTO @DATA(ld_i_ref_wkfil). | ||||
Search for further information about these or an SAP related objects