SAP Reports / Programs | Basis Components | Basis Components | Implementation Guide(BC-CUS-TOL-IMG) SAP BC

RS_MIGRATE_IMG_ADVANCED SAP ABAP Report - Migration of old IMG: Only use for repeated migration







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


Text pool values


Title: Migration of old IMG: Only use for repeated migration


INCLUDES used within this REPORT RS_MIGRATE_IMG_ADVANCED

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:

STREE_HIERARCHY_READ CALL FUNCTION 'STREE_HIERARCHY_READ' EXPORTING structure_id = stru_id * FILTER_ID = ' ' * READ_ALSO_TEXTS = ' ' * LANGUAGE = SY-LANGU * ALL_LANGUAGES = ' ' * DISPLAY_MODE = 'E' * IMPORTING * MESSAGE = TABLES list_of_nodes = old_nodes list_of_references = old_references list_of_texts = old_texts.

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 = stru_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.

S_CUS_IMG_ACTIVITY_SAVE 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.

STREE_EXTERNAL_SEARCH CALL FUNCTION 'STREE_EXTERNAL_SEARCH' * EXPORTING * DISPLAY_F4_POPUP = 'X' * MULTIPLE_SELECTION = ' ' * DEFAULT_VALUE_TEXT = ' ' * TITLE_OF_WINDOW = ' ' * TITLE_OF_FRAME1 = ' ' * TITLE_OF_FRAME2 = ' ' * TITLE_OF_F4_POPUP = ' ' * RESULT_DISPLAY_ALL_SEL_PARAMET = ' ' * RESULT_DISPLAY_TREE_TYPE = ' ' * RESULT_DISPLAY_LAST_USER = ' ' * RESULT_DISPLAY_LAST_DATE = ' ' * RESULT_DISPLAY_LAST_RELEASE = ' ' * RESULT_DISPLAY_FIRST_USER = ' ' * RESULT_DISPLAY_FIRST_DATE = ' ' * RESULT_DISPLAY_FIRST_RELEASE = ' ' IMPORTING * MESSAGE = selected_tree_header = selected_tree_header selected_tree_text = selected_tree_text TABLES structure_types = structure_types * STRUCTURES_FOUND = * SELECTED_FIELDS = * EXCLUDED_STRUCTURE_IDS = * SELECTED_TREE_HEADERS = * SELECTED_TREE_TEXTS = .



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