SAP Reports / Programs

RWSORT00 SAP ABAP Report - Test: which segments are required for assortment/material combination







RWSORT00 is a standard Executable ABAP Report 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 RWSORT00 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 RWSORT00. "Basic submit
SUBMIT RWSORT00 AND RETURN. "Return to original report after report execution complete
SUBMIT RWSORT00 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: P_ASORT = Assortment
Selection Text: P_MATNR = Material
Title: Test: which segments are required for assortment/material combination
Text Symbol: 001 = Material
Text Symbol: 002 = Matl Group
Text Symbol: 003 = Matl Type
Text Symbol: 004 = Assortm.
Text Symbol: 005 = Assortment distribution chain
Text Symbol: 006 = MARC segments
Text Symbol: 007 = The following segments must be generated:
Text Symbol: 008 = MBEW segments
Text Symbol: 009 = Listing condition
Text Symbol: 010 = MVKE segments
Text Symbol: 011 = WLK2 segments
Text Symbol: 012 = Ref. plant
Text Symbol: 013 = VO Material
Text Symbol: 014 = Segments created for the following keys
Text Symbol: 015 = MARC
Text Symbol: 016 = MBEW
Text Symbol: 017 = MVKE
Text Symbol: 020 = Evaluation Result


INCLUDES used within this REPORT RWSORT00

INCLUDE RWSORT_LISTVIEW_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:

MARA_SINGLE_READ CALL FUNCTION 'MARA_SINGLE_READ' EXPORTING MATNR = P_MATNR IMPORTING WMARA = S_MARA EXCEPTIONS LOCK_ON_MATERIAL = 1 LOCK_SYSTEM_ERROR = 2 WRONG_CALL = 3 NOT_FOUND = 4 OTHERS = 5.

WRS1_SINGLE_READ CALL FUNCTION 'WRS1_SINGLE_READ' EXPORTING ASORT = P_ASORT * SPRAS = ONLY_SINGLE_SELECT = 'X' IMPORTING WRS1_OUT = S_WRS1 EXCEPTIONS NO_RECORD_FOUND = 1 SPRAS_NOT_FOUND = 2 OTHERS = 3.

ASSORTMENT_WHICH_SEGMENTS CALL FUNCTION 'ASSORTMENT_WHICH_SEGMENTS' EXPORTING * WERKS = MATNR = S_MARA-MATNR ASORT = S_WRS1-ASORT MATKL = S_MARA-MATKL MTART = S_MARA-MTART * HIER_AT_ALL = 'X' * VALUE_MATNR_GET = ' ' * SELECT_USERS = ' ' * CHAR_OF_USER = ' ' * USER_DATA = IMPORTING MARC_MUST_BE = MARC_MUST_BE WLK2_MUST_BE = WLK2_MUST_BE WLK1_MUST_BE = WLK1_MUST_BE MBEW_MUST_BE = MBEW_MUST_BE MVKE_MUST_BE = MVKE_MUST_BE REF_PLANT = REF_PLANT * bwtty_default = bwtty_default * bwtar_default = bwtar_default VALUE_MATNR = VALUE_MATNR * T001W_OUT = T001W_OUT TABLES MBEW_TABS = MBEW_TABS MVKE_TABS = MVKE_TABS MARC_TABS = MARC_TABS EXCEPTIONS NO_WERKS_OR_ASORT = 1 WRONG_ASORT = 2 WRONG_WERKS = 3 MATKL_MUST_BE = 4 OTHERS = 5.



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