SAP Function Modules

DMC_ACPLAN_BTC_CALC_SERVER SAP Function module - Server für die Hintergrundberechnung von Zugriffsplänen







DMC_ACPLAN_BTC_CALC_SERVER is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name DMC_ACPLAN_BTC_CALC_SERVER into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: CNV0
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM DMC_ACPLAN_BTC_CALC_SERVER - DMC ACPLAN BTC CALC SERVER





CALL FUNCTION 'DMC_ACPLAN_BTC_CALC_SERVER' "Server für die Hintergrundberechnung von Zugriffsplänen
  EXPORTING
    im_admin_data =             " dmccalcadm    function module access plan calculator
*   im_start_calculation =      " sy-debug      function: start of calculation
*   im_get_calculation =        " sy-debug      function: read the calculation data
*   i_delete_job =              " sy-debug      Intern
  IMPORTING
    ex_admin_data =             " dmccalcadm    return structure: errors
    et_messages =               " dmc_bal_t_msg  Application Log: Table with Messages
* TABLES
*   ex_it_interval_boundaries =   " dmcintervl  interval boundaries
*   ex_it_reccounts =           " dmcreccnt     table with record counts
*   ex_it_tabwidths =           " dmctabwidt    table width
*   im_it_sel_criteria =        " dmc_qry       table of selection criteria
  EXCEPTIONS
    IMPORT_FAILED = 1           "               import from cluster table failed
    WRONG_CALL = 2              "
    EXPORT_FAILED = 3           "               export to cluster table failed
    .  "  DMC_ACPLAN_BTC_CALC_SERVER

ABAP code example for Function Module DMC_ACPLAN_BTC_CALC_SERVER





The ABAP code below is a full code listing to execute function module DMC_ACPLAN_BTC_CALC_SERVER including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_ex_admin_data  TYPE DMCCALCADM ,
ld_et_messages  TYPE DMC_BAL_T_MSG ,
it_ex_it_interval_boundaries  TYPE STANDARD TABLE OF DMCINTERVL,"TABLES PARAM
wa_ex_it_interval_boundaries  LIKE LINE OF it_ex_it_interval_boundaries ,
it_ex_it_reccounts  TYPE STANDARD TABLE OF DMCRECCNT,"TABLES PARAM
wa_ex_it_reccounts  LIKE LINE OF it_ex_it_reccounts ,
it_ex_it_tabwidths  TYPE STANDARD TABLE OF DMCTABWIDT,"TABLES PARAM
wa_ex_it_tabwidths  LIKE LINE OF it_ex_it_tabwidths ,
it_im_it_sel_criteria  TYPE STANDARD TABLE OF DMC_QRY,"TABLES PARAM
wa_im_it_sel_criteria  LIKE LINE OF it_im_it_sel_criteria .

DATA(ld_im_admin_data) = 'Check type of data required'.
DATA(ld_im_start_calculation) = 'some text here'.
DATA(ld_im_get_calculation) = 'some text here'.
DATA(ld_i_delete_job) = 'some text here'.

"populate fields of struture and append to itab
append wa_ex_it_interval_boundaries to it_ex_it_interval_boundaries.

"populate fields of struture and append to itab
append wa_ex_it_reccounts to it_ex_it_reccounts.

"populate fields of struture and append to itab
append wa_ex_it_tabwidths to it_ex_it_tabwidths.

"populate fields of struture and append to itab
append wa_im_it_sel_criteria to it_im_it_sel_criteria. . CALL FUNCTION 'DMC_ACPLAN_BTC_CALC_SERVER' EXPORTING im_admin_data = ld_im_admin_data * im_start_calculation = ld_im_start_calculation * im_get_calculation = ld_im_get_calculation * i_delete_job = ld_i_delete_job IMPORTING ex_admin_data = ld_ex_admin_data et_messages = ld_et_messages * TABLES * ex_it_interval_boundaries = it_ex_it_interval_boundaries * ex_it_reccounts = it_ex_it_reccounts * ex_it_tabwidths = it_ex_it_tabwidths * im_it_sel_criteria = it_im_it_sel_criteria EXCEPTIONS IMPORT_FAILED = 1 WRONG_CALL = 2 EXPORT_FAILED = 3 . " DMC_ACPLAN_BTC_CALC_SERVER
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_ex_admin_data  TYPE DMCCALCADM ,
ld_im_admin_data  TYPE DMCCALCADM ,
it_ex_it_interval_boundaries  TYPE STANDARD TABLE OF DMCINTERVL ,
wa_ex_it_interval_boundaries  LIKE LINE OF it_ex_it_interval_boundaries,
ld_et_messages  TYPE DMC_BAL_T_MSG ,
ld_im_start_calculation  TYPE SY-DEBUG ,
it_ex_it_reccounts  TYPE STANDARD TABLE OF DMCRECCNT ,
wa_ex_it_reccounts  LIKE LINE OF it_ex_it_reccounts,
ld_im_get_calculation  TYPE SY-DEBUG ,
it_ex_it_tabwidths  TYPE STANDARD TABLE OF DMCTABWIDT ,
wa_ex_it_tabwidths  LIKE LINE OF it_ex_it_tabwidths,
ld_i_delete_job  TYPE SY-DEBUG ,
it_im_it_sel_criteria  TYPE STANDARD TABLE OF DMC_QRY ,
wa_im_it_sel_criteria  LIKE LINE OF it_im_it_sel_criteria.

ld_im_admin_data = 'some text here'.

"populate fields of struture and append to itab
append wa_ex_it_interval_boundaries to it_ex_it_interval_boundaries.
ld_im_start_calculation = 'some text here'.

"populate fields of struture and append to itab
append wa_ex_it_reccounts to it_ex_it_reccounts.
ld_im_get_calculation = 'some text here'.

"populate fields of struture and append to itab
append wa_ex_it_tabwidths to it_ex_it_tabwidths.
ld_i_delete_job = 'some text here'.

"populate fields of struture and append to itab
append wa_im_it_sel_criteria to it_im_it_sel_criteria.

SAP Documentation for FM DMC_ACPLAN_BTC_CALC_SERVER


Access plan calculation in batch mode

EXAMPLE ...See here for full SAP fm documentation









Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name DMC_ACPLAN_BTC_CALC_SERVER or its description.