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

MIGRATE_PROJECT_NEW SAP ABAP Report - Program MIGRATE_PROJECT_NEW







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


Text pool values


Selection Text: PRONR = previous project number
Title: Program MIGRATE_PROJECT_NEW
Text Symbol: 001 = No entry in table:
Text Symbol: 002 = Project migration
Text Symbol: 003 = Status not created for node:
Text Symbol: 004 = Note not created for node:
Text Symbol: 030 = Do you want to continue with the migration?


INCLUDES used within this REPORT MIGRATE_PROJECT_NEW

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:

SPROJECT_ENQUEUE call function 'SPROJECT_ENQUEUE' exporting project_id = '' importing message = message.

STREE_RAISE_MESSAGE call function 'STREE_RAISE_MESSAGE' exporting message = message.

SPROJECT_DEQUEUE call function 'SPROJECT_DEQUEUE' exporting project_id = ''.

SPROJECT_ENQUEUE call function 'SPROJECT_ENQUEUE' exporting project_id = i_tproject-project_id importing message = message.

STREE_RAISE_MESSAGE call function 'STREE_RAISE_MESSAGE' exporting message = message.

SPROJECT_GET_OBJECT call function 'SPROJECT_GET_OBJECT' exporting project_id = i_tproject-project_id obj_type = 'PLAN' tables object_id = object_id_tab.

STREE_GET_UNIQUE_ID call function 'STREE_GET_UNIQUE_ID' importing unique_id = unique_id * MESSAGE = .

SPROJECT_SET_OBJECT call function 'SPROJECT_SET_OBJECT' exporting project_id = new_project_id obj_type = 'PLAN' object_id = new_object_id * IMPORTING * MESSAGE = .

JOB_OPEN call function 'JOB_OPEN' exporting delanfrep = 'X' jobname = jobname importing jobcount = jobid exceptions others = 1.

JOB_CLOSE call function 'JOB_CLOSE' exporting jobcount = jobid jobname = jobname strtimmed = 'X' importing job_was_released = job_released exceptions cant_start_immediate = 1 invalid_startdate = 2 jobname_missing = 3 job_close_failed = 4 job_nosteps = 5 job_notex = 6 lock_failed = 7 others = 8.

SPROJECT_DEQUEUE call function 'SPROJECT_DEQUEUE' exporting project_id = i_tproject-project_id.

REUSE_ALV_POPUP_TO_SELECT call function 'REUSE_ALV_POPUP_TO_SELECT' exporting i_title = 'PROJEKTE' * I_SELECTION = 'X' * I_ZEBRA = 'X' i_screen_start_column = 1 i_screen_start_line = 1 i_screen_end_column = 25 i_screen_end_line = 10 * I_CHECKBOX_FIELDNAME = '' * I_LINEMARK_FIELDNAME = * I_SCROLL_TO_SEL_LINE = ' ' i_tabname = 'P_I_TCUSP' * i_structure_name = it_fieldcat = it_fieldcat * IT_EXCLUDING = * I_CALLBACK_PROGRAM = * I_CALLBACK_USER_COMMAND = * IMPORTING * ES_SELFIELD = * E_EXIT = tables t_outtab = p_i_tcusp * EXCEPTIONS * PROGRAM_ERROR = 1 * OTHERS = 2 .

CONVERSION_EXIT_ALPHA_INPUT call function 'CONVERSION_EXIT_ALPHA_INPUT' exporting input = p_i_tcusp-pronr importing output = p_i_tproject-project_id.

CONVERSION_EXIT_ALPHA_INPUT call function 'CONVERSION_EXIT_ALPHA_INPUT' exporting input = p_i_tcuspt-pronr importing output = p_i_tprojectt-project_id.

CONVERSION_EXIT_ALPHA_INPUT call function 'CONVERSION_EXIT_ALPHA_INPUT' exporting input = p_i_tcuspt-pronr importing output = p_i_tprojectt-project_id.

CONVERSION_EXIT_ALPHA_INPUT call function 'CONVERSION_EXIT_ALPHA_INPUT' exporting input = p_i_tcuspt-pronr importing output = p_i_tprojectt-project_id.

TOCX_GET_SYSTEM_TYPE call function 'TOCX_GET_SYSTEM_TYPE' importing sap_system = sap_system exceptions others = 1.

CONVERSION_EXIT_ALPHA_INPUT call function 'CONVERSION_EXIT_ALPHA_INPUT' exporting input = i_tstatc-project importing output = i_tkeyp-project_id.

CONVERSION_EXIT_ALPHA_INPUT





call function 'CONVERSION_EXIT_ALPHA_INPUT' exporting input = i_tcusq-project importing output = i_tnotep-project_id.

CONVERSION_EXIT_ALPHA_INPUT call function 'CONVERSION_EXIT_ALPHA_INPUT' exporting input = i_tstatr-project importing output = i_tressp-project_id.

CONVERSION_EXIT_ALPHA_INPUT call function 'CONVERSION_EXIT_ALPHA_INPUT' exporting input = i_tstats-project importing output = i_tstatp-project_id.

TOCX_GET_SYSTEM_TYPE call function 'TOCX_GET_SYSTEM_TYPE' importing sap_system = sap_system exceptions others = 1.

CONVERSION_EXIT_ALPHA_INPUT call function 'CONVERSION_EXIT_ALPHA_INPUT' exporting input = p_pronr importing output = p_project_id.

BM_APPL_COMPS_SELECT call function 'BM_APPL_COMPS_SELECT' exporting * SHOW = ' ' project_name = p_i_tproject-project_id * PROJECT_LANGUAGE = SY-LANGU * PROJECT_TEXT = ' ' * NO_DIALOG = ' ' importing selection_changed = generate-appl_comps * TABLES * SEL_COMPONENTS = * IMG_ACTIVITIES = exceptions data_error = 1 undefined_components = 2 others = 3 .

BM_APPL_COMPS_SELECT call function 'BM_APPL_COMPS_SELECT' exporting * SHOW = ' ' project_name = p_i_tproject-project_id * PROJECT_LANGUAGE = SY-LANGU * PROJECT_TEXT = ' ' no_dialog = 'X' importing selection_changed = generate-appl_comps * TABLES * SEL_COMPONENTS = * IMG_ACTIVITIES = exceptions data_error = 1 undefined_components = 2 others = 3 .

SPROJECT_DELETE call function 'SPROJECT_DELETE' exporting project_id = p_i_tproject-project_id no_message = 'X' delete_notes = ' ' * IMPORTING * MESSAGE = * PROJECT_DELETED = .

SPROJECT_DELETE call function 'SPROJECT_DELETE' exporting project_id = p_i_tproject-project_id no_message = 'X' delete_notes = ' ' * IMPORTING * MESSAGE = * PROJECT_DELETED = .

S_IMG_PROJECT_ACTIVATE call function 'S_IMG_PROJECT_ACTIVATE' exporting project_number = p_i_tproject-project_id project_description = p_i_tprojectt-title * ACTIVATE_ALSO_VIEWS = ' ' .

S_IMG_PROJECT_ACTIVATE call function 'S_IMG_PROJECT_ACTIVATE' exporting project_number = p_i_tproject-project_id project_description = p_i_tprojectt-title * ACTIVATE_ALSO_VIEWS = ' ' .

TOCX_GET_SYSTEM_TYPE call function 'TOCX_GET_SYSTEM_TYPE' importing sap_system = sap_system exceptions others = 1.

STREE_GET_UNIQUE_ID call function 'STREE_GET_UNIQUE_ID' importing unique_id = unique_id * MESSAGE = .

STREE_STRUCTURE_SAVE call function 'STREE_STRUCTURE_SAVE' exporting header = new_view_header description = new_view_description * EXTENSION = ' ' no_transport_check = global_no_transport_check * TRANSPORT_ORDER = ' ' * DEVELOPMENT_CLASS = ' ' * IMPORTING * NEW_HEADER = * STRUCTURE_TADIR = * MESSAGE = tables * VISIBLE_NODE_TYPES = * ACTIVE_NODES = extension_sequence = extension_sequence * STRUCTURE_DESCRIPTIONS = .

STREE_UPDATE_PARAMETER_VALUES call function 'STREE_UPDATE_PARAMETER_VALUES' exporting structure_id = project_view_id tables parameter_values = project_view_parameter.

STREE_UPDATE_PARAMETER_VALUES call function 'STREE_UPDATE_PARAMETER_VALUES' exporting structure_id = project_view_id tables parameter_values = project_view_parameter.

STREE_GET_NODES_FOR_GIVEN_REF call function 'STREE_GET_NODES_FOR_GIVEN_REF' * EXPORTING * CHECK_SELECTED_TREE_TYPES = ' ' * IMPORTING * MESSAGE = tables i_list_of_references = i_list_of_ref i_treetypes = i_treetypes e_list_of_nodes = e_list_of_nodes * E_LIST_OF_REFERENCES = .

CONVERSION_EXIT_ALPHA_INPUT call function 'CONVERSION_EXIT_ALPHA_INPUT' exporting input = pronr importing output = project_id.

STREE_GET_UNIQUE_ID * CALL FUNCTION 'STREE_GET_UNIQUE_ID' * IMPORTING * unique_id = unique_id ** MESSAGE = * .

DB_COMMIT call function 'DB_COMMIT'.




CONVERSION_EXIT_ALPHA_INPUT call function 'CONVERSION_EXIT_ALPHA_INPUT' exporting input = p_pronr importing output = project_id.

STREE_GET_UNIQUE_ID call function 'STREE_GET_UNIQUE_ID' importing unique_id = unique_id * MESSAGE = .

S_IMG_VIEW_ON_PROJECT_GENERATE call function 'S_IMG_VIEW_ON_PROJECT_GENERATE' exporting project_number = p_project_number project_view_id = p_project_view_id view_description = p_view_description importing message = message exceptions no_activities_given = 1 others = 2.

STREE_RAISE_MESSAGE call function 'STREE_RAISE_MESSAGE' exporting message = message.

CONVERSION_EXIT_ALPHA_INPUT call function 'CONVERSION_EXIT_ALPHA_INPUT' exporting input = p_pronr importing output = project_id.

STREE_GET_UNIQUE_ID * CALL FUNCTION 'STREE_GET_UNIQUE_ID' * IMPORTING * unique_id = unique_id ** MESSAGE = * .

DB_COMMIT call function 'DB_COMMIT'.

STREE_GET_UNIQUE_ID call function 'STREE_GET_UNIQUE_ID' importing unique_id = unique_id * MESSAGE = .

CONVERSION_EXIT_ALPHA_INPUT call function 'CONVERSION_EXIT_ALPHA_INPUT' exporting input = pronr importing output = project_id.

POPUP_TO_CONFIRM call function 'POPUP_TO_CONFIRM' exporting * TITLEBAR = ' ' diagnose_object = 'IMG_PROJECT_MIGRATION' text_question = text-030 * TEXT_BUTTON_1 = 'Ja'(001) * ICON_BUTTON_1 = ' ' * TEXT_BUTTON_2 = 'Nein'(002) * ICON_BUTTON_2 = ' ' * DEFAULT_BUTTON = '1' display_cancel_button = ' ' * USERDEFINED_F1_HELP = ' ' * START_COLUMN = 25 * START_ROW = 6 * POPUP_TYPE = importing answer = l_answer tables parameter = lt_parameter exceptions text_not_found = 1 others = 2 .

SPROJECT_DELETE call function 'SPROJECT_DELETE' exporting project_id = project_id no_message = 'X' delete_notes = ' ' importing * MESSAGE = project_deleted = p_deleted.

STREE_HIERARCHY_READ call function 'STREE_HIERARCHY_READ' exporting structure_id = p_img_strc * FILTER_ID = ' ' read_also_texts = 'X' language = p_sy_langu * all_languages = * IMPORTING * MESSAGE = tables list_of_nodes = p_i_of_nodes list_of_references = p_i_of_refer list_of_texts = p_i_of_texts .

CONVERSION_EXIT_ALPHA_INPUT call function 'CONVERSION_EXIT_ALPHA_INPUT' exporting input = pronr importing output = p_project_id.

SPROJECT_CHECK_EXISTENCE call function 'SPROJECT_CHECK_EXISTENCE' exporting project_id = p_project_id message_when_exist = 'X' importing * PROJECT_CLASS = message = p_message .



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