SAP Reports / Programs | Cross-Application Components | SAP Multiresource Scheduling(CA-MRS) SAP CA

/MRSS/RES_DET_MAINT_F01 SAP ABAP INCLUDE - Include /MRSS/RES_DET_MAINT_F01







/MRSS/RES_DET_MAINT_F01 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 /MRSS/RES_DET_MAINT_F01 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 /MRSS/RES_DET_MAINT_F01. "Basic submit
SUBMIT /MRSS/RES_DET_MAINT_F01 AND RETURN. "Return to original report after report execution complete
SUBMIT /MRSS/RES_DET_MAINT_F01 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 /MRSS/RES_DET_MAINT_F01


INCLUDES used within this REPORT /MRSS/RES_DET_MAINT_F01

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:

ENQUEUE_EBU_PARTNR CALL FUNCTION 'ENQUEUE_EBU_PARTNR' EXPORTING partner = but000-partner EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

/MRSS/GET_BP_NAME_ROLE CALL FUNCTION '/MRSS/GET_BP_NAME_ROLE' EXPORTING it_partner = lt_partner IMPORTING et_but000 = lt_but000 et_but100 = lt_but100 et_bp_role = lt_bp_role.

STF4_GET_DOMAIN_VALUE_TEXT CALL FUNCTION 'STF4_GET_DOMAIN_VALUE_TEXT' EXPORTING iv_domname = '/MRSS/_ROLE_TYPE' iv_value = ls_bp_role-role_type IMPORTING ev_value_text = lv_value EXCEPTIONS value_not_found = 1 OTHERS = 2.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING text_question = lv_msg text_button_1 = text-003 text_button_2 = text-004 IMPORTING answer = lv_answer EXCEPTIONS text_not_found = 1 OTHERS = 2.

DEQUEUE_EBU_PARTNR CALL FUNCTION 'DEQUEUE_EBU_PARTNR' EXPORTING partner = gs_but000_old-partner.

BUA_ADDRESS_GET CALL FUNCTION 'BUA_ADDRESS_GET' EXPORTING i_partnerguid = but000-partner_guid IMPORTING e_address = ls_address EXCEPTIONS no_address_found = 1 internal_error = 2 wrong_parameters = 3 date_invalid = 4 not_valid = 5 OTHERS = 6.

/MRSS/GET_RES_FROZEN_PERIOD CALL FUNCTION '/MRSS/GET_RES_FROZEN_PERIOD' EXPORTING iv_resource_guid = but000-partner_guid iv_resource_group = lv_resource_group iv_days_in_past = /mrss/d_res_frzn-days_in_past iv_days_in_future = /mrss/d_res_frzn-days_in_future iv_freeze_time = /mrss/d_res_frzn-freeze_time IMPORTING ev_curr_frzn_tstmp_from = lv_curr_frzn_tstmp_from ev_curr_frzn_tstmp_to = lv_curr_frzn_tstmp_to ev_next_frzn_tstmp_from = lv_next_frzn_tstmp_from ev_next_frzn_tstmp_to = lv_next_frzn_tstmp_to ev_frozen_at = lv_frozen_at.

/MRSS/CALCULATE_NEXT_DELIVERY CALL FUNCTION '/MRSS/CALCULATE_NEXT_DELIVERY' EXPORTING iv_date = sy-datum iv_consider_lead_time = lc_true is_spare_parts_delivery = gs_res_sp_d IMPORTING ev_nxt_delivery = gv_next_delivery ev_earliest_appt = gv_earliest_appointment.

/MRSS/CALCULATE_NEXT_DELIVERY CALL FUNCTION '/MRSS/CALCULATE_NEXT_DELIVERY' EXPORTING iv_date = sy-datum iv_consider_lead_time = lc_true is_spare_parts_delivery = gs_res_sp_d IMPORTING ev_nxt_delivery = gv_next_delivery ev_earliest_appt = gv_earliest_appointment.

/MRSS/DETERMINE_RES_MAINT CALL FUNCTION '/MRSS/DETERMINE_RES_MAINT' EXPORTING iv_resource_key = /mrss/d_res_det-partner_guid IMPORTING ev_transaction = lv_transaction.

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = pv_structure_name CHANGING ct_fieldcat = pc_cap_fcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

/MRSS/GET_TEMPLATE_DETAILS CALL FUNCTION '/MRSS/GET_TEMPLATE_DETAILS' EXPORTING iv_template_guid = ls_val_prd-template_guid IMPORTING es_template = ls_template.

/MRSS/GET_CAP_FROM_TEMPLATE CALL FUNCTION '/MRSS/GET_CAP_FROM_TEMPLATE' EXPORTING iv_template_name = ls_val_prd-template_name IMPORTING et_capacity_template = lt_res_tpds ev_failed = lv_failed.

/MRSS/GET_INTERVAL_FROM_SLOT CALL FUNCTION '/MRSS/GET_INTERVAL_FROM_SLOT' EXPORTING iv_slot_id = -slot_id IMPORTING ev_start_time = ls_cap_def-time_from ev_end_time = ls_cap_def-time_to.

/MRSS/GET_CAP_FROM_TEMPLATE CALL FUNCTION '/MRSS/GET_CAP_FROM_TEMPLATE' EXPORTING iv_template_name = -template_name IMPORTING et_capacity_template = lt_res_tpds ev_failed = lv_failed.

GUID_CREATE CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_16 = ls_res_ex_c-guid.

GUID_CREATE CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_16 = ls_res_ex_c-guid.

/MRSS/GET_INTERVAL_FROM_SLOT CALL FUNCTION '/MRSS/GET_INTERVAL_FROM_SLOT' EXPORTING iv_slot_id = -slot_id IMPORTING ev_start_time = ls_cap_def-time_from ev_end_time = ls_cap_def-time_to.

/MRSS/GET_CAP_FROM_TEMPLATE





CALL FUNCTION '/MRSS/GET_CAP_FROM_TEMPLATE' EXPORTING iv_template_name = -template_name IMPORTING et_capacity_template = lt_res_tpds.

GUID_CREATE CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_16 = ls_res_ex_c-guid.

/MRSS/GET_INTERVAL_FROM_SLOT CALL FUNCTION '/MRSS/GET_INTERVAL_FROM_SLOT' EXPORTING iv_slot_id = ls_cap_def-slot_id IMPORTING ev_start_time = ls_cap_def-time_from ev_end_time = ls_cap_def-time_to ev_failed = lv_failed.

CONVERT_DATE_TO_INTERNAL CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL' EXPORTING date_external = -value IMPORTING date_internal = ls_val_prd-date_from EXCEPTIONS date_external_is_invalid = 1 OTHERS = 2.

CONVERT_DATE_TO_INTERNAL CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL' EXPORTING date_external = -value IMPORTING date_internal = ls_val_prd-date_to EXCEPTIONS date_external_is_invalid = 1 OTHERS = 2.

/MRSS/GET_TEMPLATE_DETAILS CALL FUNCTION '/MRSS/GET_TEMPLATE_DETAILS' EXPORTING iv_template_name = ls_val_prd-template_name IMPORTING es_template = ls_template ev_failed = lv_failed.

GUID_CREATE CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_16 = ls_val_prd-guid.

CONVERT_DATE_TO_INTERNAL CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL' EXPORTING date_external = -value IMPORTING date_internal = lv_date EXCEPTIONS date_external_is_invalid = 1 OTHERS = 2.

/MRSS/GET_TEMPLATE_DETAILS CALL FUNCTION '/MRSS/GET_TEMPLATE_DETAILS' EXPORTING iv_template_name = lv_template_name IMPORTING es_template = ls_template ev_failed = lv_failed.

/MRSS/GET_CAP_FROM_TEMPLATE CALL FUNCTION '/MRSS/GET_CAP_FROM_TEMPLATE' EXPORTING iv_template_name = lv_template_name IMPORTING et_capacity_template = lt_res_tpds.

GUID_CREATE CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_16 = ls_res_ex_c-guid.

CONVERSION_EXIT_WKDAY_OUTPUT * CALL FUNCTION 'CONVERSION_EXIT_WKDAY_OUTPUT' * EXPORTING * input = ls_cap_def-weekday * IMPORTING * output = ls_cap_def-weekday_descr.

CONVERSION_EXIT_MRSWD_INPUT CALL FUNCTION 'CONVERSION_EXIT_MRSWD_INPUT' EXPORTING input = -value IMPORTING output = .

GUID_CREATE CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_16 = ls_cap_def-guid.

/MRSS/GET_INTERVAL_FROM_SLOT CALL FUNCTION '/MRSS/GET_INTERVAL_FROM_SLOT' EXPORTING iv_slot_id = ls_cap_def-slot_id IMPORTING ev_start_time = ls_cap_def-time_from ev_end_time = ls_cap_def-time_to.

CONVERSION_EXIT_MRSWD_INPUT CALL FUNCTION 'CONVERSION_EXIT_MRSWD_INPUT' EXPORTING input = -value IMPORTING output = .

/MRSS/GET_INTERVAL_FROM_SLOT CALL FUNCTION '/MRSS/GET_INTERVAL_FROM_SLOT' EXPORTING iv_slot_id = -slot_id IMPORTING ev_start_time = -time_from ev_end_time = -time_to.

VIEW_MAINTENANCE_CALL CALL FUNCTION 'VIEW_MAINTENANCE_CALL' EXPORTING action = 'U' view_name = '/MRSS/V_RES_SLOT' * TABLES * DBA_SELLIST = * EXCL_CUA_FUNCT = EXCEPTIONS client_reference = 1 foreign_lock = 2 invalid_action = 3 no_clientindependent_auth = 4 no_database_function = 5 no_editor_function = 6 no_show_auth = 7 no_tvdir_entry = 8 no_upd_auth = 9 only_show_allowed = 10 system_failure = 11 unknown_field_in_dba_sellist = 12 view_not_found = 13 maintenance_prohibited = 14 OTHERS = 15 .

/MRSS/CALC_RES_CAP_PER_DATE CALL FUNCTION '/MRSS/CALC_RES_CAP_PER_DATE' EXPORTING iv_date_from = -date_from iv_date_to = -date_to iv_resource_guid = /mrss/d_res_det-partner_guid it_capacity_definition = lt_cap_def iv_res_group = /mrss/d_res_det-resource_group IMPORTING et_capacity_per_date = gt_cpd et_deleted_capacity_per_date = lt_cpd_del.

/MRSS/DETERMINE_RES_MAINT * CALL FUNCTION '/MRSS/DETERMINE_RES_MAINT' * EXPORTING * iv_resource_key = /mrss/d_res_det-partner_guid * IMPORTING * ev_transaction = lv_transaction.




CONVERT_DATE_TO_INTERNAL CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL' EXPORTING date_external = lv_date IMPORTING date_internal = EXCEPTIONS date_external_is_invalid = 1 OTHERS = 2.

/MRSS/GET_INTERVAL_FROM_SLOT CALL FUNCTION '/MRSS/GET_INTERVAL_FROM_SLOT' EXPORTING iv_slot_id = ls_cpd-slot_id IMPORTING ev_start_time = ls_cpd-time_from ev_end_time = ls_cpd-time_to.

GUID_CREATE CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_16 = ls_cpd-guid.

DATE_COMPUTE_DAY CALL FUNCTION 'DATE_COMPUTE_DAY' EXPORTING date = ls_cpd-cap_date IMPORTING day = lv_day.

CONVERSION_EXIT_MRSWD_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_MRSWD_OUTPUT' EXPORTING input = lv_day IMPORTING output = ls_cpd-weekday_descr.

/MRSS/GET_INTERVAL_FROM_SLOT CALL FUNCTION '/MRSS/GET_INTERVAL_FROM_SLOT' EXPORTING iv_slot_id = ls_cpd-slot_id IMPORTING ev_start_time = ls_cpd-time_from ev_end_time = ls_cpd-time_to.

CONVERT_DATE_TO_INTERNAL CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL' EXPORTING date_external = lv_date IMPORTING date_internal = EXCEPTIONS date_external_is_invalid = 1 OTHERS = 2.

/MRSS/GET_INTERVAL_FROM_SLOT CALL FUNCTION '/MRSS/GET_INTERVAL_FROM_SLOT' EXPORTING iv_slot_id = -slot_id IMPORTING ev_start_time = -time_from ev_end_time = -time_to.

DATE_COMPUTE_DAY CALL FUNCTION 'DATE_COMPUTE_DAY' EXPORTING date = -cap_date IMPORTING day = lv_day.

CONVERSION_EXIT_MRSWD_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_MRSWD_OUTPUT' EXPORTING input = lv_day IMPORTING output = -weekday_descr.

/MRSS/GET_INTERVAL_FROM_SLOT CALL FUNCTION '/MRSS/GET_INTERVAL_FROM_SLOT' EXPORTING iv_slot_id = -slot_id IMPORTING ev_start_time = -time_from ev_end_time = -time_to.

/MRSS/GET_INTERVAL_FROM_SLOT CALL FUNCTION '/MRSS/GET_INTERVAL_FROM_SLOT' EXPORTING iv_slot_id = ls_cpd-slot_id IMPORTING ev_start_time = ls_cpd-time_from ev_end_time = ls_cpd-time_to ev_failed = lv_failed.

/MRSS/GET_INTERVAL_FROM_SLOT ** CALL FUNCTION '/MRSS/GET_INTERVAL_FROM_SLOT' ** EXPORTING ** iv_slot_id = ls_mod_line-value ** IMPORTING ** ev_start_time = lv_time_from ** ev_end_time = lv_time_to.

/MRSS/CALC_RES_CAP_PER_DATE CALL FUNCTION '/MRSS/CALC_RES_CAP_PER_DATE' EXPORTING iv_date_from = ps_val_prd-date_from iv_date_to = ps_val_prd-date_to iv_resource_guid = /mrss/d_res_det-partner_guid it_capacity_definition = lt_cap_def iv_res_group = /mrss/d_res_det-resource_group IMPORTING * ET_CAPACITY_PER_DATE = * ET_CAPACITY_PER_DAY = et_deleted_capacity_per_date = lt_cpd_del.

/MRSS/DETERMINE_RES_MAINT CALL FUNCTION '/MRSS/DETERMINE_RES_MAINT' EXPORTING iv_resource_key = but000-partner_guid IMPORTING ev_transaction = lv_transaction.

/MRSS/CALC_RES_CAP_PER_DATE CALL FUNCTION '/MRSS/CALC_RES_CAP_PER_DATE' EXPORTING iv_date_from = -date_from iv_date_to = -date_to iv_resource_guid = but000-partner_guid it_capacity_definition = lt_cap_def iv_res_group = /mrss/d_res_det-resource_group IMPORTING et_capacity_per_date = lt_cpd et_deleted_capacity_per_date = lt_cpd_del.

BUP_PARTNER_GET CALL FUNCTION 'BUP_PARTNER_GET' EXPORTING i_partnerguid = pv_resource_guid IMPORTING e_but000_address = ls_but000_address EXCEPTIONS partner_not_found = 1 wrong_parameters = 2 internal_error = 3 OTHERS = 4.

/MRSS/DETERMINE_RES_MAINT CALL FUNCTION '/MRSS/DETERMINE_RES_MAINT' EXPORTING iv_resource_key = /mrss/d_res_det-partner_guid IMPORTING ev_transaction = lv_transaction.



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 /MRSS/RES_DET_MAINT_F01 or its description.