SAP Reports / Programs

RSPROJECTCOPY SAP ABAP Report - Copy a project







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


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 RSPROJECTCOPY. "Basic submit
SUBMIT RSPROJECTCOPY AND RETURN. "Return to original report after report execution complete
SUBMIT RSPROJECTCOPY 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: 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


INCLUDES used within this REPORT RSPROJECTCOPY

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



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