SAP DB02_ORA_SELECT_DBA_SEGMENTS Function Module for DB02 (Oracle): dba_segments









DB02_ORA_SELECT_DBA_SEGMENTS is a standard db02 ora select dba segments SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for DB02 (Oracle): dba_segments 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 db02 ora select dba segments FM, simply by entering the name DB02_ORA_SELECT_DBA_SEGMENTS into the relevant SAP transaction such as SE37 or SE38.

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



Function DB02_ORA_SELECT_DBA_SEGMENTS 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 'DB02_ORA_SELECT_DBA_SEGMENTS'"DB02 (Oracle): dba_segments
EXPORTING
* SEG_NAME = '*' "
* TB_' ' = '*' "
* SEG_TYPE = '*' "
* KBYTES = 0 "
* NR_EXTENTS = 0 "
* WITH_BITMAP = ' ' "

TABLES
* DBA_SEGMENTS = "
.



IMPORTING Parameters details for DB02_ORA_SELECT_DBA_SEGMENTS

SEG_NAME -

Data type: SEGMENTS_S-SN
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TB_SPACE -

Data type: SEGMENTS_S-TS
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SEG_TYPE -

Data type: SEGMENTS_S-S_TYPE
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

KBYTES -

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

NR_EXTENTS -

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

WITH_BITMAP -

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

TABLES Parameters details for DB02_ORA_SELECT_DBA_SEGMENTS

DBA_SEGMENTS -

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

Copy and paste ABAP code example for DB02_ORA_SELECT_DBA_SEGMENTS 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_seg_name  TYPE SEGMENTS_S-SN, "   '*'
lt_dba_segments  TYPE STANDARD TABLE OF SEGMENTS_S, "   
lv_tb_space  TYPE SEGMENTS_S-TS, "   '*'
lv_seg_type  TYPE SEGMENTS_S-S_TYPE, "   '*'
lv_kbytes  TYPE SEGMENTS_S-KBYTES, "   0
lv_nr_extents  TYPE SEGMENTS_S-EXTENTS, "   0
lv_with_bitmap  TYPE TST04HELP-FLAG. "   ' '

  CALL FUNCTION 'DB02_ORA_SELECT_DBA_SEGMENTS'  "DB02 (Oracle): dba_segments
    EXPORTING
         SEG_NAME = lv_seg_name
         TB_SPACE = lv_tb_space
         SEG_TYPE = lv_seg_type
         KBYTES = lv_kbytes
         NR_EXTENTS = lv_nr_extents
         WITH_BITMAP = lv_with_bitmap
    TABLES
         DBA_SEGMENTS = lt_dba_segments
. " DB02_ORA_SELECT_DBA_SEGMENTS




ABAP code using 7.40 inline data declarations to call FM DB02_ORA_SELECT_DBA_SEGMENTS

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 SN FROM SEGMENTS_S INTO @DATA(ld_seg_name).
DATA(ld_seg_name) = '*'.
 
 
"SELECT single TS FROM SEGMENTS_S INTO @DATA(ld_tb_space).
DATA(ld_tb_space) = '*'.
 
"SELECT single S_TYPE FROM SEGMENTS_S INTO @DATA(ld_seg_type).
DATA(ld_seg_type) = '*'.
 
"SELECT single KBYTES FROM SEGMENTS_S INTO @DATA(ld_kbytes).
 
"SELECT single EXTENTS FROM SEGMENTS_S INTO @DATA(ld_nr_extents).
 
"SELECT single FLAG FROM TST04HELP INTO @DATA(ld_with_bitmap).
DATA(ld_with_bitmap) = ' '.
 


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!