SAP CP_DO_MILESTONE_DETAIL_CALL Function Module for Access a milestone detail screen









CP_DO_MILESTONE_DETAIL_CALL is a standard cp do milestone detail call SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Access a milestone detail screen 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 cp do milestone detail call FM, simply by entering the name CP_DO_MILESTONE_DETAIL_CALL into the relevant SAP transaction such as SE37 or SE38.

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



Function CP_DO_MILESTONE_DETAIL_CALL 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 'CP_DO_MILESTONE_DETAIL_CALL'"Access a milestone detail screen
EXPORTING
AKTYP = "
PLPOD_IMP = "Operation data (operation and sub-operation)
* RC27I_IMP = "
* RC27S_IMP = "
* RC27X_IMP = "
BLDGR_IMP = "
DYNNR = "
* FLG_DARK = ' ' "Process screen in background
MLSTD_IMP = "
PANEL_IMP = "
PLFLD_IMP = "
PLKOD_IMP = "Header record to be displayed (I/O structure)
PLNAW = "

IMPORTING
FLG_ESC = "
INDEX_MLST = "
MLSTD_EXP = "
OK_CODE = "

EXCEPTIONS
WRONG_BLDGR = 1
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLCPDO_001 PS Customer Exit: Standard Network User fields
EXIT_SAPLCPDO_002 PS Customer Exit: User Specific Fields in PLPO (Data SAP -> SUBSCREEN)
EXIT_SAPLCPDO_003 PS Customer Exit: User Specific Fields in PLPO (Data SUBSCREEN -> SAP)
EXIT_SAPLCPDO_004 Test units of measure for reference to reference operation set

IMPORTING Parameters details for CP_DO_MILESTONE_DETAIL_CALL

AKTYP -

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

PLPOD_IMP - Operation data (operation and sub-operation)

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

RC27I_IMP -

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

RC27S_IMP -

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

RC27X_IMP -

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

BLDGR_IMP -

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

DYNNR -

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

FLG_DARK - Process screen in background

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

MLSTD_IMP -

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

PANEL_IMP -

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

PLFLD_IMP -

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

PLKOD_IMP - Header record to be displayed (I/O structure)

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

PLNAW -

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

EXPORTING Parameters details for CP_DO_MILESTONE_DETAIL_CALL

FLG_ESC -

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

INDEX_MLST -

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

MLSTD_EXP -

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

OK_CODE -

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

EXCEPTIONS details

WRONG_BLDGR - Screen group does not exist

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

Copy and paste ABAP code example for CP_DO_MILESTONE_DETAIL_CALL 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_aktyp  TYPE TC01A-AKTYP, "   
lv_flg_esc  TYPE TC01A, "   
lv_wrong_bldgr  TYPE TC01A, "   
lv_plpod_imp  TYPE PLPOD, "   
lv_rc27i_imp  TYPE RC27I, "   
lv_rc27s_imp  TYPE RC27S, "   
lv_rc27x_imp  TYPE RC27X, "   
lv_bldgr_imp  TYPE TCA36-BLDGR, "   
lv_index_mlst  TYPE RC27I-INDEX_MLST, "   
lv_dynnr  TYPE T185V-DYNNR, "   
lv_mlstd_exp  TYPE MLSTD, "   
lv_ok_code  TYPE T185-FCODE, "   
lv_flg_dark  TYPE T185, "   ' '
lv_mlstd_imp  TYPE MLSTD, "   
lv_panel_imp  TYPE TCA36-PANEL, "   
lv_plfld_imp  TYPE PLFLD, "   
lv_plkod_imp  TYPE PLKOD, "   
lv_plnaw  TYPE TCA01-PLNAW. "   

  CALL FUNCTION 'CP_DO_MILESTONE_DETAIL_CALL'  "Access a milestone detail screen
    EXPORTING
         AKTYP = lv_aktyp
         PLPOD_IMP = lv_plpod_imp
         RC27I_IMP = lv_rc27i_imp
         RC27S_IMP = lv_rc27s_imp
         RC27X_IMP = lv_rc27x_imp
         BLDGR_IMP = lv_bldgr_imp
         DYNNR = lv_dynnr
         FLG_DARK = lv_flg_dark
         MLSTD_IMP = lv_mlstd_imp
         PANEL_IMP = lv_panel_imp
         PLFLD_IMP = lv_plfld_imp
         PLKOD_IMP = lv_plkod_imp
         PLNAW = lv_plnaw
    IMPORTING
         FLG_ESC = lv_flg_esc
         INDEX_MLST = lv_index_mlst
         MLSTD_EXP = lv_mlstd_exp
         OK_CODE = lv_ok_code
    EXCEPTIONS
        WRONG_BLDGR = 1
. " CP_DO_MILESTONE_DETAIL_CALL




ABAP code using 7.40 inline data declarations to call FM CP_DO_MILESTONE_DETAIL_CALL

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 AKTYP FROM TC01A INTO @DATA(ld_aktyp).
 
 
 
 
 
 
 
"SELECT single BLDGR FROM TCA36 INTO @DATA(ld_bldgr_imp).
 
"SELECT single INDEX_MLST FROM RC27I INTO @DATA(ld_index_mlst).
 
"SELECT single DYNNR FROM T185V INTO @DATA(ld_dynnr).
 
 
"SELECT single FCODE FROM T185 INTO @DATA(ld_ok_code).
 
DATA(ld_flg_dark) = ' '.
 
 
"SELECT single PANEL FROM TCA36 INTO @DATA(ld_panel_imp).
 
 
 
"SELECT single PLNAW FROM TCA01 INTO @DATA(ld_plnaw).
 


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!