SAP STUO_GET_ORA_SYS_TABLE_2 Function Module for ST04 (Oracle): Get ORACLE System Table









STUO_GET_ORA_SYS_TABLE_2 is a standard stuo get ora sys table 2 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for ST04 (Oracle): Get ORACLE System Table 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 stuo get ora sys table 2 FM, simply by entering the name STUO_GET_ORA_SYS_TABLE_2 into the relevant SAP transaction such as SE37 or SE38.

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



Function STUO_GET_ORA_SYS_TABLE_2 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 'STUO_GET_ORA_SYS_TABLE_2'"ST04 (Oracle): Get ORACLE System Table
EXPORTING
ORASYSTABN = "
* WCLAUSE = "

IMPORTING
CURR_TIME = "
CURR_DATE = "
CURR_SYSTEM = "

TABLES
ORASYSTAB = "
ORASYSTABHEAD = "
* TAB_SEL = "Oracle System Table (V$ table)

EXCEPTIONS
TABLE_NOT_FOUND = 1 REPORT_GENERATION_ERROR = 2 STATEMENT_NOT_EXECUTABLE = 3 WRONG_DATABASE = 4
.



IMPORTING Parameters details for STUO_GET_ORA_SYS_TABLE_2

ORASYSTABN -

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

WCLAUSE -

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

EXPORTING Parameters details for STUO_GET_ORA_SYS_TABLE_2

CURR_TIME -

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

CURR_DATE -

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

CURR_SYSTEM -

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

TABLES Parameters details for STUO_GET_ORA_SYS_TABLE_2

ORASYSTAB -

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

ORASYSTABHEAD -

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

TAB_SEL - Oracle System Table (V$ table)

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

EXCEPTIONS details

TABLE_NOT_FOUND -

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

REPORT_GENERATION_ERROR -

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

STATEMENT_NOT_EXECUTABLE -

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

WRONG_DATABASE -

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

Copy and paste ABAP code example for STUO_GET_ORA_SYS_TABLE_2 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_curr_time  TYPE SY-UZEIT, "   
lt_orasystab  TYPE STANDARD TABLE OF LISTE, "   
lv_orasystabn  TYPE EXTENTS_TI-DB_OBJECT, "   
lv_table_not_found  TYPE EXTENTS_TI, "   
lv_wclause  TYPE TST04HELP-WCLAUSE, "   
lv_curr_date  TYPE SY-DATUM, "   
lt_orasystabhead  TYPE STANDARD TABLE OF ORASYSTABH, "   
lv_report_generation_error  TYPE ORASYSTABH, "   
lt_tab_sel  TYPE STANDARD TABLE OF ORASYSTABH, "   
lv_curr_system  TYPE TST04INST-DB_INSTANC, "   
lv_statement_not_executable  TYPE TST04INST, "   
lv_wrong_database  TYPE TST04INST. "   

  CALL FUNCTION 'STUO_GET_ORA_SYS_TABLE_2'  "ST04 (Oracle): Get ORACLE System Table
    EXPORTING
         ORASYSTABN = lv_orasystabn
         WCLAUSE = lv_wclause
    IMPORTING
         CURR_TIME = lv_curr_time
         CURR_DATE = lv_curr_date
         CURR_SYSTEM = lv_curr_system
    TABLES
         ORASYSTAB = lt_orasystab
         ORASYSTABHEAD = lt_orasystabhead
         TAB_SEL = lt_tab_sel
    EXCEPTIONS
        TABLE_NOT_FOUND = 1
        REPORT_GENERATION_ERROR = 2
        STATEMENT_NOT_EXECUTABLE = 3
        WRONG_DATABASE = 4
. " STUO_GET_ORA_SYS_TABLE_2




ABAP code using 7.40 inline data declarations to call FM STUO_GET_ORA_SYS_TABLE_2

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 UZEIT FROM SY INTO @DATA(ld_curr_time).
 
 
"SELECT single DB_OBJECT FROM EXTENTS_TI INTO @DATA(ld_orasystabn).
 
 
"SELECT single WCLAUSE FROM TST04HELP INTO @DATA(ld_wclause).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_curr_date).
 
 
 
 
"SELECT single DB_INSTANC FROM TST04INST INTO @DATA(ld_curr_system).
 
 
 


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!