SAP Reports / Programs | Logistics - General | Logistics Basic Data | Assortment Maintenance(LO-MD-RA-MT) SAP LO

MWSO2122 SAP ABAP INCLUDE - PAI Screen 122







MWSO2122 is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter MWSO2122 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT MWSO2122. "Basic submit
SUBMIT MWSO2122 AND RETURN. "Return to original report after report execution complete
SUBMIT MWSO2122 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


20 TXT20#SUSNAM Changed by#SVKONT From account#SVKO
Selection Text: C_DRU_TK = Issue header texts (Y/N)
Selection Text: C_DRU_TP = Issue item texts (Y/N)
Selection Text: C_DRU_VK = Issue sales prices (Y/N)
Selection Text: C_DRU_WM = Issue requested qty (Y/N)
Selection Text: O_MATNR = Material no.#SSO_NAME
Selection Text: SIMUL = SIMUL >>>delete later <<<
Selection Text: SO-MATNR = Material no.
Selection Text: SO-NAME = Name of user
Selection Text: SO_ABELN = Alloc. tbl no.
Selection Text: SO_EKGRP = Purchasing group
Selection Text: SO_EKORG = Purchasing organization
Selection Text: SO_FILNR = Plant
Selection Text: SO_MATNR = Material no.
Selection Text: SO_NAME = Name of user
Title: PAI Screen 122
Text Symbol: 317 = - Material consumption values
Text Symbol: 318 = - Source list
Text Symbol: 319 = - Quotas(header)
Text Symbol: 320 = - Quotas(item)
Text Symbol: 321 = - Quotas(item) -
Text Symbol: 322 = - Consignment price segments
Text Symbol: 323 = - Special stocks with vendor
Text Symbol: 324 = - Batches
Text Symbol: 325 = - Batch stocks
Text Symbol: 326 = - Mat.-dependent insp. type parameters
Text Symbol: 327 = - Production versions
Text Symbol: 328 = - Sales order stocks
Text Symbol: 329 = - Sales order stocks (totals)
Text Symbol: 330 = - Special stocks with customer
Text Symbol: 331 = - Special stocks with vendor
Text Symbol: 332 = - Special stocks with vendor (totals)
Text Symbol: 333 = - MRP lists
Text Symbol: 334 = - Planning flags
Text Symbol: 335 = - Pricing records
Text Symbol: 336 = - Text header
Text Symbol: 337 = - Text lines
Text Symbol: 338 = - Customer/material relationships





Text Symbol: 500 = Entry for application $1 / object $2 missing in table TR01
Text Symbol: 501 = Program run locked for application $1 / object $2
Text Symbol: 503 = Error reading text:
Text Symbol: 504 = Error deleting text:
Text Symbol: MUL = SIMUL >>>delete later <<<#SSO-MATNO Material no.#SSO-NAME Name
Text Symbol: 316 = - EAN/material
Text Symbol: 202 = Stock in transfer exists
Text Symbol: 203 = Stock in quality inspection exists
Text Symbol: 204 = Restricted-use stock exists
Text Symbol: 205 = Blocked stock exists
Text Symbol: 206 = Blocked stock returns exist
Text Symbol: 207 = Unrestricted-use consignment stock exists
Text Symbol: 208 = Consignment stock in quality inspection exists
Text Symbol: 209 = Restricted-use consignment stock exists
Text Symbol: 210 = Blocked consignment stock exists
Text Symbol: 211 = Physical inventory blocking indicator is set
Text Symbol: 212 = Physical inventory indicator is set for warehouse stock
Text Symbol: 213 = Physical inventory indicator is set for stock in quality inspection
Text Symbol: 214 = Physical inventory indicator is set for restricted-use stock
Text Symbol: 215 = Physical inventory indicator is set for blocked stock
Text Symbol: 216 = Physical inventory indicator is set for warehouse stock in previous period
Text Symbol: 217 = Physical inventory indicator is set for stock in quality inspection in previous period
Text Symbol: 218 = Physical inventory indicator is set for restricted-use stock in previous period
Text Symbol: 219 = Physical inventory indicator is set for blocked stock in previous period
Text Symbol: 221 = Unrestricted-use, valuated stock in previous period exists
Text Symbol: 222 = Stock in transfer in previous period exists
Text Symbol: 223 = Stock in quality inspection in previous period exists
Text Symbol: 224 = Restricted-use stock in previous period exists
Text Symbol: 225 = Blocked stock in previous period exists
Text Symbol: 226 = Blocked stock returns in previous period exist
Text Symbol: 227 = Physical inventory indicator is set for warehouse stock for the following year
Text Symbol: 228 = Physical inventory indicator is set for stock in quality inspection for the following year
Text Symbol: 229 = Physical inventory indicator is set for blocked stock for the following year
Text Symbol: 300 = - Material (general data)
Text Symbol: 301 = - Material (plant data)
Text Symbol: 302 = - Material (storage location data)
Text Symbol: 303 = - Material valuation
Text Symbol: 304 = - Material (sales data)
Text Symbol: 305 = - Material data/warehouse number





Text Symbol: 306 = - Material data/storage type
Text Symbol: 307 = - Material descriptions
Text Symbol: 308 = - Units of measure/material
Text Symbol: 309 = - Material indices for forecast
Text Symbol: 310 = - Forecast parameters
Text Symbol: 311 = - Forecast values
Text Symbol: 312 = - Maintenance statuses
Text Symbol: 313 = - Outstanding maintenance statuses
Text Symbol: 314 = - Sales order stock
Text Symbol: 315 = - Material tax classification


INCLUDES used within this REPORT MWSO2122

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

ASSORTMENT_FIND_ISSUING_TYPE CALL FUNCTION 'ASSORTMENT_FIND_ISSUING_TYPE' EXPORTING MARA_DELIVERY_CODE = POSITIONEN-BWSCL EXCEPTIONS FROM_EXTERNAL_VENDOR = 01 FROM_INTERNAL_PLANT = 02 UNDEFINED_ISSUING = 03 UNDETERMINED_DELIVERY_CODE = 04.

ASSORTMENT_ISSUING_SELECT * CALL FUNCTION 'ASSORTMENT_ISSUING_SELECT' * EXPORTING * ITEM = POSITIONEN-SPOSI * SHOP = OBJFIL-FILIALE * DATE = CHECK_DATE * MATKL = POSITIONEN-MATKL * TABLES * ISSUING_PLANTS = ISS_PLANTS * EXCEPTIONS * NO_ISSUING_PLANT = 01.

ASSORTMENT_ALL_ISSUING_SELECT CALL FUNCTION 'ASSORTMENT_ALL_ISSUING_SELECT' EXPORTING ITEM = POSITIONEN-SPOSI ASORT = OBJFIL-FILIALE MATKL = POSITIONEN-MATKL DATE = CHECK_DATE TABLES ISSUING_PLANTS = ISS_PLANTS EXCEPTIONS NO_ISSUING_PLANT = 1 OTHERS = 2.

WLK1_READ_MULTIPLE_FUNCTIONS CALL FUNCTION 'WLK1_READ_MULTIPLE_FUNCTIONS' EXPORTING WLK1_SINGLE_SELECT = TMP_WLK1 FUNCTION = 'K' TABLES WLK1_RESULTS = DWLK1 EXCEPTIONS NO_REC_FOUND = 1 OTHERS = 2.

ASS_CHECK_APPLICATION_AREA CALL FUNCTION 'ASS_CHECK_APPLICATION_AREA' IMPORTING TCODE = SO-TCODE WAPPL = SO-SUBRC.

ASSORTMENT_READ_ASSORTMENT CALL FUNCTION 'ASSORTMENT_READ_ASSORTMENT' EXPORTING ASORT = WINT_CARRS READ_HEAD = 'X' TABLES HEAD_OF_ASORT = I_CARR EXCEPTIONS OBJECT_IS_NO_ASORT = 1 NO_CATEG_DATA_FOUND = 2 NO_DELIV_DATA_FOUND = 3 NO_DEPTM_DATA_FOUND = 4 OTHERS = 5.

ASSORTMENT_GET_DATA_AND_USER_B CALL FUNCTION 'ASSORTMENT_GET_DATA_AND_USER_B' EXPORTING ASORT = OBJFIL-FILIALE IMPORTING ASORT_DATA = WINT_CARRH EXCEPTIONS NO_DATA = 1 NO_VALID_DATA = 2 OTHERS = 3.

ASSORTMENT_READ_ASSORTMENT CALL FUNCTION 'ASSORTMENT_READ_ASSORTMENT' EXPORTING ASORT = WINT_CARRS READ_HEAD = 'X' TABLES HEAD_OF_ASORT = I_CARR EXCEPTIONS OBJECT_IS_NO_ASORT = 1 NO_CATEG_DATA_FOUND = 2 NO_DELIV_DATA_FOUND = 3 NO_DEPTM_DATA_FOUND = 4 OTHERS = 5.

ASSORTMENT_FIND_ISSUING_TYPE CALL FUNCTION 'ASSORTMENT_FIND_ISSUING_TYPE' EXPORTING MARA_DELIVERY_CODE = POSITIONEN-BWSCL EXCEPTIONS FROM_EXTERNAL_VENDOR = 01 FROM_INTERNAL_PLANT = 02 UNDEFINED_ISSUING = 03 UNDETERMINED_DELIVERY_CODE = 04.

ASSORTMENT_ISSUING_SELECT * CALL FUNCTION 'ASSORTMENT_ISSUING_SELECT' * EXPORTING * ITEM = POSITIONEN-SPOSI * SHOP = I_CARR-ASORT * DATE = CHECK_DATE * MATKL = POSITIONEN-MATKL * TABLES * ISSUING_PLANTS = ISS_PLANTS * EXCEPTIONS * NO_ISSUING_PLANT = 01.

ASSORTMENT_ALL_ISSUING_SELECT CALL FUNCTION 'ASSORTMENT_ALL_ISSUING_SELECT' EXPORTING ITEM = POSITIONEN-SPOSI ASORT = I_CARR-ASORT MATKL = POSITIONEN-MATKL DATE = CHECK_DATE TABLES ISSUING_PLANTS = ISS_PLANTS EXCEPTIONS NO_ISSUING_PLANT = 1 OTHERS = 2.

POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE'"#EC FB_OLDED EXPORTING DIAGNOSETEXT1 = ATEXT TEXTLINE1 = DTEXT TEXTLINE2 = CTEXT TITEL = BTEXT "Bildüberschrift" DEFAULTOPTION = 'Y' "Antwort 'Y'/'N' IMPORTING ANSWER = ANSWER. "'J'/'N'/'A'

ASSORTMENT_READ_ASSORTMENT CALL FUNCTION 'ASSORTMENT_READ_ASSORTMENT' EXPORTING ASORT = WINT_CARRS * ALTERNATIV_WERKS = ' ' * ASORT_TYPE = ' ' * DATE = READ_HEAD = 'X' * READ_WRS6 = ' ' * READ_WRS3 = ' ' * READ_WRS4 = ' ' * RAISE_AT_EXCEPTIONS = ' ' TABLES * CATEG_OF_ASORT = * DELIV_OF_ASORT = * DEPTM_OF_ASORT = HEAD_OF_ASORT = I_CARR EXCEPTIONS OBJECT_IS_NO_ASORT = 1 NO_CATEG_DATA_FOUND = 2 NO_DELIV_DATA_FOUND = 3 NO_DEPTM_DATA_FOUND = 4 OTHERS = 5.




ASSORTMENT_READ_ASSORTMENT CALL FUNCTION 'ASSORTMENT_READ_ASSORTMENT' EXPORTING ASORT = WINT_CARRS * ALTERNATIV_WERKS = ' ' * ASORT_TYPE = ' ' * DATE = READ_HEAD = 'X' * READ_WRS6 = ' ' * READ_WRS3 = ' ' * READ_WRS4 = ' ' * RAISE_AT_EXCEPTIONS = ' ' TABLES * CATEG_OF_ASORT = * DELIV_OF_ASORT = * DEPTM_OF_ASORT = HEAD_OF_ASORT = I_CARR EXCEPTIONS OBJECT_IS_NO_ASORT = 1 NO_CATEG_DATA_FOUND = 2 NO_DELIV_DATA_FOUND = 3 NO_DEPTM_DATA_FOUND = 4 OTHERS = 5.

MAKT_SINGLE_READ CALL FUNCTION 'MAKT_SINGLE_READ' " TCO 4.6B

POPUP_TO_CONFIRM_WITH_MESSAGE * call function 'POPUP_TO_CONFIRM_WITH_MESSAGE' * exporting diagnosetext1 = text-113 * textline1 = text-114 * textline2 = text-115 * titel = btext "Bildüberschrift" * defaultoption = 'N' "Antwort 'Y'/'N' * importing answer = answer. "'J'/'N'/'A'

ASSORTMENT_GET_ASORT_OF_USERS CALL FUNCTION 'ASSORTMENT_GET_ASORT_OF_USERS' EXPORTING VALID_PER_DATE = SY-DATUM " note 640416 DATE_TO = MAX_DATUM " note 640416 * SELECT_INVALID_ASORT = ' ' TABLES ASSORTMENT_USERS = I_USER ASSORTMENT_DATA = I_ASORT * ASSORTMENT_CONNECTS = EXCEPTIONS NO_ASORT_FOUND = 1 OTHERS = 2.

CLMA_CLASS_LIST CALL FUNCTION 'CLMA_CLASS_LIST' EXPORTING CLASSNAME = KLAH-CLASS CLASSTYPE = KLAH-KLART LANGUAGE = SY-LANGU * WITH_ALLOCATIONS LIKE RMCLM-ANZUKZ DEFAULT SPACE TABLES TCLASSES = INT_CLASS EXCEPTIONS NO_CLASSES = 1.

CLAF_OBJECTS_OF_CLASS CALL FUNCTION 'CLAF_OBJECTS_OF_CLASS' EXPORTING CLASS = INT_FGP-CLASS CLASSES = ' ' CLASSTEXT = ' ' * classtype = c_class_betriebe CLASSTYPE = KLART FEATURES = 'X' LANGUAGE = SY-LANGU * OBJECT_HIGH = ' ' * OBJECT_LOW = ' ' * UPDATE_MODE = ' ' TABLES T_CLASS = L_T_CLASS T_OBJECTDATA = L_T_OBJECTDATA T_OBJECTS = L_T_FILIALE "Werke EXCEPTIONS NO_CLASSIFICATION = 01.

WRS1_SINGLE_READ CALL FUNCTION 'WRS1_SINGLE_READ' " INSERT EXPORTING " INSERT ASORT = USER_ASORT " INSERT IMPORTING " INSERT WRS1_OUT = WRS1 " INSERT EXCEPTIONS " INSERT NO_RECORD_FOUND = 1 " INSERT SPRAS_NOT_FOUND = 2 " INSERT OTHERS = 3. " INSERT

ASSORTMENT_GET_ASORT_OF_USER CALL FUNCTION 'ASSORTMENT_GET_ASORT_OF_USER' EXPORTING VALID_PER_DATE = SY-DATUM " note 640416 date_to = MAX_DATUM " note 640416 USER = USER USER_TYPE = '?' "kein Kunde IMPORTING ASORT_DEFAULT = WRS1 EXCEPTIONS NO_ASORT_FOUND = 1 OTHERS = 2.

ASSORTMENT_FIND_ISSUING_TYPE CALL FUNCTION 'ASSORTMENT_FIND_ISSUING_TYPE' EXPORTING MARA_DELIVERY_CODE = POSITIONEN-BWSCL EXCEPTIONS FROM_EXTERNAL_VENDOR = 01 FROM_INTERNAL_PLANT = 02 UNDEFINED_ISSUING = 03 UNDETERMINED_DELIVERY_CODE = 04.

ASSORTMENT_ISSUING_SELECT * CALL FUNCTION 'ASSORTMENT_ISSUING_SELECT' * EXPORTING * ITEM = POSITIONEN-SPOSI * SHOP = I_CARR-ASORT * DATE = CHECK_DATE * MATKL = POSITIONEN-MATKL * TABLES * ISSUING_PLANTS = ISS_PLANTS * EXCEPTIONS * NO_ISSUING_PLANT = 01.

ASSORTMENT_ALL_ISSUING_SELECT CALL FUNCTION 'ASSORTMENT_ALL_ISSUING_SELECT' EXPORTING ITEM = POSITIONEN-SPOSI ASORT = I_CARR-ASORT MATKL = POSITIONEN-MATKL DATE = CHECK_DATE TABLES ISSUING_PLANTS = ISS_PLANTS EXCEPTIONS NO_ISSUING_PLANT = 1 OTHERS = 2.

CLAF_OBJECTS_OF_CLASS CALL FUNCTION 'CLAF_OBJECTS_OF_CLASS' EXPORTING CLASS = P_CLASS CLASSES = ' ' CLASSTEXT = ' ' CLASSTYPE = P_KLART FEATURES = 'X' LANGUAGE = SY-LANGU * OBJECT_HIGH = ' ' * OBJECT_LOW = ' ' * UPDATE_MODE = ' ' TABLES T_CLASS = L_T_CLASS T_OBJECTDATA = L_T_OBJECTDATA T_OBJECTS = L_T_FILIALE "Werke EXCEPTIONS NO_CLASSIFICATION = 01.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name MWSO2122 or its description.