RWSORT24 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program provides an overview of all the materials that belong to a particular assortment grade in the distribution chains or plants selected...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 RWSORT24 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
WSL8 - Assortment grade info
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: WERT = Display MG material
Selection Text: WERKE = Assortment
Selection Text: WAGRU = Material group
Selection Text: VTWEG = Distribution channel
Selection Text: VKORG = Sales organization
Selection Text: SSTUF = Assortment grade
Selection Text: SORT_WRK = Sorting by assortment
Selection Text: SORT_MAT = Sorting by material
Selection Text: NUR_LIST = Only listed materials
Selection Text: MATNR = Material
Selection Text: LISTALG = Listing algorithm
Title: Assortment Grades Information
Text Symbol: 302 = Sort output
Text Symbol: 301 = Control
Text Symbol: 300 = Selection
Text Symbol: 203 = listed from-to AGrade AssortmentLstng
Text Symbol: 202 = Material no. Description
Text Symbol: 201 = MatGroup Description AGrad max.(in assortment-mat.grp.-master)
Text Symbol: 200 = Assortment Description
Text Symbol: 107 = Item
Text Symbol: 103 = from to (maintained in mat.group-assortment-master)
Text Symbol: 102 = Assortment listed Mat. group max.AGrad Description
Text Symbol: 101 = SOrg DisCh AGrad Description
Text Symbol: 100 = Material Description
Text Symbol: 063 = Max.AGrad
Text Symbol: 062 = Excl.frm
Text Symbol: 061 = Excl.to
Text Symbol: 004 = No listing
Text Symbol: 003 = Select assortment grades from..to:
Text Symbol: 002 = List end
Text Symbol: 001 = Unclassified
INCLUDE MWWCONST.
INCLUDE RWSORT_LISTVIEW_DATA.
No SAP DATABASE tables are accessed within this REPORT code!
ASSORTMENT_READ_ASSORTMENT CALL FUNCTION 'ASSORTMENT_READ_ASSORTMENT' EXPORTING ASORT = WINT_CARRS * DATE = READ_HEAD = 'X' * READ_WRS6 = ' ' * READ_WRS3 = ' ' * READ_WRS4 = ' ' * RAISE_AT_EXCEPTIONS = ' ' TABLES * CATEG_OF_ASORT = * DELIV_OF_ASORT = * DEPTM_OF_ASORT = HEAD_OF_ASORT = IT001W EXCEPTIONS OBJECT_IS_NO_ASORT = 1 NO_CATEG_DATA_FOUND = 2 NO_DELIV_DATA_FOUND = 3 NO_DEPTM_DATA_FOUND = 4 OTHERS = 5.
WLK1_READ CALL FUNCTION 'WLK1_READ' EXPORTING * DATUM = ' ' WLK1 = WLK1 * SPERR_MODUS = ' ' * ALL_ITEMS_PER_SHOP_DATUB = ' ' * ALL_ITEMS_PER_SHOP_DATAB = ' ' * WLK11 = ' ' * select_single = ' ' IMPORTING NO_UNIT_BUT_ITEM_LISTING = QW TABLES WLK1_INPUT = IWLK1 EXCEPTIONS NO_REC_FOUND = 01 REC_ENQUEUED = 02 TEC_ENQUEUED = 03.
ASSORTMENT_READ_ASSORTMENT CALL FUNCTION 'ASSORTMENT_READ_ASSORTMENT' EXPORTING ASORT = WINT_CARRS * DATE = READ_HEAD = 'X' * READ_WRS6 = ' ' * READ_WRS3 = ' ' * READ_WRS4 = ' ' * RAISE_AT_EXCEPTIONS = ' ' TABLES * CATEG_OF_ASORT = * DELIV_OF_ASORT = * DEPTM_OF_ASORT = HEAD_OF_ASORT = IT001W EXCEPTIONS OBJECT_IS_NO_ASORT = 1 NO_CATEG_DATA_FOUND = 2 NO_DELIV_DATA_FOUND = 3 NO_DEPTM_DATA_FOUND = 4 OTHERS = 5.
WLK1_READ CALL FUNCTION 'WLK1_READ' EXPORTING * DATUM = ' ' WLK1 = WLK1 * SPERR_MODUS = ' ' * ALL_ITEMS_PER_SHOP_DATUB = ' ' * ALL_ITEMS_PER_SHOP_DATAB = ' ' * WLK11 = ' ' * select_single = ' ' IMPORTING NO_UNIT_BUT_ITEM_LISTING = QW TABLES WLK1_INPUT = IWLK1 EXCEPTIONS NO_REC_FOUND = 01 REC_ENQUEUED = 02 TEC_ENQUEUED = 03.
WRS1_SINGLE_READ ** CALL FUNCTION 'WRS1_SINGLE_READ' ** EXPORTING ** ASORT = DRUCK-WERKS ** SPRAS = SY-LANGU ** IMPORTING ** WRS1_OUT = WRS1 ** WRST_OUT = WRST ** EXCEPTIONS ** NO_RECORD_FOUND = 1 ** SPRAS_NOT_FOUND = 2 ** OTHERS = 3.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.