SAP Reports / Programs

RWSORT28 SAP ABAP Report - Material per customer







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

WSLF - Material per customer


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 RWSORT28. "Basic submit
SUBMIT RWSORT28 AND RETURN. "Return to original report after report execution complete
SUBMIT RWSORT28 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: VTWEG = Distribution channel
Selection Text: VKORG = Sales organization
Selection Text: SORT4 = Analyze SD product proposal
Selection Text: SORT3 = Analyze IS-R listing conds.
Selection Text: P_VARI = Output variant
Selection Text: KUNNR = Customer
Selection Text: DATSTART = listed from
Selection Text: DATEND = to
Selection Text: AKTIO = Promotion
Title: Material per customer
Text Symbol: B01 = Default quantity
Text Symbol: 201 = Assortment
Text Symbol: 104 = SlsUn listed from to Prio. Exclus. Promotion Theme Module No. of modules
Text Symbol: 102 = Material Description
Text Symbol: 101 = Assortment
Text Symbol: 100 = Customer
Text Symbol: 055 = Cust. has no assortment
Text Symbol: 013 = Cust. sel. for assortment display
Text Symbol: 012 = Do you wish to perform the function?
Text Symbol: 010 = Number of customers selected:
Text Symbol: 006 = No listing conditions found
Text Symbol: 005 = End of list
Text Symbol: 003 = Sequence of entries in list
Text Symbol: 002 = Validity range - details
Text Symbol: 001 = Validity range
004 SlsUn listed from to
003 Material Description
002 Assortment
001 Customer


INCLUDES used within this REPORT RWSORT28

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.

POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE'"#EC FB_OLDED EXPORTING DIAGNOSETEXT1 = TEXT-010 TEXTLINE1 = TEXT011 TEXTLINE2 = TEXT-012 TITEL = TEXT-013 "Bildüberschrift" DEFAULTOPTION = 'Y' "Antwort 'Y'/'N' IMPORTING ANSWER = ANSWER. "'J'/'N'/'A'

ASSORTMENT_GET_ASORT_OF_CUST CALL FUNCTION 'ASSORTMENT_GET_ASORT_OF_CUST' EXPORTING CUSTOMER = I_KNA1-KUNNR * VKORG = * VTWEG = * SPART = * SELECT_INVALID_ASORT = ' ' * IMPORTING * DEFAULT_ASORT = TABLES * LIST_OF_ASORT = LIST_OF_WRSZ = I_WRSZ EXCEPTIONS OBJECT_HAS_NO_ASORT = 1 OBJECT_IS_NO_ASS_CUSTOMER = 2 OTHERS = 3.

ASSORTMENT_CUST_ASS_LIST CALL FUNCTION 'ASSORTMENT_CUST_ASS_LIST' EXPORTING CUSTOMER = I_KNA1-KUNNR DATE_BEGIN = DATSTART DATE_END = DATEND PROMOTION = AKTIO RETAIL_COND = SORT3 SD_ASSORTMENT = SORT4 TABLES ASSORTMENT = I_WLK1 DIST_CHAIN = I_TVKOV EXCEPTIONS NO_ASSORTMENT = 1.

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 = ' ' * i_callback_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_WRSZ_ALL T_OUTTAB_ITEM = IT_WLK1_ALL EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING I_INTERNAL_TABNAME = G_TABNAME_HEADER I_STRUCTURE_NAME = 'WRSZ' 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_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING I_LIST_TYPE = 0 IMPORTING ET_EVENTS = P_EVENTS.



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