SAP ASSORTMENT_GET_DATA_AND_USER_B Function Module for NOTRANSL: Lesen Sortimentsdaten - incl. Daten Sortimentsnutzers bei 1:1-Be









ASSORTMENT_GET_DATA_AND_USER_B is a standard assortment get data and user b 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: Lesen Sortimentsdaten - incl. Daten Sortimentsnutzers bei 1:1-Be 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 assortment get data and user b FM, simply by entering the name ASSORTMENT_GET_DATA_AND_USER_B into the relevant SAP transaction such as SE37 or SE38.

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



Function ASSORTMENT_GET_DATA_AND_USER_B 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 'ASSORTMENT_GET_DATA_AND_USER_B'"NOTRANSL: Lesen Sortimentsdaten - incl. Daten Sortimentsnutzers bei 1:1-Be
EXPORTING
ASORT = "
* VALID_AT = SY-DATUM "
* STATUS = '1' "Sought Status
* ONLY_SINGLE_SELECT = 'X' "

IMPORTING
ASORT_DATA = "

EXCEPTIONS
NO_DATA = 1 NO_VALID_DATA = 2
.




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_SAPLWSOT_001 User Exit for Controling Listing Condition Maintenance

IMPORTING Parameters details for ASSORTMENT_GET_DATA_AND_USER_B

ASORT -

Data type: WRS1-ASORT
Optional: No
Call by Reference: No ( called with pass by value option)

VALID_AT -

Data type: WRS1-DATAB
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

STATUS - Sought Status

Data type: WRS1-STATU
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ONLY_SINGLE_SELECT -

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

EXPORTING Parameters details for ASSORTMENT_GET_DATA_AND_USER_B

ASORT_DATA -

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

EXCEPTIONS details

NO_DATA - Assortment not found

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

NO_VALID_DATA -

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

Copy and paste ABAP code example for ASSORTMENT_GET_DATA_AND_USER_B 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_asort  TYPE WRS1-ASORT, "   
lv_no_data  TYPE WRS1, "   
lv_asort_data  TYPE WINT_CARRH, "   
lv_valid_at  TYPE WRS1-DATAB, "   SY-DATUM
lv_no_valid_data  TYPE WRS1, "   
lv_status  TYPE WRS1-STATU, "   '1'
lv_only_single_select  TYPE WTDY-TYP01. "   'X'

  CALL FUNCTION 'ASSORTMENT_GET_DATA_AND_USER_B'  "NOTRANSL: Lesen Sortimentsdaten - incl. Daten Sortimentsnutzers bei 1:1-Be
    EXPORTING
         ASORT = lv_asort
         VALID_AT = lv_valid_at
         STATUS = lv_status
         ONLY_SINGLE_SELECT = lv_only_single_select
    IMPORTING
         ASORT_DATA = lv_asort_data
    EXCEPTIONS
        NO_DATA = 1
        NO_VALID_DATA = 2
. " ASSORTMENT_GET_DATA_AND_USER_B




ABAP code using 7.40 inline data declarations to call FM ASSORTMENT_GET_DATA_AND_USER_B

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 ASORT FROM WRS1 INTO @DATA(ld_asort).
 
 
 
"SELECT single DATAB FROM WRS1 INTO @DATA(ld_valid_at).
DATA(ld_valid_at) = SY-DATUM.
 
 
"SELECT single STATU FROM WRS1 INTO @DATA(ld_status).
DATA(ld_status) = '1'.
 
"SELECT single TYP01 FROM WTDY INTO @DATA(ld_only_single_select).
DATA(ld_only_single_select) = 'X'.
 


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!