RS_MIGRATE_IMG 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 RS_MIGRATE_IMG into the relevant SAP transactions such as SE38 or SE80
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.
Title: Migration of IMG from Old Structure Repository to New Repository
Text Symbol: 010 = IMG activity: &
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
TOCX_READ_EDIT_VERSION CALL FUNCTION 'TOCX_READ_EDIT_VERSION' EXPORTING aspct = i_dsyah-aspct outline = i_dsyah-outline spras = i_dsyah-spras version = i_dsyah-version attribute = i_dsyah-attribut_1 * OPEN_FIRST_LEVEL = 'X' * IMPORTING * TITLE_COUNTER = TABLES hierarchy = old_hierarchy EXCEPTIONS missing_parameters = 1 structure_not_found = 2 text_not_found = 3 OTHERS = 4.
STREE_GET_UNIQUE_ID CALL FUNCTION 'STREE_GET_UNIQUE_ID' IMPORTING unique_id = u_id * MESSAGE = EXCEPTIONS OTHERS = 1.
STREE_HIERARCHY_SAVE CALL FUNCTION 'STREE_HIERARCHY_SAVE' EXPORTING structure_id = ' ' structure_type = tree_type * STRUCTURE_NAMESPACE = structure_description = structure_description language = i_dsyah-spras structure_masterlanguage = i_dsyah-spras structure_responsible = new_responsible no_transport_check = ' ' transport_order = transport_order development_class = development_class IMPORTING message = message new_structure_id = new_structure_id new_structure_tadir = new_structure_tadir TABLES list_of_nodes = list_of_nodes list_of_references = list_of_references list_of_texts = list_of_texts EXCEPTIONS OTHERS = 1.
STREE_RAISE_MESSAGE CALL FUNCTION 'STREE_RAISE_MESSAGE' EXPORTING message = message.
STREE_EXTERNAL_TRANS_ORDER_GET CALL FUNCTION 'STREE_EXTERNAL_TRANS_ORDER_GET' EXPORTING structure_id = new_structure_id IMPORTING * MESSAGE = transport_order = transport_order.
S_CUS_IMG_ACTIVITY_EXISTS CALL FUNCTION 'S_CUS_IMG_ACTIVITY_EXISTS' EXPORTING img_activity = img_activity IMPORTING message = message.
S_CUS_IMG_ACTIVITY_EXISTS CALL FUNCTION 'S_CUS_IMG_ACTIVITY_EXISTS' EXPORTING img_activity = img_activity IMPORTING message = message.
STREE_TRANSPORT_CHECK CALL FUNCTION 'STREE_TRANSPORT_CHECK' EXPORTING object = 'CUS2' obj_name = obj_name transport_order = p_transport_order development_class = p_development_class operation = 'I' * IMPORTING * MESSAGE = * TR_TADIR = * DISPLAY = * TABLES * OBJECT_LIST = * KEY_LIST = .
S_CUS_ATTRIBUTES_SAVE CALL FUNCTION 'S_CUS_ATTRIBUTES_SAVE' EXPORTING img_attribute = i_cus_atrh * IMPORTING * MESSAGE = TABLES attributes_title = i_cus_atrt attributes_countries = i_cus_atrcou attributes_components = itfm18.
STREE_TRANSPORT_INSERT CALL FUNCTION 'STREE_TRANSPORT_INSERT' EXPORTING object = 'CUS2' obj_name = obj_name masterlanguage = p_masterlanguage transport_order = p_transport_order development_class = p_development_class operation = 'I' * TRANSPORT_TYPE = 'K' * IMPORTING * MESSAGE = * TR_TADIR = * TABLES * OBJECT_LIST = * KEY_LIST = .
STREE_TRANSPORT_CHECK CALL FUNCTION 'STREE_TRANSPORT_CHECK' EXPORTING object = 'CUS1' obj_name = obj_name transport_order = p_transport_order development_class = p_development_class operation = 'I' * IMPORTING * MESSAGE = * TR_TADIR = * DISPLAY = * TABLES * OBJECT_LIST = * KEY_LIST = .
S_CUS_ACTIVITY_SAVE CALL FUNCTION 'S_CUS_ACTIVITY_SAVE' EXPORTING activity = i_cus_acth-act_id activity_type = 'C' tcode = ' ' customer_exit = ' ' * IMPORTING * MESSAGE = TABLES activity_title = i_cus_actt objects = i_cus_actobj objects_texts = i_cus_actobt.
STREE_TRANSPORT_INSERT CALL FUNCTION 'STREE_TRANSPORT_INSERT' EXPORTING object = 'CUS1' obj_name = obj_name masterlanguage = p_masterlanguage transport_order = p_transport_order development_class = p_development_class operation = 'I' * TRANSPORT_TYPE = 'K' * IMPORTING * MESSAGE = * TR_TADIR = * TABLES * OBJECT_LIST = * KEY_LIST = .
STREE_TRANSPORT_CHECK CALL FUNCTION 'STREE_TRANSPORT_CHECK' EXPORTING object = 'CUS0' obj_name = obj_name transport_order = p_transport_order development_class = p_development_class operation = 'I' * IMPORTING * MESSAGE = * TR_TADIR = * DISPLAY = * TABLES * OBJECT_LIST = * KEY_LIST = .
STREE_TRANSPORT_INSERT CALL FUNCTION 'STREE_TRANSPORT_INSERT' EXPORTING object = 'CUS0' obj_name = obj_name masterlanguage = p_masterlanguage transport_order = p_transport_order development_class = p_development_class operation = 'I' * TRANSPORT_TYPE = 'K' * IMPORTING * MESSAGE = * TR_TADIR = * TABLES * OBJECT_LIST = * KEY_LIST = .
RS_NAME_SPLIT_NAMESPACE CALL FUNCTION 'RS_NAME_SPLIT_NAMESPACE' EXPORTING name_with_namespace = name_with_namespace IMPORTING namespace = namespace * NAME_WITHOUT_NAMESPACE = EXCEPTIONS delimiter_error = 1 OTHERS = 2.
PRGN_REPTREE_GET_TCODE_NAME CALL FUNCTION 'PRGN_REPTREE_GET_TCODE_NAME' EXPORTING namespace = namespace2 IMPORTING tcode = generated_tcode.
RPY_TRANSACTION_INSERT CALL FUNCTION 'RPY_TRANSACTION_INSERT' EXPORTING transaction = generated_tcode program = 'SAPLS_CUS_IMG_ACTIVITY' dynpro = '200' language = itadir_entry-masterlang with_docu = ' ' docutype = 'T' development_class = itadir_entry-devclass transport_number = itransport_order transaction_type = 'D' shorttext = tcode_text * TABLES * DOCU_TABLE_USER = * DOCU_TABLE_TECH = EXCEPTIONS cancelled = 1 already_exist = 2 permission_error = 3 name_not_allowed = 4 name_conflict = 5 illegal_type = 6 object_inconsistent = 7 db_access_error = 8 OTHERS = 9.
CALL FUNCTION 'S_CUS_IMG_ACTIVITY_SAVE' EXPORTING img_activity = icusimgach-activity i_docu = icusimgach-docu_id i_attributes = icusimgach-attributes i_activity = icusimgach-c_activity i_description = icusimgact i_tcode = icusimgach-tcode.
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 RS_MIGRATE_IMG or its description.
RS_MIGRATE_IMG - Migration of IMG from Old Structure Repository to New Repository RS_MIGRATE_IMG - Migration of IMG from Old Structure Repository to New Repository RS_MIGRATE_HIERTOOL_NODETRANSP - Retransport all nodes of active structures RS_MIGRATE_HIERTOOL_NODETRANSP - Retransport all nodes of active structures RS_MIGRATE_DOKU - Migration of standard structures from old to new Repository RS_MIGRATE_DOKU - Migration of standard structures from old to new Repository