SAP DD_TTYP_ACT Function Module for DD: Table type activator for single processing









DD_TTYP_ACT is a standard dd ttyp 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: Table type activator for single processing 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 ttyp act FM, simply by entering the name DD_TTYP_ACT into the relevant SAP transaction such as SE37 or SE38.

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



Function DD_TTYP_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_TTYP_ACT'"DD: Table type activator for single processing
EXPORTING
TTYP_NAME = "Name of Table Type to be Activated
* ACT_MODE = 9 "Activation mode
* AUTH_CHK = 'X' "
* PRID = 0 "
* DEVICE = 'T' "
* PATH = ' ' "
* PROTNAME = ' ' "
* TIMER_ON = ' ' "
* TRACE = 0 "Trace ON

IMPORTING
ACT_RESULT = "

TABLES
* CTRL_TABL_RES = "

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



IMPORTING Parameters details for DD_TTYP_ACT

TTYP_NAME - Name of Table Type to be Activated

Data type: DD40L-TYPENAME
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 -

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

DEVICE -

Data type: SPRWR-DEVICE
Default: 'T'
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)

TIMER_ON -

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

TRACE - Trace ON

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

EXPORTING Parameters details for DD_TTYP_ACT

ACT_RESULT -

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

TABLES Parameters details for DD_TTYP_ACT

CTRL_TABL_RES -

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_TTYP_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_ttyp_name  TYPE DD40L-TYPENAME, "   
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_TTYP_ACT'  "DD: Table type activator for single processing
    EXPORTING
         TTYP_NAME = lv_ttyp_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_TTYP_ACT




ABAP code using 7.40 inline data declarations to call FM DD_TTYP_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 TYPENAME FROM DD40L INTO @DATA(ld_ttyp_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!