SAP DPR_CALC_PROJECT_INTERN Function Module for Call Up Costing









DPR_CALC_PROJECT_INTERN is a standard dpr calc project intern SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Call Up Costing processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for dpr calc project intern FM, simply by entering the name DPR_CALC_PROJECT_INTERN into the relevant SAP transaction such as SE37 or SE38.

Function Group: DPR_CALC
Program Name: SAPLDPR_CALC
Main Program: SAPLDPR_CALC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function DPR_CALC_PROJECT_INTERN pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'DPR_CALC_PROJECT_INTERN'"Call Up Costing
EXPORTING
IV_CPRO_PROJECT_TYPE = "Project Type
* IV_MODE = ' ' "Mode: SC_CALL_MODE_*
* IV_COPY_MODE = ' ' "Copy ECP (X=yes, ' '=no)
IT_CALC_PARTICIPANT = "
IT_CALC_BUPA_LINK = "Resources
* IT_CALC_TASK = "Costing: Tasks
* IT_CALC_PART_LINK = "Costing: Roles/Resources
* IT_OLD_EXT_ID = "cProjects GUIDs and Assigned Account Assignment Objects
* IT_NEW_EXT_ID = "cProjects GUIDs and Assigned Account Assignment Objects
* IV_WITH_OFFLINE_CHECK = "'X' = Include Offline Check
* IV_CONTROLLING_METHOD = "Controlling Method for cProjects
IS_CALC_PROJECT = "Project
IV_SAVE_CALCULATION = "Save Costing (X = Yes)
* IV_IS_SIMULATION = ' ' "
* IV_ECP_VISIBLE = ' ' "Process ECP in the Foreground (X=yes, ' '=no)
* IV_EDIT_MODE = "Processing Mode (Display/Change)
* IV_REV_DET_TYPE = "Revenue Calculation Type
* IV_OBJECT_LINK_KEY = "Key of Linked Object

IMPORTING
ET_CALC_RESULT = "Profit
ET_MESSAGES = "Collected Messages
EV_OFFLINE = "Is Offline Costing Appropriate?

EXCEPTIONS
ERROR_OCCURRED = 1
.



IMPORTING Parameters details for DPR_CALC_PROJECT_INTERN

IV_CPRO_PROJECT_TYPE - Project Type

Data type: DPR_TV_PRO_TYPE_CO
Optional: No
Call by Reference: No ( called with pass by value option)

IV_MODE - Mode: SC_CALL_MODE_*

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_COPY_MODE - Copy ECP (X=yes, ' '=no)

Data type: BOOLEAN
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_CALC_PARTICIPANT -

Data type: DPR_TT_CALC_PART_CO
Optional: No
Call by Reference: No ( called with pass by value option)

IT_CALC_BUPA_LINK - Resources

Data type: DPR_TT_CALC_BUPA_LINK_CO
Optional: No
Call by Reference: No ( called with pass by value option)

IT_CALC_TASK - Costing: Tasks

Data type: DPR_TT_CALC_TASK_CO
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_CALC_PART_LINK - Costing: Roles/Resources

Data type: DPR_TT_CALC_PART_LINK_CO
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_OLD_EXT_ID - cProjects GUIDs and Assigned Account Assignment Objects

Data type: IAOM_CPROJECTS_TT_GUID
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_NEW_EXT_ID - cProjects GUIDs and Assigned Account Assignment Objects

Data type: IAOM_CPROJECTS_TT_GUID
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_WITH_OFFLINE_CHECK - 'X' = Include Offline Check

Data type: BOOLE_D
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_CONTROLLING_METHOD - Controlling Method for cProjects

Data type: DPR_TV_CONTROLLING_METHOD
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_CALC_PROJECT - Project

Data type: DPR_TS_CALC_PROJECT_CO
Optional: No
Call by Reference: No ( called with pass by value option)

IV_SAVE_CALCULATION - Save Costing (X = Yes)

Data type: XFLAG
Optional: No
Call by Reference: No ( called with pass by value option)

IV_IS_SIMULATION -

Data type: XFLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_ECP_VISIBLE - Process ECP in the Foreground (X=yes, ' '=no)

Data type: BOOLEAN
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_EDIT_MODE - Processing Mode (Display/Change)

Data type: DPR_TV_EDITMODE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_REV_DET_TYPE - Revenue Calculation Type

Data type: DPR_TV_REV_DET_TYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_OBJECT_LINK_KEY - Key of Linked Object

Data type: DPR_TV_OBJLINK_OBJECT_KEY
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for DPR_CALC_PROJECT_INTERN

ET_CALC_RESULT - Profit

Data type: DPR_TT_CALC_RESULT_CO
Optional: No
Call by Reference: No ( called with pass by value option)

ET_MESSAGES - Collected Messages

Data type: BAPIRET2_T
Optional: No
Call by Reference: No ( called with pass by value option)

EV_OFFLINE - Is Offline Costing Appropriate?

Data type: BOOLE_D
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

ERROR_OCCURRED -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for DPR_CALC_PROJECT_INTERN Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_error_occurred  TYPE STRING, "   
lv_et_calc_result  TYPE DPR_TT_CALC_RESULT_CO, "   
lv_iv_cpro_project_type  TYPE DPR_TV_PRO_TYPE_CO, "   
lv_iv_mode  TYPE CHAR1, "   SPACE
lv_iv_copy_mode  TYPE BOOLEAN, "   ' '
lv_it_calc_participant  TYPE DPR_TT_CALC_PART_CO, "   
lv_it_calc_bupa_link  TYPE DPR_TT_CALC_BUPA_LINK_CO, "   
lv_it_calc_task  TYPE DPR_TT_CALC_TASK_CO, "   
lv_it_calc_part_link  TYPE DPR_TT_CALC_PART_LINK_CO, "   
lv_it_old_ext_id  TYPE IAOM_CPROJECTS_TT_GUID, "   
lv_it_new_ext_id  TYPE IAOM_CPROJECTS_TT_GUID, "   
lv_iv_with_offline_check  TYPE BOOLE_D, "   
lv_et_messages  TYPE BAPIRET2_T, "   
lv_iv_controlling_method  TYPE DPR_TV_CONTROLLING_METHOD, "   
lv_ev_offline  TYPE BOOLE_D, "   
lv_is_calc_project  TYPE DPR_TS_CALC_PROJECT_CO, "   
lv_iv_save_calculation  TYPE XFLAG, "   
lv_iv_is_simulation  TYPE XFLAG, "   SPACE
lv_iv_ecp_visible  TYPE BOOLEAN, "   ' '
lv_iv_edit_mode  TYPE DPR_TV_EDITMODE, "   
lv_iv_rev_det_type  TYPE DPR_TV_REV_DET_TYPE, "   
lv_iv_object_link_key  TYPE DPR_TV_OBJLINK_OBJECT_KEY. "   

  CALL FUNCTION 'DPR_CALC_PROJECT_INTERN'  "Call Up Costing
    EXPORTING
         IV_CPRO_PROJECT_TYPE = lv_iv_cpro_project_type
         IV_MODE = lv_iv_mode
         IV_COPY_MODE = lv_iv_copy_mode
         IT_CALC_PARTICIPANT = lv_it_calc_participant
         IT_CALC_BUPA_LINK = lv_it_calc_bupa_link
         IT_CALC_TASK = lv_it_calc_task
         IT_CALC_PART_LINK = lv_it_calc_part_link
         IT_OLD_EXT_ID = lv_it_old_ext_id
         IT_NEW_EXT_ID = lv_it_new_ext_id
         IV_WITH_OFFLINE_CHECK = lv_iv_with_offline_check
         IV_CONTROLLING_METHOD = lv_iv_controlling_method
         IS_CALC_PROJECT = lv_is_calc_project
         IV_SAVE_CALCULATION = lv_iv_save_calculation
         IV_IS_SIMULATION = lv_iv_is_simulation
         IV_ECP_VISIBLE = lv_iv_ecp_visible
         IV_EDIT_MODE = lv_iv_edit_mode
         IV_REV_DET_TYPE = lv_iv_rev_det_type
         IV_OBJECT_LINK_KEY = lv_iv_object_link_key
    IMPORTING
         ET_CALC_RESULT = lv_et_calc_result
         ET_MESSAGES = lv_et_messages
         EV_OFFLINE = lv_ev_offline
    EXCEPTIONS
        ERROR_OCCURRED = 1
. " DPR_CALC_PROJECT_INTERN




ABAP code using 7.40 inline data declarations to call FM DPR_CALC_PROJECT_INTERN

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
DATA(ld_iv_mode) = ' '.
 
DATA(ld_iv_copy_mode) = ' '.
 
 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_iv_is_simulation) = ' '.
 
DATA(ld_iv_ecp_visible) = ' '.
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!