SAP SCWK_GET_TADIR Function Module for









SCWK_GET_TADIR is a standard scwk get tadir 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 scwk get tadir FM, simply by entering the name SCWK_GET_TADIR into the relevant SAP transaction such as SE37 or SE38.

Function Group: SCWK
Program Name: SAPLSCWK
Main Program: SAPLSCWK
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function SCWK_GET_TADIR 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 'SCWK_GET_TADIR'"
EXPORTING
IV_READ_TYPE = "Single-Character Flag
IV_OBJTYPE = "Character Field Length = 10
IV_TABNAME = "30 Characters
IV_SYSNAME = "Character Field, 8 Characters Long
IV_SYS_REL = "3-Byte Field
IV_READTSTMP = "Correction Workbench: Time Stamp

IMPORTING
EV_READTSTMP = "Correction Workbench: Time Stamp

TABLES
TT_OBJECTS = "Correction Workbench: Send Objects

EXCEPTIONS
NO_OBJECTS_FOUND = 1 READ_ERROR = 2
.



IMPORTING Parameters details for SCWK_GET_TADIR

IV_READ_TYPE - Single-Character Flag

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

IV_OBJTYPE - Character Field Length = 10

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

IV_TABNAME - 30 Characters

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

IV_SYSNAME - Character Field, 8 Characters Long

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

IV_SYS_REL - 3-Byte Field

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

IV_READTSTMP - Correction Workbench: Time Stamp

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

EXPORTING Parameters details for SCWK_GET_TADIR

EV_READTSTMP - Correction Workbench: Time Stamp

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

TABLES Parameters details for SCWK_GET_TADIR

TT_OBJECTS - Correction Workbench: Send Objects

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

EXCEPTIONS details

NO_OBJECTS_FOUND - No objects found

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

READ_ERROR - Error occurred when reading

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

Copy and paste ABAP code example for SCWK_GET_TADIR 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:
lt_tt_objects  TYPE STANDARD TABLE OF SCWB_NOEX, "   
lv_ev_readtstmp  TYPE SCWB_NOIN-READTSTMP, "   
lv_iv_read_type  TYPE SCWB_NOIN-READ_TYPE, "   
lv_no_objects_found  TYPE SCWB_NOIN, "   
lv_iv_objtype  TYPE SCWB_NOIN-OBJTYPE, "   
lv_read_error  TYPE SCWB_NOIN, "   
lv_iv_tabname  TYPE SCWB_NOIN-TABNAME, "   
lv_iv_sysname  TYPE SCWB_NOIN-SYSNAME, "   
lv_iv_sys_rel  TYPE SCWB_NOIN-SYS_REL, "   
lv_iv_readtstmp  TYPE SCWB_NOIN-READTSTMP. "   

  CALL FUNCTION 'SCWK_GET_TADIR'  "
    EXPORTING
         IV_READ_TYPE = lv_iv_read_type
         IV_OBJTYPE = lv_iv_objtype
         IV_TABNAME = lv_iv_tabname
         IV_SYSNAME = lv_iv_sysname
         IV_SYS_REL = lv_iv_sys_rel
         IV_READTSTMP = lv_iv_readtstmp
    IMPORTING
         EV_READTSTMP = lv_ev_readtstmp
    TABLES
         TT_OBJECTS = lt_tt_objects
    EXCEPTIONS
        NO_OBJECTS_FOUND = 1
        READ_ERROR = 2
. " SCWK_GET_TADIR




ABAP code using 7.40 inline data declarations to call FM SCWK_GET_TADIR

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 READTSTMP FROM SCWB_NOIN INTO @DATA(ld_ev_readtstmp).
 
"SELECT single READ_TYPE FROM SCWB_NOIN INTO @DATA(ld_iv_read_type).
 
 
"SELECT single OBJTYPE FROM SCWB_NOIN INTO @DATA(ld_iv_objtype).
 
 
"SELECT single TABNAME FROM SCWB_NOIN INTO @DATA(ld_iv_tabname).
 
"SELECT single SYSNAME FROM SCWB_NOIN INTO @DATA(ld_iv_sysname).
 
"SELECT single SYS_REL FROM SCWB_NOIN INTO @DATA(ld_iv_sys_rel).
 
"SELECT single READTSTMP FROM SCWB_NOIN INTO @DATA(ld_iv_readtstmp).
 


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!