SAP SITE_ALE_DISTRIBUTION Function Module for NOTRANSL: ALE-Verteilung retailspezifischer Anwendungsdaten
SITE_ALE_DISTRIBUTION is a standard site ale distribution 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: ALE-Verteilung retailspezifischer Anwendungsdaten 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 site ale distribution FM, simply by entering the name SITE_ALE_DISTRIBUTION into the relevant SAP transaction such as SE37 or SE38.
Function Group: WR26
Program Name: SAPLWR26
Main Program: SAPLWR26
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SITE_ALE_DISTRIBUTION 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 'SITE_ALE_DISTRIBUTION'"NOTRANSL: ALE-Verteilung retailspezifischer Anwendungsdaten.
EXPORTING
I_WRF1 = "Plant Data
* I_T001W = "Plants/branches
* I_WBPRO = "Profile for value-based inventory management
IMPORTING
O_RETURN_CODE = "Message Code
TABLES
* I_WRF3 = "Delivering plant, time-dependent
* O_ERROR_TABLE = "Return Parameter
* I_WRF4 = "Plant/ Departments
* I_WRF5 = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_WRF6 = "Plant / material group
* I_T023W = "Control Table for Value-Only Material Determination
* I_T023X = "Exception Table for Value-Only Material Determination
* I_WRF12 = "Plant / receiving points
* I_KNVA = "Customer Master Unloading Points
* I_KNVV = "Customer Master Sales Data
IMPORTING Parameters details for SITE_ALE_DISTRIBUTION
I_WRF1 - Plant Data
Data type: WRF1Optional: No
Call by Reference: No ( called with pass by value option)
I_T001W - Plants/branches
Data type: T001WOptional: Yes
Call by Reference: No ( called with pass by value option)
I_WBPRO - Profile for value-based inventory management
Data type: T001K-WBPROOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SITE_ALE_DISTRIBUTION
O_RETURN_CODE - Message Code
Data type: BAPIRETURN-CODEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SITE_ALE_DISTRIBUTION
I_WRF3 - Delivering plant, time-dependent
Data type: WRF3Optional: Yes
Call by Reference: Yes
O_ERROR_TABLE - Return Parameter
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
I_WRF4 - Plant/ Departments
Data type: WRF4Optional: Yes
Call by Reference: Yes
I_WRF5 - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: WRF5Optional: Yes
Call by Reference: Yes
I_WRF6 - Plant / material group
Data type: WRF6Optional: Yes
Call by Reference: Yes
I_T023W - Control Table for Value-Only Material Determination
Data type: T023WOptional: Yes
Call by Reference: Yes
I_T023X - Exception Table for Value-Only Material Determination
Data type: T023XOptional: Yes
Call by Reference: Yes
I_WRF12 - Plant / receiving points
Data type: WRF12Optional: Yes
Call by Reference: Yes
I_KNVA - Customer Master Unloading Points
Data type: KNVAOptional: Yes
Call by Reference: Yes
I_KNVV - Customer Master Sales Data
Data type: KNVVOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for SITE_ALE_DISTRIBUTION 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_wrf1 | TYPE WRF1, " | |||
| lt_i_wrf3 | TYPE STANDARD TABLE OF WRF3, " | |||
| lv_o_return_code | TYPE BAPIRETURN-CODE, " | |||
| lt_o_error_table | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lt_i_wrf4 | TYPE STANDARD TABLE OF WRF4, " | |||
| lv_i_t001w | TYPE T001W, " | |||
| lt_i_wrf5 | TYPE STANDARD TABLE OF WRF5, " | |||
| lv_i_wbpro | TYPE T001K-WBPRO, " | |||
| lt_i_wrf6 | TYPE STANDARD TABLE OF WRF6, " | |||
| lt_i_t023w | TYPE STANDARD TABLE OF T023W, " | |||
| lt_i_t023x | TYPE STANDARD TABLE OF T023X, " | |||
| lt_i_wrf12 | TYPE STANDARD TABLE OF WRF12, " | |||
| lt_i_knva | TYPE STANDARD TABLE OF KNVA, " | |||
| lt_i_knvv | TYPE STANDARD TABLE OF KNVV. " |
|   CALL FUNCTION 'SITE_ALE_DISTRIBUTION' "NOTRANSL: ALE-Verteilung retailspezifischer Anwendungsdaten |
| EXPORTING | ||
| I_WRF1 | = lv_i_wrf1 | |
| I_T001W | = lv_i_t001w | |
| I_WBPRO | = lv_i_wbpro | |
| IMPORTING | ||
| O_RETURN_CODE | = lv_o_return_code | |
| TABLES | ||
| I_WRF3 | = lt_i_wrf3 | |
| O_ERROR_TABLE | = lt_o_error_table | |
| I_WRF4 | = lt_i_wrf4 | |
| I_WRF5 | = lt_i_wrf5 | |
| I_WRF6 | = lt_i_wrf6 | |
| I_T023W | = lt_i_t023w | |
| I_T023X | = lt_i_t023x | |
| I_WRF12 | = lt_i_wrf12 | |
| I_KNVA | = lt_i_knva | |
| I_KNVV | = lt_i_knvv | |
| . " SITE_ALE_DISTRIBUTION | ||
ABAP code using 7.40 inline data declarations to call FM SITE_ALE_DISTRIBUTION
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 CODE FROM BAPIRETURN INTO @DATA(ld_o_return_code). | ||||
| "SELECT single WBPRO FROM T001K INTO @DATA(ld_i_wbpro). | ||||
Search for further information about these or an SAP related objects