SAP DD_DOMA_ACT Function Module for









DD_DOMA_ACT is a standard dd doma act SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 dd doma act FM, simply by entering the name DD_DOMA_ACT into the relevant SAP transaction such as SE37 or SE38.

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



Function DD_DOMA_ACT 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 'DD_DOMA_ACT'"
EXPORTING
DOMA_NAME = "Name of the domain to be activated
* ACT_MODE = 9 "Activation mode
* AUTH_CHK = 'X' "
* PRID = 0 "Log ID if required
* DEVICE = 'T' "Device for the log
* PATH = ' ' "Path for the log
* PROTNAME = ' ' "Log name (alternative to PRID)
* TIMER_ON = ' ' "Timer activated
* TRACE = 0 "Trace activated

IMPORTING
ACT_RESULT = "Activation result

TABLES
* CTRL_TABL_RES = "Extra info. about act. of dependent tables

EXCEPTIONS
ILLEGAL_VALUE = 1 ACT_REFUSED = 2 READ_FAILURE = 3 PUT_FAILURE = 4 INTERNAL_FAILURE = 5
.



IMPORTING Parameters details for DD_DOMA_ACT

DOMA_NAME - Name of the domain to be activated

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

ACT_MODE - Activation mode

Data type: DDREFSTRUC-MODE
Default: 9
Optional: Yes
Call by Reference: No ( called with pass by value option)

AUTH_CHK -

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

PRID - Log ID if required

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

DEVICE - Device for the log

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

PATH - Path for the log

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

PROTNAME - Log name (alternative to PRID)

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

TIMER_ON - Timer activated

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

TRACE - Trace activated

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

EXPORTING Parameters details for DD_DOMA_ACT

ACT_RESULT - Activation result

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

TABLES Parameters details for DD_DOMA_ACT

CTRL_TABL_RES - Extra info. about act. of dependent tables

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

EXCEPTIONS details

ILLEGAL_VALUE -

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

ACT_REFUSED -

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

READ_FAILURE -

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

PUT_FAILURE -

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

INTERNAL_FAILURE -

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

Copy and paste ABAP code example for DD_DOMA_ACT 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_doma_name  TYPE DD01L-DOMNAME, "   
lv_act_result  TYPE SY-SUBRC, "   
lt_ctrl_tabl_res  TYPE STANDARD TABLE OF DCTABLRES, "   
lv_illegal_value  TYPE DCTABLRES, "   
lv_act_mode  TYPE DDREFSTRUC-MODE, "   9
lv_act_refused  TYPE DDREFSTRUC, "   
lv_auth_chk  TYPE DDREFSTRUC-BOOL, "   'X'
lv_read_failure  TYPE DDREFSTRUC, "   
lv_prid  TYPE SY-TABIX, "   0
lv_put_failure  TYPE SY, "   
lv_device  TYPE SPRWR-DEVICE, "   'T'
lv_internal_failure  TYPE SPRWR, "   
lv_path  TYPE SPRWR, "   ' '
lv_protname  TYPE SPRWR, "   ' '
lv_timer_on  TYPE DDREFSTRUC-STATE, "   ' '
lv_trace  TYPE SY-TABIX. "   0

  CALL FUNCTION 'DD_DOMA_ACT'  "
    EXPORTING
         DOMA_NAME = lv_doma_name
         ACT_MODE = lv_act_mode
         AUTH_CHK = lv_auth_chk
         PRID = lv_prid
         DEVICE = lv_device
         PATH = lv_path
         PROTNAME = lv_protname
         TIMER_ON = lv_timer_on
         TRACE = lv_trace
    IMPORTING
         ACT_RESULT = lv_act_result
    TABLES
         CTRL_TABL_RES = lt_ctrl_tabl_res
    EXCEPTIONS
        ILLEGAL_VALUE = 1
        ACT_REFUSED = 2
        READ_FAILURE = 3
        PUT_FAILURE = 4
        INTERNAL_FAILURE = 5
. " DD_DOMA_ACT




ABAP code using 7.40 inline data declarations to call FM DD_DOMA_ACT

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 DOMNAME FROM DD01L INTO @DATA(ld_doma_name).
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_act_result).
 
 
 
"SELECT single MODE FROM DDREFSTRUC INTO @DATA(ld_act_mode).
DATA(ld_act_mode) = 9.
 
 
"SELECT single BOOL FROM DDREFSTRUC INTO @DATA(ld_auth_chk).
DATA(ld_auth_chk) = 'X'.
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_prid).
 
 
"SELECT single DEVICE FROM SPRWR INTO @DATA(ld_device).
DATA(ld_device) = 'T'.
 
 
DATA(ld_path) = ' '.
 
DATA(ld_protname) = ' '.
 
"SELECT single STATE FROM DDREFSTRUC INTO @DATA(ld_timer_on).
DATA(ld_timer_on) = ' '.
 
"SELECT single TABIX FROM SY INTO @DATA(ld_trace).
 


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!