SAP ASSORTMENT_LIST_FOR_ARTICLE Function Module for NOTRANSL: Listanzeige aller zu einem Artikel zugeordneten Sortimentsträger
ASSORTMENT_LIST_FOR_ARTICLE is a standard assortment list for article 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: Listanzeige aller zu einem Artikel zugeordneten Sortimentsträger 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 list for article FM, simply by entering the name ASSORTMENT_LIST_FOR_ARTICLE into the relevant SAP transaction such as SE37 or SE38.
Function Group: WSO6
Program Name: SAPLWSO6
Main Program: SAPLWSO6
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ASSORTMENT_LIST_FOR_ARTICLE 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_LIST_FOR_ARTICLE'"NOTRANSL: Listanzeige aller zu einem Artikel zugeordneten Sortimentsträger.
EXPORTING
ARTICLE = "Material Number
* LIST_VERSION = "
* DATE = "
TABLES
* ASSORTMENT_LIST = "
EXCEPTIONS
ARTICLE_NOT_FOUND = 1 NO_ASSORTMENT_FOUND = 2
IMPORTING Parameters details for ASSORTMENT_LIST_FOR_ARTICLE
ARTICLE - Material Number
Data type: MARA-MATNROptional: No
Call by Reference: No ( called with pass by value option)
LIST_VERSION -
Data type: WTDY-TYP01Optional: Yes
Call by Reference: No ( called with pass by value option)
DATE -
Data type: WLK1-DATABOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ASSORTMENT_LIST_FOR_ARTICLE
ASSORTMENT_LIST -
Data type: WINT_ASLOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ARTICLE_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ASSORTMENT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ASSORTMENT_LIST_FOR_ARTICLE 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_article | TYPE MARA-MATNR, " | |||
| lt_assortment_list | TYPE STANDARD TABLE OF WINT_ASL, " | |||
| lv_article_not_found | TYPE WINT_ASL, " | |||
| lv_list_version | TYPE WTDY-TYP01, " | |||
| lv_no_assortment_found | TYPE WTDY, " | |||
| lv_date | TYPE WLK1-DATAB. " |
|   CALL FUNCTION 'ASSORTMENT_LIST_FOR_ARTICLE' "NOTRANSL: Listanzeige aller zu einem Artikel zugeordneten Sortimentsträger |
| EXPORTING | ||
| ARTICLE | = lv_article | |
| LIST_VERSION | = lv_list_version | |
| DATE | = lv_date | |
| TABLES | ||
| ASSORTMENT_LIST | = lt_assortment_list | |
| EXCEPTIONS | ||
| ARTICLE_NOT_FOUND = 1 | ||
| NO_ASSORTMENT_FOUND = 2 | ||
| . " ASSORTMENT_LIST_FOR_ARTICLE | ||
ABAP code using 7.40 inline data declarations to call FM ASSORTMENT_LIST_FOR_ARTICLE
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 MATNR FROM MARA INTO @DATA(ld_article). | ||||
| "SELECT single TYP01 FROM WTDY INTO @DATA(ld_list_version). | ||||
| "SELECT single DATAB FROM WLK1 INTO @DATA(ld_date). | ||||
Search for further information about these or an SAP related objects