SAP MEDIA_GETALL_SDB Function Module for









MEDIA_GETALL_SDB is a standard media getall sdb 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 media getall sdb FM, simply by entering the name MEDIA_GETALL_SDB into the relevant SAP transaction such as SE37 or SE38.

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



Function MEDIA_GETALL_SDB 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 'MEDIA_GETALL_SDB'"
EXPORTING
SYSTEM_STRUCT = "Internal Table for SAP Systems with DBA Scheduling
* CALL_MODE = 'C' "SAP DB: DBMRFC Call Mode

TABLES
MEDIA_TABLE = "SAP DB: Structure for Backup Media

EXCEPTIONS
CONNECT_INFO_ERROR = 1 CONNECT_INFO_INCONSISTENT = 2 EXECUTION_ERROR = 3 DBM_SYSTEM_ERROR = 4 DBM_EXECUTE_ERROR = 5 COMMUNICATION_ERROR = 6 SYSTEM_ERROR = 7 UNKNOWN_ERROR = 8 NO_MEDIA_FOUND = 9
.



IMPORTING Parameters details for MEDIA_GETALL_SDB

SYSTEM_STRUCT - Internal Table for SAP Systems with DBA Scheduling

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

CALL_MODE - SAP DB: DBMRFC Call Mode

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

TABLES Parameters details for MEDIA_GETALL_SDB

MEDIA_TABLE - SAP DB: Structure for Backup Media

Data type: SDB_MEDIA
Optional: No
Call by Reference: Yes

EXCEPTIONS details

CONNECT_INFO_ERROR -

Data type:
Optional: No
Call by Reference: Yes

CONNECT_INFO_INCONSISTENT -

Data type:
Optional: No
Call by Reference: Yes

EXECUTION_ERROR -

Data type:
Optional: No
Call by Reference: Yes

DBM_SYSTEM_ERROR -

Data type:
Optional: No
Call by Reference: Yes

DBM_EXECUTE_ERROR -

Data type:
Optional: No
Call by Reference: Yes

COMMUNICATION_ERROR -

Data type:
Optional: No
Call by Reference: Yes

SYSTEM_ERROR -

Data type:
Optional: No
Call by Reference: Yes

UNKNOWN_ERROR -

Data type:
Optional: No
Call by Reference: Yes

NO_MEDIA_FOUND -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for MEDIA_GETALL_SDB 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_media_table  TYPE STANDARD TABLE OF SDB_MEDIA, "   
lv_system_struct  TYPE SDBASI, "   
lv_connect_info_error  TYPE SDBASI, "   
lv_call_mode  TYPE SDB_CMODE, "   'C'
lv_connect_info_inconsistent  TYPE SDB_CMODE, "   
lv_execution_error  TYPE SDB_CMODE, "   
lv_dbm_system_error  TYPE SDB_CMODE, "   
lv_dbm_execute_error  TYPE SDB_CMODE, "   
lv_communication_error  TYPE SDB_CMODE, "   
lv_system_error  TYPE SDB_CMODE, "   
lv_unknown_error  TYPE SDB_CMODE, "   
lv_no_media_found  TYPE SDB_CMODE. "   

  CALL FUNCTION 'MEDIA_GETALL_SDB'  "
    EXPORTING
         SYSTEM_STRUCT = lv_system_struct
         CALL_MODE = lv_call_mode
    TABLES
         MEDIA_TABLE = lt_media_table
    EXCEPTIONS
        CONNECT_INFO_ERROR = 1
        CONNECT_INFO_INCONSISTENT = 2
        EXECUTION_ERROR = 3
        DBM_SYSTEM_ERROR = 4
        DBM_EXECUTE_ERROR = 5
        COMMUNICATION_ERROR = 6
        SYSTEM_ERROR = 7
        UNKNOWN_ERROR = 8
        NO_MEDIA_FOUND = 9
. " MEDIA_GETALL_SDB




ABAP code using 7.40 inline data declarations to call FM MEDIA_GETALL_SDB

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.

 
 
 
DATA(ld_call_mode) = 'C'.
 
 
 
 
 
 
 
 
 


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!