SAP Reports / Programs

RWSORT15 SAP ABAP Report - Change Individual Listing Material/Assortment







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

WSP5 - Change ind. listing, mat. - plant


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 RWSORT15. "Basic submit
SUBMIT RWSORT15 AND RETURN. "Return to original report after report execution complete
SUBMIT RWSORT15 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: ASORT = Assortment
Selection Text: BIDAT = Listing to = final end date
Selection Text: FLBIS = Listed to
Selection Text: FLVON = Listed from
Selection Text: MEINS = Unit of measure
Selection Text: PFLKN = Assortment priority
Selection Text: SATNR = Material
Title: Change Individual Listing Material/Assortment
Text Symbol: 001 = Set original values
Text Symbol: 010 = Validity range
Text Symbol: 011 = Rules and validities


INCLUDES used within this REPORT RWSORT15

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_GET_DATA_AND_USER_B CALL FUNCTION 'ASSORTMENT_GET_DATA_AND_USER_B' EXPORTING ASORT = ASORT * VALID_AT = ' ' * STATUS = '1' IMPORTING ASORT_DATA = WINT_CARRH EXCEPTIONS NO_DATA = 1 NO_VALID_DATA = 2 OTHERS = 3.

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 = FLVON INACTIVE_ITEMS = ' ' ITEM = MARA-MATNR TYPE_F = 'X' * IMPORTING * E_ATTYP = TABLES VARIANT_LIST = VARIANTEN_1 EXCEPTIONS NO_VARIANTS_FOUND = 01.

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.

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

ASSORTMENT_CHECK_ENQ_MATNR CALL FUNCTION 'ASSORTMENT_CHECK_ENQ_MATNR' EXPORTING MATNR = VARIANTEN-MATNR.

WWS_ENQ_ASSORTMENT CALL FUNCTION 'WWS_ENQ_ASSORTMENT' EXPORTING ARTIKEL = MARA-MATNR " BAUSTEIN = ' ' " DATUMBIS = ' ' FILIA = WINT_CARRH-ASORT SPERR_MODUS = 'E' " VKORG = ' ' " VRKME = ' ' " VTWEG = ' ' WAS = '3' "WLK1-Kopf-Eintrag EXCEPTIONS FOREIGN_LOCK = 01 NO_MODUS = 02 NO_WAS = 03 SYSTEM_FAILURE = 04.

WLK1_CHECK CALL FUNCTION 'WLK1_CHECK' EXPORTING DATE = FLVON ITEM = VARIANTEN-MATNR SHOP_LOCNR = WINT_CARRH-ASORT * shop_werks = werks * DATE_BEGIN = FLVON * DATE_END = FLBIS SALES_UNIT = MEINS CHECK_PLANT_TIME = ' ' * PROMOTION = ' ' * PROMOTION_THEME = ' ' SHOP_MUST_BE_LOCATION = ' ' WRF1_KZLIK_CHECK = ' ' IMPORTING NO_UNIT_BUT_ITEM_LISTING = KZ1 WRF1_KZLIK_NOT_IN_USE = KZ2 * TABLES * O_WLK1 = EXCEPTIONS NO_LISTING = 01 NO_LISTING_IN_TIME = 02 EXISTING_EXCLUSION_LISTING = 03 WRONG_PARAMETERS = 04 NO_OPEN_TIME_SHOP_IN_TIME = 05 NO_LISTING_FOR_PROMOTION = 06 WRONG_LOCATION = 07 NO_COMPLETE_LISTING_IN_TIME = 08.

MODULE_CREATE CALL FUNCTION 'MODULE_CREATE' EXPORTING FUNCTION = '1' LOCATION = WINT_CARRH-ASORT MERCHANDISE_GROUP = VARIANTEN-MATKL DATE_BEGIN = SY-DATUM DATE_END = MAX_DATUM IMPORTING MODULE = WSOH MODULE_TEXT = WSOT WSCOR = WSCOR EXCEPTIONS MODULE_ALREADY_EXISTS = 01 WRONG_FUNCTION = 02.

ASSIGNMENT_POS_TO_SHOP CALL FUNCTION 'ASSIGNMENT_POS_TO_SHOP' EXPORTING ASSORTMENT_HEAD = WSOH ASSORTMENT_POS = WINT_POS FUNCTION = FUNCTION "ändern LOCATION = WINT_CARRH-ASORT MERCHANDISE_GROUP = MARA-MATKL * SITUATION = ' ' * LISTING_METHOD = ' ' * VKORG = ' ' * VTWEG = ' ' * LISTING_CHECK = ' ' LAST_LISTING = BIDAT IMPORTING WSCOR = WSCOR * TABLES * UNITS = * VARIANTS = EXCEPTIONS ASSORTMENT_POS_ALREADY_EXISTS = 01 ASSORTMENT_POS_NOT_FOUND = 02 WRONG_FUNCTION = 03 ENQUEUED = 04 NO_MULTIPLE_LISTING = 05 RULES_MATCHING_NOT_OK = 06.

WSOH_READ_PROFILE_MODULE CALL FUNCTION 'WSOH_READ_PROFILE_MODULE' EXPORTING MATKL = P_MATERIAL-MATKL ASORT = P_ASORT ONLY_ACTIVE = 'X' IMPORTING EWSOH = WSOH EXCEPTIONS KEY_UNCOMPLETE = 1 REC_ENQUEUED = 2 REC_NOT_ACTIVE = 3 REC_NOT_VALID_IN_TIME = 4 NO_REC_FOUND = 5 OTHERS = 6.

MODULE_CREATE CALL FUNCTION 'MODULE_CREATE' EXPORTING FUNCTION = '1' LOCATION = P_ASORT MERCHANDISE_GROUP = P_MATERIAL-MATKL DATE_BEGIN = SY-DATUM DATE_END = '99991231' IMPORTING MODULE = WSOH MODULE_TEXT = WSOT WSCOR = WSCOR EXCEPTIONS MODULE_ALREADY_EXISTS = 01 WRONG_FUNCTION = 02.

WLK1_CHANGE CALL FUNCTION 'WLK1_CHANGE' EXPORTING FUNCTION = '2' * VKORG = ' ' * VTWEG = ' ' * MODULE = ' ' * WINT_POS = * LAST_LISTING = ' ' * SELECT_ASSORTMENT = ' ' TABLES INT_WLK1 = PT_WLK1 EXCEPTIONS NO_WLK1 = 1 WLK1_EXISTS = 2 WRONG_DATES = 3 WRONG_FUNCTION = 4 ALWAYS_RJ_CONNECTED = 5 OTHERS = 6.

WLK1_READ_MULTIPLE_FUNCTIONS CALL FUNCTION 'WLK1_READ_MULTIPLE_FUNCTIONS' EXPORTING * BUFFERS_READ = ' ' WLK1_SINGLE_SELECT = WLK1 FUNCTION = 'K' * ATTYP = ' ' * SELECT_ASSORTMENT = ' ' * KZRFB = ' ' * SORT_DIRECTION = ' ' * SELECT_WHOLE_ARTICLE = 'X' * IMPORTING * WLK1_OUTPUT = TABLES * WLK1_ARRAY_SELECT = WLK1_RESULTS = TAB_WLK1 * SAMMEL_ITEM = * PLANT_LIST = * MATNR_ME_ONLY = EXCEPTIONS NO_REC_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 RWSORT15 or its description.