SAP Function Modules

RSDU_CREATE_TABLE_AS_SELEC_TDA SAP Function module - Create Table and Fill According to Selection







RSDU_CREATE_TABLE_AS_SELEC_TDA is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name RSDU_CREATE_TABLE_AS_SELEC_TDA into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: RSDU_SQL_ADA
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM RSDU_CREATE_TABLE_AS_SELEC_TDA - RSDU CREATE TABLE AS SELEC TDA





CALL FUNCTION 'RSDU_CREATE_TABLE_AS_SELEC_TDA' "Create Table and Fill According to Selection
  EXPORTING
    i_newtablnm =               " rsd_tablnm
    i_t_select =                " rsdu_t_abapsource
*   i_reftablnm =               " rsd_tablnm
*   i_refstruct =               " any
*   i_permanent = RS_C_FALSE    " rs_bool       Boolean
*   i_parallel_degree = 1       " i
  CHANGING
    c_processed = RS_C_FALSE    " rs_bool       Boolean
  EXCEPTIONS
    SQL_ERROR = 1               "               SQL Error in CREATE TABLE Statement
    .  "  RSDU_CREATE_TABLE_AS_SELEC_TDA

ABAP code example for Function Module RSDU_CREATE_TABLE_AS_SELEC_TDA





The ABAP code below is a full code listing to execute function module RSDU_CREATE_TABLE_AS_SELEC_TDA including all data declarations. The code uses 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 original method of declaring data variables up front. 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).


DATA(ld_c_processed) = 'Check type of data required'.
DATA(ld_i_newtablnm) = 'Check type of data required'.
DATA(ld_i_t_select) = 'Check type of data required'.
DATA(ld_i_reftablnm) = 'Check type of data required'.
DATA(ld_i_refstruct) = 'Check type of data required'.
DATA(ld_i_permanent) = 'Check type of data required'.
DATA(ld_i_parallel_degree) = 'Check type of data required'. . CALL FUNCTION 'RSDU_CREATE_TABLE_AS_SELEC_TDA' EXPORTING i_newtablnm = ld_i_newtablnm i_t_select = ld_i_t_select * i_reftablnm = ld_i_reftablnm * i_refstruct = ld_i_refstruct * i_permanent = ld_i_permanent * i_parallel_degree = ld_i_parallel_degree CHANGING c_processed = ld_c_processed EXCEPTIONS SQL_ERROR = 1 . " RSDU_CREATE_TABLE_AS_SELEC_TDA
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_c_processed  TYPE RS_BOOL ,
ld_i_newtablnm  TYPE RSD_TABLNM ,
ld_i_t_select  TYPE RSDU_T_ABAPSOURCE ,
ld_i_reftablnm  TYPE RSD_TABLNM ,
ld_i_refstruct  TYPE ANY ,
ld_i_permanent  TYPE RS_BOOL ,
ld_i_parallel_degree  TYPE I .

ld_c_processed = 'Check type of data required'.
ld_i_newtablnm = 'Check type of data required'.
ld_i_t_select = 'Check type of data required'.
ld_i_reftablnm = 'Check type of data required'.
ld_i_refstruct = 'Check type of data required'.
ld_i_permanent = 'Check type of data required'.
ld_i_parallel_degree = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name RSDU_CREATE_TABLE_AS_SELEC_TDA or its description.