SAP Reports / Programs

RWSORT07B SAP ABAP Report - Automatic Relisting by Changing Plant Master Data







RWSORT07B 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 RWSORT07B 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

WSM4B - Relist After Changes to Plants


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 RWSORT07B. "Basic submit
SUBMIT RWSORT07B AND RETURN. "Return to original report after report execution complete
SUBMIT RWSORT07B 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: S_LOCNR = Plant
Selection Text: QIVF_VZ = For Supplying Plant
Selection Text: PROTT = Log Depth (1..3)
Selection Text: NOBELS = Info, If No Change Documents
Selection Text: LIEFWERK = Also List Supplying Plant
Selection Text: F4 = Changes To Material Source
Selection Text: F3 = Changes to Classif. Plant
Selection Text: F2 = Changes To Supplying Plants
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: B_ART = Manage Article Listing Proced.
Selection Text: BIVF_VZ = For Supplying Plant
Selection Text: AB_ZWANG = Only Documents From Date/Time
Title: Automatic Relisting by Changing Plant Master Data
Text Symbol: 051 = Processing Time
Text Symbol: 050 = End of Processing
Text Symbol: 040 = Start of Processing
Text Symbol: 025 = Caution : Bring Source Of Supply Key Determination Up To Date
Text Symbol: 023 = Changes To Material Source Of Supply Key
Text Symbol: 022 = Changes to Assortment / Material Classification
Text Symbol: 021 = Changes To Supplying Plant
Text Symbol: 020 = Supplying Plant Chngs
Text Symbol: 008 = Listing Procedures To Use When Checking Supplying Plants
Text Symbol: 007 = Listing Procedures To Use When Checking Classification
Text Symbol: 006 = Listing Procedures To Use When Checking Changes In Supply Sources
Text Symbol: 003 = Selections
Text Symbol: 002 = Select Master Data Change Area
Text Symbol: 001 = Select Plant


INCLUDES used within this REPORT RWSORT07B

INCLUDE RWSOR7BTOP.


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_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 = ' ' no_buffer = 'X' TABLES assortment_users = s_wrsz assortment_data = t_asort assortment_connects = t_wrsz EXCEPTIONS no_asort_found = 1 OTHERS = 2 .

WWS_ENQ_ASSORTMENT CALL FUNCTION 'WWS_ENQ_ASSORTMENT' EXPORTING artikel = mara-matnr " BAUSTEIN = ' ' " DATUMBIS = ' ' filia = t_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 = t_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 RWSORT07B or its description.