SAP Reports / Programs

RWSORT01 SAP ABAP Report - Listing Conditions







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

WSL1 - Assortments, selection lists


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 RWSORT01. "Basic submit
SUBMIT RWSORT01 AND RETURN. "Return to original report after report execution complete
SUBMIT RWSORT01 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: WAGRU = Material Group
Selection Text: VTWEG = Distribution Channel
Selection Text: VKORG = Sales Organization
Selection Text: P_VARI = Display Variant
Selection Text: P_KOMPO = Display Variants / Components
Selection Text: FILIA = Assortment
Selection Text: DATUM = Valid On
Selection Text: ARTNR = Material
Selection Text: AKTIO = Promotion
Title: Listing Conditions
Text Symbol: 022 = Validity
Text Symbol: 021 = Organizational Levels
Text Symbol: 020 = Material
Text Symbol: 012 = selected period determined.
Text Symbol: 011 = No listing condition within the
Text Symbol: 010 = No listing conditions determined.
002 description rack jobber
001 |Assortment material Un valid_from to prior. exclus. promotion theme module no. modules


INCLUDES used within this REPORT RWSORT01

INCLUDE MWWCONST.
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:

REUSE_ALV_VARIANT_DEFAULT_GET call function 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = g_save CHANGING cs_variant = gx_variant EXCEPTIONS not_found = 2.

MAKT_SINGLE_READ call function 'MAKT_SINGLE_READ' " INSERT 4.5B

ASSORTMENT_READ_ASSORTMENT call function 'ASSORTMENT_READ_ASSORTMENT' exporting asort = wint_carrs asort_type = ' '"alle Typen * DATE = read_head = 'X' tables head_of_asort = t_carrh exceptions object_is_no_asort = 1 no_categ_data_found = 2 no_deliv_data_found = 3 no_deptm_data_found = 4 others = 5.

MATERIAL_READ_WITH_MATKL call function 'MATERIAL_READ_WITH_MATKL' exporting matkl = it023-matkl * ONLY_RETAIL = ' ' * SPRAS = ' ' only_active = 'X' tables t_mara = imara * T_MAKT = exceptions others = 1.

WLK1_BUFFER_REFRESH call function 'WLK1_BUFFER_REFRESH' EXCEPTIONS others = 1.

WLK1_READ call function 'WLK1_READ' exporting datum = date wlk1 = wlk1 sperr_modus = ' ' * ALL_ITEMS_PER_SHOP_DATUB LIKE WLK1-DATBI * DEFAULT SPACE * ALL_ITEMS_PER_SHOP_DATAB LIKE WLK1-DATAB * DEFAULT SPACE * WLK11 LIKE WLK11 STRUCTURE WLK11 DEFAULT SPACE importing no_unit_but_item_listing = wtdy-typ01 tables wlk1_input = int_wlk1 exceptions no_rec_found = 1 rec_enqueued = 2 tec_enqueued = 3.

REUSE_ALV_FIELDCATALOG_MERGE call function 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_internal_tabname = g_tabname_header i_structure_name = 'MAKT' CHANGING ct_fieldcat = p_fieldcat[].

REUSE_ALV_FIELDCATALOG_MERGE call function 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_internal_tabname = g_tabname_item i_structure_name = 'WLK1' CHANGING ct_fieldcat = p_fieldcat[].

REUSE_ALV_FIELDCATALOG_MERGE call function 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_internal_tabname = g_tabname_item i_structure_name = 'WLK1' CHANGING ct_fieldcat = p_fieldcat[].

REUSE_ALV_FIELDCATALOG_MERGE call function 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_internal_tabname = g_tabname_item i_structure_name = 'MAKT' CHANGING ct_fieldcat = p_fieldcat[].

REUSE_ALV_EVENTS_GET call function 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = p_events.

REUSE_ALV_HIERSEQ_LIST_DISPLAY call function 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' exporting * I_INTERFACE_CHECK = ' ' i_callback_program = g_repid i_callback_pf_status_set = g_status i_callback_user_command = g_user_command is_layout = gs_layout it_fieldcat = gt_fieldcat[] * IT_EXCLUDING = it_special_groups = gt_sp_group[] * IT_FILTER = * IS_SEL_HIDE = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 i_default = g_default i_save = g_save is_variant = g_variant it_events = gt_events[] * IT_EVENT_EXIT = i_tabname_header = g_tabname_header i_tabname_item = g_tabname_item * I_STRUCTURE_NAME_HEADER = * I_STRUCTURE_NAME_ITEM = * IS_PRINT = is_keyinfo = gs_keyinfo * IS_REPREP_ID = * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = tables t_outtab_header = it_makt t_outtab_item = it_wlk1_all exceptions program_error = 1 others = 2.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = g_repid i_callback_pf_status_set = g_status i_callback_user_command = g_user_command is_layout = gs_layout it_fieldcat = gt_fieldcat[] it_special_groups = gt_sp_group[] IT_SORT = lt_sort i_default = g_default i_save = g_save is_variant = g_variant it_events = gt_events[] TABLES t_outtab = it_wlk1_all EXCEPTIONS program_error = 1 OTHERS = 2.

MATERIAL_READ_WITH_MATKL call function 'MATERIAL_READ_WITH_MATKL' EXPORTING matkl = it023-matkl only_active = 'X' TABLES t_mara = ht_mara EXCEPTIONS others = 1.

ASSORTMENT_CHECK_ATTYP call function 'ASSORTMENT_CHECK_ATTYP' exporting attyp = imara_copy-attyp * MTART = ' ' exceptions generic_article = 1 structured_article = 2 variant_article = 3 value_article = 4 empty_article = 5 others = 6.

VARIANT_ITEM_READ_ALL call function 'VARIANT_ITEM_READ_ALL' exporting * DATE = ' ' * INACTIVE_ITEMS = ' ' item = imara_copy-matnr * TYPE_F = ' ' * IMPORTING * E_ATTYP = tables variant_list = ht_mara exceptions no_variants_found = 1 others = 2.



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