SAP Reports / Programs | Sales and Distribution | Foreign Trade | Basic Functions(SD-FT-PRO) SAP SD

RMIMSELS SAP ABAP INCLUDE - INTRASTAT/EXTRASTAT Receipt/Import - Subroutines







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


Text pool values


Title: INTRASTAT/EXTRASTAT Receipt/Import - Subroutines


INCLUDES used within this REPORT RMIMSELS

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:

RV_FTT_GOV_TABLES_INITIALIZE CALL FUNCTION 'RV_FTT_GOV_TABLES_INITIALIZE'.

FTRADE_DATA_SWITCH_INITIALIZE CALL FUNCTION 'FTRADE_DATA_SWITCH_INITIALIZE'.

REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = gc_alv_variant_save_mode_a CHANGING cs_variant = ps_alv_variant EXCEPTIONS not_found = 4.

DD_DOMVALUES_GET CALL FUNCTION 'DD_DOMVALUES_GET' EXPORTING domname = lc_domain_sel_type text = true langu = sy-langu TABLES dd07v_tab = lt_domain_values EXCEPTIONS wrong_textflag = 1 OTHERS = 2.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = pv_selection_report_name dynumb = pv_screen_no TABLES dynpfields = lt_dynpro_fields_value 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 OTHERS = 9.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = pv_selection_report_name dynumb = pv_screen_no TABLES dynpfields = lt_dynpro_fields_value 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 OTHERS = 9.

CHECK_PLANTS_IN_SAME_COUNTRY CALL FUNCTION 'CHECK_PLANTS_IN_SAME_COUNTRY' EXPORTING reporting_country = lv_reporting_country reporting_bukrs = pv_company_code TABLES t_plants = lr_sel_plants EXCEPTIONS different_countries = 1 diff_from_reporting_country = 2 diff_from_reporting_bukrs = 3 OTHERS = 4.

RV_FTT_GOV_PLANTS_SELECT CALL FUNCTION 'RV_FTT_GOV_PLANTS_SELECT' EXPORTING i_bukrs = pv_company_code i_country = lv_reporting_country reduce_only = true TABLES plants = lr_sel_plants EXCEPTIONS dialog_canceled = 1 OTHERS = 2.

RS_REFRESH_FROM_SELECTOPTIONS CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS' EXPORTING curr_report = lv_selection_report_name TABLES selection_table = lt_report_selection EXCEPTIONS not_found = 1 no_report = 2 OTHERS = 3.

RV_FTT_GOV_ENJOY_LOG_TEXTS_GET CALL FUNCTION 'RV_FTT_GOV_ENJOY_LOG_TEXTS_GET' EXPORTING reporting_month = pv_reporting_month reporting_year = pv_reporting_year medium = lc_medium_data_selection flow_of_goods = pv_direction log_type = pv_sel_log_type mode = lv_enjoy_log_mode records_selected = pv_no_items_selected lines_icomp_log_e = lv_lines_incomp_log_error lines_icomp_log_w = lv_lines_incomp_log_warning lines_icomp_log_i = lv_lines_incomp_log_info TABLES enjoy_log = lt_enpa_enjoy_log.

RV_FTT_GOV_MEMORY_HANDLING CALL FUNCTION 'RV_FTT_GOV_MEMORY_HANDLING' EXPORTING mode = gc_memory_mode_export program = gc_report_name_saplv50g TABLES incompletion_data_header = pt_incomp_header incompletion_data_item = pt_incomp_item calling_program_sel = lt_selection_report_name selection_table_1 = lt_report_selection EXCEPTIONS illegal_mode = 1 export_failed = 2 import_failed = 3 OTHERS = 4.

RV_FTT_GOV_MEMORY_HANDLING CALL FUNCTION 'RV_FTT_GOV_MEMORY_HANDLING' EXPORTING mode = gc_memory_mode_export program = gc_report_name_saplv50g TABLES selection_log = pt_selection_log alv_variant_1 = lt_alv_variant EXCEPTIONS illegal_mode = 1 export_failed = 2 import_failed = 3 OTHERS = 4.

RV_FTT_GOV_MEMORY_HANDLING CALL FUNCTION 'RV_FTT_GOV_MEMORY_HANDLING' EXPORTING mode = gc_memory_mode_export program = gc_report_name_saplv50g TABLES selection_table_1 = lt_report_selection EXCEPTIONS illegal_mode = 1 export_failed = 2 import_failed = 3 OTHERS = 4.

RV_FTT_GOV_LOW_WEIGHT_HANDLING CALL FUNCTION 'RV_FTT_GOV_LOW_WEIGHT_HANDLING' CHANGING c_weight = hlp_weight_floating c_multiplier_coded = p_eigenmass EXCEPTIONS invalid_coded_multiplier = 1 OTHERS = 2.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = pv_titlebar_text diagnose_object = pv_diagnose_object text_question = pv_question_text text_button_1 = pv_button_1_text text_button_2 = pv_button_2_text default_button = '1' display_cancel_button = true start_column = 22 start_row = 2 popup_type = lc_icon_message_warning IMPORTING answer = pv_popup_answer EXCEPTIONS text_not_found = 1 OTHERS = 2.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = 0 text = lv_progress_text.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = pv_selection_report_name dynumb = pv_screen_no TABLES dynpfields = lt_dynpro_fields_value 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 OTHERS = 9.

RV_FTT_GOV_PLANTS_SELECT CALL FUNCTION 'RV_FTT_GOV_PLANTS_SELECT' EXPORTING i_bukrs = pv_company_code i_country = pv_reporting_country IMPORTING e_werkslow = pr_sel_plants-low e_bukrs = pv_company_code e_country = pv_reporting_country TABLES plants = pr_sel_plants EXCEPTIONS dialog_canceled = 1 OTHERS = 2.

HELP_VALUES_GET_NO_DD_NAME





CALL FUNCTION 'HELP_VALUES_GET_NO_DD_NAME' EXPORTING selectfield = lc_field_name_plant IMPORTING ind = lv_line_selected TABLES fields = lt_help_value_fields full_table = lt_plants EXCEPTIONS full_table_empty = 1 no_tablestructure_given = 2 no_tablefields_in_dictionary = 3 more_then_one_selectfield = 4 no_selectfield = 5 OTHERS = 6.

REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = gc_alv_variant_save_mode_a CHANGING cs_variant = ps_alv_variant EXCEPTIONS wrong_input = 1 not_found = 2 program_error = 3 OTHERS = 4.

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = ps_alv_variant i_save = gc_alv_variant_save_mode_a IMPORTING e_exit = lv_exit_command es_variant = ps_alv_variant EXCEPTIONS not_found = 2.

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING dyname = pv_selection_report_name dynumb = pv_screen_no TABLES dynpfields = lt_update_fields EXCEPTIONS invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 undefind_error = 7 OTHERS = 8.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

RV_FTT_GOV_MEMORY_HANDLING CALL FUNCTION 'RV_FTT_GOV_MEMORY_HANDLING' EXPORTING mode = gc_memory_mode_import program = gc_report_name_saplv50g TABLES no_log = lt_do_not_create_log EXCEPTIONS illegal_mode = 1 export_failed = 2 import_failed = 3 OTHERS = 4.

RV_FTT_GOV_ISSUE_LOG_SEL_REP CALL FUNCTION 'RV_FTT_GOV_ISSUE_LOG_SEL_REP' EXPORTING flow_of_goods = pv_direction flg_simulation = false reporting_type = pv_reporting_type log_type = pv_sel_log_type reporting_month = pv_reporting_month reporting_year = pv_reporting_year variant = ps_alv_variant country = pv_reporting_country_iso2 calling_program = pv_selection_report_name TABLES selection_log = pt_selection_log incompletion_data_header = pt_incomp_header incompletion_data_item = pt_incomp_item EXCEPTIONS wrong_reporting_type = 1 OTHERS = 2.

HELP_VALUES_GET CALL FUNCTION 'HELP_VALUES_GET' EXPORTING display = false fieldname = lc_field_name_currency tabname = lc_table_name_currency IMPORTING select_value = p_waers EXCEPTIONS no_help_for_field = 1 OTHERS = 2.

PRICING_AMOUNT_DETERMINATION CALL FUNCTION 'PRICING_AMOUNT_DETERMINATION' EXPORTING komk_i = ps_comm_header komp_i = ps_comm_item komv_i = ps_cond_type_in IMPORTING komv_e = ls_cond_type_out.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = pv_date foreign_amount = pv_foreign_amount foreign_currency = pv_foreign_currency local_currency = pv_local_currency rate = pv_rate type_of_rate = pv_type_of_rate read_tcurr = 'X' IMPORTING exchange_rate = lv_exchange_rate local_amount = pv_local_amount EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = pv_date foreign_currency = pv_foreign_currency local_amount = pv_local_amount local_currency = pv_local_currency rate = pv_rate type_of_rate = pv_type_of_rate read_tcurr = 'X' IMPORTING exchange_rate = lv_exchange_rate foreign_amount = pv_foreign_amount EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.

MB_READ_CONSIGNMENT CALL FUNCTION 'MB_READ_CONSIGNMENT' EXPORTING i_mtcom = ls_comm_material i_meprck = ls_price_sim_input valueonly = true IMPORTING e_mepro = ls_price_sim_output EXCEPTIONS info_not_found = 1 OTHERS = 2.

ADDR_GET CALL FUNCTION 'ADDR_GET' EXPORTING address_selection = ls_address_selection address_group = pv_address_group IMPORTING address_value = ps_address_data EXCEPTIONS parameter_error = 1 address_not_exist = 2 version_not_exist = 3 internal_error = 4 OTHERS = 5.

RV_FTT_GOV_INCOMPLETION_READ CALL FUNCTION 'RV_FTT_GOV_INCOMPLETION_READ' EXPORTING i_country = pv_reporting_country i_direction = pv_direction i_reporting_type = pv_reporting_type TABLES e_t_incompletion_fields = pt_incomp_fields EXCEPTIONS no_incompletion_criteria_found = 1 wrong_direction = 2 wrong_reporting_type = 3 OTHERS = 4.

RV_FTT_GOV_CARRIER_USER_EXIT CALL FUNCTION 'RV_FTT_GOV_CARRIER_USER_EXIT' EXPORTING i_country = pv_reporting_country i_reporting_type = pv_reporting_type i_direction = lv_direction i_reporting_year = pv_reporting_year i_reporting_month = pv_reporting_month i_reporting_currency = pv_reporting_currency i_process_step = gc_process_step_s IMPORTING e_exclude_from_selection = pv_item_not_relevant CHANGING c_mm_purch_order_header = ps_po_header c_mm_purch_order_line_item = ps_po_item c_foreign_trade_header = ps_ft_header c_foreign_trade_line_item = ps_ft_item EXCEPTIONS wrong_process_step = 1 wrong_direction = 2 wrong_reporting_type = 3 OTHERS = 4.

RV_FTT_GOV_CARRIER_USER_EXIT CALL FUNCTION 'RV_FTT_GOV_CARRIER_USER_EXIT' EXPORTING i_country = pv_reporting_country i_reporting_type = pv_reporting_type i_direction = lv_direction i_reporting_year = pv_reporting_year i_reporting_month = pv_reporting_month i_reporting_currency = pv_reporting_currency i_process_step = gc_process_step_u IMPORTING e_exclude_from_selection = pv_item_not_relevant CHANGING c_mm_purch_order_header = ps_po_header c_mm_purch_order_line_item = ps_po_item c_foreign_trade_header = ps_ft_header c_foreign_trade_line_item = ps_ft_item c_record_intrastat = ps_db_reporting_record EXCEPTIONS wrong_process_step = 1 wrong_direction = 2 wrong_reporting_type = 3 OTHERS = 4.

RV_FTT_GOV_CARRIER_USER_EXIT CALL FUNCTION 'RV_FTT_GOV_CARRIER_USER_EXIT' EXPORTING i_country = pv_reporting_country i_reporting_type = pv_reporting_type i_direction = lv_direction i_reporting_year = pv_reporting_year i_reporting_month = pv_reporting_month i_reporting_currency = pv_reporting_currency i_process_step = gc_process_step_u IMPORTING e_exclude_from_selection = pv_item_not_relevant CHANGING c_mm_purch_order_header = ps_po_header c_mm_purch_order_line_item = ps_po_item c_foreign_trade_header = ps_ft_header c_foreign_trade_line_item = ps_ft_item c_record_extrastat = ps_db_reporting_record EXCEPTIONS wrong_process_step = 1 wrong_direction = 2 wrong_reporting_type = 3 OTHERS = 4.

RV_FTT_GOV_MEMORY_HANDLING CALL FUNCTION 'RV_FTT_GOV_MEMORY_HANDLING' EXPORTING mode = gc_memory_mode_export program = gc_report_name_saplv50g TABLES incompletion_data_header = pt_incomp_header incompletion_data_item = pt_incomp_item EXCEPTIONS illegal_mode = 1 export_failed = 2 import_failed = 3 OTHERS = 4.

ENQUEUE_E_TABLEE CALL FUNCTION 'ENQUEUE_E_TABLEE' EXPORTING mode_rstable = lc_lock_mode tabname = pv_table_name varkey = pv_db_enqueue_argument EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

DEQUEUE_E_TABLEE CALL FUNCTION 'DEQUEUE_E_TABLEE' EXPORTING mode_rstable = lc_lock_mode tabname = pv_table_name varkey = pv_db_enqueue_argument.




RV_FTT_GOV_TABLE_REORGANIZE CALL FUNCTION 'RV_FTT_GOV_TABLE_REORGANIZE' EXPORTING datummona = pv_reporting_month datumjahr = pv_reporting_year bukrs = pv_company_code application = pv_record_origin arrivdepa = pv_direction delete_mode = pv_deletion_type table_name = pv_table_name IMPORTING next_free_line = pv_next_line_for_db_insert TABLES werke = pt_sel_plants undeleted_items = lt_unreorganized_records EXCEPTIONS database_error = 1 internal_table_error = 2 ilegal_month = 3 ilegal_year = 4 ilegal_application = 5 ilegal_arrivdepa = 6 ilegal_delete_mode = 7 OTHERS = 8.

ENQUEUE_READ CALL FUNCTION 'ENQUEUE_READ' EXPORTING gclient = sy-mandt gname = lc_municipality_name_rstable guname = lv_user_name_blank TABLES enq = lt_enqueue_entries EXCEPTIONS communication_failure = 1 system_failure = 2 OTHERS = 3.

RS_REFRESH_FROM_DYNAMICAL_SEL CALL FUNCTION 'RS_REFRESH_FROM_DYNAMICAL_SEL' EXPORTING curr_report = pv_selection_report_name mode_write_or_move = lc_mode_move IMPORTING p_trange = lt_range_dynamic_selections EXCEPTIONS not_found = 1 wrong_type = 2 OTHERS = 3.

RV_FTT_GOV_EXCLUSION_READ CALL FUNCTION 'RV_FTT_GOV_EXCLUSION_READ' EXPORTING i_reporting_type = pv_reporting_type TABLES e_t_exclusion_data = lt_incl_excl_indicator EXCEPTIONS no_exclusion_data_found = 1 wrong_reporting_type = 2 OTHERS = 3.

RV_FTT_GOV_CONTROL_DATA_READ CALL FUNCTION 'RV_FTT_GOV_CONTROL_DATA_READ' EXPORTING i_reporting_type = lv_conv_reporting_type i_country = pv_reporting_country i_direction = lv_direction IMPORTING e_rec_control_fields = ps_selection_control EXCEPTIONS country_initial = 1 wrong_direction = 2 wrong_reporting_type = 3 OTHERS = 4.

RV_FTT_GOV_SPEC_REGULATION_GET CALL FUNCTION 'RV_FTT_GOV_SPEC_REGULATION_GET' EXPORTING reporting_type = pv_reporting_type reporting_country = pv_reporting_country TABLES table_data_t609ii = lt_country_region_reg EXCEPTIONS wrong_reporting_type = 1 no_data_found = 2 OTHERS = 3.

RV_FTT_GOV_ID_CODES_READ CALL FUNCTION 'RV_FTT_GOV_ID_CODES_READ' EXPORTING i_company_code = pv_company_code i_country = pv_reporting_country i_reporting_type = pv_reporting_type IMPORTING e_intrastat_company_id = ls_company_rep_id-intrastat_company_id e_intrastat_company_add_id = ls_company_rep_id-intrastat_company_add_id e_extrastat_id = ls_company_rep_id-extrastat_id e_extrastat_company_id = ls_company_rep_id-extrastat_company_id EXCEPTIONS company_code_initial = 1 country_initial = 2 wrong_reporting_type = 3 OTHERS = 4.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = pv_table_name TABLES dfies_tab = lt_table_components EXCEPTIONS not_found = 1 internal_error = 2 OTHERS = 3.

FTRADE_BUSINESS_TYPE_SWITCH CALL FUNCTION 'FTRADE_BUSINESS_TYPE_SWITCH' EXPORTING i_direction = lv_direction i_source_country = pv_reporting_country i_source_business_type = pv_business_transaction_type i_target_country = pv_reporting_country IMPORTING e_target_business_type = pv_charact_value EXCEPTIONS no_entry_found = 1 wrong_direction = 2 OTHERS = 3.

FTRADE_CUST_PROCEDURE_SWITCH CALL FUNCTION 'FTRADE_CUST_PROCEDURE_SWITCH' EXPORTING i_direction = lv_direction i_source_country = pv_reporting_country i_source_procedure = pv_import_export_procedure i_target_country = pv_reporting_country IMPORTING e_target_procedure = pv_charact_value EXCEPTIONS no_entry_found = 1 wrong_direction = 2 OTHERS = 3.

MATERIAL_UNIT_CONVERSION CALL FUNCTION 'MATERIAL_UNIT_CONVERSION' EXPORTING input = lv_weight_input_output kzmeinh = ' ' matnr = pv_material_no meinh = gc_unit_kg meins = pv_po_base_uom charge = ls_po_hist_result-charg werks = pv_po_plant IMPORTING output = lv_weight_input_output EXCEPTIONS conversion_not_found = 1 input_invalid = 2 material_not_found = 3 meinh_not_found = 4 meins_missing = 5 no_meinh = 6 output_invalid = 7 overflow = 8 OTHERS = 9.

UNIT_CORRESPONDENCE_CHECK CALL FUNCTION 'UNIT_CORRESPONDENCE_CHECK' EXPORTING unit_in = pv_shipped_quantity_unit unit_out = gc_unit_kg EXCEPTIONS dimensions_are_different unit_in_not_found unit_out_not_found.

UNIT_CONVERSION_SIMPLE CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' EXPORTING input = lv_po_net_weight_float unit_in = pv_shipped_quantity_unit unit_out = gc_unit_kg IMPORTING output = lv_po_net_weight_float EXCEPTIONS conversion_not_found = 01 overflow = 02 OTHERS = 03.

UNIT_CONVERSION CALL FUNCTION 'UNIT_CONVERSION' EXPORTING meins = lv_po_net_weight_unit mglme = pv_net_weight_float meinh = gc_unit_kg IMPORTING o_mgame = pv_net_weight_float EXCEPTIONS conversion_not_found = 01 overflow = 02 OTHERS = 03.

MATERIAL_UNIT_CONVERSION CALL FUNCTION 'MATERIAL_UNIT_CONVERSION' EXPORTING input = lv_shipped_quantity kzmeinh = true matnr = pv_material_no meinh = pv_shipped_quantity_unit meins = pv_base_unit IMPORTING output = lv_shipped_quantity EXCEPTIONS conversion_not_found = 01 OTHERS = 02.

UNIT_CONVERSION_WITH_FACTOR CALL FUNCTION 'UNIT_CONVERSION_WITH_FACTOR' EXPORTING add_const = false denominator = ls_mat_units_of_measure_marm-umren input = lv_shipped_quantity numerator = ls_mat_units_of_measure_marm-umrez IMPORTING output = lv_shipped_quantity EXCEPTIONS OTHERS = 01.

MATERIAL_UNIT_CONVERSION CALL FUNCTION 'MATERIAL_UNIT_CONVERSION' EXPORTING input = lv_shipped_quantity matnr = pv_material_no meinh = ls_commodity_code_data-bemeh meins = pv_base_unit IMPORTING output = lv_shipped_quantity umren = ls_mat_units_of_measure_marm-umren umrez = ls_mat_units_of_measure_marm-umrez EXCEPTIONS conversion_not_found = 01 OTHERS = 02.

UNIT_CONVERSION_WITH_FACTOR CALL FUNCTION 'UNIT_CONVERSION_WITH_FACTOR' EXPORTING add_const = false denominator = ls_mat_units_of_measure_marm-umren input = lv_shipped_quantity numerator = ls_mat_units_of_measure_marm-umrez IMPORTING output = lv_shipped_quantity EXCEPTIONS OTHERS = 01.

CONVERSION_FACTOR_GET CALL FUNCTION 'CONVERSION_FACTOR_GET' EXPORTING unit_in = pv_shipped_quantity_unit unit_out = ls_commodity_code_data-bemeh IMPORTING add_const = lv_add_const denominator = lv_conv_denominator numerator = lv_conv_numerator EXCEPTIONS conversion_not_found = 1 overflow = 2 type_invalid = 3 units_missing = 4 unit_in_not_found = 5 unit_out_not_found = 6 OTHERS = 7.

PRICING_REFRESH CALL FUNCTION 'PRICING_REFRESH' EXPORTING i_no_komv_refresh = ' ' TABLES tkomk = lt_refresh_komk tkomv = lt_refresh_komv.

MM_REFRESH_PARTNERS CALL FUNCTION 'MM_REFRESH_PARTNERS'.

ME_FILL_KOMK_PO CALL FUNCTION 'ME_FILL_KOMK_PO' EXPORTING i_ekko = ps_po_header i_ekpo = ps_po_item i_t001 = ls_t001 i_kalsm = ps_po_header-kalsm i_kappl = gc_application_mm i_egimp = lv_eu_import IMPORTING e_komk = ls_comm_head.

ME_FILL_KOMP_PO CALL FUNCTION 'ME_FILL_KOMP_PO' EXPORTING i_ekpo = ps_po_item i_t001w = ls_t001w i_ekko = ps_po_header i_komk = ls_comm_head i_preisfindungsmenge = ps_po_hist_result-menge IMPORTING e_komp = ls_comm_item.

PRICING CALL FUNCTION 'PRICING' EXPORTING calculation_type = 'B' comm_head_i = ls_comm_head comm_item_i = ls_comm_item preliminary = ' ' no_calculation = 'X' TABLES tkomv = pt_conditions.

FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = lv_function_ecr_pi EXCEPTIONS function_not_exist = 1 OTHERS = 2.

FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = lv_function_ecr_pi EXCEPTIONS function_not_exist = 1 OTHERS = 2.

FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = lv_function_ecr_pi EXCEPTIONS function_not_exist = 1 OTHERS = 2.

FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = lv_function_ecr_pi EXCEPTIONS function_not_exist = 1 OTHERS = 2.

UNIT_CONVERSION_SIMPLE CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' EXPORTING input = iv_net_weight_float unit_in = gc_unit_kg unit_out = iv_ekpo_gewei IMPORTING output = cv_net_weight EXCEPTIONS conversion_not_found = 0 division_by_zero = 0 input_invalid = 0 output_invalid = 0 overflow = 0 type_invalid = 0 units_missing = 0 unit_in_not_found = 0 unit_out_not_found = 0 OTHERS = 0.

FI_DOCUMENT_READ CALL FUNCTION 'FI_DOCUMENT_READ' EXPORTING i_awtyp = 'RMRP' i_awref = rbkp-belnr i_awsys = rbkp-logsys i_aworg = '*' i_bukrs = rbkp-bukrs i_gjahr = rbkp-gjahr TABLES t_bkpf = xbkpf t_bseg = xbseg EXCEPTIONS wrong_input = 1 not_found = 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 RMIMSELS or its description.