SAP DD_TABL_ACT Function Module for DD: online activation with dependencies









DD_TABL_ACT is a standard dd tabl act SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for DD: online activation with dependencies 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 dd tabl act FM, simply by entering the name DD_TABL_ACT into the relevant SAP transaction such as SE37 or SE38.

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



Function DD_TABL_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_TABL_ACT'"DD: online activation with dependencies
EXPORTING
* DEVICE = 'F' "
* PATH = ' ' "
* PROTNAME = ' ' "
TABNAME = "
* TIMER_ON = ' ' "
* PRID = 0 "
* ACT_MODE = 1 "
* AUTH_CHK = 'X' "
* EXCOMMIT = 'X' "

IMPORTING
ACT_RESULT = "

TABLES
* ACT_RES_TAB = "

EXCEPTIONS
ACTOK_FAILURE = 1 DBCHANGE_FAILURE = 2 LOCKACT_FAILURE = 3 NTAB_GEN_FAILURE = 4 PUT_FAILURE = 5 READ_FAILURE = 6 UNLOCKACT_FAILURE = 7 ACCESS_FAILURE = 8
.



IMPORTING Parameters details for DD_TABL_ACT

DEVICE -

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

PATH -

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

PROTNAME -

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

TABNAME -

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

TIMER_ON -

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

PRID -

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

ACT_MODE -

Data type: DDREFSTRUC-MODE
Default: 1
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)

EXCOMMIT -

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

EXPORTING Parameters details for DD_TABL_ACT

ACT_RESULT -

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

TABLES Parameters details for DD_TABL_ACT

ACT_RES_TAB -

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

EXCEPTIONS details

ACTOK_FAILURE -

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

DBCHANGE_FAILURE -

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

LOCKACT_FAILURE -

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

NTAB_GEN_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)

READ_FAILURE -

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

UNLOCKACT_FAILURE -

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

ACCESS_FAILURE -

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

Copy and paste ABAP code example for DD_TABL_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_device  TYPE SPRWR-DEVICE, "   'F'
lv_act_result  TYPE SY-SUBRC, "   
lt_act_res_tab  TYPE STANDARD TABLE OF DCTABLRES, "   
lv_actok_failure  TYPE DCTABLRES, "   
lv_path  TYPE DCTABLRES, "   ' '
lv_dbchange_failure  TYPE DCTABLRES, "   
lv_protname  TYPE DCTABLRES, "   ' '
lv_lockact_failure  TYPE DCTABLRES, "   
lv_tabname  TYPE DD02L-TABNAME, "   
lv_ntab_gen_failure  TYPE DD02L, "   
lv_timer_on  TYPE DD02L, "   ' '
lv_put_failure  TYPE DD02L, "   
lv_prid  TYPE SY-TABIX, "   0
lv_read_failure  TYPE SY, "   
lv_act_mode  TYPE DDREFSTRUC-MODE, "   1
lv_unlockact_failure  TYPE DDREFSTRUC, "   
lv_auth_chk  TYPE DDREFSTRUC-BOOL, "   'X'
lv_access_failure  TYPE DDREFSTRUC, "   
lv_excommit  TYPE DCTABLACT-EXCOMMIT. "   'X'

  CALL FUNCTION 'DD_TABL_ACT'  "DD: online activation with dependencies
    EXPORTING
         DEVICE = lv_device
         PATH = lv_path
         PROTNAME = lv_protname
         TABNAME = lv_tabname
         TIMER_ON = lv_timer_on
         PRID = lv_prid
         ACT_MODE = lv_act_mode
         AUTH_CHK = lv_auth_chk
         EXCOMMIT = lv_excommit
    IMPORTING
         ACT_RESULT = lv_act_result
    TABLES
         ACT_RES_TAB = lt_act_res_tab
    EXCEPTIONS
        ACTOK_FAILURE = 1
        DBCHANGE_FAILURE = 2
        LOCKACT_FAILURE = 3
        NTAB_GEN_FAILURE = 4
        PUT_FAILURE = 5
        READ_FAILURE = 6
        UNLOCKACT_FAILURE = 7
        ACCESS_FAILURE = 8
. " DD_TABL_ACT




ABAP code using 7.40 inline data declarations to call FM DD_TABL_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 DEVICE FROM SPRWR INTO @DATA(ld_device).
DATA(ld_device) = 'F'.
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_act_result).
 
 
 
DATA(ld_path) = ' '.
 
 
DATA(ld_protname) = ' '.
 
 
"SELECT single TABNAME FROM DD02L INTO @DATA(ld_tabname).
 
 
DATA(ld_timer_on) = ' '.
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_prid).
 
 
"SELECT single MODE FROM DDREFSTRUC INTO @DATA(ld_act_mode).
DATA(ld_act_mode) = 1.
 
 
"SELECT single BOOL FROM DDREFSTRUC INTO @DATA(ld_auth_chk).
DATA(ld_auth_chk) = 'X'.
 
 
"SELECT single EXCOMMIT FROM DCTABLACT INTO @DATA(ld_excommit).
DATA(ld_excommit) = '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!