RSPROJECTCOPY 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 RSPROJECTCOPY 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.
Selection Text: PLAND = Plan Data
Selection Text: PR_DOCT = Documentation types
Selection Text: PR_KEYW = Keywords
Selection Text: PR_RES = Project member
Selection Text: PR_STAT = Status Values
Selection Text: PR_VIEWS = Project views
Selection Text: RESO = Project Member
Selection Text: STAT = Status
Selection Text: OLD_PRO = Source Project
Selection Text: ACTD = Actual Data
Selection Text: KEYW = Keywords
Selection Text: MEMO = Memo
Selection Text: NEW_PRO = Target Project
Selection Text: NEW_TITL = New Project Title
Title: Copy a project
Text Symbol: 001 = Header Data Copied
Text Symbol: 002 = Activity Data Copied
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
SPROJECT_CHECK_AUTHORITY call function 'SPROJECT_CHECK_AUTHORITY' exporting project_id = space project_class = 'CUSTOM' action = 'C' importing message = message * CONFIDENTIAL = .
SPROJECT_SEND_MESSAGE call function 'SPROJECT_SEND_MESSAGE' changing message = message.
SPROJECT_CHECK_EXISTENCE call function 'SPROJECT_CHECK_EXISTENCE' exporting project_id = old_pro * MESSAGE_WHEN_EXIST = ' ' importing * PROJECT_CLASS = message = message .
SPROJECT_CHECK_EXISTENCE call function 'SPROJECT_CHECK_EXISTENCE' exporting project_id = new_pro message_when_exist = 'X' importing * PROJECT_CLASS = message = message .
SPROJECT_SEND_MESSAGE call function 'SPROJECT_SEND_MESSAGE' changing message = message.
SPROJECT_READ call function 'SPROJECT_READ' exporting project_id = old_pro * LANGUAGE = SY-LANGU * READ_HEADER_ONLY = importing header = old_header * MESSAGE = tables status = old_status priority = old_priority resource = old_resource keywords = old_keywords notetype = old_notetype objectlist = old_objectlist.
STREE_HIERARCHY_COPY call function 'STREE_HIERARCHY_COPY' exporting copy_from_structure_id = new_objectlist-object_id * NEW_STRUCTURE_ID = ' ' * NEW_STRUCTURE_TOP_NODE = ' ' new_structure_description = new_project_title * NEW_EXTERNAL_KEY = ' ' * NEW_TRANSPORT_ORDER = ' ' * NEW_DEVELOPMENT_CLASS = ' ' no_transport_check = 'X' importing copied_structure_id = new_objectlist-object_id message = message .
STREE_HIERARCHY_COPY call function 'STREE_HIERARCHY_COPY' exporting copy_from_structure_id = new_objectlist-object_id * NEW_STRUCTURE_ID = ' ' * NEW_STRUCTURE_TOP_NODE = ' ' new_structure_description = space * NEW_EXTERNAL_KEY = ' ' * NEW_TRANSPORT_ORDER = ' ' * NEW_DEVELOPMENT_CLASS = ' ' no_transport_check = 'X' importing copied_structure_id = new_objectlist-object_id message = message .
BM_VARIANTS_FETCH call function 'BM_VARIANTS_FETCH' exporting i_variants = i_variants langu = space * VAR_OBJECTS = 'X' * ALSO_UNDEFINED_OBJECTS = ' ' * ONLY_OBJ_TYPE = 'H' importing e_variants = e_variant exceptions no_objects_in_i_variants = 1 part_in_work = 2 others = 3 .
BM_VARIANT_PUT call function 'BM_VARIANT_PUT' exporting variant_info = variant_info_wa variant_objects = var_objects * ONLY_OBJ_TYPE = ' ' exceptions db_error_var_objects = 1 objects_of_several_variants = 2 others = 3 .
SPROJECT_GET_UNIQUE_ID call function 'SPROJECT_GET_UNIQUE_ID' importing guid = i_tstafpr_new-status_id.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.