SAP CN_MS_SET_ACT_DATE Function Module for NOTRANSL: Setzen des Ist-Datums in Meilensteinen zu Vorgang bei Rückmeldun









CN_MS_SET_ACT_DATE is a standard cn ms set act date SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Setzen des Ist-Datums in Meilensteinen zu Vorgang bei Rückmeldun 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 cn ms set act date FM, simply by entering the name CN_MS_SET_ACT_DATE into the relevant SAP transaction such as SE37 or SE38.

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



Function CN_MS_SET_ACT_DATE 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 'CN_MS_SET_ACT_DATE'"NOTRANSL: Setzen des Ist-Datums in Meilensteinen zu Vorgang bei Rückmeldun
EXPORTING
ACTDT = "Actual date (Milestone met)
* TCORU_IMP = ' ' "Parameters for Order Confirmation
* ACTTM = ' ' "Actual date/time (Milestone met)
AFVGD_IMP = "Order: Dialog table for Table AFVG (order operation)
AKTYP = "Activity category in SAP transaction
CAUFVD_IMP = "Dialog Structure for Order Headers and Items
FERTG = "Percentage of completion (%)
RMZHL = "Confirmation counter
RUECK = "Completion confirmation number for the operation
* BDE_CONFIRM = ' ' "Selection indicator

EXCEPTIONS
CHANCELED = 1 NO_MILESTONE = 2 BDE_REJECT = 3
.



IMPORTING Parameters details for CN_MS_SET_ACT_DATE

ACTDT - Actual date (Milestone met)

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

TCORU_IMP - Parameters for Order Confirmation

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

ACTTM - Actual date/time (Milestone met)

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

AFVGD_IMP - Order: Dialog table for Table AFVG (order operation)

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

AKTYP - Activity category in SAP transaction

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

CAUFVD_IMP - Dialog Structure for Order Headers and Items

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

FERTG - Percentage of completion (%)

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

RMZHL - Confirmation counter

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

RUECK - Completion confirmation number for the operation

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

BDE_CONFIRM - Selection indicator

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

EXCEPTIONS details

CHANCELED -

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

NO_MILESTONE -

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

BDE_REJECT -

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

Copy and paste ABAP code example for CN_MS_SET_ACT_DATE 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_actdt  TYPE MLST-LST_ACTDT, "   
lv_chanceled  TYPE MLST, "   
lv_tcoru_imp  TYPE TCORU, "   SPACE
lv_acttm  TYPE MLST-LST_ACTTM, "   SPACE
lv_no_milestone  TYPE MLST, "   
lv_afvgd_imp  TYPE AFVGD, "   
lv_bde_reject  TYPE AFVGD, "   
lv_aktyp  TYPE RC27S-AKTYP, "   
lv_caufvd_imp  TYPE CAUFVD, "   
lv_fertg  TYPE MLST-LST_FERTG, "   
lv_rmzhl  TYPE AFRU-RMZHL, "   
lv_rueck  TYPE AFRU-RUECK, "   
lv_bde_confirm  TYPE RC27X-FLG_SEL. "   SPACE

  CALL FUNCTION 'CN_MS_SET_ACT_DATE'  "NOTRANSL: Setzen des Ist-Datums in Meilensteinen zu Vorgang bei Rückmeldun
    EXPORTING
         ACTDT = lv_actdt
         TCORU_IMP = lv_tcoru_imp
         ACTTM = lv_acttm
         AFVGD_IMP = lv_afvgd_imp
         AKTYP = lv_aktyp
         CAUFVD_IMP = lv_caufvd_imp
         FERTG = lv_fertg
         RMZHL = lv_rmzhl
         RUECK = lv_rueck
         BDE_CONFIRM = lv_bde_confirm
    EXCEPTIONS
        CHANCELED = 1
        NO_MILESTONE = 2
        BDE_REJECT = 3
. " CN_MS_SET_ACT_DATE




ABAP code using 7.40 inline data declarations to call FM CN_MS_SET_ACT_DATE

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 LST_ACTDT FROM MLST INTO @DATA(ld_actdt).
 
 
DATA(ld_tcoru_imp) = ' '.
 
"SELECT single LST_ACTTM FROM MLST INTO @DATA(ld_acttm).
DATA(ld_acttm) = ' '.
 
 
 
 
"SELECT single AKTYP FROM RC27S INTO @DATA(ld_aktyp).
 
 
"SELECT single LST_FERTG FROM MLST INTO @DATA(ld_fertg).
 
"SELECT single RMZHL FROM AFRU INTO @DATA(ld_rmzhl).
 
"SELECT single RUECK FROM AFRU INTO @DATA(ld_rueck).
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_bde_confirm).
DATA(ld_bde_confirm) = ' '.
 


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!