SAP DTL_MT_ACPLANS_CALC Function Module for Calculation of access plans for all conv.obj. of a mass transfer









DTL_MT_ACPLANS_CALC is a standard dtl mt acplans calc 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 access plans for all conv.obj. of a mass transfer 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 dtl mt acplans calc FM, simply by entering the name DTL_MT_ACPLANS_CALC into the relevant SAP transaction such as SE37 or SE38.

Function Group: DMC_DTL
Program Name: SAPLDMC_DTL
Main Program: SAPLDMC_DTL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function DTL_MT_ACPLANS_CALC 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 'DTL_MT_ACPLANS_CALC'"Calculation of access plans for all conv.obj. of a mass transfer
EXPORTING
IM_MODE = "Excecute / status / log
* IM_RESTART = '-' "restart
* I_NO_CLUSTER_FILL = '-' "no filling of cluster
* I_DDIC_CHECK = 'X' "DDIC check
* I_DIALOG = "invoke report in dialog (no batch job)
* IM_APPLIC = 'SLO' "DMC Tool: Application
IM_MT_ID = "DMC: Kennzeichen einer Massenübernahme
* IM_NO_OF_JOBS = 1 "Max. no. of batch processes
* IM_ACC_PREC_ID = "DMC: Key
* IM_PACKID = "Package number to specify CMIS and TDMS packages
* IM_SESSION_ID = "MBT PCL SESSION_ID
* IM_DESCR = "Description
* IM_NO_RECALC = 'X' "Don't recalculate calculated acc.plans

IMPORTING
EX_LOGNUMBER = "Application log: log number
EX_STATISTICS = "Structure for PCL function module / STATUS
ES_STATUS = "Status info for MWB activities

TABLES
* IT_TABLES = "Ranges: Tables to be processed
* IT_READING_TYPE = "
* ET_STATUS = "Status info for MWB activities
* ET_LOGNUMBERS = "table of application log numbers + timestamps
* ET_MT_STATUS = "Load status of tables of a mass transfer (for API / DTL)

EXCEPTIONS
NO_SESSION_ID_PROVIDED = 1
.



IMPORTING Parameters details for DTL_MT_ACPLANS_CALC

IM_MODE - Excecute / status / log

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

IM_RESTART - restart

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

I_NO_CLUSTER_FILL - no filling of cluster

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

I_DDIC_CHECK - DDIC check

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

I_DIALOG - invoke report in dialog (no batch job)

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

IM_APPLIC - DMC Tool: Application

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

IM_MT_ID - DMC: Kennzeichen einer Massenübernahme

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

IM_NO_OF_JOBS - Max. no. of batch processes

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

IM_ACC_PREC_ID - DMC: Key

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

IM_PACKID - Package number to specify CMIS and TDMS packages

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

IM_SESSION_ID - MBT PCL SESSION_ID

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

IM_DESCR - Description

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

IM_NO_RECALC - Don't recalculate calculated acc.plans

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

EXPORTING Parameters details for DTL_MT_ACPLANS_CALC

EX_LOGNUMBER - Application log: log number

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

EX_STATISTICS - Structure for PCL function module / STATUS

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

ES_STATUS - Status info for MWB activities

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

TABLES Parameters details for DTL_MT_ACPLANS_CALC

IT_TABLES - Ranges: Tables to be processed

Data type: DMC_RANGES_TABNAME
Optional: Yes
Call by Reference: Yes

IT_READING_TYPE -

Data type: DMC_RANGES_READING_TYPE
Optional: Yes
Call by Reference: Yes

ET_STATUS - Status info for MWB activities

Data type: DMC_ACTIVITY_STATUS_INFO_T
Optional: Yes
Call by Reference: Yes

ET_LOGNUMBERS - table of application log numbers + timestamps

Data type: DMC_DTL_LOGS_AND_TIMES_T
Optional: Yes
Call by Reference: Yes

ET_MT_STATUS - Load status of tables of a mass transfer (for API / DTL)

Data type: DTL_MT_STATE
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

NO_SESSION_ID_PROVIDED - no session ID provided

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for DTL_MT_ACPLANS_CALC 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_im_mode  TYPE CHAR1, "   
lt_it_tables  TYPE STANDARD TABLE OF DMC_RANGES_TABNAME, "   
lv_ex_lognumber  TYPE BALOGNR, "   
lv_no_session_id_provided  TYPE BALOGNR, "   
lv_im_restart  TYPE BOOLEAN, "   '-'
lv_i_no_cluster_fill  TYPE BOOLEAN, "   '-'
lv_i_ddic_check  TYPE DMC_BOOLEAN, "   'X'
lv_i_dialog  TYPE BOOLEAN, "   
lv_im_applic  TYPE DMC_APPLIC, "   'SLO'
lv_ex_statistics  TYPE DTL_MT_STATISTICS, "   
lt_it_reading_type  TYPE STANDARD TABLE OF DMC_RANGES_READING_TYPE, "   
lv_im_mt_id  TYPE DMC_MT_IDENTIFIER, "   
lv_es_status  TYPE DMC_ACTIVITY_STATUS_INFO, "   
lt_et_status  TYPE STANDARD TABLE OF DMC_ACTIVITY_STATUS_INFO_T, "   
lt_et_lognumbers  TYPE STANDARD TABLE OF DMC_DTL_LOGS_AND_TIMES_T, "   
lv_im_no_of_jobs  TYPE NUMC2, "   1
lt_et_mt_status  TYPE STANDARD TABLE OF DTL_MT_STATE, "   
lv_im_acc_prec_id  TYPE DMC_ID, "   
lv_im_packid  TYPE DMC_PACKAGE_ID, "   
lv_im_session_id  TYPE DMC_SESSION_ID, "   
lv_im_descr  TYPE DMC_DESCR, "   
lv_im_no_recalc  TYPE BOOLEAN. "   'X'

  CALL FUNCTION 'DTL_MT_ACPLANS_CALC'  "Calculation of access plans for all conv.obj. of a mass transfer
    EXPORTING
         IM_MODE = lv_im_mode
         IM_RESTART = lv_im_restart
         I_NO_CLUSTER_FILL = lv_i_no_cluster_fill
         I_DDIC_CHECK = lv_i_ddic_check
         I_DIALOG = lv_i_dialog
         IM_APPLIC = lv_im_applic
         IM_MT_ID = lv_im_mt_id
         IM_NO_OF_JOBS = lv_im_no_of_jobs
         IM_ACC_PREC_ID = lv_im_acc_prec_id
         IM_PACKID = lv_im_packid
         IM_SESSION_ID = lv_im_session_id
         IM_DESCR = lv_im_descr
         IM_NO_RECALC = lv_im_no_recalc
    IMPORTING
         EX_LOGNUMBER = lv_ex_lognumber
         EX_STATISTICS = lv_ex_statistics
         ES_STATUS = lv_es_status
    TABLES
         IT_TABLES = lt_it_tables
         IT_READING_TYPE = lt_it_reading_type
         ET_STATUS = lt_et_status
         ET_LOGNUMBERS = lt_et_lognumbers
         ET_MT_STATUS = lt_et_mt_status
    EXCEPTIONS
        NO_SESSION_ID_PROVIDED = 1
. " DTL_MT_ACPLANS_CALC




ABAP code using 7.40 inline data declarations to call FM DTL_MT_ACPLANS_CALC

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_im_restart) = '-'.
 
DATA(ld_i_no_cluster_fill) = '-'.
 
DATA(ld_i_ddic_check) = 'X'.
 
 
DATA(ld_im_applic) = 'SLO'.
 
 
 
 
 
 
 
DATA(ld_im_no_of_jobs) = 1.
 
 
 
 
 
 
DATA(ld_im_no_recalc) = 'X'.
 


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!