SAP Reports and Programs

Share |

RWWMASMGN SAP ABAP Report - Maintain Merchandise Category / Site Assignment


RWWMASMGN is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the standard documentation available for this report and a few details of other objects it interacts with such as tables, function modules, includes etc. If you would like to see the full code listing simply enter RWWMASMGN into the relevant SAP transaction such as SE38 or SE80

Contribute (Add Comments)
Below is the basic information available for SAP report RWWMASMGN and is provided for your convenience to access as and when required. Although the 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 RWWMASMGN or its description.

SAP Documentation for program RWWMASMGN

Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report


WB30N - Maintain Sites/Merch. Categories

PURPOSE
This report is used to create, remove and maintain assignments between sites and merchandise categories as well as maintain exceptions in the inventory management on a site level. This report is used to maintain the data for many sites and merchandise categories at once.

INTEGRATION
This report replaces the existing transaction Mass Maintenance Merchandise Categories/Sites (WB30). All its functionalities can be accessed from transaction Site Change (WB02), pushbutton Merchandise Categories (but only for one site at a time).

PREREQUISITES
You have maintained sufficient authority for the users. A user can change and view data only for sites that he or she can access via the site maintenance transactions.

FEATURES


SELECTION
On the selection screen<(>,<)> you can choose whether you want to select and resolve the merchandise category hierarchy on specific levels<(>,<)> or whether you want to select only a range of merchandise categories. The range of sites can be restricted by their customer number and their organizational distribution chain.

OUTPUT
After you have made the required changes, press the Save button. This triggers the update of the database in the background and releases all exclusive locks. If you want to make other changes<(>,<)> you can simply continue your work after pressing Save.

ABAP code:


ABAP code listing snippet for SAP ABAP Report RWWMASMGN

report rwwmasmgn.

class lcx_wfil_abort definition inheriting from cx_static_check final.
public section.
protected section.
private section.
endclass.
class lcx_wfil_abort implementation.
endclass.
class lcx_not_possible definition inheriting from cx_static_check final.
public section. ....See full code listing within your SAP system using transactions such as SE80 and SE38

Includes used within report:

No INCLUDES are used within this report code!


Tables used within report and the associated select statement:

_CONTEXT_MENU select_from_context_menu for event item_context_menu_select of cl_column_tree_model importing fcode node_key sender, item_double_click for event item_double_click of cl_column_tree_model importing node_key sender, node_double_click for event node_double_click of cl_column_tree_model importing node_key sender, item_mass_details importing it_selected_node_keys type treemnotab sender type ref to cl_column_tree_model, press_button for event function_selected of lcl_toolbar importing fcode sender, set_new_displayed_object for event change_display of if_mmsmc_wrf6_object importing sender, refresh_display for event refresh_display of if_mmsmc_wrf6_object importing sender, confirm_leave returning value(rv_confirm) type abap_bool raising lcx_wfil_abort, update_db, split_container_vertically importing io_container type ref to cl_gui_container iv_percentage type i exporting eo_left_container type ref to cl_gui_container eo_right_container type ref to cl_gui_container eo_splitter type ref to cl_gui_easy_splitter_container, split_container_horizontally importing io_container type ref to cl_gui_container iv_percentage type i exporting eo_upper_container type ref to cl_gui_container eo_bottom_container type ref to cl_gui_container eo_splitter type ref to cl_gui_easy_splitter_container , add_functions importing io_toolbar type ref to cl_gui_toolbar, add_functions_mara importing io_toolbar type ref to cl_gui_toolbar, add_functions_t023x importing io_toolbar type ref to cl_gui_toolbar, add_functions_alv for event toolbar of cl_gui_alv_grid importing e_object e_interactive, clear_displayed_objects, create_toolbar_exclusions_wrf6 returning value(r_result) type ui_functions, create_toolbar_excl_t023x returning value(r_result) type ui_functions, create_grid, create_layout_for_mass_maint returning value(r_result) type lvc_s_layo, create_fcat_for_mass_maint returning value(rt_field_cat) type lvc_t_fcat , create_toolbar_exclusions_mass returning value(r_result) type ui_functions , reset_splitter importing iv_position type char1, get_layout returning value(r_result) type lvc_s_layo, node_display_t023x importing iv_node_key type tm_nodekey io_tree type ref to cl_column_tree_model, display_wrf6 importing io_wrf6_object type ref to if_mmsmc_wrf6_object, display_t023x importing io_site type ref to cl_mmsmc_site io_merchcat type ref to cl_mmsmc_merch_cat, resize_main_splitter importing iv_position type i iv_enlarge type abap_bool, check_wwgpa importing is_mod_cells type lvc_s_modi io_data_changed type ref to cl_alv_changed_data_protocol changing cs_details type cl_mmsmc_sites_and_merch_cats=>gty_s_wrf6, change_table_data for event data_changed of cl_gui_alv_grid importing er_data_changed e_onf4 e_onf4_after e_onf4_before sender, change_table_data_mass for event data_changed of cl_gui_alv_grid importing er_data_changed e_onf4 e_onf4_after e_onf4_before sender, handle_user_command_alv for event user_command of cl_gui_alv_grid importing e_ucomm, handle_f4_request for event onf4 of cl_gui_alv_grid importing er_event_data es_row_no et_bad_cells e_display e_fieldname e_fieldvalue, delete_nodes importing io_tree type ref to cl_column_tree_model io_node_key type tm_nodekey RAISING lcx_not_possible, check_class importing iv_klart type klassenart iv_mgext type mgext io_data_changed type ref to cl_alv_changed_data_protocol is_mod_cells type lvc_s_modi changing cs_details type cl_mmsmc_sites_and_merch_cats=>gty_s_wrf6, handle_enqueue_lock for event enqueue_error of cl_mmsmc_merch_cat importing es_message.

_CONTEXT_MENU select_from_context_menu for all instances, press_button for all instances, refresh_display for all instances, set_new_displayed_object for all instances, handle_enqueue_lock for all instances
.

_CONTEXT_MENU. method select_from_context_menu.

TCLA select klart from tcla into corresponding fields of table xtcla where obtab = 'KNA1'.

TCLAT select klart artxt from tclat into corresponding fields of table xtclat for all entries in xtcla where klart = xtcla-klart and spras = sy-langu.


Function Modules used within report and the associated call statement:

POPUP_TO_CONFIRM call function 'POPUP_TO_CONFIRM' exporting text_question = 'Changes have been made. Do you want to save the changes before leaving?'(q01) " Question text in dialog box

LOCATION_UPDATE_WRF6 call function 'LOCATION_UPDATE_WRF6' in update task tables i_xwrf6 = gt_wrf6_insert i_ywrf6 = gt_wrf6_delete i_xt023w = gt_t023w_insert i_yt023w = gt_t023w_delete i_xt023x = gt_t023x_insert i_yt023x = gt_t023x_delete * i_ywrf3 = .

LOCATION_UPDATE_WRF6 call function 'LOCATION_UPDATE_WRF6' in update task tables i_xwrf6 = gt_wrf6_update i_xt023w = gt_t023w_update i_xt023x = gt_t023x_update.

HELP_VALUES_GET_WITH_TABLE call function 'HELP_VALUES_GET_WITH_TABLE' ##FM_OLDED exporting display = ' ' fieldname = 'FLVAR' tabname = 'TWGF' importing select_value = lv_klart tables fields = lt_fields valuetab = lt_valuetab.

MGEXT_TO_MGINT_CONVERT call function 'MGEXT_TO_MGINT_CONVERT' exporting pi_mgext = lv_mgext pi_klart = lv_klart pi_popup = 'X' importing pe_mgint = lv_mgint exceptions no_entry_found = 1 nonunique_conversion = 2 no_classtype_found = 3 others = 4.

WR26_CHECK_MGINT call function 'WR26_CHECK_MGINT' exporting i_mgext = iv_mgext i_klart = iv_klart importing o_mgint = lv_mgint exceptions invalid_classtype = 1 invalid_class = 2 others = 3.


Text pool values


Selection Text: SO_VTWEG = D .
Selection Text: SO_VKORG = D .
Selection Text: SO_LOCNR = Customer Number for Site
Selection Text: SO_CLASS = Merchandise Category Hierarchy
Title: Maintain Merchandise Category / Site Assignment
Text Symbol: S01 = Changes have been saved
Text Symbol: Q01 = Changes have been made. Do you want to save the changes before leaving?
Text Symbol: I06 = Do not select parent nodes for deletion
Text Symbol: I05 = Select an item, not a node
Text Symbol: I04 = No nodes marked
Text Symbol: I03 = This is not implemented yet
Text Symbol: I02 = No further entry
Text Symbol: I01 = No such entry
Text Symbol: F08 = IM Exceptions
Text Symbol: F07 = Mass Maintenance
Text Symbol: F06 = Details
Text Symbol: F05 = Remove
Text Symbol: F04 = Find Next
Text Symbol: F03 = Find
Text Symbol: F02 = Collapse All
Text Symbol: F01 = Expand All
Text Symbol: E05 = Choose exactly 1 row
Text Symbol: E03 = Maintain Both Class Type and Class Number
Text Symbol: E02 = Select exactly one node
Text Symbol: E01 = This should never happen
Text Symbol: 012 = Close
Text Symbol: 011 = Maintain Exceptions in IM
Text Symbol: 010 = Mass Maintenance
Text Symbol: 003 = Selection Criteria
Text Symbol: 002 = Merchandise Category
Text Symbol: 001 = MC Hierarchy Node





comments powered by Disqus