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

MWSO2XSI SAP ABAP INCLUDE - documentation and ABAP source code







MWSO2XSI 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 MWSO2XSI 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 MWSO2XSI. "Basic submit
SUBMIT MWSO2XSI AND RETURN. "Return to original report after report execution complete
SUBMIT MWSO2XSI 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 MWSO2XSI

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:

ASS_CHECK_APPLICATION_AREA call function 'ASS_CHECK_APPLICATION_AREA' importing tcode = tcode wappl = so-subrc.

POPUP_TO_CONFIRM_WITH_MESSAGE call function 'POPUP_TO_CONFIRM_WITH_MESSAGE'"#EC FB_OLDED exporting defaultoption = 'N' diagnosetext1 = text-250 textline1 = text-251 titel = text-116 importing answer = answer.

ASSORTMENT_HEAD_HANDLING call function 'ASSORTMENT_HEAD_HANDLING' exporting assortment_head_new = wsoh assortment_head_old = wsoh_orig function = '2' "ändern situation = 'X' "Sortiments-Pflege upd_mode = upd_mode importing wscor = wscor tables texte = wsot_texte positionen = wsop_corr. "intern Pos.-Pflege !

WWS_SAVE_WSOT_COM call function 'WWS_SAVE_WSOT_COM' exporting type_save = 'D' wsot = wsot.

WSOF_READ_WITH_SKOPF call function 'WSOF_READ_WITH_SKOPF' exporting skopf = wsoh-skopf tables twsof = wsof_orig exceptions key_uncomplete = 1 no_rec_found = 2 others = 3.

WLK1_READ_MULTIPLE_FUNCTIONS call function 'WLK1_READ_MULTIPLE_FUNCTIONS' exporting * BUFFERS_READ = ' ' wlk1_single_select = tmp_wlk1 function = 'U' * ATTYP = ' ' * SELECT_ASSORTMENT = 'X' * IMPORTING * WLK1_OUTPUT = tables * WLK1_ARRAY_SELECT = wlk1_results = iwlk1 * SAMMEL_ITEM = * PLANT_LIST = exceptions no_rec_found = 1 others = 2.

ASSORTMENT_CREATE_CONDITIONS call function 'ASSORTMENT_CREATE_CONDITIONS' exporting * assortment_head = * merchandise_group = shop = iss_plants-asort DELIVARY_PLANT = 'X' " TC note 336678 tables positionen = iss_all_matnr exceptions conditions_already_exist = 01.

ASSORTMENT_ISSUING_SELECT * call function 'ASSORTMENT_ISSUING_SELECT' * exporting * item = positionen-sposi * shop = wsof_orig-filiale * date = positionen-datuv * matkl = mara-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 = wsof_orig-filiale MATKL = mara-matkl BWSCL = mara-bwscl DATE = positionen-datuv TABLES ISSUING_PLANTS = iss_plants EXCEPTIONS NO_ISSUING_PLANT = 1 OTHERS = 2.

ASSORTMENT_CREATE_CONDITIONS call function 'ASSORTMENT_CREATE_CONDITIONS' exporting * assortment_head = * merchandise_group = shop = iss_plants-asort DELIVARY_PLANT = 'X' " TC note 336678 tables positionen = iss_all_matnr exceptions conditions_already_exist = 01.

ASSORTMENT_HEAD_HANDLING call function 'ASSORTMENT_HEAD_HANDLING' exporting assortment_head_new = wsoh * ASSORTMENT_HEAD_OLD = WSOH kein alter Wert function = '3' "löschen situation = 'X' "Sortiments-Pflege importing wscor = wscor tables texte = wsot_texte positionen = wsop_corr "intern Pos.-Pflege !

POPUP_TO_CONFIRM_WITH_MESSAGE call function 'POPUP_TO_CONFIRM_WITH_MESSAGE'"#EC FB_OLDED exporting defaultoption = 'N' diagnosetext1 = text-250 diagnosetext2 = ' ' textline1 = text-251 titel = text-116 importing answer = answer.

ASSIGNMENT_HEAD_TO_SHOP call function 'ASSIGNMENT_HEAD_TO_SHOP' exporting assortment_head = wsoh function = '2' location = objfil-filiale date_begin = objfil-datab date_end = objfil-datub upd_mode = upd_mode importing wscor = wscor tables positionen = wsop_corr ** UNITS STRUCTURE WINT_XME exceptions assignment_head_already_exists = 1 "kommt nicht wrong_function = 2. "vor

ASSIGNMENT_HEAD_TO_SHOP call function 'ASSIGNMENT_HEAD_TO_SHOP' exporting assortment_head = wsoh function = '1' location = objfil-filiale date_begin = objfil-datab date_end = objfil-datub upd_mode = upd_mode importing wscor = wscor tables positionen = wsop_corr ** UNITS STRUCTURE WINT_XME exceptions assignment_head_already_exists = 1 wrong_function = 2.

ASSORTMENT_CREATE_CONDITIONS call function 'ASSORTMENT_CREATE_CONDITIONS' exporting * assortment_head = * merchandise_group = shop = objfil-filiale tables positionen = iss_all_matnr exceptions conditions_already_exist = 01.

ASSIGNMENT_HEAD_TO_SHOP call function 'ASSIGNMENT_HEAD_TO_SHOP' exporting assortment_head = wsoh function = '3' location = del_objfil-filiale date_begin = del_objfil-datab date_end = del_objfil-datub upd_mode = upd_mode importing wscor = wscor tables positionen = wsop_corr ** UNITS STRUCTURE WINT_XME exceptions assignment_head_already_exists = 1 "kommen nicht vor wrong_function = 2.

WLK1_READ_INTO_BUFFER CALL FUNCTION 'WLK1_READ_INTO_BUFFER' EXPORTING SORTIERUNG = '1' TABLES T_MARA = T_MARA T_WRS1 = T_WRS1.

WLK1_CHANGE CALL FUNCTION 'WLK1_CHANGE' EXPORTING function = '3' P_CREATE_CHANGE_DOCUMENT = CREATE_CHANGE_DOCUMENT tables int_wlk1 = t_wlk1 EXCEPTIONS NO_WLK1 = 1 WLK1_EXISTS = 2 WRONG_DATES = 3 WRONG_FUNCTION = 4 ALWAYS_RJ_CONNECTED = 5 OTHERS = 6.

WSOH_READ





call function 'WSOH_READ' exporting datum = del_objfil-datab incl_wsot = ' ' modus = 'E' wsoh = wsoh importing wsoh_input = *wsoh wsot_input = *wsot exceptions no_rec_active = 01 no_rec_found = 02 rec_enqueued = 03 tec_enqueued = 04.

WSOP_READ call function 'WSOP_READ' exporting all_pos = 'X' * DATUM = '00000000' * TEXT = ' ' wsop = wsop del_pos = ' ' max_time_range = ' ' wsoh = i_wsoh tables texte = wsop_texte wsop_input = wsop_tabs exceptions no_rec_active = 01 no_rec_found = 02.

ASSORTMENT_HEAD_HANDLING call function 'ASSORTMENT_HEAD_HANDLING' exporting assortment_head_new = i_wsoh * ASSORTMENT_HEAD_OLD = ' ' function = '3' "löschen * SITUATION = ' ' create_change_document = create_change_document importing wscor = wscor * MODULE_NUMBER = tables texte = merk_texte positionen = wsop_corr exceptions assortment_head_already_exists = 01 assortment_head_not_found = 02 new_time_range_too_long = 03 new_time_range_too_small = 04 wrong_function = 05.

WSOF_CHANGE call function 'WSOF_CHANGE' exporting function = '3' wsof_corr = wsof wsoh = i_wsoh CREATE_CHANGE_DOCUMENT = CREATE_CHANGE_DOCUMENT exceptions no_wsof = 01 no_wsoh = 02 wrong_dates = 03 wrong_function = 04 wsof_exists = 05.

WSOF_CHANGE call function 'WSOF_CHANGE' exporting function = '3' wsof_corr = wsof wsoh = i_wsoh CREATE_CHANGE_DOCUMENT = CREATE_CHANGE_DOCUMENT tables positionen = wsop_corr "Strukt: WINT_POS * UNITS = exceptions no_wsof = 01 no_wsoh = 02 wrong_dates = 03 wrong_function = 04 wsof_exists = 05.

WLK1_READ_MULTIPLE_FUNCTIONS * call function 'WLK1_READ_MULTIPLE_FUNCTIONS' * exporting ** BUFFERS_READ = ' ' * wlk1_single_select = tmp_wlk1 * function = 'T' ** ATTYP = ' ' ** SELECT_ASSORTMENT = 'X' ** IMPORTING ** WLK1_OUTPUT = * tables ** WLK1_ARRAY_SELECT = * wlk1_results = t_wlk1 ** SAMMEL_ITEM = ** PLANT_LIST = * exceptions * no_rec_found = 1 * others = 2.

WLK1_CHANGE * CALL FUNCTION 'WLK1_CHANGE' * EXPORTING * function = '3' * P_CREATE_CHANGE_DOCUMENT = CREATE_CHANGE_DOCUMENT * tables * int_wlk1 = t_wlk1 * EXCEPTIONS * NO_WLK1 = 1 * WLK1_EXISTS = 2 * WRONG_DATES = 3 * WRONG_FUNCTION = 4 * ALWAYS_RJ_CONNECTED = 5 * OTHERS = 6.

ASSORTMENT_HEAD_HANDLING call function 'ASSORTMENT_HEAD_HANDLING' exporting assortment_head_new = wsoh * ASSORTMENT_HEAD_OLD = WSOH kein alter Wert function = '1' "anlegen importing wscor = wscor module_number = wsoh-skopf tables texte = wsot_texte positionen = wsop_corr."intern Pos.-Pflege !

ASSIGNMENT_POS_TO_SHOP call function 'ASSIGNMENT_POS_TO_SHOP' exporting assortment_head = wsoh assortment_pos = wint_pos function = '1' location = wsoh-lokal * MERCHANDISE_GROUP = MARA-MATKL DEFAULT SPACE * SITUATION LIKE WTDY-TYP01 DEFAULT SPACE * LISTING_METHOD LIKE TWLV-LSTFL DEFAULT SPACE * VKORG LIKE TVKO-VKORG DEFAULT SPACE * VTWEG LIKE TVTW-VTWEG DEFAULT SPACE importing wscor = wscor * TABLES * UNITS STRUCTURE WINT_ME OPTIONAL * VARIANTS STRUCTURE WINT_WAM1 OPTIONAL exceptions assortment_pos_already_exists = 1 assortment_pos_not_found = 2 wrong_function = 3 enqueued = 4.

ASSORTMENT_ISSUING_SELECT call function 'ASSORTMENT_ISSUING_SELECT' exporting item = positionen-sposi shop = wsoh-lokal date = positionen-datuv matkl = mara-matkl tables issuing_plants = iss_plants exceptions no_issuing_plant = 01.

ASSORTMENT_CREATE_CONDITIONS call function 'ASSORTMENT_CREATE_CONDITIONS' exporting shop = iss_plants-asort DELIVARY_PLANT = 'X' " TC note 336678
tables positionen = iss_all_matnr exceptions conditions_already_exist = 01.

WWS_ENQUEUE_WSOH call function 'WWS_ENQUEUE_WSOH' in update task exporting sperrmodus = 'S' skopf = wsoh-skopf exceptions rec_locked = 1 others = 2.

WWS_DEQUEUE_WSOH call function 'WWS_DEQUEUE_WSOH' in update task exporting sperrmodus = 'S' skopf = wsoh-skopf.

WLK1_BUFFER_REFRESH call function 'WLK1_BUFFER_REFRESH'.

VARIANT_ITEM_READ_ALL call function 'VARIANT_ITEM_READ_ALL' exporting item = pt_material-sposi tables variant_list = variant_list exceptions no_variants_found = 1 others = 2.

WLK1_READ_INTO_BUFFER call function 'WLK1_READ_INTO_BUFFER' exporting sortierung = sortierung tables t_mara = ht_mara t_wrs1 = ht_wrs1.

WSOF_READ_WITH_SKOPF call function 'WSOF_READ_WITH_SKOPF' exporting skopf = p_skopf tables twsof = ht_wsof exceptions key_uncomplete = 1 no_rec_found = 2 others = 3.

WLK1_READ_INTO_BUFFER call function 'WLK1_READ_INTO_BUFFER' exporting sortierung = sortierung tables t_mara = ht_mara t_wrs1 = ht_wrs1.



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