RWSORTK1 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 RWSORTK1 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
WSL10 - Materials in Assortment
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: P_BOTH = List as Inclusion & Exclusion
Selection Text: P_EXCLU = List as Exclusion
Selection Text: P_MAXROW = Max. No. Of Data Records
Selection Text: P_NORMAL = List as Inclusion
Selection Text: P_VARI = Display Variant
Selection Text: S_ASORT = Assortment
Selection Text: S_DATUM = Valid On
Selection Text: S_MATKL = Material Group
Title: Listing Conditions per Assortment
Text Symbol: 002 = List Type
Text Symbol: 003 = Listing conditions within
Text Symbol: 004 = Selection Criteria
Text Symbol: 005 = Results List
Text Symbol: 011 = No listing condition within the
Text Symbol: 012 = selected period determined.
INCLUDE RWSK1TOP . "
No SAP DATABASE tables are accessed within this REPORT code!
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.
REUSE_ALV_EVENTS_GET call function 'REUSE_ALV_EVENTS_GET' exporting i_list_type = 0 importing et_events = e03_lt_events.
MATERIAL_READ_WITH_MATKL call function 'MATERIAL_READ_WITH_MATKL' exporting matkl = it_t023-matkl only_active = 'X' tables t_mara = hit_mara exceptions others = 1.
MAKT_ARRAY_READ call function 'MAKT_ARRAY_READ' * EXPORTING * KZRFB = ' ' * NEUFLAG = ' ' tables ipre09 = it_pre09 makt_tab = it_makt exceptions enqueue_mode_changed = 1 others = 2 .
MAKT_ARRAY_READ call function 'MAKT_ARRAY_READ' * EXPORTING * KZRFB = ' ' * NEUFLAG = ' ' tables ipre09 = it_pre09 makt_tab = it_makt exceptions enqueue_mode_changed = 1 others = 2 .
REUSE_ALV_COMMENTARY_WRITE call function 'REUSE_ALV_COMMENTARY_WRITE' exporting it_list_commentary = gt_list_top_of_page.
REUSE_ALV_VARIANT_F4 call function 'REUSE_ALV_VARIANT_F4' exporting is_variant = g_variant i_save = g_save * it_default_fieldcat = importing e_exit = g_exit es_variant = gx_variant exceptions not_found = 2.
REUSE_ALV_VARIANT_EXISTENCE call function 'REUSE_ALV_VARIANT_EXISTENCE' exporting i_save = g_save changing cs_variant = gx_variant.
REUSE_ALV_FIELDCATALOG_MERGE call function 'REUSE_ALV_FIELDCATALOG_MERGE' exporting i_internal_tabname = g_tabname_header i_structure_name = 'WRST' 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_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_SORT = * 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_keyinfo = gs_keyinfo * IS_PRINT = * IS_REPREP_ID = * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = tables t_outtab_header = it_wrst t_outtab_item = it_wlk1_all exceptions program_error = 1 others = 2.
REUSE_ALV_LIST_DISPLAY * CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' * EXPORTING * I_CALLBACK_PROGRAM = G_REPID * I_STRUCTURE_NAME = 'wlk1' * IT_FIELDCAT = GT_FIELDCAT[] ** IT_EXCLUDING = * IT_SPECIAL_GROUPS = GT_SP_GROUP[] ** IT_SORT = ** IT_FILTER = ** IS_SEL_HIDE = ** i_default = g_default * I_SAVE = G_SAVE * IS_VARIANT = G_VARIANT * IT_EVENTS = GT_EVENTS[] ** IT_EVENT_EXIT = ** IS_PRINT = ** I_SCREEN_START_COLUMN = 0 ** I_SCREEN_START_LINE = 0 ** I_SCREEN_END_COLUMN = 0 ** I_SCREEN_END_LINE = 0 ** IMPORTING ** E_EXIT_CAUSED_BY_CALLER = * TABLES * T_OUTTAB = IT_WLK1.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.