SAP Reports / Programs | Portfolio and Project Management | Project Management | Resources(PPM-PRO-RES) SAP PPM

DPR_REPLACE_USER_BP SAP ABAP Report - Replace User/Resource







DPR_REPLACE_USER_BP is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You can use this report to replace an individual user and an individual resource by another user or by another resource...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter DPR_REPLACE_USER_BP 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 DPR_REPLACE_USER_BP. "Basic submit
SUBMIT DPR_REPLACE_USER_BP AND RETURN. "Return to original report after report execution complete
SUBMIT DPR_REPLACE_USER_BP 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: PART_ID = Role ID
Selection Text: PROJ_ID = Project Number
Selection Text: P_ALL = User and Resource
Selection Text: P_BP_N = New Resource
Selection Text: P_BP_O = Current Resource
Selection Text: P_BP_SC = Replace Resource
Selection Text: P_DATE = Replace As Of
Selection Text: P_RTA = Resource in Role-Task Assignm.
Selection Text: P_US_N = New User
Selection Text: P_US_O = Current User
Selection Text: P_US_SC = Replace User
Selection Text: P_WC = User in Subobjects
Title: Replace User/Resource
Text Symbol: 001 = Select User
Text Symbol: 002 = Select Resource and Replacement Date
Text Symbol: 003 = Select Objects
Text Symbol: 004 = Additional Replacement Options
Text Symbol: 006 = You cannot undo your changes. Do you want to continue?
Text Symbol: 007 = Select User or Resource
Text Symbol: 008 = You cannot undo your changes.


INCLUDES used within this REPORT DPR_REPLACE_USER_BP

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:

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = lv_title * DIAGNOSE_OBJECT = ' ' text_question = text-006 display_cancel_button = ' ' IMPORTING answer = lv_answer EXCEPTIONS text_not_found = 1 OTHERS = 2.

BAPI_USER_EXISTENCE_CHECK CALL FUNCTION 'BAPI_USER_EXISTENCE_CHECK' EXPORTING username = lv_user_old IMPORTING return = ls_return.

BAPI_USER_EXISTENCE_CHECK CALL FUNCTION 'BAPI_USER_EXISTENCE_CHECK' EXPORTING username = lv_user_new IMPORTING return = ls_return.

BP_BUPA_SEARCH_BY_USER CALL FUNCTION 'BP_BUPA_SEARCH_BY_USER' IMPORTING et_partner = lt_bupa TABLES ir_user = lt_sel_user.

BP_BUPA_SEARCH_BY_USER CALL FUNCTION 'BP_BUPA_SEARCH_BY_USER' IMPORTING et_partner = lt_bupa TABLES ir_user = lt_sel_user.

BP_CENTRALPERSON_GET CALL FUNCTION 'BP_CENTRALPERSON_GET' EXPORTING iv_bu_partner_guid = lv_bupa_partner_guid_old IMPORTING ev_username = lv_user_old EXCEPTIONS no_central_person = 1 no_business_partner = 2 no_id = 3 OTHERS = 4.

BP_CENTRALPERSON_GET CALL FUNCTION 'BP_CENTRALPERSON_GET' EXPORTING iv_bu_partner_guid = lv_bupa_partner_guid_new IMPORTING ev_username = lv_user_new EXCEPTIONS no_central_person = 1 no_business_partner = 2 no_id = 3 OTHERS = 4.

BAPI_CPROJECTS_COMMIT_WORK CALL FUNCTION 'BAPI_CPROJECTS_COMMIT_WORK' TABLES return = lt_return.

BAPI_CPROJECTS_REMOVE_OBJECTS CALL FUNCTION 'BAPI_CPROJECTS_REMOVE_OBJECTS' EXPORTING iv_remove_changed = 'X' TABLES return = lt_return.

BAPI_BUS2172_LOAD CALL FUNCTION 'BAPI_BUS2172_LOAD' EXPORTING project_definition_guid = lv_guid_project iv_change_mode = 'X' TABLES return = lt_return.

BAPI_BUS2177_STAFFING_GET_DET CALL FUNCTION 'BAPI_BUS2177_STAFFING_GET_DET' EXPORTING projectrole_guid = lv_role_guid iv_staffinglink_guid = lv_bupa_link_guid IMPORTING es_staffinglink = ls_staffing_link_det TABLES * ET_COMMENT_PLAINTEXT = * ET_COMMENT = et_taskassignments = lt_task_assignments return = lt_return.

BAPI_BUS2177_STAFFING_ADD CALL FUNCTION 'BAPI_BUS2177_STAFFING_ADD' EXPORTING projectrole_guid = lv_role_guid is_staffinglink = ls_staffing_link is_staffinglink_x = ls_staffing_link_x * IV_IGNORE_WFMCORE = ' ' TABLES * IT_COMMENT = return = lt_return.

BAPI_BUS2177_STAFF_DIST_GET CALL FUNCTION 'BAPI_BUS2177_STAFF_DIST_GET' EXPORTING projectrole_guid = lv_role_guid iv_staffinglink_guid = lv_bupa_link_guid IMPORTING * es_dist_admin_data = ls_dist_admin_data ev_dist_guid = lv_dist_guid ev_entity_guid = lv_entity_guid TABLES et_distribution = lt_staff_dist return = lt_return.

BAPI_BUS2177_STAFF_DIST_SET CALL FUNCTION 'BAPI_BUS2177_STAFF_DIST_SET' EXPORTING projectrole_guid = lv_role_guid iv_staffinglink_guid = lv_bupa_link_guid_new TABLES it_distribution = lt_staff_dist_new return = lt_return.

BAPI_BUS2177_STAFF_DIST_SET CALL FUNCTION 'BAPI_BUS2177_STAFF_DIST_SET' EXPORTING projectrole_guid = lv_role_guid iv_staffinglink_guid = lv_bupa_link_guid TABLES it_distribution = lt_staff_dist_old return = lt_return.

BAPI_BUS2177_STAFFING_CHANGE CALL FUNCTION 'BAPI_BUS2177_STAFFING_CHANGE' EXPORTING projectrole_guid = lv_role_guid iv_staffinglink_guid = lv_bupa_link_guid is_staffinglink = ls_staffing_link is_staffinglink_x = ls_staffing_link_x * IV_IGNORE_WFMCORE = ' ' TABLES * IT_COMMENT = return = lt_return.

BAPI_BUS2175_GET_DETAIL CALL FUNCTION 'BAPI_BUS2175_GET_DETAIL' EXPORTING task_guid = -task_guid TABLES et_status = lt_task_status return = lt_return.

BAPI_BUS2177_STAFF_TSK_ASS_CHG CALL FUNCTION 'BAPI_BUS2177_STAFF_TSK_ASS_CHG' EXPORTING projectrole_guid = lv_role_guid iv_staffinglink_guid = lv_bupa_link_guid iv_taskassignment_guid = -taskassignment_guid is_taskassignment = ls_task_asg_old is_taskassignment_x = ls_task_asg_x TABLES return = lt_return.

BAPI_BUS2177_STAFF_TSK_ASS_ADD





CALL FUNCTION 'BAPI_BUS2177_STAFF_TSK_ASS_ADD' EXPORTING projectrole_guid = lv_role_guid iv_staffinglink_guid = lv_bupa_link_guid_new is_taskassignment = ls_task_asg_new is_taskassignment_x = ls_task_asg_x * IMPORTING * EV_TASKASSIGNMENT_GUID = TABLES return = lt_return.

BAPI_BUS2177_STAFF_TSK_ASS_ADD CALL FUNCTION 'BAPI_BUS2177_STAFF_TSK_ASS_ADD' EXPORTING projectrole_guid = lv_role_guid iv_staffinglink_guid = lv_bupa_link_guid_new is_taskassignment = ls_task_asg_new is_taskassignment_x = ls_task_asg_x * IMPORTING * EV_TASKASSIGNMENT_GUID = TABLES return = lt_return.

BAPI_BUS2177_STAFF_TSK_ASS_RMV CALL FUNCTION 'BAPI_BUS2177_STAFF_TSK_ASS_RMV' EXPORTING projectrole_guid = lv_role_guid iv_staffinglink_guid = lv_bupa_link_guid iv_taskassignment_guid = -taskassignment_guid TABLES return = lt_return.

BAPI_CPROJECTS_COMMIT_WORK CALL FUNCTION 'BAPI_CPROJECTS_COMMIT_WORK' TABLES return = lt_return.

BAPI_CPROJECTS_REMOVE_OBJECTS CALL FUNCTION 'BAPI_CPROJECTS_REMOVE_OBJECTS' EXPORTING iv_remove_changed = 'X' TABLES return = lt_return.

CONVERSION_EXIT_CGPLE_INPUT CALL FUNCTION 'CONVERSION_EXIT_CGPLE_INPUT' EXPORTING input = -external_id IMPORTING output = ls_guid-guid EXCEPTIONS not_unique = 1 is_deleted = 2.

BAPI_CPROJECTS_COMMIT_WORK CALL FUNCTION 'BAPI_CPROJECTS_COMMIT_WORK' TABLES return = lt_return.

BAPI_CPROJECTS_REMOVE_OBJECTS CALL FUNCTION 'BAPI_CPROJECTS_REMOVE_OBJECTS' EXPORTING iv_remove_changed = 'X' TABLES return = lt_return.

BAPI_CPROJECTS_COMMIT_WORK CALL FUNCTION 'BAPI_CPROJECTS_COMMIT_WORK' TABLES return = lt_return.

BAPI_CPROJECTS_REMOVE_OBJECTS CALL FUNCTION 'BAPI_CPROJECTS_REMOVE_OBJECTS' EXPORTING iv_remove_changed = 'X' TABLES return = lt_return.

BAPI_BUS2172_SET_AUTHORIZATION CALL FUNCTION 'BAPI_BUS2172_SET_AUTHORIZATION' EXPORTING project_definition_guid = iv_guid is_authorization = is_authorization TABLES return = lt_return.

BAPI_BUS2173_SET_AUTHORIZATION CALL FUNCTION 'BAPI_BUS2173_SET_AUTHORIZATION' EXPORTING phase_guid = iv_guid is_authorization = is_authorization TABLES return = lt_return.

BAPI_BUS2175_SET_AUTHORIZATION CALL FUNCTION 'BAPI_BUS2175_SET_AUTHORIZATION' EXPORTING task_guid = iv_guid is_authorization = is_authorization TABLES return = lt_return.

BAPI_BUS2176_SET_AUTHORIZATION CALL FUNCTION 'BAPI_BUS2176_SET_AUTHORIZATION' EXPORTING checklist_guid = iv_guid is_authorization = is_authorization TABLES return = lt_return.

BAPI_BUS2174_SET_AUTHORIZATION CALL FUNCTION 'BAPI_BUS2174_SET_AUTHORIZATION' EXPORTING checklist_item_guid = iv_guid is_authorization = is_authorization TABLES return = lt_return.

BAPI_BUS2164_SET_AUTHORIZATION CALL FUNCTION 'BAPI_BUS2164_SET_AUTHORIZATION' EXPORTING checklist_reference_guid = iv_guid is_authorization = is_authorization TABLES return = lt_return.

BAPI_BUS2172_DOCUMT_SET_AUTH CALL FUNCTION 'BAPI_BUS2172_DOCUMT_SET_AUTH' EXPORTING project_definition_guid = iv_guid iv_document_guid = iv_doc_guid is_authorization = is_authorization TABLES return = lt_return.

BAPI_BUS2172_FOLDER_SET_AUTH CALL FUNCTION 'BAPI_BUS2172_FOLDER_SET_AUTH' EXPORTING project_definition_guid = iv_guid iv_folder_guid = iv_doc_guid is_authorization = is_authorization TABLES return = lt_return.

BAPI_BUS2173_DOCUMT_SET_AUTH CALL FUNCTION 'BAPI_BUS2173_DOCUMT_SET_AUTH' EXPORTING phase_guid = iv_guid iv_document_guid = iv_doc_guid is_authorization = is_authorization TABLES return = lt_return.

BAPI_BUS2173_FOLDER_SET_AUTH CALL FUNCTION 'BAPI_BUS2173_FOLDER_SET_AUTH' EXPORTING phase_guid = iv_guid iv_folder_guid = iv_doc_guid is_authorization = is_authorization TABLES return = lt_return.




BAPI_BUS2175_DOCUMT_SET_AUTH CALL FUNCTION 'BAPI_BUS2175_DOCUMT_SET_AUTH' EXPORTING task_guid = iv_guid iv_document_guid = iv_doc_guid is_authorization = is_authorization TABLES return = lt_return.

BAPI_BUS2175_FOLDER_SET_AUTH CALL FUNCTION 'BAPI_BUS2175_FOLDER_SET_AUTH' EXPORTING task_guid = iv_guid iv_folder_guid = iv_doc_guid is_authorization = is_authorization TABLES return = lt_return.

BAPI_BUS2176_DOCUMT_SET_AUTH CALL FUNCTION 'BAPI_BUS2176_DOCUMT_SET_AUTH' EXPORTING checklist_guid = iv_guid iv_document_guid = iv_doc_guid is_authorization = is_authorization TABLES return = lt_return.

BAPI_BUS2176_FOLDER_SET_AUTH CALL FUNCTION 'BAPI_BUS2176_FOLDER_SET_AUTH' EXPORTING checklist_guid = iv_guid iv_folder_guid = iv_doc_guid is_authorization = is_authorization TABLES return = lt_return.

BAPI_BUS2174_DOCUMT_SET_AUTH CALL FUNCTION 'BAPI_BUS2174_DOCUMT_SET_AUTH' EXPORTING checklist_item_guid = iv_guid iv_document_guid = iv_doc_guid is_authorization = is_authorization TABLES return = lt_return.

BAPI_BUS2174_FOLDER_SET_AUTH CALL FUNCTION 'BAPI_BUS2174_FOLDER_SET_AUTH' EXPORTING checklist_item_guid = iv_guid iv_folder_guid = iv_doc_guid is_authorization = is_authorization TABLES return = lt_return.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = ls_log_header IMPORTING e_log_handle = lv_log_handle EXCEPTIONS OTHERS = 1.

GET_JOB_RUNTIME_INFO CALL FUNCTION 'GET_JOB_RUNTIME_INFO' IMPORTING jobname = lv_jobname EXCEPTIONS no_runtime_info = 1 OTHERS = 2.

BAL_LOG_MSG_CUMULATE CALL FUNCTION 'BAL_LOG_MSG_CUMULATE' EXPORTING i_log_handle = lv_log_handle i_s_msg = ls_msg i_compare_attributes = abap_true i_compare_context = abap_true i_compare_parameters = abap_true EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

BAL_DB_SAVE CALL FUNCTION 'BAL_DB_SAVE' EXPORTING i_in_update_task = abap_false i_t_log_handle = lt_log_handle EXCEPTIONS OTHERS = 1.

BUPA_NUMBERS_READ CALL FUNCTION 'BUPA_NUMBERS_READ' EXPORTING iv_partner = lv_bupa_number IMPORTING * EV_PARTNER = lv_partner_number ev_partner_guid = lv_bupa_guid EXCEPTIONS no_partner_specified = 1 no_valid_record_found = 2 inconsistent_parameters = 3 OTHERS = 4.

GET_JOB_RUNTIME_INFO CALL FUNCTION 'GET_JOB_RUNTIME_INFO' IMPORTING jobname = lv_jobname EXCEPTIONS no_runtime_info = 1 OTHERS = 2.



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