SAP Reports / Programs

RWSORT05 SAP ABAP Report - Change individual listing of material/distribution chain







RWSORT05 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 RWSORT05 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 RWSORT05. "Basic submit
SUBMIT RWSORT05 AND RETURN. "Return to original report after report execution complete
SUBMIT RWSORT05 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: VZVON = Listed from
Selection Text: VZBIS = to
Selection Text: VTWEG = Distribution channel
Selection Text: VKORG = Sales organization
Selection Text: SSTUF = Assortment grade, distr. chain
Selection Text: SATNR = Material
Selection Text: PFLKN = Astmt priority
Selection Text: MANPF = Manual editing of results
Selection Text: LSTVZ = Listing procedure
Selection Text: LSTFL = Listing procedure
Selection Text: FLVON = Listed from
Selection Text: FLBIS = to
Selection Text: ERROR = Display listing errors
Selection Text: BIDAT = Listing to = final end date
Title: Change individual listing of material/distribution chain
Text Symbol: 030 = Set original values
Text Symbol: 025 = Distribution center assortments
Text Symbol: 024 = Stores and other assortment forms
Text Symbol: 022 = Control
Text Symbol: 021 = Rules and validities
Text Symbol: 020 = Validity range
Text Symbol: 011 = Astmt grade
Text Symbol: 010 = Priority
Text Symbol: 004 = No : use existing value
Text Symbol: 003 = Yes : use as entered (blank)
Text Symbol: 002 = Existing value:
Text Symbol: 001 = Interpret blank


INCLUDES used within this REPORT RWSORT05

INCLUDE MWWCONST.


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:

ASSORTMENT_READ_TWPA CALL FUNCTION 'ASSORTMENT_READ_TWPA' CHANGING TWPA = TWPA EXCEPTIONS NO_TWPA_RECORD = 1 OTHERS = 2.

ASSORTMENT_CHECK_ATTYP CALL FUNCTION 'ASSORTMENT_CHECK_ATTYP' EXPORTING ATTYP = MARA-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 = SY-DATUM * INACTIVE_ITEMS = ' ' ITEM = MARA-MATNR * TYPE_F = ' ' * IMPORTING * E_ATTYP = TABLES VARIANT_LIST = VARIANTEN EXCEPTIONS NO_VARIANTS_FOUND = 01.

ASSORTMENT_CHECK_CATEGORY CALL FUNCTION 'ASSORTMENT_CHECK_CATEGORY' EXPORTING MATNR = VARIANTEN-MATNR MATKL = VARIANTEN-MATKL.

WWS_ENQ_ASSORTMENT CALL FUNCTION 'WWS_ENQ_ASSORTMENT' EXPORTING ARTIKEL = WAM1-MATNR " BAUSTEIN = ' ' " DATUMBIS = ' ' " filia = ' ' SPERR_MODUS = 'E' VKORG = SAL-VKORG VTWEG = SAL-VTWEG " VRKME = ' ' WAS = '6' "WLK11-Kopf-Eintrag EXCEPTIONS FOREIGN_LOCK = 01 NO_MODUS = 02 NO_WAS = 03 SYSTEM_FAILURE = 04.

DEQUEUE_E_WLK11 CALL FUNCTION 'DEQUEUE_E_WLK11' EXPORTING VKORG = SAL-VKORG VTWEG = SAL-VTWEG ARTNR = WAM1-MATNR.

DEQUEUE_E_WLK11 CALL FUNCTION 'DEQUEUE_E_WLK11' EXPORTING VKORG = SAL-VKORG VTWEG = SAL-VTWEG ARTNR = WAM1-MATNR.

ASSORTMENT_MVKE_CORR CALL FUNCTION 'ASSORTMENT_MVKE_CORR' IN UPDATE TASK EXPORTING MVKE = MVKE SAL = SAL.

POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE'"#EC FB_OLDED EXPORTING DIAGNOSETEXT1 = DIAGN TEXTLINE1 = ZEIL1 TEXTLINE2 = ZEIL2 TITEL = BTEXT "Bildüberschrift" DEFAULTOPTION = 'Y' "Antwort 'Y'/'N' IMPORTING ANSWER = ANSWER. "'J'/'N'/'A'



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