RWSORT07A is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The old transaction WSM4 has been split into two new transactions for the multiple assignment of assortments to plants...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter RWSORT07A into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
WSM4A - Relist After Changes to Assortments
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.
Selection Text: ZEIT_AB = Time From
Selection Text: WIVF_VZ = For Astmnt Cat.: Distr. Center
Selection Text: WIVF_FL = For Astmnt Cat.: Store/Others
Selection Text: PROTT = Log Depth (1..3)
Selection Text: NOBELS = Info, If No Change Documents
Selection Text: LIEFWERK = Also List Supplying Plant
Selection Text: FILIA = Assortment
Selection Text: F3 = Changes To Assortment Classif.
Selection Text: F1 = Changes To Matgrp/Assortment
Selection Text: DATUM_AB = Date From
Selection Text: DATBE = Select By Mat. Listing Date
Selection Text: CIVF_VZ = For Astmnt Cat.: Distr. Center
Selection Text: CIVF_FL = For Astmnt Cat.: Store/Others
Selection Text: CHECK_LO = List Local Assortments Also
Selection Text: B_ART = Manage Article Listing Proced.
Selection Text: AB_ZWANG = Only Documents From Date/Time
Title: Automatic Relisting Via Changes to Assortment Master Data
Text Symbol: I12 = for more information
Text Symbol: I11 = See also SAP Notes 65124 and 942691
Text Symbol: I10 = Maintain Classification Correctly
Text Symbol: 051 = Processing Time
Text Symbol: 050 = End of Processing
Text Symbol: 040 = Start of Processing
Text Symbol: 022 = Changes to Assortment / Material Classification
Text Symbol: 020 = Changes To Assortment-Mat. Group Master
Text Symbol: 007 = Listing Procedures To Be Used When Checking Classification
Text Symbol: 004 = Listing Procedures To Be Used When Checking Material Groups Assortment
Text Symbol: 003 = Selections
Text Symbol: 002 = Select Master Data Change Area For Assortment
Text Symbol: 001 = Select Assortment
INCLUDE RWSOR7ATOP. " GLOBAL DATA
INCLUDE RWSORT07A_ALT. " APPLICATION LOG DATA
No SAP DATABASE tables are accessed within this REPORT code!
READ_CHECK_LOCAL_ASSORTMENT CALL FUNCTION 'READ_CHECK_LOCAL_ASSORTMENT' IMPORTING check_local_assortment = check_local_assortment.
WWS_ENQ_ASSORTMENT CALL FUNCTION 'WWS_ENQ_ASSORTMENT' EXPORTING artikel = mara-matnr " BAUSTEIN = ' ' " DATUMBIS = ' ' filia = i_asort-asort sperr_modus = 'E' " VKORG = ' ' " VRKME = ' ' " VTWEG = ' ' was = '3' "WLK1-Kopf-Eintrag EXCEPTIONS foreign_lock = 01 no_modus = 02 no_was = 03 system_failure = 04.
DEQUEUE_E_WLKE CALL FUNCTION 'DEQUEUE_E_WLKE' EXPORTING artnr = mara-matnr filia = i_asort-asort.
WLK1_READ_MULTIPLE_FUNCTIONS CALL FUNCTION 'WLK1_READ_MULTIPLE_FUNCTIONS' EXPORTING * BUFFERS_READ = ' ' wlk1_single_select = tmp_wlk1 function = 'R' * ATTYP = ' ' * SELECT_ASSORTMENT = 'X' * IMPORTING * WLK1_OUTPUT = TABLES * WLK1_ARRAY_SELECT = wlk1_results = ii_wlk1 * SAMMEL_ITEM = * PLANT_LIST = EXCEPTIONS no_rec_found = 1 OTHERS = 2.
MATERIAL_READ_WITH_MATKL CALL FUNCTION 'MATERIAL_READ_WITH_MATKL' EXPORTING matkl = matkl only_retail = 'X' * SPRAS = ' ' only_active = 'X' TABLES t_mara = t_mara * T_MAKT = .
WLK1_CHECK CALL FUNCTION 'WLK1_CHECK' " 4.5B
ASSORTMENT_FIND_ISSUING_TYPE CALL FUNCTION 'ASSORTMENT_FIND_ISSUING_TYPE' EXPORTING mara_delivery_code = imatkl-bwscl EXCEPTIONS from_external_vendor = 01 from_internal_plant = 02 undefined_issuing = 03 undetermined_delivery_code = 04.
ASSORTMENT_FIND_ISSUING_TYPE CALL FUNCTION 'ASSORTMENT_FIND_ISSUING_TYPE' EXPORTING search_codes = 'X' * mara_delivery_code = IMPORTING external_code = strecke internal_code = lager undefined_code = offen EXCEPTIONS from_external_vendor = 01 from_internal_plant = 02 undefined_issuing = 03 undetermined_delivery_code = 04.
WSOH_READ_PROFILE_MODULE CALL FUNCTION 'WSOH_READ_PROFILE_MODULE' EXPORTING matkl = wsoh-wagrp asort = wsoh-filia only_active = 'X' IMPORTING ewsoh = wsoh EXCEPTIONS key_uncomplete = 1 rec_enqueued = 2 rec_not_active = 3 rec_not_valid_in_time = 4 no_rec_found = 5 OTHERS = 6.
APPL_LOG_INIT CALL FUNCTION 'APPL_LOG_INIT' EXPORTING object = object subobject = subobject EXCEPTIONS object_not_found = 01 subobject_not_found = 02.
APPL_LOG_WRITE_HEADER CALL FUNCTION 'APPL_LOG_WRITE_HEADER' EXPORTING header = header_data IMPORTING update_or_insert = upda_or_ins EXCEPTIONS object_not_found = 01 subobject_not_found = 02.
APPL_LOG_WRITE_MESSAGE_PARAMS CALL FUNCTION 'APPL_LOG_WRITE_MESSAGE_PARAMS' EXPORTING object = object subobject = subobject MESSAGE = balmi update_or_insert = 'I' TABLES PARAMETERS = i_spar EXCEPTIONS object_not_found = 01 subobject_not_found = 02 no_text_and_no_userexit = 03.
APPL_LOG_WRITE_DB CALL FUNCTION 'APPL_LOG_WRITE_DB' EXPORTING object = object subobject = subobject TABLES object_with_lognumber = number_tab EXCEPTIONS object_not_found = 01 subobject_not_found = 02.
MAW1_SINGLE_READ CALL FUNCTION 'MAW1_SINGLE_READ' EXPORTING * KZRFB = ' ' * MAXTZ = 0 matnr = mara-matnr IMPORTING wmaw1 = maw11 EXCEPTIONS wrong_call = 1 not_found = 2 OTHERS = 3.
MVKE_SINGLE_READ CALL FUNCTION 'MVKE_SINGLE_READ' EXPORTING * KZRFB = ' ' * MAXTZ = 0 matnr = mara-matnr vkorg = sotr-vkorg vtweg = sotr-vtweg * SPERRMODUS = ' ' * STD_SPERRMODUS = ' ' IMPORTING wmvke = mvke1 EXCEPTIONS lock_on_mvke = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 OTHERS = 5.
MARC_SINGLE_READ CALL FUNCTION 'MARC_SINGLE_READ' EXPORTING matnr = p_matnr werks = h_werks IMPORTING wmarc = t_marc EXCEPTIONS lock_on_marc = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 OTHERS = 5.
DEQUEUE_E_WSOPE CALL FUNCTION 'DEQUEUE_E_WSOPE' EXPORTING sposi = enqueue_tab-matnr datub = sy-datum.
ASSORTMENT_CHECK_ENQ_MATNR CALL FUNCTION 'ASSORTMENT_CHECK_ENQ_MATNR' EXPORTING matnr = p_matnr EXCEPTIONS enqueued = 1.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RWSORT07A - Automatic Relisting Via Changes to Assortment Master Data RWSORT07A - Automatic Relisting Via Changes to Assortment Master Data RWSORT07 - Automatic Relisting Using Changes To Master Data RWSORT07 - Automatic Relisting Using Changes To Master Data RWSORT06 - Delete individual listing of material/distribution chain RWSORT06 - Delete individual listing of material/distribution chain