SAP STU4_DB02_GET_SPACE_STATS Function Module for iSeries: Get Space Statistics









STU4_DB02_GET_SPACE_STATS is a standard stu4 db02 get space stats SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for iSeries: Get Space Statistics 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 stu4 db02 get space stats FM, simply by entering the name STU4_DB02_GET_SPACE_STATS into the relevant SAP transaction such as SE37 or SE38.

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



Function STU4_DB02_GET_SPACE_STATS 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 'STU4_DB02_GET_SPACE_STATS'"iSeries: Get Space Statistics
EXPORTING
* CURRSYST = "DB6: System Registration Table

TABLES
* DAY_HIST = "iSeries: Space Statistics
* WEEK_HIST = "iSeries: Space Statistics
* MONTH_HIST = "iSeries: Space Statistics
* DAY_AVERAGE = "iSeries: Space Statistics
* WEEK_AVERAGE = "iSeries: Space Statistics
* MONTH_AVERAGE = "iSeries: Avarage Growth Rate per Table
.



IMPORTING Parameters details for STU4_DB02_GET_SPACE_STATS

CURRSYST - DB6: System Registration Table

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

TABLES Parameters details for STU4_DB02_GET_SPACE_STATS

DAY_HIST - iSeries: Space Statistics

Data type: DB4HISTSPC
Optional: Yes
Call by Reference: Yes

WEEK_HIST - iSeries: Space Statistics

Data type: DB4HISTSPC
Optional: Yes
Call by Reference: Yes

MONTH_HIST - iSeries: Space Statistics

Data type: DB4HISTSPC
Optional: Yes
Call by Reference: Yes

DAY_AVERAGE - iSeries: Space Statistics

Data type: DB4AVGSPC
Optional: Yes
Call by Reference: Yes

WEEK_AVERAGE - iSeries: Space Statistics

Data type: DB4AVGSPC
Optional: Yes
Call by Reference: Yes

MONTH_AVERAGE - iSeries: Avarage Growth Rate per Table

Data type: DB4AVGSPC
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for STU4_DB02_GET_SPACE_STATS 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_currsyst  TYPE DB6NAVSYST, "   
lt_day_hist  TYPE STANDARD TABLE OF DB4HISTSPC, "   
lt_week_hist  TYPE STANDARD TABLE OF DB4HISTSPC, "   
lt_month_hist  TYPE STANDARD TABLE OF DB4HISTSPC, "   
lt_day_average  TYPE STANDARD TABLE OF DB4AVGSPC, "   
lt_week_average  TYPE STANDARD TABLE OF DB4AVGSPC, "   
lt_month_average  TYPE STANDARD TABLE OF DB4AVGSPC. "   

  CALL FUNCTION 'STU4_DB02_GET_SPACE_STATS'  "iSeries: Get Space Statistics
    EXPORTING
         CURRSYST = lv_currsyst
    TABLES
         DAY_HIST = lt_day_hist
         WEEK_HIST = lt_week_hist
         MONTH_HIST = lt_month_hist
         DAY_AVERAGE = lt_day_average
         WEEK_AVERAGE = lt_week_average
         MONTH_AVERAGE = lt_month_average
. " STU4_DB02_GET_SPACE_STATS




ABAP code using 7.40 inline data declarations to call FM STU4_DB02_GET_SPACE_STATS

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.

 
 
 
 
 
 
 


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!