SAP ASSIGNMENT_STORE_ASSORTMENT Function Module for NOTRANSL: Folgeaktionen bei der Zuordnung Betrieb zu Sortiment









ASSIGNMENT_STORE_ASSORTMENT is a standard assignment store assortment 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: Folgeaktionen bei der Zuordnung Betrieb zu Sortiment 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 assignment store assortment FM, simply by entering the name ASSIGNMENT_STORE_ASSORTMENT into the relevant SAP transaction such as SE37 or SE38.

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



Function ASSIGNMENT_STORE_ASSORTMENT 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 'ASSIGNMENT_STORE_ASSORTMENT'"NOTRANSL: Folgeaktionen bei der Zuordnung Betrieb zu Sortiment
EXPORTING
* NR_OF_RECS_PER_STEP = 1000 "ABAP System Field: Row Index of Internal Tables
* P_CREATE_CHANGE_DOCUMENT = 'X' "Text 'Category'
* P_WSOR_CTRL = ' ' "Listing Assortments: Control Fields for Updating
* IV_UPD_TASK = "Checkbox

TABLES
TAB_WRSZ = "Combination Assortment / Plant

EXCEPTIONS
WRONG_INPUT_DATA = 1
.



IMPORTING Parameters details for ASSIGNMENT_STORE_ASSORTMENT

NR_OF_RECS_PER_STEP - ABAP System Field: Row Index of Internal Tables

Data type: SY-TABIX
Default: 1000
Optional: Yes
Call by Reference: No ( called with pass by value option)

P_CREATE_CHANGE_DOCUMENT - Text 'Category'

Data type: WTDY-TYP01
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

P_WSOR_CTRL - Listing Assortments: Control Fields for Updating

Data type: WSOR_CTRL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_UPD_TASK - Checkbox

Data type: XFELD
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for ASSIGNMENT_STORE_ASSORTMENT

TAB_WRSZ - Combination Assortment / Plant

Data type: WRSZ01
Optional: No
Call by Reference: Yes

EXCEPTIONS details

WRONG_INPUT_DATA - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ASSIGNMENT_STORE_ASSORTMENT 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:
lt_tab_wrsz  TYPE STANDARD TABLE OF WRSZ01, "   
lv_wrong_input_data  TYPE WRSZ01, "   
lv_nr_of_recs_per_step  TYPE SY-TABIX, "   1000
lv_p_create_change_document  TYPE WTDY-TYP01, "   'X'
lv_p_wsor_ctrl  TYPE WSOR_CTRL, "   SPACE
lv_iv_upd_task  TYPE XFELD. "   

  CALL FUNCTION 'ASSIGNMENT_STORE_ASSORTMENT'  "NOTRANSL: Folgeaktionen bei der Zuordnung Betrieb zu Sortiment
    EXPORTING
         NR_OF_RECS_PER_STEP = lv_nr_of_recs_per_step
         P_CREATE_CHANGE_DOCUMENT = lv_p_create_change_document
         P_WSOR_CTRL = lv_p_wsor_ctrl
         IV_UPD_TASK = lv_iv_upd_task
    TABLES
         TAB_WRSZ = lt_tab_wrsz
    EXCEPTIONS
        WRONG_INPUT_DATA = 1
. " ASSIGNMENT_STORE_ASSORTMENT




ABAP code using 7.40 inline data declarations to call FM ASSIGNMENT_STORE_ASSORTMENT

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 TABIX FROM SY INTO @DATA(ld_nr_of_recs_per_step).
DATA(ld_nr_of_recs_per_step) = 1000.
 
"SELECT single TYP01 FROM WTDY INTO @DATA(ld_p_create_change_document).
DATA(ld_p_create_change_document) = 'X'.
 
DATA(ld_p_wsor_ctrl) = ' '.
 
 


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!