SAP Reports / Programs | Logistics - General | Logistics Basic Data | Assortment Maintenance(LO-MD-RA-MT) SAP LO

RWS40F02 SAP ABAP INCLUDE - Include RWS40F02







RWS40F02 is a standard ABAP INCLUDE 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 RWS40F02 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 RWS40F02. "Basic submit
SUBMIT RWS40F02 AND RETURN. "Return to original report after report execution complete
SUBMIT RWS40F02 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: KZLGO = Storage location
Selection Text: KZNUL = No zero stock lines
Selection Text: KZSON = Special stock
Selection Text: KZWER = Plant
Selection Text: MS_CHARG = ?...(MS_CHARG)
Selection Text: MS_LGORT = ?...(MS_LGORT)
Selection Text: MS_MATNR = ?...(MS_MATNR)
Selection Text: MS_WERKS = ?...(MS_WERKS)
Selection Text: SOBKZ = Special stock indicator
Selection Text: SO_VKORG = Sales organization
Selection Text: SO_VRKME = Sales unit
Selection Text: SO_VTWEG = Distribution channel
Selection Text: VERNU = Display version
Selection Text: _STAINT = Period #SVRSIO
Title: Include RWS40F02
Text Symbol: 338 = - Customer/material relationships
Text Symbol: 500 = Entry for application $1 / object $2 missing in table TR01
Text Symbol: 501 = Program run locked for application $1 / object $2
Text Symbol: 503 = Error reading text:
Text Symbol: 504 = Error deleting text:


INCLUDES used within this REPORT RWS40F02

INCLUDE WSTR_RWS40F02. "HOLDS STORE GROUPS FOR PURCHASING


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:

PROMOTION_DISCONT_POSITION_GET call function 'PROMOTION_DISCONT_POSITION_GET' exporting faktnr = p_aktnr tables dcaktpos = i_waktp_discont_pos exceptions promotion_not_found = 1 no_position_in_promotion = 2 promotion_in_planing = 3 others = 4.

CHECK_MULTIPLE_ASSIGNMENT call function 'CHECK_MULTIPLE_ASSIGNMENT' importing multiple_assignment = multi_assign_flag.

LESEN_VARIANTEN_ZU_SA call function 'LESEN_VARIANTEN_ZU_SA' exporting sammelartikel = i_mara-matnr kzrfb = ' ' sperrmodus = ' ' std_sperrmodus = ' ' * CHECK_MAT_MPOI = ' ' * LESEN_MAW1 = ' ' * LESEN_MARC = ' ' * LESEN_MBEW = ' ' tables varianten = it_mara_var * VARIANTEN_MAW1 = * VARIANTEN_MARC = * VARIANTEN_MBEW = exceptions enqueue_mode_changed = 1 lock_on_material = 2 lock_system_error = 3 wrong_call = 4 not_found = 5 no_maw1_for_mara = 6 lock_on_marc = 7 lock_on_mbew = 8 others = 9.

MARC_ARRAY_READ_WERK_ALL call function 'MARC_ARRAY_READ_WERK_ALL' exporting kzrfb = ' ' * SPERRMODUS = ' ' * STD_SPERRMODUS = ' ' * EXCEPTION_ON_LOCK = ' ' tables iwerk = it_werks marc_tab = it_marc exceptions enqueue_mode_changed = 1 lock_system_error = 2 lock_on_marc = 3 others = 4.

MARA_SINGLE_READ call function 'MARA_SINGLE_READ' exporting matnr = p_matnr importing wmara = ps_mara exceptions lock_on_material = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 others = 5.

VENDOR_MASTER_SELECT_EKORG call function 'VENDOR_MASTER_SELECT_EKORG' exporting pi_ekorg = h_t024e-ekorg importing pe_ekorz = ref_ekorg pe_more_than_one_found = more_found exceptions no_entries_found = 1 others = 2.

ASSORTMENT_GET_ASORT_FOR_CLASS call function 'ASSORTMENT_GET_ASORT_FOR_CLASS' exporting assortment_class = i_klah-class tables assortment_data = ht_wrs1 exceptions class_not_exists = 1 no_assortments_found = 2 others = 3.

WAUF_BREAK_DOWN_LOCATIONGROUP *** CALL FUNCTION 'WAUF_BREAK_DOWN_LOCATIONGROUP' *** EXPORTING *** " IM_FIKLI = x *** im_filkl = i_klah-class *** im_fklar = i_klah-klart *** " im_key = ' ' *** " IM_PINCR = 1 *** " IM_PUFFER = X *** " importing x *** " ex_filkb = x *** TABLES *** ex_filn = i_werks_to_wrkgrp *** exceptions *** figr_existiert_nicht = 01.

MARC_READ_WITH_MATNR call function 'MARC_READ_WITH_MATNR' exporting matnr = s_mara-matnr * KZRFB = ' ' * SPERRMODUS = ' ' * STD_SPERRMODUS = ' ' tables marc_tab = it_marc exceptions not_found = 1 lock_on_marc = 2 lock_system_error = 3 enqueue_mode_changed = 4 others = 5.

ASSORTMENT_GET_DATA_AND_USER_B call function 'ASSORTMENT_GET_DATA_AND_USER_B' exporting asort = p_asort importing asort_data = h_asort_data exceptions no_data = 1 no_valid_data = 2 others = 3.

ASSORTMENT_GET_ASORT_OF_USER call function 'ASSORTMENT_GET_ASORT_OF_USER' exporting * VALID_PER_DATE = SY-DATUM * SELECT_INVALID_ASORT = ' ' user = p_locnr user_type = c_typ_filiale * VKORG = ' ' * VTWEG = ' ' * IMPORTING * ASORT_DEFAULT = tables assortment_data = ht_wrs1 * ASSORTMENT_CONNECTS = exceptions no_asort_found = 1 others = 2.

ASSORTMENT_GET_DATA_AND_USER_B call function 'ASSORTMENT_GET_DATA_AND_USER_B' exporting asort = ht_wrs1-asort * VALID_AT = ' ' * STATUS = '1' importing asort_data = h_asort_data exceptions no_data = 1 no_valid_data = 2 others = 3.

T001W_SINGLE_READ call function 'T001W_SINGLE_READ' exporting t001w_werks = p_werks importing wt001w = t001w exceptions not_found = 1 others = 2.

ASSORTMENT_GET_ASORT_FOR_CLASS call function 'ASSORTMENT_GET_ASORT_FOR_CLASS' exporting assortment_class = i_klah-class tables assortment_data = ht_wrs1 exceptions class_not_exists = 1 no_assortments_found = 2 others = 3.

ASSORTMENT_GET_USERS_OF_ASORT call function 'ASSORTMENT_GET_USERS_OF_ASORT' EXPORTING VALID_PER_DATE = SY-DATUM " note 640416 DATE_TO = MAX_DATUM " note 640416 tables assortment_users = ht_wrsz assortment_asorts = ht_wrs1 exceptions no_asort_to_select = 1 no_user_found = 2 others = 3.

T001W_WERKS_FOR_LOCNR CALL FUNCTION 'T001W_WERKS_FOR_LOCNR' EXPORTING LOCNR = h_wrsz-locnr IMPORTING WERKS = h_werks EXCEPTIONS NO_WERKS_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 RWS40F02 or its description.