SAP Reports / Programs | Logistics - General | Logistics Basic Data(LO-MD) SAP LO

REFSITE_MANAGEMENTFRM SAP ABAP INCLUDE - Include REFSITEFRM







REFSITE_MANAGEMENTFRM 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 REFSITE_MANAGEMENTFRM 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 REFSITE_MANAGEMENTFRM. "Basic submit
SUBMIT REFSITE_MANAGEMENTFRM AND RETURN. "Return to original report after report execution complete
SUBMIT REFSITE_MANAGEMENTFRM VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Include REFSITEFRM


INCLUDES used within this REPORT REFSITE_MANAGEMENTFRM

No INCLUDES are used within this REPORT code!


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:

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-011 text_question = text-015 text_button_1 = text-013 text_button_2 = text-014 default_button = '1' display_cancel_button = 'X' IMPORTING answer = l_res.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-011 "warning text_question = w_text text_button_1 = text-013 "yes text_button_2 = text-014 "no default_button = '1' display_cancel_button = 'X' IMPORTING answer = w_res.

MASS_DISPLAY_QUICK_HELP_REF CALL FUNCTION 'MASS_DISPLAY_QUICK_HELP_REF' EXPORTING p_html_viewer = html_control p_object = 'SITEGROUPING' p_id = 'TX'.

READ_REF_SITE_TABLE CALL FUNCTION 'READ_REF_SITE_TABLE' EXPORTING i_bypass = 'X' TABLES e_mmsiteref_itab = t_mmsiteref_in EXCEPTIONS not_found = 1 OTHERS = 2.

CHECK_SITE_MOVE CALL FUNCTION 'CHECK_SITE_MOVE' EXPORTING i_ekorg = p_new_ekorg i_refsite_from = p_old_refsite i_refsite_to = p_new_refsite TABLES itab_werks = t_werks EXCEPTIONS invalid_move = 1 OTHERS = 2.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = w_tab_field dynpprog = program dynpnr = screen_num dynprofield = w_screen_field window_title = w_text value_org = 'S' TABLES value_tab = itab_list return_tab = itab_selected EXCEPTIONS parameter_error = 1 no_values_found = 2 OTHERS = 3.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = p_program dynumb = p_screen_num translate_to_upper = 'X' TABLES dynpfields = screen_values EXCEPTIONS invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 invalid_parameter = 7 undefind_error = 8 double_conversion = 9 stepl_not_found = 10 OTHERS = 11.

READ_REF_SITE_TABLE CALL FUNCTION 'READ_REF_SITE_TABLE' EXPORTING i_ekorg = p_ekorg i_ass_to = sy-datum no_buffer = ' ' TABLES e_mmsiteref_itab = itab_mmsiteref EXCEPTIONS not_found = 1 OTHERS = 2.

CHECK_PURCH_REFSITE_CREATION CALL FUNCTION 'CHECK_PURCH_REFSITE_CREATION' EXPORTING i_ekorg = l_new_ekorg i_refsite = l_new_werks IMPORTING t_errors = t_errors CHANGING w_sysubrc = w_sysubrc.

GET_DOMAIN_VALUES CALL FUNCTION 'GET_DOMAIN_VALUES' EXPORTING domname = 'W_GROUP_TYPE' "'GROUPING' TABLES values_tab = t_dd07v EXCEPTIONS no_values_found = 1 OTHERS = 2.

READ_COMPLETE_WREFA CALL FUNCTION 'READ_COMPLETE_WREFA' EXPORTING group_type = g_type kzrfb = w_refresh_buffer TABLES tab_wrefa = t_wrefa.

CHECK_ASSIGNMENT_REFWERKS CALL FUNCTION 'CHECK_ASSIGNMENT_REFWERKS' EXPORTING group_type = w_group_type werks = -werks new_ref_werks = l_new_ref_werks * w_sel_key-werks EXCEPTIONS werks_already_assigned = 1 werks_assigned_to_assortment = 2 OTHERS = 3.

F4_WERKS_FOR_REFHANDLING CALL FUNCTION 'F4_WERKS_FOR_REFHANDLING' EXPORTING group_type = w_group_type TABLES tab_werks = wt_valid_wrefa.

READ_COMPLETE_WREFA CALL FUNCTION 'READ_COMPLETE_WREFA' EXPORTING group_type = p_group_type TABLES tab_wrefa = t_all_wrefa.

CHECK_ASSIGNMENT_REFWERKS CALL FUNCTION 'CHECK_ASSIGNMENT_REFWERKS' EXPORTING group_type = w_group_type werks = site new_ref_werks = new_refsite old_ref_werks = old_refsite EXCEPTIONS werks_already_assigned = 1 werks_assigned_to_assortment = 2 OTHERS = 3.

ADJUST_PURCHASING_DATA CALL FUNCTION 'ADJUST_PURCHASING_DATA' EXPORTING simulate = simulate IMPORTING total_lfm2 = total_lfm2 total_eine = total_eine total_marc = total_marc TABLES site_new = p_t_mmsiteref_new site_old = p_t_mmsiteref_old.

COPY_PURCHASING_DATA CALL FUNCTION 'COPY_PURCHASING_DATA' EXPORTING refsite_old = old_refsite refsite_new = new_refsite purch_org = p_ekorg IMPORTING total_eine = total_eine total_lfm2 = total_lfm2.

READ_WLOSITEREF CALL FUNCTION 'READ_WLOSITEREF' EXPORTING no_buffer = w_refresh_buffer TABLES e_wlositeref_itab = t_wlositeref EXCEPTIONS not_found = 1 OTHERS = 2.

CLSE_SELECT_KLAT





CALL FUNCTION 'CLSE_SELECT_KLAT' TABLES imp_exp_klat = t_klat EXCEPTIONS no_entry_found = 0 OTHERS = 0.

CHECK_ASSIGNMENT_REFWERKS CALL FUNCTION 'CHECK_ASSIGNMENT_REFWERKS' EXPORTING group_type = w_group_type werks = w_sel_key-werks new_ref_werks = w_werks old_ref_werks = w_mmsiteref-werks EXCEPTIONS werks_already_assigned = 1 werks_assigned_to_assortment = 2 OTHERS = 3.

WREFA_WRITE_DOCUMENT CALL FUNCTION 'WREFA_WRITE_DOCUMENT' EXPORTING objectid = wa_bel tcode = sy-tcode utime = sy-uzeit udate = sy-datum username = sy-uname * PLANNED_CHANGE_NUMBER = ' ' * OBJECT_CHANGE_INDICATOR = 'U' * PLANNED_OR_REAL_CHANGES = ' ' * NO_CHANGE_POINTERS = ' ' n_wrefa = n_wrefa o_wrefa = o_wrefa upd_wrefa = 'D' .

WREFA_WRITE_DOCUMENT CALL FUNCTION 'WREFA_WRITE_DOCUMENT' EXPORTING objectid = wa_bel tcode = sy-tcode utime = sy-uzeit udate = sy-datum username = sy-uname * PLANNED_CHANGE_NUMBER = ' ' * OBJECT_CHANGE_INDICATOR = 'U' * PLANNED_OR_REAL_CHANGES = ' ' * NO_CHANGE_POINTERS = ' ' n_wrefa = n_wrefa o_wrefa = o_wrefa upd_wrefa = 'I' .

WREFA_WRITE_DOCUMENT CALL FUNCTION 'WREFA_WRITE_DOCUMENT' EXPORTING objectid = wa_bel tcode = sy-tcode utime = sy-uzeit udate = sy-datum username = sy-uname * PLANNED_CHANGE_NUMBER = ' ' * OBJECT_CHANGE_INDICATOR = 'U' * PLANNED_OR_REAL_CHANGES = ' ' * NO_CHANGE_POINTERS = ' ' n_wrefa = n_wrefa o_wrefa = o_wrefa upd_wrefa = 'I' .

WLOSITEREF_WRITE_DOCUMENT CALL FUNCTION 'WLOSITEREF_WRITE_DOCUMENT' EXPORTING objectid = wa_bel tcode = sy-tcode utime = sy-uzeit udate = sy-datum username = sy-uname * PLANNED_CHANGE_NUMBER = ' ' * OBJECT_CHANGE_INDICATOR = 'U' * PLANNED_OR_REAL_CHANGES = ' ' * NO_CHANGE_POINTERS = ' ' n_wlositeref = n_wlositeref o_wlositeref = o_wlositeref upd_wlositeref = 'D' .

WLOSITEREF_WRITE_DOCUMENT CALL FUNCTION 'WLOSITEREF_WRITE_DOCUMENT' EXPORTING objectid = wa_bel tcode = sy-tcode utime = sy-uzeit udate = sy-datum username = sy-uname * PLANNED_CHANGE_NUMBER = ' ' * OBJECT_CHANGE_INDICATOR = 'U' * PLANNED_OR_REAL_CHANGES = ' ' * NO_CHANGE_POINTERS = ' ' n_wlositeref = n_wlositeref o_wlositeref = o_wlositeref upd_wlositeref = 'I' .

WLOSITEREF_WRITE_DOCUMENT CALL FUNCTION 'WLOSITEREF_WRITE_DOCUMENT' EXPORTING objectid = wa_bel tcode = sy-tcode utime = sy-uzeit udate = sy-datum username = sy-uname * PLANNED_CHANGE_NUMBER = ' ' * OBJECT_CHANGE_INDICATOR = 'U' * PLANNED_OR_REAL_CHANGES = ' ' * NO_CHANGE_POINTERS = ' ' n_wlositeref = n_wlositeref o_wlositeref = o_wlositeref upd_wlositeref = 'I' .

JOB_SITE_ASSORTMENT CALL FUNCTION 'JOB_SITE_ASSORTMENT' EXPORTING function = 'A' TABLES tab_wrefa = t_wrefa_entries EXCEPTIONS function_cancelled = 1 OTHERS = 2.

UPDATE_ASSORTMENT_REFWERKS CALL FUNCTION 'UPDATE_ASSORTMENT_REFWERKS'.

CHECK_LOGIS_REFSITE_CREATION CALL FUNCTION 'CHECK_LOGIS_REFSITE_CREATION' EXPORTING i_class = i_class i_refsite = selected_refsite IMPORTING t_errors = t_errors CHANGING w_sysubrc = w_sysubrc.

CHECK_ASSOR_REFSITE_CREATION CALL FUNCTION 'CHECK_ASSOR_REFSITE_CREATION' EXPORTING i_refsite = selected_refsite IMPORTING t_errors = t_errors CHANGING w_sysubrc = w_sysubrc.

APPL_LOG_DISPLAY CALL FUNCTION 'APPL_LOG_DISPLAY' EXPORTING object = 'WSTRGROUP' subobject = 'WSTRGROUP' suppress_selection_dialog = '1' EXCEPTIONS no_authority = 1 OTHERS = 2.

CHECK_ASSOR_SITE_ASSIGNMENT CALL FUNCTION 'CHECK_ASSOR_SITE_ASSIGNMENT' EXPORTING i_refsite = i_werks t_werks = t_werks IMPORTING t_valid_werks = t_valid_werks t_invalid_werks = t_invalid_werks t_errors = t_errors.

CHECK_LOGIS_SITE_ASSIGNMENT CALL FUNCTION 'CHECK_LOGIS_SITE_ASSIGNMENT' EXPORTING i_class = i_class i_refsite = i_werks t_werks = t_werks IMPORTING t_valid_werks = t_valid_werks t_invalid_werks = t_invalid_werks t_errors = t_errors.

CHECK_PURCH_SITE_ASSIGNMENT CALL FUNCTION 'CHECK_PURCH_SITE_ASSIGNMENT' EXPORTING i_ekorg = i_ekorg i_refsite = i_werks t_werks = t_werks IMPORTING t_valid_werks = t_valid_werks t_invalid_werks = t_invalid_werks t_errors = t_errors.

MASS_GENERAL_APPL_LOG CALL FUNCTION 'MASS_GENERAL_APPL_LOG' EXPORTING log_entry_header = p_header TABLES log_entry_msg = p_t_err_msg_in EXCEPTIONS application_not_found = 1 context_not_found = 2 application_error = 3 OTHERS = 4.

CHECK_ASSIGNMENT_REFWERKS CALL FUNCTION 'CHECK_ASSIGNMENT_REFWERKS' EXPORTING group_type = w_group_type werks = site new_ref_werks = new_refsite old_ref_werks = old_refsite EXCEPTIONS werks_already_assigned = 1 werks_assigned_to_assortment = 2 OTHERS = 3.

GET_R3_EXTENSION_SWITCH CALL FUNCTION 'GET_R3_EXTENSION_SWITCH' EXPORTING i_structure_package = 'EA-RETAIL' IMPORTING e_active = p_active EXCEPTIONS not_existing = 1 object_not_existing = 2 no_extension_object = 3 OTHERS = 4.

UPDATE_BUFFER_WREFA CALL FUNCTION 'UPDATE_BUFFER_WREFA' EXPORTING p_type = p_updtype p_wrefa = p_wrefa EXCEPTIONS data_not_in_buffer = 1 data_already_in_buffer = 2 OTHERS = 3.




MASS_DDIC_CACHE * CALL FUNCTION 'MASS_DDIC_CACHE' * EXPORTING * structname = 'KLAH' * langu = sy-langu * TABLES * fieldnames = fieldnames * EXCEPTIONS * not_found = 1 * OTHERS = 2.

MASS_DDIC_CACHE * CALL FUNCTION 'MASS_DDIC_CACHE' * EXPORTING * structname = 'WRS1' * langu = sy-langu * TABLES * fieldnames = fieldnames * EXCEPTIONS * not_found = 1 * OTHERS = 2.

MASS_DDIC_CACHE * CALL FUNCTION 'MASS_DDIC_CACHE' * EXPORTING * structname = 'WRF6' * langu = sy-langu * TABLES * fieldnames = fieldnames * EXCEPTIONS * not_found = 1 * OTHERS = 2.

MASS_DYNAMIC_SELECT * CALL FUNCTION 'MASS_DYNAMIC_SELECT' * EXPORTING * i_report = 'REFSITE_MANAGEMENT_ASSORTMENT' * i_dynnr = '' * IMPORTING * range = range_site_assortment * expression = expr_site * where = where_site * TABLES * tablist = tablist * fieldexcl = fieldexcl * fieldincl = fieldincl.

MASS_DYNAMIC_SELECT * CALL FUNCTION 'MASS_DYNAMIC_SELECT' * EXPORTING * i_report = 'REFSITE_MANAGEMENT_LOGISTIC' * i_dynnr = '' * IMPORTING * range = range_site_logistic * expression = expr_site * where = where_site * TABLES * tablist = tablist * fieldexcl = fieldexcl * fieldincl = fieldincl.

ASSORTMENT_GET_USERS_OF_1ASORT * CALL FUNCTION 'ASSORTMENT_GET_USERS_OF_1ASORT' * EXPORTING * ASORT = l_asort * TABLES * ASSORTMENT_USERS = lt_wrsz * EXCEPTIONS * NO_ASORT_TO_SELECT = 1 * NO_USER_FOUND = 2 * OTHERS = 3.

ASSORTMENT_LOCATION_GROUPS * CALL FUNCTION 'ASSORTMENT_LOCATION_GROUPS' * EXPORTING * LOCATION_GROUP = lw_class-klah * LOCATION_GROUP_TYPE = lw_class-klart * TABLES * LOCATIONS = lt_loclb * EXCEPTIONS * GROUP_NOT_FOUND = 1 * EMPTY_GRUOP = 2 * OTHERS = 3.

WWGR_EXPAND_CLASSES CALL FUNCTION 'WWGR_EXPAND_CLASSES' EXPORTING i_klart = retail * I_SWOR_SELECT = TABLES i_klah = t_klah o_struct = t_struct.

CLHI_STRUCTURE_CLASSES CALL FUNCTION 'CLHI_STRUCTURE_CLASSES' EXPORTING i_klart = retail i_class = p_class i_bup = 'X' i_batch = 'X' i_language = sy-langu i_no_classification = 'X' i_date = sy-datum i_no_objects = 'X' i_sort_by_class = '' i_structured_list = 'X' TABLES daten = t_struct_up EXCEPTIONS class_not_valid = 1 classtype_not_valid = 2 OTHERS = 3.

CHECK_ASSOR_SITE_ASSIGNMENT CALL FUNCTION 'CHECK_ASSOR_SITE_ASSIGNMENT' EXPORTING i_refsite = i_werks t_werks = t_werks IMPORTING t_valid_werks = t_valid_werks t_invalid_werks = t_invalid_werks t_errors = t_errors.

CHECK_LOGIS_SITE_UNASSIGNMENT CALL FUNCTION 'CHECK_LOGIS_SITE_UNASSIGNMENT' EXPORTING i_class = i_class i_refsite = i_werks t_werks = t_werks IMPORTING t_valid_werks = t_valid_werks t_invalid_werks = t_invalid_werks t_errors = t_errors.

CHECK_PURCH_SITE_UNASSIGNMENT CALL FUNCTION 'CHECK_PURCH_SITE_UNASSIGNMENT' EXPORTING i_ekorg = i_ekorg i_refsite = i_werks t_werks = t_werks IMPORTING t_valid_werks = t_valid_werks t_invalid_werks = t_invalid_werks t_errors = t_errors.



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