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

MWSO2F02 SAP ABAP INCLUDE - Read all assortment users (assignment data only) for assortments







MWSO2F02 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 MWSO2F02 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 MWSO2F02. "Basic submit
SUBMIT MWSO2F02 AND RETURN. "Return to original report after report execution complete
SUBMIT MWSO2F02 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT MWSO2F02

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:

WSOP_READ CALL FUNCTION 'WSOP_READ' EXPORTING WSOP = WSOP "Vorgabe Kopf ALL_POS = 'X' "alle Positionen lesen TEXT = ' ' "Texte nicht mit lesen MAX_TIME_RANGE = 'X' "Gesamt-Intervall lesen WSOH = WSOH_COPY TABLES WSOP_INPUT = WSOP_COPY_1 "gelesenes Cop.-Objekt / Pos.

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

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

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

WLK1_CHECK CALL FUNCTION 'WLK1_CHECK' EXPORTING * date = artfil-datuv ITEM = POSITIONEN-SPOSI SHOP_LOCNR = ARTFIL-FILIALE * shop_werks = ' ' DATE_BEGIN = ARTFIL-DATUV DATE_END = ARTFIL-DATUB * sales_unit = ' ' CHECK_PLANT_TIME = ' ' * promotion = ' ' * promotion_theme = ' ' * shop_must_be_location = ' ' * wrf1_kzlik_check = ' ' * get_whole_time = ' ' * all_wlk1_info = ' ' IMPORTING NO_UNIT_BUT_ITEM_LISTING = Q1 WRF1_KZLIK_NOT_IN_USE = Q2 TABLES O_WLK1 = IWLK11 ALL_WLK1 = IWLK1 EXCEPTIONS NO_LISTING = 01 NO_LISTING_IN_TIME = 02 EXISTING_EXCLUSION_LISTING = 03 WRONG_PARAMETERS = 04 NO_OPEN_TIME_SHOP_IN_TIME = 05 NO_LISTING_FOR_PROMOTION = 06 WRONG_LOCATION = 07.

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

WSOP_READ CALL FUNCTION 'WSOP_READ' EXPORTING ALL_POS = 'X' " DATUM = '00000000' " TEXT = ' ' WSOP = WSOP_T " DEL_POS = ' ' " MAX_TIME_RANGE = ' ' " WSOH = TABLES " TEXTE = WSOP_INPUT = WSOP_ZUO EXCEPTIONS NO_REC_ACTIVE = 01 NO_REC_FOUND = 02.

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

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

WSOP_READ CALL FUNCTION 'WSOP_READ' EXPORTING ALL_POS = 'X' " DATUM = '00000000' " TEXT = ' ' WSOP = WSOP_T " DEL_POS = ' ' " MAX_TIME_RANGE = ' ' " WSOH = TABLES " TEXTE = WSOP_INPUT = WSOP_T_TAB EXCEPTIONS NO_REC_ACTIVE = 01 NO_REC_FOUND = 02.

DEQUEUE_E_WSOPE CALL FUNCTION 'DEQUEUE_E_WSOPE' EXPORTING MODE_WSOP = 'E' SKOPF = ' ' SPOSI = POSITIONEN-SPOSI DATUB = SY-DATUM EXCEPTIONS OTHERS = 1.

ASSORTMENT_CHECK_ENQ_MATNR CALL FUNCTION 'ASSORTMENT_CHECK_ENQ_MATNR' EXPORTING MATNR = POSITIONEN-SPOSI.

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

WSOH_READ CALL FUNCTION 'WSOH_READ' EXPORTING INCL_WSOT = 'X' WSOH = WSOH MODUS = SPERR_MODUS DATUM = WTDY-WWSDATU1 IMPORTING WSOH_INPUT = WSOH WSOT_INPUT = WSOT EXCEPTIONS NO_REC_FOUND = 1 NO_REC_ACTIVE = 4 REC_ENQUEUED = 2 TEC_ENQUEUED = 3.

DEQUEUE_E_WSOH CALL FUNCTION 'DEQUEUE_E_WSOH' EXPORTING MODE_WSOH = 'E' SKOPF = WSOH-SKOPF EXCEPTIONS OTHERS = 1.

WSOP_READ CALL FUNCTION 'WSOP_READ' EXPORTING * datum = wtdy-wwsdatu1 " BJS 05.05

ASSORTMENT_CHECK_ATTYP CALL FUNCTION 'ASSORTMENT_CHECK_ATTYP' EXPORTING ATTYP = MARA-ATTYP * MTART = ' ' EXCEPTIONS GENERIC_ARTICLE = 1 STRUCTURED_ARTICLE = 2 VARIANT_ARTICLE = 3 VALUE_ARTICLE = 4 EMPTY_ARTICLE = 5 OTHERS = 6.

ENQUEUE_E_WSOPE * CALL FUNCTION 'ENQUEUE_E_WSOPE' * EXPORTING * mode_wsop = 'E' * skopf = ' ' * sposi = positionen-sposi * datub = sy-datum * _collect = 'X' * EXCEPTIONS * foreign_lock = 1 * system_failure = 2 * OTHERS = 3.

FLUSH_ENQUEUE





CALL FUNCTION 'FLUSH_ENQUEUE' EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 OTHERS = 3.



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 MWSO2F02 or its description.