SAP LAYOUT_WORKBENCH_START Function Module for NOTRANSL: Selektion und Aufbau der Layoutworkbench









LAYOUT_WORKBENCH_START is a standard layout workbench start 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: Selektion und Aufbau der Layoutworkbench 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 layout workbench start FM, simply by entering the name LAYOUT_WORKBENCH_START into the relevant SAP transaction such as SE37 or SE38.

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



Function LAYOUT_WORKBENCH_START 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 'LAYOUT_WORKBENCH_START'"NOTRANSL: Selektion und Aufbau der Layoutworkbench
EXPORTING
* PI_DATE = SY-DATUM "Selection Date
* PI_STORES = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* PI_STORES_DESC = ' ' "Customer's Name
* PI_ENTRY_BY_LAYGR = ' ' "Checkbox
* PI_ENTRY_BY_ASORT = ' ' "Checkbox

TABLES
* PI_T_LAYGR = "Layout Modules
* PI_T_WRS1 = "Assortments
.



IMPORTING Parameters details for LAYOUT_WORKBENCH_START

PI_DATE - Selection Date

Data type: SY-DATUM
Default: SY-DATUM
Optional: Yes
Call by Reference: Yes

PI_STORES - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: BAPI_SHELFSTORES-CUSTOMER_SITE
Optional: Yes
Call by Reference: Yes

PI_STORES_DESC - Customer's Name

Data type: KNA1-NAME1
Default: SPACE
Optional: Yes
Call by Reference: Yes

PI_ENTRY_BY_LAYGR - Checkbox

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

PI_ENTRY_BY_ASORT - Checkbox

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for LAYOUT_WORKBENCH_START

PI_T_LAYGR - Layout Modules

Data type: LAYMOD_TABLE
Optional: Yes
Call by Reference: Yes

PI_T_WRS1 - Assortments

Data type: WRS1
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for LAYOUT_WORKBENCH_START 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_pi_date  TYPE SY-DATUM, "   SY-DATUM
lt_pi_t_laygr  TYPE STANDARD TABLE OF LAYMOD_TABLE, "   
lv_pi_stores  TYPE BAPI_SHELFSTORES-CUSTOMER_SITE, "   
lt_pi_t_wrs1  TYPE STANDARD TABLE OF WRS1, "   
lv_pi_stores_desc  TYPE KNA1-NAME1, "   SPACE
lv_pi_entry_by_laygr  TYPE XFELD, "   SPACE
lv_pi_entry_by_asort  TYPE XFELD. "   SPACE

  CALL FUNCTION 'LAYOUT_WORKBENCH_START'  "NOTRANSL: Selektion und Aufbau der Layoutworkbench
    EXPORTING
         PI_DATE = lv_pi_date
         PI_STORES = lv_pi_stores
         PI_STORES_DESC = lv_pi_stores_desc
         PI_ENTRY_BY_LAYGR = lv_pi_entry_by_laygr
         PI_ENTRY_BY_ASORT = lv_pi_entry_by_asort
    TABLES
         PI_T_LAYGR = lt_pi_t_laygr
         PI_T_WRS1 = lt_pi_t_wrs1
. " LAYOUT_WORKBENCH_START




ABAP code using 7.40 inline data declarations to call FM LAYOUT_WORKBENCH_START

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 DATUM FROM SY INTO @DATA(ld_pi_date).
DATA(ld_pi_date) = SY-DATUM.
 
 
"SELECT single CUSTOMER_SITE FROM BAPI_SHELFSTORES INTO @DATA(ld_pi_stores).
 
 
"SELECT single NAME1 FROM KNA1 INTO @DATA(ld_pi_stores_desc).
DATA(ld_pi_stores_desc) = ' '.
 
DATA(ld_pi_entry_by_laygr) = ' '.
 
DATA(ld_pi_entry_by_asort) = ' '.
 


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!