SAP DD_TTYP_SET_ACT Function Module for DD: Table type activ. prog. for mass processing program
DD_TTYP_SET_ACT is a standard dd ttyp set 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 activ. prog. for mass processing program 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 set act FM, simply by entering the name DD_TTYP_SET_ACT into the relevant SAP transaction such as SE37 or SE38.
Function Group: SDTTA
Program Name: SAPLSDTTA
Main Program: SAPLSDTTA
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function DD_TTYP_SET_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_SET_ACT'"DD: Table type activ. prog. for mass processing program.
EXPORTING
* ACT_MODE = 1 "
* EXT_CHK_PAR = "
* ACT_CTRL_PAR = "
* AUTH_CHK = 'X' "
* PRID = 0 "
* POINTER = ' ' "Field Name
* OFF = 0 "Obsolete
* LEN = 0 "Obsolete
* TIMER_ON = ' ' "
* TRACE = 0 "
TABLES
TTYP_NAMES = "
ACT_RESULTS = "
* 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_SET_ACT
ACT_MODE -
Data type: DDREFSTRUC-MODEDefault: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXT_CHK_PAR -
Data type: DCTTYPCTRLOptional: Yes
Call by Reference: No ( called with pass by value option)
ACT_CTRL_PAR -
Data type: DCTTYPACTPOptional: Yes
Call by Reference: No ( called with pass by value option)
AUTH_CHK -
Data type: DDREFSTRUC-BOOLDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PRID -
Data type: SY-TABIXOptional: Yes
Call by Reference: No ( called with pass by value option)
POINTER - Field Name
Data type: FNAM_____4Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
OFF - Obsolete
Data type: SY-FDPOSOptional: Yes
Call by Reference: No ( called with pass by value option)
LEN - Obsolete
Data type: SY-FDPOSOptional: Yes
Call by Reference: No ( called with pass by value option)
TIMER_ON -
Data type: DDREFSTRUC-STATEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TRACE -
Data type: SY-TABIXOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for DD_TTYP_SET_ACT
TTYP_NAMES -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ACT_RESULTS -
Data type: DDTTACTRESOptional: No
Call by Reference: No ( called with pass by value option)
CTRL_TABL_RES -
Data type: DCTABLRESOptional: 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_SET_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_act_mode | TYPE DDREFSTRUC-MODE, " 1 | |||
| lt_ttyp_names | TYPE STANDARD TABLE OF DDREFSTRUC, " | |||
| lv_illegal_value | TYPE DDREFSTRUC, " | |||
| lv_ext_chk_par | TYPE DCTTYPCTRL, " | |||
| lv_act_refused | TYPE DCTTYPCTRL, " | |||
| lt_act_results | TYPE STANDARD TABLE OF DDTTACTRES, " | |||
| lv_act_ctrl_par | TYPE DCTTYPACTP, " | |||
| lv_auth_chk | TYPE DDREFSTRUC-BOOL, " 'X' | |||
| lv_read_failure | TYPE DDREFSTRUC, " | |||
| lt_ctrl_tabl_res | TYPE STANDARD TABLE OF DCTABLRES, " | |||
| lv_prid | TYPE SY-TABIX, " 0 | |||
| lv_put_failure | TYPE SY, " | |||
| lv_pointer | TYPE FNAM_____4, " ' ' | |||
| lv_internal_failure | TYPE FNAM_____4, " | |||
| lv_off | TYPE SY-FDPOS, " 0 | |||
| lv_len | TYPE SY-FDPOS, " 0 | |||
| lv_timer_on | TYPE DDREFSTRUC-STATE, " ' ' | |||
| lv_trace | TYPE SY-TABIX. " 0 |
|   CALL FUNCTION 'DD_TTYP_SET_ACT' "DD: Table type activ. prog. for mass processing program |
| EXPORTING | ||
| ACT_MODE | = lv_act_mode | |
| EXT_CHK_PAR | = lv_ext_chk_par | |
| ACT_CTRL_PAR | = lv_act_ctrl_par | |
| AUTH_CHK | = lv_auth_chk | |
| PRID | = lv_prid | |
| POINTER | = lv_pointer | |
| OFF | = lv_off | |
| LEN | = lv_len | |
| TIMER_ON | = lv_timer_on | |
| TRACE | = lv_trace | |
| TABLES | ||
| TTYP_NAMES | = lt_ttyp_names | |
| ACT_RESULTS | = lt_act_results | |
| 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_SET_ACT | ||
ABAP code using 7.40 inline data declarations to call FM DD_TTYP_SET_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 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 TABIX FROM SY INTO @DATA(ld_prid). | ||||
| DATA(ld_pointer) | = ' '. | |||
| "SELECT single FDPOS FROM SY INTO @DATA(ld_off). | ||||
| "SELECT single FDPOS FROM SY INTO @DATA(ld_len). | ||||
| "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