SAP CE_DI_CALCULATION Function Module for Calculation of standard values









CE_DI_CALCULATION is a standard ce di calculation SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Calculation of standard values 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 ce di calculation FM, simply by entering the name CE_DI_CALCULATION into the relevant SAP transaction such as SE37 or SE38.

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



Function CE_DI_CALCULATION 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 'CE_DI_CALCULATION'"Calculation of standard values
EXPORTING
* AENNR_IMP = 0 "Change no. for change with history
* STTAG_IMP = "Key date for change no.
* VEINN_IMP = 0 "Procedure for simulation
* CUOBJ_IMP = ' ' "
* CALL_FROM_ORDER_CONFIGURATION = ' ' "
* VBELN = ' ' "
* POSNR = 0 "
* LOSGR = 1 "
* FLAG_REFRESH_TABLES = "
* DEACT_TYPE_IMP = ' ' "Call type (call from bill of material)
* MEINN_IMP = 0 "Method for simulation
* OPERATION_IMP = 2 "Operation type
* PLFLD_IMP = "Sequence
* PLKOD_IMP = "Current header field string
* PLPOD_IMP = "Current operation field string
* RC27M_IMP = "Material field string (assembly)
* RCR01_IMP = "Work center data

IMPORTING
NEXT_OPR_EXP = "Next operation
OK_CODE_EXP = "OK code
PLPOD_EXP = "Current operation field string (output)

EXCEPTIONS
ESC = 1
.



IMPORTING Parameters details for CE_DI_CALCULATION

AENNR_IMP - Change no. for change with history

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

STTAG_IMP - Key date for change no.

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

VEINN_IMP - Procedure for simulation

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

CUOBJ_IMP -

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

CALL_FROM_ORDER_CONFIGURATION -

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

VBELN -

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

POSNR -

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

LOSGR -

Data type: CAUFVD-GAMNG
Default: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLAG_REFRESH_TABLES -

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

DEACT_TYPE_IMP - Call type (call from bill of material)

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

MEINN_IMP - Method for simulation

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

OPERATION_IMP - Operation type

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

PLFLD_IMP - Sequence

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

PLKOD_IMP - Current header field string

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

PLPOD_IMP - Current operation field string

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

RC27M_IMP - Material field string (assembly)

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

RCR01_IMP - Work center data

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

EXPORTING Parameters details for CE_DI_CALCULATION

NEXT_OPR_EXP - Next operation

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

OK_CODE_EXP - OK code

Data type: TC02-FCODE
Optional: No
Call by Reference: No ( called with pass by value option)

PLPOD_EXP - Current operation field string (output)

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

EXCEPTIONS details

ESC - Abnormal termination (F12)

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

Copy and paste ABAP code example for CE_DI_CALCULATION 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_esc  TYPE STRING, "   
lv_aennr_imp  TYPE PLPOD-AENNR, "   0
lv_next_opr_exp  TYPE PLPOD, "   
lv_sttag_imp  TYPE RC271-STTAG, "   
lv_veinn_imp  TYPE PLPHD-VEINN, "   0
lv_cuobj_imp  TYPE INOB-CUOBJ, "   SPACE
lv_call_from_order_configuration  TYPE PLKO-FLG_CAPO, "   SPACE
lv_vbeln  TYPE MAPL-VBELN, "   SPACE
lv_posnr  TYPE MAPL-POSNR, "   0
lv_losgr  TYPE CAUFVD-GAMNG, "   1
lv_flag_refresh_tables  TYPE FLAG, "   
lv_ok_code_exp  TYPE TC02-FCODE, "   
lv_deact_type_imp  TYPE RCES-DEACT_TYPE, "   SPACE
lv_meinn_imp  TYPE PLPHD-MEINN, "   0
lv_plpod_exp  TYPE PLPOD, "   
lv_operation_imp  TYPE PLPOD, "   2
lv_plfld_imp  TYPE PLFLD, "   
lv_plkod_imp  TYPE PLKOD, "   
lv_plpod_imp  TYPE PLPOD, "   
lv_rc27m_imp  TYPE RC27M, "   
lv_rcr01_imp  TYPE RCR01. "   

  CALL FUNCTION 'CE_DI_CALCULATION'  "Calculation of standard values
    EXPORTING
         AENNR_IMP = lv_aennr_imp
         STTAG_IMP = lv_sttag_imp
         VEINN_IMP = lv_veinn_imp
         CUOBJ_IMP = lv_cuobj_imp
         CALL_FROM_ORDER_CONFIGURATION = lv_call_from_order_configuration
         VBELN = lv_vbeln
         POSNR = lv_posnr
         LOSGR = lv_losgr
         FLAG_REFRESH_TABLES = lv_flag_refresh_tables
         DEACT_TYPE_IMP = lv_deact_type_imp
         MEINN_IMP = lv_meinn_imp
         OPERATION_IMP = lv_operation_imp
         PLFLD_IMP = lv_plfld_imp
         PLKOD_IMP = lv_plkod_imp
         PLPOD_IMP = lv_plpod_imp
         RC27M_IMP = lv_rc27m_imp
         RCR01_IMP = lv_rcr01_imp
    IMPORTING
         NEXT_OPR_EXP = lv_next_opr_exp
         OK_CODE_EXP = lv_ok_code_exp
         PLPOD_EXP = lv_plpod_exp
    EXCEPTIONS
        ESC = 1
. " CE_DI_CALCULATION




ABAP code using 7.40 inline data declarations to call FM CE_DI_CALCULATION

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.

 
"SELECT single AENNR FROM PLPOD INTO @DATA(ld_aennr_imp).
 
 
"SELECT single STTAG FROM RC271 INTO @DATA(ld_sttag_imp).
 
"SELECT single VEINN FROM PLPHD INTO @DATA(ld_veinn_imp).
 
"SELECT single CUOBJ FROM INOB INTO @DATA(ld_cuobj_imp).
DATA(ld_cuobj_imp) = ' '.
 
"SELECT single FLG_CAPO FROM PLKO INTO @DATA(ld_call_from_order_configuration).
DATA(ld_call_from_order_configuration) = ' '.
 
"SELECT single VBELN FROM MAPL INTO @DATA(ld_vbeln).
DATA(ld_vbeln) = ' '.
 
"SELECT single POSNR FROM MAPL INTO @DATA(ld_posnr).
 
"SELECT single GAMNG FROM CAUFVD INTO @DATA(ld_losgr).
DATA(ld_losgr) = 1.
 
 
"SELECT single FCODE FROM TC02 INTO @DATA(ld_ok_code_exp).
 
"SELECT single DEACT_TYPE FROM RCES INTO @DATA(ld_deact_type_imp).
DATA(ld_deact_type_imp) = ' '.
 
"SELECT single MEINN FROM PLPHD INTO @DATA(ld_meinn_imp).
 
 
DATA(ld_operation_imp) = 2.
 
 
 
 
 
 


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!