Account Assignment (incl. RFC-Call)
This is where the ERP system is called from the PPM-system to carry out account assignment:
CL_DPR_FIN_GECCO_IAOM_SERVICES
METHOD REPLICATE2
call function sc_iaom_account_manager
destination ir_repository->mv_rfc_destination
.....
(In case accounting integration is carried out in background task per the relevant customizing, the call occurs a few lines earlier in the same method.)
The breakpoint in ERP-system can be set in function module IAOM_ACCOUNT_MANAGER which is the target of the aforementioned RFC call.
Creation of Internal Order or PS-Project
In class CL_IAOM_INT_ACC_OBJ - method CREATE the determination of the type of the internal accounting object is done.
a) Creation of PS-Project and WBS-elements
In case the accounting integration scenario involves the creation of a PS project, you can debug this by placing a breakpoint in
function module BAPI_BUS2001_CREATE (for projectdefinition) and
function module BAPI_BUS2054_CREATE_MULTI for the creation of the wbs-elements
b) Creation of Internal Order
Set a breakpoint at function module: GCC_ORDER_CREATE.
Calling Accounting Tab
Calling "Accounting"-Tab to receive the assigned wbs-elements from ERP-system (RFC-call to ERP-system):
CL_DPR_FIN_GECCO_PS_SERVICES
GET_WBS_HIERARCHY_WITH_DATA
*/ Call R/3 system and retrieve project information
CALL FUNCTION sc_iaom_cpro_misc_rfc_wbs_info
DESTINATION mv_destination
...
Get Customizing
Get Customizing of the controlling integration:
CL_DPR_FIN_GECCO_REPOSITORY
Method LOAD_INSTANCE
Is customizing consistent?
CL_DPR_FIN_GECCO_REPOSITORY
IS_CONSISTENT
Calculation
This is where the ERP system (RFC-call) is called when you press "Calculate" in the project accounting tab:
CL_DPR_FIN_GECCO_CALCULATION
METHOD CALCULATE
CALL FUNCTION 'DPR_CALC_PROJECT'
DESTINATION mv_rfc_destination
EXPORTING
...
Calculation in the ERP-system:
CL_DPR_CALC
Method CALC_PROJECT
Method GET_CALC_CONTROL_DATA
Tables in ERP-System
Table: IAOM_ASSIGNMENTS (Assignment of Ext. Objects to Controlling Objects)
BUS_SCENARIO_ID = CPROJECTS
EXT_OBJECT_ID = Guid (from PPM-system)
OBJECT_NO = Objectnumber of wbs-element (for example: PR00015225)
or Objectnumber of Internal order (for example: OR000000501240)
Table: IAOM_CPRO_EXAT (External Characteristics of an Object in cProjects)
EXT_OBJECT_ID = Guid (from PPM-system)
PROJECT_ID = Project-ID of PPM-system
Table: IAOM_EXT_OBJ_INF (General Information on External Object)
BUS_SCENARIO_ID = CPROJECTS
EXT_OBJECT_ID = Guid (from PPM-system)
Further Tips
You can use BAdI DPR_FIN_GECCO_ATTR (in PPM-system) with method COLLECT_MESSAGES to collect the messages from the Replication.