SAP Reports / Programs

RWSORT21 SAP ABAP Report - Materials in Module







RWSORT21 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 RWSORT21 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 RWSORT21. "Basic submit
SUBMIT RWSORT21 AND RETURN. "Return to original report after report execution complete
SUBMIT RWSORT21 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: TEBAU = Analyze profile modules too
Selection Text: P_VARI = Display Variant
Selection Text: MATNR = Material
Selection Text: BAUST = Module
Title: Materials in Module
Text Symbol: M04 = Promotion Theme Assortment MatGp Local
Text Symbol: M03 = Valid from to Cat Prio Active
Text Symbol: M02 = Module Description
Text Symbol: M01 = Material Cat. Description
Text Symbol: K04 = Assortment
Text Symbol: K03 = Material Cat. Description
Text Symbol: K02 = Promotion Theme Assortment MatGp Local
Text Symbol: K01 = Module Valid from to Cat Prio Active
Text Symbol: 005 = or all modules for specified materials
Text Symbol: 004 = Either all materials in specified modules
Text Symbol: 003 = End of processing
Text Symbol: 002 = Material No Longer Active In Material Master
Text Symbol: 001 = No module found for selection:


INCLUDES used within this REPORT RWSORT21

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.

WSOP_READ CALL FUNCTION 'WSOP_READ' EXPORTING ALL_POS = 'X' DATUM = '00000000' WSOP = WSOP MAX_TIME_RANGE = 'X' TABLES WSOP_INPUT = I_WSOP EXCEPTIONS NO_REC_ACTIVE = 01 NO_REC_FOUND = 02.

WLK1_READ_MULTIPLE_FUNCTIONS CALL FUNCTION 'WLK1_READ_MULTIPLE_FUNCTIONS' EXPORTING * BUFFERS_READ = ' ' WLK1_SINGLE_SELECT = TMP_WLK1 FUNCTION = 'x' "klein X * ATTYP = ' ' * SELECT_ASSORTMENT = 'X' * IMPORTING * WLK1_OUTPUT = TABLES * WLK1_ARRAY_SELECT = WLK1_RESULTS = II_WLK1 SAMMEL_ITEM = I_MATNR * PLANT_LIST = EXCEPTIONS NO_REC_FOUND = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING I_INTERNAL_TABNAME = G_TABNAME_HEADER I_STRUCTURE_NAME = 'WSOH' 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 = 'WSOP' CHANGING CT_FIELDCAT = P_FIELDCAT[].

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 = 'WSOP' 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_CALLBACK_PROGRAM = G_REPID IS_LAYOUT = GS_LAYOUT IT_FIELDCAT = GT_FIELDCAT[] IT_SPECIAL_GROUPS = GT_SP_GROUP[] I_DEFAULT = G_DEFAULT I_SAVE = G_SAVE IS_VARIANT = G_VARIANT IT_EVENTS = GT_EVENTS[] I_TABNAME_HEADER = G_TABNAME_HEADER I_TABNAME_ITEM = G_TABNAME_ITEM IS_KEYINFO = GS_KEYINFO TABLES T_OUTTAB_HEADER = I_WSOH T_OUTTAB_ITEM = IT_WSOP EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = G_REPID IS_LAYOUT = GS_LAYOUT IT_FIELDCAT = GT_FIELDCAT[] IT_SPECIAL_GROUPS = GT_SP_GROUP[] I_DEFAULT = G_DEFAULT I_SAVE = G_SAVE IS_VARIANT = G_VARIANT IT_EVENTS = GT_EVENTS[] I_TABNAME_HEADER = G_TABNAME_HEADER I_TABNAME_ITEM = G_TABNAME_ITEM IS_KEYINFO = GS_KEYINFO TABLES T_OUTTAB_HEADER = IT_MAKT T_OUTTAB_ITEM = IT_WSOP EXCEPTIONS PROGRAM_ERROR = 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 RWSORT21 or its description.