Ansicht
Dokumentation
/CPD/PFP_RFC_GET_AGGR_COST - Get Aggregated Cost and Revenue for Financial Plans
General Material Data SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3upThis documentation is copyright by SAP AG.
Functionality
This function module calculates the aggregated details (plan cost and revenue) of financial plans. The function module does the following:
- Receives the following parameters:
- Commercial project GUID (mandatory)
- Reference object GUID (mandatory)
- Financial Plan external ID (optional)
- If this parameter is provided, then the system calculates plan cost and revenue only for these financial plans. If this parameter is not entered, then plan cost and revenue is calculated for all the financial plans that are associated with the commercial project.
- Checks the link between the commercial project GUID and the reference object GUID. If the link does not exist, appropriate error message are recorded in the exporting parameter (ET_MESSAGES).
- Gets the service manager instance for the financial plan using class /BOBF/CL_TRA_SERV_MGR_FACTORY and method GET_SERVICE_MANAGER by passing the business object for the financial plan to the method.
- Retrieves the plan data using the method GET_INFOCUBE_DATA of class /CPD/CL_PFP_QUERY_SERVICES.
Parameters
Parameter | Description |
---|---|
IV_MP_GUID | Commercial Project GUID |
IV_REF_OBJ_GUID | Reference Object GUID |
IT_PLAN_EXT_ID | Table type for Plan ID (External ID) |
ET_PLAN_VERS_DATA | Table Type for Aggregated Details of Financial Plan |
ET_MESSAGES | Table with BAPI Return Information |
Example
Suppose a CRM Opportunity which contains three items for which a commercial project with three financial plans (one for each opportunity item) has been created. In each financial plan, multiple bid structure elements are created and one item is assigned to at least one of the bid structure elements. Plan data (with plan cost and revenue) exists for all of the bid structure elements in each plan.
This function module is called if a user wants to retrieve aggregated details (plan cost and revenue) for all the financial plans linked to the CRM Opportunity.
- The function module receives inputs as given below:
- IV_MP_GUID: 40F2E963DABA1ED787EAA4077C81C2E0
- IV_REF_OBJ_GUID: 005056935F031ED284D85F744851D48C
- IT_PLAN_EXT_ID:
- VP-DEL-ROBJ-1-1
- VP-DEL-ROBJ-1-2
- VP-DEL-ROBJ-1-3
Example
Notes
Further information
Parameters
ET_MESSAGESET_PLAN_VERS_DATA
IT_PLAN_EXT_ID
IV_MP_GUID
IV_REF_OBJ_GUID
Exceptions
Function Group
/SAPLPFP_FG_API_RFCPERFORM Short Reference rdisp/max_wprun_time - Maximum work process run time
This documentation is copyright by SAP AG.
Length: 4008 Date: 20240329 Time: 100631 sap01-206 ( 52 ms )