SAP Reports / Programs

IAOM_CPROJECTS_CLEAN_UP_PS SAP ABAP Report - Automatic scenario with PS project: Delete and clean up







IAOM_CPROJECTS_CLEAN_UP_PS 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 IAOM_CPROJECTS_CLEAN_UP_PS into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

IAOCPRC - Delete and Clean Up


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 IAOM_CPROJECTS_CLEAN_UP_PS. "Basic submit
SUBMIT IAOM_CPROJECTS_CLEAN_UP_PS AND RETURN. "Return to original report after report execution complete
SUBMIT IAOM_CPROJECTS_CLEAN_UP_PS 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: TOP_KEY = cProjects Definition
Selection Text: TOP_ID = cProjects GUID
Selection Text: STATUS7 = Call 'Mark As Contains Errors'
Selection Text: STATUS6 = Call 'Restore Assignment'
Selection Text: STATUS5 = Call 'Reconstruction'
Selection Text: STATUS4 = Call 'Reset Rel. for Archive'
Selection Text: STATUS3 = Status call 'Rel. for Archive'
Selection Text: STATUS2 = Status call 'Clean Up'
Selection Text: STATUS1 = Status call 'Delete'
Selection Text: STATUS0 = Last call 'Display'
Title: Automatic scenario with PS project: Delete and clean up
Text Symbol: D02 = that link to automatically created PS projects and
Text Symbol: D03 = that have not been switched to manual assignment yet.
Text Symbol: D04 = The program can delete the link between the cProjects elements
Text Symbol: D05 = and WBS elements in the account assignment manager.
Text Symbol: D06 = It can delete the WBS elements that are not linked to an element in
Text Symbol: D07 = the cProjects project in question if PS permits this.
Text Symbol: D08 = Only use these functions if the cProjects project has already been
Text Symbol: D09 = deleted and the part that has not been deleted in ERP
Text Symbol: D10 = prevents you from continuing your work.
Text Symbol: E00 = Selection and check
Text Symbol: E01 = Delete and clean up
Text Symbol: E02 = Restored Data
Text Symbol: 001 = cProjects Element:GUID
Text Symbol: 002 = cProjects Definition/cProjects Element
Text Symbol: 003 = Order
Text Symbol: 004 = WBS Element
Text Symbol: 005 = Archivable
Text Symbol: 006 = ControllingCat.
Text Symbol: A01 = Choose collaboration project
Text Symbol: A02 = Display and check project
Text Symbol: A03 = Delete assgmt betw. PS project and collab. project
Text Symbol: A04 = Clean up PS project and delete it as required
Text Symbol: A05 = Release account assignment manager entries for archiving
Text Symbol: A06 = Reset "Release account assgmt manager entries for archiving"
Text Symbol: A07 = Restore reconstruction of PS project and assignment
Text Symbol: A08 = Restore assignment (if PS project still exists)
Text Symbol: A09 = Mark as contains errors for renewed transfer





Text Symbol: B01 = Cat
Text Symbol: B02 = ID
Text Symbol: B03 = No.
Text Symbol: B04 = Message Text
Text Symbol: C00 = Open
Text Symbol: C01 = Executed
Text Symbol: C02 = Error
Text Symbol: D01 = This program can process account assignment manager entries


INCLUDES used within this REPORT IAOM_CPROJECTS_CLEAN_UP_PS

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:

IAOM_SELECT_GUID_FOR_BUS_KEY CALL FUNCTION 'IAOM_SELECT_GUID_FOR_BUS_KEY' EXPORTING I_BUSINESS_SCENARIO_ID = 'CPROJECTS' IMPORTING * E_BUS_SCENARIO_ID = E_EXT_OBJECT_ID = l_EXT_OBJECT_ID * E_BUSINESS_KEY = * E_EXTENDED_BUSINESS_KEY = EXCEPTIONS ERROR_OCCURRED = 1 SELECTION_ABORTED = 2 OTHERS = 3.

IAOM_TOP_HLO_EXT_OBJ_ID_GET CALL FUNCTION 'IAOM_TOP_HLO_EXT_OBJ_ID_GET' EXPORTING I_BUS_SCENARIO_ID = 'CPROJECTS' I_EXT_OBJECT_ID = l_EXT_OBJECT_ID IMPORTING E_TOP_HLO_EXT_OBJECT_ID = lv_top_id E_TOP_HLO_BUSINESS_KEY = lv_top_bus_key EXCEPTIONS BUS_SCENARIO_UNKNOWN = 1 EXT_OBJECT_ID_UNKNOWN = 2 ERROR_OCCURRED = 3 OTHERS = 4.

IAOM_CPRO_MISC_RFC_GET_EL_LIST CALL FUNCTION 'IAOM_CPRO_MISC_RFC_GET_EL_LIST' EXPORTING IV_CPRO_PROJECT_GUID = lv_top_guid IMPORTING ET_HIERARCHY = lt_CPROJECT_acc_ass EXCEPTIONS CPRO_PROJECT_UNKNOWN = 1 NO_CPRO_PROJECT_DEFINITION = 2 OTHERS = 3.

IAOM_GET_ACCOUNT_ASSIGNMENT CALL FUNCTION 'IAOM_GET_ACCOUNT_ASSIGNMENT' EXPORTING I_BUS_SCENARIO_ID = 'CPROJECTS' I_EXT_OBJECT_ID = ls_show-object_id I_WITH_LOG = ' ' IMPORTING E_ACCOUNT_ASSIGNMENT = l_ACCOUNT_ASSIGNMENT E_ARCHIVABLE = ls_show-archive * E_ADD_ACC_INFO = E_BUSINESS_KEY = ls_show-bus_key * E_HIERARCHY_LEVEL = * E_ACC_ASS_OBJECT_ID = * ET_PROCESS_ATTRIBUTES = * ET_ATTRIBUTES = E_HIGHER_LEVEL_OBJECT_ID = lv_hlo_id EXCEPTIONS BUS_SCENARIO_UNKNOWN = 1 EXT_OBJECT_ID_UNKNOWN = 2 OBJECT_LOCKED = 3 EXT_OBJECT_NOT_CO_RELEVANT = 4 POSTING_YEAR_MISSING = 5 PROF_SEGMENT_ERROR = 6 OTHER_ERROR = 7 EXT_OBJECT_ACC_ASS_PENDING = 8 OTHERS = 9.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING it_fieldcat = lt_field TABLES T_OUTTAB = lt_show.

IAOM_GET_ACCOUNT_ASSIGNMENT CALL FUNCTION 'IAOM_GET_ACCOUNT_ASSIGNMENT' EXPORTING I_BUS_SCENARIO_ID = 'CPROJECTS' I_EXT_OBJECT_ID = lv_id I_WITH_LOG = ' ' IMPORTING E_ACCOUNT_ASSIGNMENT = l_ACCOUNT_ASSIGNMENT * E_ADD_ACC_INFO = * E_BUSINESS_KEY = * E_HIERARCHY_LEVEL = * E_ACC_ASS_OBJECT_ID = * ET_PROCESS_ATTRIBUTES = ET_ATTRIBUTES = lt_attributes E_HIGHER_LEVEL_OBJECT_ID = lv_hlo_id EXCEPTIONS BUS_SCENARIO_UNKNOWN = 1 EXT_OBJECT_ID_UNKNOWN = 2 OBJECT_LOCKED = 3 EXT_OBJECT_NOT_CO_RELEVANT = 4 POSTING_YEAR_MISSING = 5 PROF_SEGMENT_ERROR = 6 OTHER_ERROR = 7 EXT_OBJECT_ACC_ASS_PENDING = 8 OTHERS = 9.

IAOM_ACCOUNT_MANAGER_BASIC CALL FUNCTION 'IAOM_ACCOUNT_MANAGER_BASIC' EXPORTING I_ACCOUNT_REQUEST = L_ACCOUNT_REQUEST IMPORTING E_RESULTS_OF_REQUEST = L_RESULTS_OF_REQUEST.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING it_fieldcat = lt_field TABLES T_OUTTAB = lt_msg.

IAOM_ACCOUNT_MANAGER_BASIC CALL FUNCTION 'IAOM_ACCOUNT_MANAGER_BASIC' EXPORTING I_ACCOUNT_REQUEST = L_ACCOUNT_REQUEST IMPORTING E_RESULTS_OF_REQUEST = L_RESULTS_OF_REQUEST.

IAOM_ACCOUNT_MANAGER_BASIC CALL FUNCTION 'IAOM_ACCOUNT_MANAGER_BASIC' EXPORTING I_ACCOUNT_REQUEST = L_ACCOUNT_REQUEST IMPORTING E_RESULTS_OF_REQUEST = L_RESULTS_OF_REQUEST.

IAOM_ACCOUNT_MANAGER_BASIC CALL FUNCTION 'IAOM_ACCOUNT_MANAGER_BASIC' EXPORTING I_ACCOUNT_REQUEST = L_ACCOUNT_REQUEST IMPORTING E_RESULTS_OF_REQUEST = L_RESULTS_OF_REQUEST.

IAOM_GET_ACCOUNT_ASSIGNMENT CALL FUNCTION 'IAOM_GET_ACCOUNT_ASSIGNMENT' EXPORTING I_BUS_SCENARIO_ID = 'CPROJECTS' I_EXT_OBJECT_ID = lv_id I_WITH_LOG = ' ' I_ACCEPT_NO_CONTROLLING_OBJECT = 'X' IMPORTING E_ACCOUNT_ASSIGNMENT = l_ACCOUNT_ASSIGNMENT * E_ADD_ACC_INFO = * E_BUSINESS_KEY = * E_HIERARCHY_LEVEL = * E_ACC_ASS_OBJECT_ID = * ET_PROCESS_ATTRIBUTES = ET_ATTRIBUTES = lt_attributes E_HIGHER_LEVEL_OBJECT_ID = lv_hlo_id EXCEPTIONS BUS_SCENARIO_UNKNOWN = 1 EXT_OBJECT_ID_UNKNOWN = 2 OBJECT_LOCKED = 3 EXT_OBJECT_NOT_CO_RELEVANT = 4 POSTING_YEAR_MISSING = 5 PROF_SEGMENT_ERROR = 6 OTHER_ERROR = 7 EXT_OBJECT_ACC_ASS_PENDING = 8 OTHERS = 9.

IAOM_ACCOUNT_MANAGER_BASIC CALL FUNCTION 'IAOM_ACCOUNT_MANAGER_BASIC' EXPORTING I_ACCOUNT_REQUEST = L_ACCOUNT_REQUEST IMPORTING E_RESULTS_OF_REQUEST = L_RESULTS_OF_REQUEST.

IAOM_COLLECT_FOR_DB_UPDATE CALL FUNCTION 'IAOM_COLLECT_FOR_DB_UPDATE' EXPORTING I_TEST_RUN = space I_TABLE_NAME = 'IAOM_EXT_OBJ_INF' I_ENTRIES_FOR_INS_MOD = lt_generic_table.






IAOM_COLLECT_FOR_DB_UPDATE CALL FUNCTION 'IAOM_COLLECT_FOR_DB_UPDATE' EXPORTING I_TEST_RUN = space I_TABLE_NAME = 'IAOM_EXT_OBJ_HST' I_ENTRIES_FOR_INS_MOD = lt_generic_table.

IAOM_COLLECT_FOR_DB_UPDATE CALL FUNCTION 'IAOM_COLLECT_FOR_DB_UPDATE' EXPORTING I_TEST_RUN = space I_TABLE_NAME = 'IAOM_ASSIGNMENTS' I_ENTRIES_FOR_INS_MOD = lt_generic_table.

IAOM_COLLECT_FOR_DB_UPDATE CALL FUNCTION 'IAOM_COLLECT_FOR_DB_UPDATE' EXPORTING I_TEST_RUN = space I_TABLE_NAME = 'IAOM_ASSIGNM_HST' I_ENTRIES_FOR_INS_MOD = lt_generic_table.

COERR_MESSAGES_GET CALL FUNCTION 'COERR_MESSAGES_GET' EXPORTING i_bs_ident = 'CPROJECTS' * I_OBJ_ID = i_ext_id = lv_TOP_ID i_appl = 'KDEF' * I_AUTHORIZATION = IMPORTING e_messages = lt_msg_out EXCEPTIONS not_authorized = 1 OTHERS = 2.

COERR_MESSAGE_ADD CALL FUNCTION 'COERR_MESSAGE_ADD' EXPORTING I_BS_IDENT = 'CPROJECTS' I_BUS_KEY = lv_top_BUS_KEY I_COERR_MSG = ld_coerr_msg I_COERR_CHECK = ld_COERR_CHECK.



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