SAP Reports / Programs

RWSORT13 SAP ABAP Report - Assortment per Assortment User







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

WSLB - Assortment per Assortment User


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 RWSORT13. "Basic submit
SUBMIT RWSORT13 AND RETURN. "Return to original report after report execution complete
SUBMIT RWSORT13 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: KUNNR = Customer
Selection Text: P_VARI = Display Variant
Title: Assortment per Assortment User
001 Customer Name 1 Listing Listing
002 Assortment Name 1 Basic rule Procedure SOrg DChnl Division


INCLUDES used within this REPORT RWSORT13

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.

WRF1_SINGLE_READ CALL FUNCTION 'WRF1_SINGLE_READ' EXPORTING IV_LOCNR = ikna1-kunnr EXCEPTIONS NOT_FOUND = 1 PARAMETER_ERROR = 2 OTHERS = 3.

ASSORTMENT_GET_ASORT_OF_USER CALL FUNCTION 'ASSORTMENT_GET_ASORT_OF_USER' EXPORTING USER = ikna1-kunnr USER_TYPE = c_typ_filiale TABLES ASSORTMENT_CONNECTS = clist EXCEPTIONS NO_ASORT_FOUND = 1 OTHERS = 2.

ASSORTMENT_GET_ASORT_OF_CUST CALL FUNCTION 'ASSORTMENT_GET_ASORT_OF_CUST' EXPORTING CUSTOMER = IKNA1-KUNNR * VKORG = * VTWEG = * SPART = SELECT_INVALID_ASORT = 'X' TABLES LIST_OF_WRSZ = CLIST EXCEPTIONS OBJECT_HAS_NO_ASORT = 1 OBJECT_IS_NO_ASS_CUSTOMER = 2 OTHERS = 3.

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_KNA1 T_OUTTAB_ITEM = IT_WRSZ 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 = 'KNA1' 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 = '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 = 'WRST' 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 RWSORT13 or its description.