SAP RS_TABLE_LIST_CREATE Function Module for









RS_TABLE_LIST_CREATE is a standard rs table list create 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 rs table list create FM, simply by entering the name RS_TABLE_LIST_CREATE into the relevant SAP transaction such as SE37 or SE38.

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



Function RS_TABLE_LIST_CREATE 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 'RS_TABLE_LIST_CREATE'"
EXPORTING
TABLE_NAME = "Table name
* ACTION = 'ANZE' "
* WITHOUT_SUBMIT = ' ' "
* GENERATION_FORCED = "
* NEW_SEL = "
* NO_STRUCTURE_CHECK = ' ' "
* DATA_EXIT = ' ' "

IMPORTING
PROGNAME = "

TABLES
* SELTAB = "

EXCEPTIONS
TABLE_IS_STRUCTURE = 1 TABLE_NOT_EXISTS = 2 DB_NOT_EXISTS = 3 NO_PERMISSION = 4 NO_CHANGE_ALLOWED = 5
.



IMPORTING Parameters details for RS_TABLE_LIST_CREATE

TABLE_NAME - Table name

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

ACTION -

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

WITHOUT_SUBMIT -

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

GENERATION_FORCED -

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

NEW_SEL -

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

NO_STRUCTURE_CHECK -

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

DATA_EXIT -

Data type: RS38L-NAME
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RS_TABLE_LIST_CREATE

PROGNAME -

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

TABLES Parameters details for RS_TABLE_LIST_CREATE

SELTAB -

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

EXCEPTIONS details

TABLE_IS_STRUCTURE -

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

TABLE_NOT_EXISTS -

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

DB_NOT_EXISTS -

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

NO_PERMISSION -

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

NO_CHANGE_ALLOWED -

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

Copy and paste ABAP code example for RS_TABLE_LIST_CREATE 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_seltab  TYPE STANDARD TABLE OF RSPARAMS, "   
lv_progname  TYPE RSNEWLENG-PROGRAMM, "   
lv_table_name  TYPE RSNEWLENG, "   
lv_table_is_structure  TYPE RSNEWLENG, "   
lv_action  TYPE SY-UCOMM, "   'ANZE'
lv_table_not_exists  TYPE SY, "   
lv_db_not_exists  TYPE SY, "   
lv_without_submit  TYPE SY, "   SPACE
lv_no_permission  TYPE SY, "   
lv_generation_forced  TYPE SY, "   
lv_new_sel  TYPE SY, "   
lv_no_change_allowed  TYPE SY, "   
lv_no_structure_check  TYPE SY, "   SPACE
lv_data_exit  TYPE RS38L-NAME. "   SPACE

  CALL FUNCTION 'RS_TABLE_LIST_CREATE'  "
    EXPORTING
         TABLE_NAME = lv_table_name
         ACTION = lv_action
         WITHOUT_SUBMIT = lv_without_submit
         GENERATION_FORCED = lv_generation_forced
         NEW_SEL = lv_new_sel
         NO_STRUCTURE_CHECK = lv_no_structure_check
         DATA_EXIT = lv_data_exit
    IMPORTING
         PROGNAME = lv_progname
    TABLES
         SELTAB = lt_seltab
    EXCEPTIONS
        TABLE_IS_STRUCTURE = 1
        TABLE_NOT_EXISTS = 2
        DB_NOT_EXISTS = 3
        NO_PERMISSION = 4
        NO_CHANGE_ALLOWED = 5
. " RS_TABLE_LIST_CREATE




ABAP code using 7.40 inline data declarations to call FM RS_TABLE_LIST_CREATE

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 PROGRAMM FROM RSNEWLENG INTO @DATA(ld_progname).
 
 
 
"SELECT single UCOMM FROM SY INTO @DATA(ld_action).
DATA(ld_action) = 'ANZE'.
 
 
 
DATA(ld_without_submit) = ' '.
 
 
 
 
 
DATA(ld_no_structure_check) = ' '.
 
"SELECT single NAME FROM RS38L INTO @DATA(ld_data_exit).
DATA(ld_data_exit) = ' '.
 


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!