SAP Reports / Programs | Aerospace & Defence Industry Solution | Aerospace & Defence Industry Solution(IS-AD) SAP IS

ADPRIOTOOLF07 SAP ABAP INCLUDE - Include LAD_BOS_ECPI01







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


INCLUDES used within this REPORT ADPRIOTOOLF07

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:

CO_ZF_DATA_RESET_COMPLETE CALL FUNCTION 'CO_ZF_DATA_RESET_COMPLETE'.

CO_ZF_ORDER_READ CALL FUNCTION 'CO_ZF_ORDER_READ' EXPORTING flg_dialog = flg_dialog flg_enqueue = flg_enqueue objects_imp = tca11 explode_imp = '1' IMPORTING flg_enqueue_ok = flg_enqueue_ok TABLES aufnr_tab_imp = aufnr_tab_imp EXCEPTIONS order_not_found = 1 release_no_change = 2 OTHERS = 3.

CO_BT_CAUFV_READ_WITH_KEY CALL FUNCTION 'CO_BT_CAUFV_READ_WITH_KEY' EXPORTING aufnr_act = aufnr_act IMPORTING caufvd_exp = caufvd_exp eqkz_exp = eqkz_exp EXCEPTIONS not_found = 1 OTHERS = 2.

CO_BT_CAUFV_UPD CALL FUNCTION 'CO_BT_CAUFV_UPD' EXPORTING caufvd_upd = caufvd_upd.

CO_BO_OPR_OF_ORDER_GET CALL FUNCTION 'CO_BO_OPR_OF_ORDER_GET' EXPORTING aufnr_imp = aufnr_imp check_deleted = 'X' flg_status = 'X' flg_work = 'X' flg_prov = 'X' flg_qual = 'X' flg_conv = 'X' TABLES afvgd_get = afvgd_get.

DAY_ATTRIBUTES_GET CALL FUNCTION 'DAY_ATTRIBUTES_GET' EXPORTING factory_calendar = factory_calendar holiday_calendar = holiday_calendar date_from = date_from date_to = date_to language = sy-langu IMPORTING year_of_valid_from = year_of_valid_from year_of_valid_to = year_of_valid_to returncode = returncode TABLES day_attributes = day_attributes EXCEPTIONS factory_calendar_not_found = 1 holiday_calendar_not_found = 2 date_has_invalid_format = 3 date_inconsistency = 4 OTHERS = 5.

ADRT10_GET_PRIO_FOR_ORCOD CALL FUNCTION 'ADRT10_GET_PRIO_FOR_ORCOD' EXPORTING * is_afvgd = is_afvgd iv_orcod = f_caufvd-orcod iv_component = lv_comp iv_lgort = i_lgort_res-lgort_res is_caufvd = is_caufvd iv_arbid = lv_arbid is_adpmprioprf = profile IMPORTING ev_prval = f_caufvd-prval ev_ordlate = f_caufvd-flg_alert TABLES it_afvgd = f_afvgdget EXCEPTIONS wrong_input = 1 wrong_orcod = 2 no_priorities_maintained = 3 internal_error = 4 profile_not_found = 5 priokey_not_found = 6 OTHERS = 7.

MC_SEND_MAIL CALL FUNCTION 'MC_SEND_MAIL' EXPORTING ms_mail_sendmode = 'O' * MS_MAIL_TITLE = * MS_MAIL_DESCRIPTION = * ms_mail_receiver = sy-uname * ms_mail_express = 'X' * MS_MAIL_DLINAME = ms_mail_langu = sy-langu * MS_MAIL_FUNKOBJ_TYP = * MS_MAIL_FUNKOBJ_NAME = * IMPORTING * MS_OK_CODE = TABLES ms_mail_cont = i_ms_mail_cont * MS_MAIL_FUNKOBJ_PARM = * MS_MAIL_SETGET_PARM = * MS_MAIL_RECEIVERS = EXCEPTIONS send_error = 1 canceled = 2 no_title = 3 no_description = 4 no_receiver_or_dli = 5 invalid_sendmode = 6 no_content = 7 invalid_functional_params = 8 OTHERS = 9 .

CO_ZF_ORDER_DELOCK CALL FUNCTION 'CO_ZF_ORDER_DELOCK' EXPORTING aufnr = l_aufnr.

DEQUEUE_EMRKPF CALL FUNCTION 'DEQUEUE_EMRKPF' EXPORTING * MODE_RKPF = 'E' mandt = sy-mandt rsnum = l_rsnum * X_RSNUM = ' ' * _SCOPE = '3' * _SYNCHRON = ' ' * _COLLECT = ' ' .

TCX00_READ CALL FUNCTION 'TCX00_READ' EXPORTING i_werks = l_caufvd-werks * I_AUFTG = i_aufta = l_caufvd-auart i_vagrp = l_caufvd-fevor i_autyp = l_caufvd-autyp IMPORTING tcx00_exp = lt_tcx00_imp EXCEPTIONS no_entry = 1 missing_parameter = 2 OTHERS = 3 .

CX_ORDER_SCHEDULE CALL FUNCTION 'CX_ORDER_SCHEDULE' EXPORTING caufvd_imp = lt_caufvd_imp tcx00_imp = lt_tcx00_imp * CX_MARC_IMP = * MDSCT_IMP = * I_PLSCN = * I_VRPLA = * I_TIME_EINZT = i_flg_dates_det = 'X' * I_FLG_CAPACITIES_DET = 'X' * I_FLG_ACTIVITIES_DET = ' ' * i_flg_overall_network = 'X' * I_FLG_PROJECT_SCHED = ' ' * I_FLG_GRAPH_TAB = ' ' * i_flg_protocol = 'X' * I_FLG_UPD_ON_COMMIT = 'X' * I_FLG_PERF = ' ' * I_FLG_DIALOG = 'X' * I_VERSA = IMPORTING caufvd_exp = lt_caufvd_imp * E_TIME_EINZT = * e_fenv1 = * e_fezv1 = * e_fstv1 = * e_fszv1 = * e_senv1 = * e_sezv1 = * e_sstv1 = * e_sszv1 = * E_FLG_AUSSCHUSS = * TABLES * T_CXPLMZ_EXP = * T_CXLST_EXP = EXCEPTIONS no_sched_parameters = 1 no_operations = 2 no_start_date = 3 no_end_date = 4 cycle_found = 5 program_error = 6 tca01_entry_not_valid = 7 OTHERS = 8 .

CX_SCHED_VIA_OPERATING_TIME CALL FUNCTION 'CX_SCHED_VIA_OPERATING_TIME' EXPORTING i_date_start = li_date_start i_time_start = li_time_start i_date_end = li_date_end i_time_end = li_time_end * I_POINT_IN_TIME_START = 0 * I_POINT_IN_TIME_END = 0 * I_DURATION = 0 * I_DURATION_SEC = 0 i_unit = 'S' * i_unit_exp = 'S' * I_RED_IND = i_arbid = li_arbid i_fcalid = li_kalid * I_PERNR = * I_KAPID = * I_VERSA = i_flg_exact_breaks = l_breaks * i_flg_no_calendar = * I_FLG_CAP_SCHEDULING = ' ' * I_FLG_EFZ = ' ' IMPORTING * E_DATE_START = * E_TIME_START = * E_DATE_END = * E_TIME_END = * E_POINT_IN_TIME_START = * E_POINT_IN_TIME_END = * e_duration = e_duration_sec = le_duration * e_unit = * E_MIN_NUM_CAPACITIES = * E_MESSAGE_CODE = EXCEPTIONS parameters_not_valid = 1 OTHERS = 2.

CO_BO_OPR_OF_ORDER_GET CALL FUNCTION 'CO_BO_OPR_OF_ORDER_GET' EXPORTING aufnr_imp = aufnr_imp check_deleted = 'X' flg_status = 'X' flg_work = 'X' flg_prov = 'X' flg_qual = 'X' flg_conv = 'X' TABLES afvgd_get = afvgd_get.

CO_BO_UPDATE_OPR_OF_ORDER CALL FUNCTION 'CO_BO_UPDATE_OPR_OF_ORDER' TABLES afvgd_upd = afvgd_upd.

CX_SCHED_VIA_OPERATING_TIME CALL FUNCTION 'CX_SCHED_VIA_OPERATING_TIME' EXPORTING i_date_end = earliest_end_date i_time_end = earliest_end_time i_duration_sec = 1 i_unit = 'S' i_arbid = wa_avo-arbid i_fcalid = wa_avo-kalid I_FLG_CAP_SCHEDULING = 'X' IMPORTING e_date_start = ls_date e_date_end = wc_end_date e_time_end = wc_end_time EXCEPTIONS parameters_not_valid = 1 OTHERS = 2.

UNIT_CONVERSION_SIMPLE CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' EXPORTING input = wcdura unit_in = 'S' unit_out = 'H' IMPORTING add_const = l_add_const decimals = l_decimals denominator = l_denominator numerator = l_numerator output = wa_avo-dauno EXCEPTIONS conversion_not_found = 1 division_by_zero = 2 input_invalid = 3 output_invalid = 4 overflow = 5 type_invalid = 6 units_missing = 7 unit_in_not_found = 8 unit_out_not_found = 9 OTHERS = 10.

CX_SCHED_VIA_OPERATING_TIME CALL FUNCTION 'CX_SCHED_VIA_OPERATING_TIME' "SH note 1081627 EXPORTING I_DATE_END = li_date_end I_TIME_END = li_time_end I_UNIT = 'S' I_ARBID = wa_avo-arbid I_FCALID = wa_avo-kalid IMPORTING E_DATE_END = li_date_end e_time_end = wc_end_time "SH note 1086826 EXCEPTIONS PARAMETERS_NOT_VALID = 1 OTHERS = 2.

CR_SCHED_VIA_OPERATING_TIME





CALL FUNCTION 'CR_SCHED_VIA_OPERATING_TIME' "SH note 1086826 EXPORTING arbid = wa_avo-arbid date_start_in = latest_start_date time_start_in = latest_start_time IMPORTING date_start_out = latest_start_date time_start_out = latest_start_time EXCEPTIONS capacity_not_found = 1 date_out_of_calendar_range = 2 date_out_of_pit_range = 3 no_active_capacity = 4 no_free_capacity = 5 no_operating_time = 6 parameters_not_valid = 7 workcenter_not_valid = 8. "SH note 1086826

UNIT_CONVERSION_SIMPLE CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' EXPORTING input = wa_dauno * NO_TYPE_CHECK = 'X' * round_sign = '-' unit_in = wa_daune unit_out = lv_unit_out IMPORTING * ADD_CONST = * DECIMALS = * DENOMINATOR = * NUMERATOR = output = lv_wa_out EXCEPTIONS conversion_not_found = 1 division_by_zero = 2 input_invalid = 3 output_invalid = 4 overflow = 5 type_invalid = 6 units_missing = 7 unit_in_not_found = 8 unit_out_not_found = 9 OTHERS = 10 .

UNIT_CONVERSION_SIMPLE CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' EXPORTING input = act_dauno * NO_TYPE_CHECK = 'X' * round_sign = '-' unit_in = act_daune unit_out = lv_unit_out IMPORTING * ADD_CONST = * DECIMALS = * DENOMINATOR = * NUMERATOR = output = lv_act_out EXCEPTIONS conversion_not_found = 1 division_by_zero = 2 input_invalid = 3 output_invalid = 4 overflow = 5 type_invalid = 6 units_missing = 7 unit_in_not_found = 8 unit_out_not_found = 9 OTHERS = 10 .

DATE_TIME_CONVERT CALL FUNCTION 'DATE_TIME_CONVERT' EXPORTING date = date time = time IMPORTING point_in_time = l_point_in_time_from EXCEPTIONS date_before_rel_date = 1 date_to_big = 2 OTHERS = 3.

CX_MOVE_TIME_SCHEDULE CALL FUNCTION 'CX_MOVE_TIME_SCHEDULE' EXPORTING i_point_in_time = l_point_in_time_from i_move_time = l_norm_move_time i_move_time_min = l_min_move_time i_move_time_min_u = l_min_move_time_unit i_move_time_u = l_norm_move_time_unit i_move_time_u_exp = ' ' i_flg_forward = 'X' i_point_in_time_2 = 0 i_arbid_vor = prev_arbid i_arbid_nch = curr_arbid i_t001w_fabkl = l_fac_cal t499r_imp = t499r_tra i_flg_no_calendar = ' ' i_flg_exact_breaks = 'X' i_flg_protocol = ' ' IMPORTING * e_move_time = * e_move_time_u = * e_move_time_value = * e_point_in_time_1 = e_point_in_time_2 = l_point_in_time_to.

POINT_IN_TIME_CONVERT CALL FUNCTION 'POINT_IN_TIME_CONVERT' EXPORTING * kz_endtermin = 'X' point_in_time = l_point_in_time_to IMPORTING date = start_date time = start_time.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = text-215.

ADRT_GET_ROC CALL FUNCTION 'ADRT_GET_ROC' EXPORTING iv_werks = lt_roc-werks iv_lgort = lt_roc-lgort_res iv_matnr = lt_roc-comp iv_imatn = lt_roc-imatn iv_equnr = lt_roc-equnr iv_prkey = '1' is_adpmprioprf = profile IMPORTING es_rwwbwbest = i_matnr_imatn-roc_mpn_stock es_datum = i_matnr_imatn-roc_mpn_date es_rwwbwbest_fff = i_matnr_imatn-roc_fff_stock es_datum_fff = i_matnr_imatn-roc_fff_date TABLES iv_caufvd = roc_caufvd EXCEPTIONS no_roc = 1 profile_not_found = 2 whgrp_not_found = 3 internal_error = 4 no_calender = 5 material_not_found = 6 OTHERS = 7.

DATE_CONVERT_TO_FACTORYDATE CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE' EXPORTING correct_option = l_correct_option date = l_date factory_calendar_id = l_factory_calendar_id IMPORTING date = l_fac_date EXCEPTIONS calendar_buffer_not_loadable = 1 correct_option_invalid = 2 date_after_range = 3 date_before_range = 4 date_invalid = 5 factory_calendar_not_found = 6 OTHERS = 7.

T001W_READ CALL FUNCTION 'T001W_READ' EXPORTING werks = i_caufvd-werks IMPORTING struct = sv_t001w.

CO_BO_OPR_OF_ORDER_GET CALL FUNCTION 'CO_BO_OPR_OF_ORDER_GET' EXPORTING aufnr_imp = i_caufvd-aufnr get_old = 'X' TABLES afvgd_get = lt_afvgd afvgt_old = lt_afvgd_old.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = text-216.

CR_CAPACITIES_OF_WORKCENTER CALL FUNCTION 'CR_CAPACITIES_OF_WORKCENTER' EXPORTING arbid = lt_afvgd_all-arbid TABLES t_kako = lt_kako EXCEPTIONS missing_parameters = 1 not_found = 2 no_capacities_found = 3 OTHERS = 4.

CO_BO_OPR_OF_ORDER_GET CALL FUNCTION 'CO_BO_OPR_OF_ORDER_GET' EXPORTING aufnr_imp = gt_caufvd_net-aufnr TABLES afvgd_get = lt_afvgd.

CR_WORKCENTER_BUFFER_REFRESH CALL FUNCTION 'CR_WORKCENTER_BUFFER_REFRESH' TABLES tarbid = lt_tarbid.

CR_WORKCENTER_PRE_READ CALL FUNCTION 'CR_WORKCENTER_PRE_READ' * EXPORTING * CAP_ALL = ' ' * CAP_AVAIL = 'X' * CAP_BAS = ' ' * VIEW_RCR01 = ' ' * NO_TEXTS = ' ' TABLES tarbid = lt_tarbid * THROID = * RANGE_ARBPL = * RANGE_WERKS = EXCEPTIONS wrong_selection = 1 OTHERS = 2.

CR_WORKSTATION_READ CALL FUNCTION 'CR_WORKSTATION_READ' EXPORTING id = lt_tarbid-objid * MSGTY = 'E' IMPORTING arbpl = l_arbpl * ECRHD = * KTEXT = * WERKS = EXCEPTIONS not_found = 1 OTHERS = 2.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = text-214.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = text-217.

ADRT10_REFRESH_BUFFER CALL FUNCTION 'ADRT10_REFRESH_BUFFER'.




UNIT_CONVERSION_SIMPLE CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' EXPORTING input = afvgd_act-ismnw unit_in = afvgd_act-arbeh unit_out = p_daune IMPORTING output = afvgd_act-ismnw EXCEPTIONS conversion_not_found = 1 division_by_zero = 2 input_invalid = 3 output_invalid = 4 overflow = 5 type_invalid = 6 units_missing = 7 unit_in_not_found = 8 unit_out_not_found = 9 OTHERS = 10.

CO_BT_CAUFV_READ_WITH_KEY CALL FUNCTION 'CO_BT_CAUFV_READ_WITH_KEY' EXPORTING aufnr_act = aufnr_act IMPORTING aufpl_exp = lv_aufpl.

CO_BP_OPR_COPY CALL FUNCTION 'CO_BP_OPR_COPY' EXPORTING index_plpo = afvgd_tot-indbt aufpl_ziel = lv_aufpl flg_keep_vornr = 'X' IMPORTING afvgd_exp = lt_afvgd_exp EXCEPTIONS opr_not_found = 1 header_not_found = 2 seq_not_found = 3 OTHERS = 4.

CX_SCHED_VIA_OPERATING_TIME CALL FUNCTION 'CX_SCHED_VIA_OPERATING_TIME' EXPORTING i_date_start = date_start i_time_start = time_start * i_date_end = * i_time_end = * I_POINT_IN_TIME_START = 0 * I_POINT_IN_TIME_END = 0 i_duration = duration * i_duration_sec = i_unit = unit * I_UNIT_EXP = ' ' * I_RED_IND = i_arbid = arbid i_fcalid = kalid * I_PERNR = * I_KAPID = * I_VERSA = i_flg_exact_breaks = breaks * I_FLG_NO_CALENDAR = ' ' * I_FLG_CAP_SCHEDULING = ' ' IMPORTING * e_date_start = * e_time_start = e_date_end = date_end e_time_end = time_end * E_POINT_IN_TIME_START = * E_POINT_IN_TIME_END = * E_DURATION = * E_DURATION_SEC = * E_UNIT = * E_MIN_NUM_CAPACITIES = * E_MESSAGE_CODE = EXCEPTIONS parameters_not_valid = 1 OTHERS = 2.

BAL_DSP_PROFILE_DETLEVEL_GET CALL FUNCTION 'BAL_DSP_PROFILE_DETLEVEL_GET' IMPORTING e_s_display_profile = l_s_display_profile EXCEPTIONS OTHERS = 1.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = l_s_display_profile i_t_log_handle = g_bal_t_logh EXCEPTIONS OTHERS = 1.

TIME_UNITS CALL FUNCTION 'TIME_UNITS' IMPORTING day = einheit-tag hour = einheit-stunde second = einheit-sekunde.

UNIT_COMPARE_WITH_DAY CALL FUNCTION 'UNIT_COMPARE_WITH_DAY' EXPORTING i_unit = p_unit EXCEPTIONS dimension_not_time = 1 unit_in_t006_missing = 2 unit_lt_day = 3 unit_missing = 4 OTHERS = 5.

CR_CAPACITY_READ CALL FUNCTION 'CR_CAPACITY_READ' EXPORTING arbid = p_arbid IMPORTING works = ls_rcrkk EXCEPTIONS MISSING_PARAMETERS = 01 "1246355 NOT_FOUND = 02. "1246355

UNIT_CONVERSION_SIMPLE CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' EXPORTING input = p_duration unit_in = p_unit unit_out = einheit-tag IMPORTING output = lv_duration_day.

UNIT_CONVERSION_SIMPLE CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' EXPORTING input = ls_rcrkk-einzh unit_in = einheit-stunde unit_out = einheit-sekunde IMPORTING output = lv_duration_wc.

UNIT_CONVERSION_SIMPLE CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' EXPORTING input = p_duration unit_in = p_unit unit_out = einheit-sekunde IMPORTING output = p_duration_second.



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