SAP ASSORTMENT_POS_CHECK Function Module for









ASSORTMENT_POS_CHECK is a standard assortment pos check SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 pos check FM, simply by entering the name ASSORTMENT_POS_CHECK into the relevant SAP transaction such as SE37 or SE38.

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



Function ASSORTMENT_POS_CHECK 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_POS_CHECK'"
EXPORTING
ASSORTMENT_HEAD = "
FUNCTION = "
LISTING_METHOD_VZ = "Listing procedure
LISTING_METHOD = "Listing procedure
ACT_LINE = "
* ITEM_EXIST_CHECK = 'X' "
ITEM_DATA = "

TABLES
CHECK_POS = "
ASS_ERR = "

EXCEPTIONS
ASS_POS_ALREADY_EXIST = 1 LISTING_RULES_NOT_OK = 2 RJ_PROBLEMS = 3
.




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_SAPLWSO1_001 User Exit for Controling Data Adjustment for Listing/Article Maintenance
EXIT_SAPLWSO1_002 Do Not Include Supplying Plant Control in Material Maintenance
EXIT_SAPLWSO1_003 User Exit for Controling List. Conditions in Integrated Artl. Maintenance
EXIT_SAPLWSO1_004 Control for Creating Additional MVKE Data During Listing

IMPORTING Parameters details for ASSORTMENT_POS_CHECK

ASSORTMENT_HEAD -

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

FUNCTION -

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

LISTING_METHOD_VZ - Listing procedure

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

LISTING_METHOD - Listing procedure

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

ACT_LINE -

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

ITEM_EXIST_CHECK -

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

ITEM_DATA -

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

TABLES Parameters details for ASSORTMENT_POS_CHECK

CHECK_POS -

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

ASS_ERR -

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

EXCEPTIONS details

ASS_POS_ALREADY_EXIST -

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

LISTING_RULES_NOT_OK -

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

RJ_PROBLEMS -

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

Copy and paste ABAP code example for ASSORTMENT_POS_CHECK 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_check_pos  TYPE STANDARD TABLE OF WINT_POS, "   
lv_assortment_head  TYPE WSOH, "   
lv_ass_pos_already_exist  TYPE WSOH, "   
lt_ass_err  TYPE STANDARD TABLE OF WINT_FERR, "   
lv_function  TYPE WTDY-TYP01, "   
lv_listing_rules_not_ok  TYPE WTDY, "   
lv_rj_problems  TYPE WTDY, "   
lv_listing_method_vz  TYPE TWLV-LSTFL, "   
lv_listing_method  TYPE TWLV-LSTFL, "   
lv_act_line  TYPE SY-TABIX, "   
lv_item_exist_check  TYPE WTDY-TYP01, "   'X'
lv_item_data  TYPE MARA. "   

  CALL FUNCTION 'ASSORTMENT_POS_CHECK'  "
    EXPORTING
         ASSORTMENT_HEAD = lv_assortment_head
         FUNCTION = lv_function
         LISTING_METHOD_VZ = lv_listing_method_vz
         LISTING_METHOD = lv_listing_method
         ACT_LINE = lv_act_line
         ITEM_EXIST_CHECK = lv_item_exist_check
         ITEM_DATA = lv_item_data
    TABLES
         CHECK_POS = lt_check_pos
         ASS_ERR = lt_ass_err
    EXCEPTIONS
        ASS_POS_ALREADY_EXIST = 1
        LISTING_RULES_NOT_OK = 2
        RJ_PROBLEMS = 3
. " ASSORTMENT_POS_CHECK




ABAP code using 7.40 inline data declarations to call FM ASSORTMENT_POS_CHECK

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 TYP01 FROM WTDY INTO @DATA(ld_function).
 
 
 
"SELECT single LSTFL FROM TWLV INTO @DATA(ld_listing_method_vz).
 
"SELECT single LSTFL FROM TWLV INTO @DATA(ld_listing_method).
 
"SELECT single TABIX FROM SY INTO @DATA(ld_act_line).
 
"SELECT single TYP01 FROM WTDY INTO @DATA(ld_item_exist_check).
DATA(ld_item_exist_check) = '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!