SAP Reports / Programs | Materials Management | Inventory Management(MM-IM) SAP MM

RMOT001K SAP ABAP Report - Assignment of Plants to Company Codes







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


Text pool values


Title: Assignment of Plants to Company Codes
Text Symbol: B03 = ;;
Text Symbol: B02 = ;; go to B03
Text Symbol: B01 = Delete anyway? ;; go to B02
Text Symbol: A03 = & has been defined ;;
Text Symbol: A02 = a valuation grouping code ;; go to A03
Text Symbol: A01 = For valuation area & ;; go to A02
Text Symbol: 301 = be deleted?
Text Symbol: 300 = Should all assignments to the company code
Text Symbol: 200 = Incorrect
Text Symbol: 103 = Valuation area missing in T001W -> Save again ;;
Text Symbol: 102 = Country of plant differs from country of company code ;;
Text Symbol: 101 = Plant & does not exist
Text Symbol: 100 = Company code & does not exist ;;
Text Symbol: 050 = * No name *
Text Symbol: 038 = Cancel ;;
Text Symbol: 037 = No ;;
Text Symbol: 036 = Yes ;;
Text Symbol: 022 = Assignments changed ;;
Text Symbol: 021 = Do you want to save your data? ;;
Text Symbol: 011 = Plants->Company Code: Warning
Text Symbol: 010 = Company Code
Text Symbol: 008 = Plants
Text Symbol: 004 = Delete Assignments
Text Symbol: 003 = Are you sure you want to cancel? ;;
Text Symbol: 002 = Data will be lost ;;
Text Symbol: 001 = Exit Assignment ;;


INCLUDES used within this REPORT RMOT001K

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_E_TABLE CALL FUNCTION 'ENQUEUE_E_TABLE' EXPORTING tabname = 'T001K' varkey = varkey EXCEPTIONS foreign_lock = 4 system_failure = 8.

ENQUEUE_E_TABLE CALL FUNCTION 'ENQUEUE_E_TABLE' EXPORTING tabname = 'T001' varkey = varkey EXCEPTIONS foreign_lock = 4 system_failure = 8.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

ENQUEUE_E_TABLE CALL FUNCTION 'ENQUEUE_E_TABLE' EXPORTING tabname = 'T001W' varkey = varkey EXCEPTIONS foreign_lock = 4 system_failure = 8.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

ENQUEUE_E_TABLE CALL FUNCTION 'ENQUEUE_E_TABLE' EXPORTING tabname = 'T001W_EXT' varkey = varkey EXCEPTIONS foreign_lock = 4 system_failure = 8.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' "#EC * EXPORTING titel = text-001 textline1 = text-002 textline2 = text-003 IMPORTING answer = answer.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

POPUP_TO_CONFIRM_LOSS_OF_DATA CALL FUNCTION 'POPUP_TO_CONFIRM_LOSS_OF_DATA' "#EC * EXPORTING titel = text-001 textline1 = text-022 textline2 = text-021 IMPORTING answer = answer.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

TR_ORDER_CHOICE_CORRECTION CALL FUNCTION 'TR_ORDER_CHOICE_CORRECTION' EXPORTING iv_category = 'CUST' iv_cli_dep = 'X' IMPORTING ev_order = w_order ev_task = w_task EXCEPTIONS invalid_category = 01 no_correction_selected = 02.

TR_APPEND_TO_COMM_OBJS_KEYS CALL FUNCTION 'TR_APPEND_TO_COMM_OBJS_KEYS' EXPORTING " WI_SIMULATION = ' ' " WI_SUPPRESS_KEY_CHECK = ' ' wi_trkorr = w_task TABLES wt_e071 = t_e071 wt_e071k = t_e071k EXCEPTIONS key_char_in_non_char_field = 01 key_check_keysyntax_error = 02 key_inttab_table = 03 key_longer_field_but_no_generc = 04 key_missing_key_master_fields = 05 key_missing_key_tablekey = 06 key_non_char_but_no_generic = 07 key_no_key_fields = 08 key_string_longer_char_key = 09 key_table_has_no_fields = 10 key_table_not_activ = 11 key_unallowed_key_function = 12 key_unallowed_key_object = 13 key_unallowed_key_objname = 14 key_unallowed_key_pgmid = 15 key_without_header = 16 ob_check_obj_error = 17 ob_devclass_no_exist = 18 ob_empty_key = 19 ob_generic_objectname = 20 ob_ill_delivery_transport = 21 ob_ill_lock = 22 ob_ill_parts_transport = 23 ob_ill_source_system = 24 ob_ill_system_object = 25 ob_ill_target = 26 ob_inttab_table = 27 ob_local_object = 28 ob_locked_by_other = 29 ob_modif_only_in_modif_order = 30 ob_name_too_long = 31 ob_no_append_of_corr_entry = 32 ob_no_append_of_c_member = 33 ob_no_consolidation_transport = 34 ob_no_original = 35 ob_no_shared_repairs = 36 ob_no_systemname = 37 ob_no_systemtype = 38 ob_no_tadir = 39 ob_no_tadir_not_lockable = 40 ob_privat_object = 41 ob_repair_only_in_repair_order = 42 ob_reserved_name = 43 ob_syntax_error = 44 ob_table_has_no_fields = 45 ob_table_not_activ = 46 tr_enqueue_failed = 47 tr_errors_in_error_table = 48 tr_ill_korrnum = 49 tr_lockmod_failed = 50 tr_lock_enqueue_failed = 51 tr_not_owner = 52 tr_no_systemname = 53 tr_no_systemtype = 54 tr_order_not_exist = 55 tr_order_released = 56 tr_order_update_error = 57 tr_wrong_order_type = 58 ob_invalid_target_system = 59 tr_no_authorization = 60 ob_wrong_tabletyp = 61 ob_wrong_category = 62 ob_system_error = 63 ob_unlocal_objekt_in_local_ord = 64 tr_wrong_client = 65 ob_wrong_client = 66 key_wrong_client = 67.

POPUP_TO_DECIDE_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_DECIDE_WITH_MESSAGE' "#EC * EXPORTING defaultoption = '1' diagnosetext1 = message_1 diagnosetext2 = text-a02 diagnosetext3 = message_2 textline1 = text-b01 textline2 = text-b02 textline3 = text-b03 text_option1 = text-036 text_option2 = text-037 titel = text-038 IMPORTING answer = answer.

POPUP_TO_CONFIRM_WITH_VALUE





CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_VALUE' "#EC * EXPORTING defaultoption = 'Y' objectvalue = t001k-bukrs text_after = text-301 text_before = text-300 titel = text-004 IMPORTING answer = answer EXCEPTIONS text_too_long = 01.

DOCU_GET_SHORTTEXT CALL FUNCTION 'DOCU_GET_SHORTTEXT' EXPORTING id = 'NA' langu = sy-langu object = dokname typ = 'E' IMPORTING shorttxt = message.

DOKU_OBJECT_SHOW CALL FUNCTION 'DOKU_OBJECT_SHOW' EXPORTING dokclass = 'NA' doklangu = sy-langu dokname = dokname doktitle = message TABLES links = table EXCEPTIONS object_not_found = 01 sapscript_error = 02.

POPUP_DISPLAY_TEXT CALL FUNCTION 'POPUP_DISPLAY_TEXT' EXPORTING language = sy-langu popup_title = text-011 start_column = 10 start_row = 3 text_object = 'RMOT001K' EXCEPTIONS text_not_found = 1.

TR_OBJECT_CHECK CALL FUNCTION 'TR_OBJECT_CHECK' EXPORTING wi_ko200 = int_ko200 IMPORTING we_ko200 = int_ko200 we_object_appendable = object_appendable TABLES wt_e071k = int_e071k EXCEPTIONS cancel_edit_other_error = 1 show_only_other_error = 2 OTHERS = 3.

TR_OBJECT_INSERT CALL FUNCTION 'TR_OBJECT_INSERT' EXPORTING wi_order = wi_order wi_ko200 = int_ko200 IMPORTING we_order = wi_order we_task = wi_task we_ko200 = int_ko200 TABLES wt_e071k = int_e071k.

ADDR_TRANSPORT_TDAT_ENTRIES CALL FUNCTION 'ADDR_TRANSPORT_TDAT_ENTRIES' TABLES e071k_tab = tab_e071k.

ADDR_TRANSPORT_ENTRIES CALL FUNCTION 'ADDR_TRANSPORT_ENTRIES' EXPORTING addrnumber = t001w_tab-adrnr table_name = tablename "542880 field_name = 'ADRNR' objkey = key TABLES e071k_tab = int_e071k.

TR_APPEND_TO_COMM_OBJS_KEYS CALL FUNCTION 'TR_APPEND_TO_COMM_OBJS_KEYS' EXPORTING wi_trkorr = wi_task TABLES wt_e071 = t_e071 wt_e071k = t_e071k EXCEPTIONS key_char_in_non_char_field = 1 key_check_keysyntax_error = 2 key_inttab_table = 3 key_longer_field_but_no_generc = 4 key_missing_key_master_fields = 5 key_missing_key_tablekey = 6 key_non_char_but_no_generic = 7 key_no_key_fields = 8 key_string_longer_char_key = 9 key_table_has_no_fields = 10 key_table_not_activ = 11 key_unallowed_key_function = 12 key_unallowed_key_object = 13 key_unallowed_key_objname = 14 key_unallowed_key_pgmid = 15 key_without_header = 16 ob_check_obj_error = 17 ob_devclass_no_exist = 18 ob_empty_key = 19 ob_generic_objectname = 20 ob_ill_delivery_transport = 21 ob_ill_lock = 22 ob_ill_parts_transport = 23 ob_ill_source_system = 24 ob_ill_system_object = 25 ob_ill_target = 26 ob_inttab_table = 27 ob_local_object = 28 ob_locked_by_other = 29 ob_modif_only_in_modif_order = 30 ob_name_too_long = 31 ob_no_append_of_corr_entry = 32 ob_no_append_of_c_member = 33 ob_no_consolidation_transport = 34 ob_no_original = 35 ob_no_shared_repairs = 36 ob_no_systemname = 37 ob_no_systemtype = 38 ob_no_tadir = 39 ob_no_tadir_not_lockable = 40 ob_privat_object = 41 ob_repair_only_in_repair_order = 42 ob_reserved_name = 43 ob_syntax_error = 44 ob_table_has_no_fields = 45 ob_table_not_activ = 46 tr_enqueue_failed = 47 tr_errors_in_error_table = 48 tr_ill_korrnum = 49 tr_lockmod_failed = 50 tr_lock_enqueue_failed = 51 tr_not_owner = 52 tr_no_systemname = 53 tr_no_systemtype = 54 tr_order_not_exist = 55 tr_order_released = 56 tr_order_update_error = 57 tr_wrong_order_type = 58 ob_invalid_target_system = 59 tr_no_authorization = 60 ob_wrong_tabletyp = 61 ob_wrong_category = 62 ob_system_error = 63 ob_unlocal_objekt_in_local_ord = 64 tr_wrong_client = 65 ob_wrong_client = 66 key_wrong_client = 67 OTHERS = 68.



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