SAP Function Modules

DMC_DELETE_OBJECT SAP Function module







DMC_DELETE_OBJECT 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_DELETE_OBJECT into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: DMCGUI
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM DMC_DELETE_OBJECT - DMC DELETE OBJECT





CALL FUNCTION 'DMC_DELETE_OBJECT' "
  EXPORTING
    typex =                     " dmc_rti       DMC: Flag that specifies the class
*   project_id =                " dmc_prjct-ident  DMC: General ID
*   subproject_id =             " dmc_sprjct-ident  DMC: General ID
*   conv_object_id =            " dmc_cobj-ident  DMC: General ID
*   rule_id =                   " dmc_rule-ident  DMC: General ID
*   appl_id =                   " dmc_anwdg-ident  DMC: General ID
*   ditypex_id =                " dmc_isbtyp    DMC: Application type ISB
    applic =                    " dmc_applic    DMC tool:  Application
*   im_with_popup = DMCT_TRUE   " boolean       Query popup: yes/no
  EXCEPTIONS
    OBJECT_DOES_NOT_EXIST = 1   "
    INVALID_APPLICATION = 2     "
    APPLIC_NOT_SET = 3          "
    .  "  DMC_DELETE_OBJECT

ABAP code example for Function Module DMC_DELETE_OBJECT





The ABAP code below is a full code listing to execute function module DMC_DELETE_OBJECT 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_typex) = 'Check type of data required'.

SELECT single IDENT
FROM DMC_PRJCT
INTO @DATA(ld_project_id).


SELECT single IDENT
FROM DMC_SPRJCT
INTO @DATA(ld_subproject_id).


SELECT single IDENT
FROM DMC_COBJ
INTO @DATA(ld_conv_object_id).


SELECT single IDENT
FROM DMC_RULE
INTO @DATA(ld_rule_id).


SELECT single IDENT
FROM DMC_ANWDG
INTO @DATA(ld_appl_id).

DATA(ld_ditypex_id) = 'Check type of data required'.
DATA(ld_applic) = 'Check type of data required'.
DATA(ld_im_with_popup) = 'Check type of data required'. . CALL FUNCTION 'DMC_DELETE_OBJECT' EXPORTING typex = ld_typex * project_id = ld_project_id * subproject_id = ld_subproject_id * conv_object_id = ld_conv_object_id * rule_id = ld_rule_id * appl_id = ld_appl_id * ditypex_id = ld_ditypex_id applic = ld_applic * im_with_popup = ld_im_with_popup EXCEPTIONS OBJECT_DOES_NOT_EXIST = 1 INVALID_APPLICATION = 2 APPLIC_NOT_SET = 3 . " DMC_DELETE_OBJECT
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_typex  TYPE DMC_RTI ,
ld_project_id  TYPE DMC_PRJCT-IDENT ,
ld_subproject_id  TYPE DMC_SPRJCT-IDENT ,
ld_conv_object_id  TYPE DMC_COBJ-IDENT ,
ld_rule_id  TYPE DMC_RULE-IDENT ,
ld_appl_id  TYPE DMC_ANWDG-IDENT ,
ld_ditypex_id  TYPE DMC_ISBTYP ,
ld_applic  TYPE DMC_APPLIC ,
ld_im_with_popup  TYPE BOOLEAN .

ld_typex = 'Check type of data required'.

SELECT single IDENT
FROM DMC_PRJCT
INTO ld_project_id.


SELECT single IDENT
FROM DMC_SPRJCT
INTO ld_subproject_id.


SELECT single IDENT
FROM DMC_COBJ
INTO ld_conv_object_id.


SELECT single IDENT
FROM DMC_RULE
INTO ld_rule_id.


SELECT single IDENT
FROM DMC_ANWDG
INTO ld_appl_id.

ld_ditypex_id = 'Check type of data required'.
ld_applic = 'Check type of data required'.
ld_im_with_popup = 'Check type of data required'.

SAP Documentation for FM DMC_DELETE_OBJECT


Makes it possible to delete applications, projects, subprojects, conversion objects, transfer rules for the DMC tool. ...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_DELETE_OBJECT or its description.