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

RWSORT07A SAP ABAP Report - Automatic Relisting Via Changes to Assortment Master Data







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


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

WSM4A - Relist After Changes to Assortments


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


Text pool values


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


INCLUDES used within this REPORT RWSORT07A

INCLUDE RWSOR7ATOP. " GLOBAL DATA
INCLUDE RWSORT07A_ALT. " APPLICATION LOG DATA


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:

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.



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