SAP Function Modules

DEV_READ_DB02_DATA SAP Function module - DEV Reporting: Extraktor for DB02 Raw Data







DEV_READ_DB02_DATA is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name DEV_READ_DB02_DATA into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: DEV_EXTRACTOR
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM DEV_READ_DB02_DATA - DEV READ DB02 DATA





CALL FUNCTION 'DEV_READ_DB02_DATA' "DEV Reporting: Extraktor for DB02 Raw Data
* EXPORTING
*   is_dps_header =             " drp_header_s  DPS Extraktion: Kopfdaten
*   iv_rfcdest_hrorg =          " drp_rfcdisplay-rfcdest  logische Destination (Wird bei Funktionsaufruf angegeben)
  IMPORTING
    es_dps_header =             " drp_header_s  DPS Extraktion: Kopfdaten
* TABLES
*   es_data =                   " drp_db02_all_s  DPS Extraktion: ST22 Rohdaten
*   es_dps_exception =          " bapiret2      Returnparameter
    .  "  DEV_READ_DB02_DATA

ABAP code example for Function Module DEV_READ_DB02_DATA





The ABAP code below is a full code listing to execute function module DEV_READ_DB02_DATA including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_es_dps_header  TYPE DRP_HEADER_S ,
it_es_data  TYPE STANDARD TABLE OF DRP_DB02_ALL_S,"TABLES PARAM
wa_es_data  LIKE LINE OF it_es_data ,
it_es_dps_exception  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_es_dps_exception  LIKE LINE OF it_es_dps_exception .

DATA(ld_is_dps_header) = 'Check type of data required'.

DATA(ld_iv_rfcdest_hrorg) = some text here

"populate fields of struture and append to itab
append wa_es_data to it_es_data.

"populate fields of struture and append to itab
append wa_es_dps_exception to it_es_dps_exception. . CALL FUNCTION 'DEV_READ_DB02_DATA' * EXPORTING * is_dps_header = ld_is_dps_header * iv_rfcdest_hrorg = ld_iv_rfcdest_hrorg IMPORTING es_dps_header = ld_es_dps_header * TABLES * es_data = it_es_data * es_dps_exception = it_es_dps_exception . " DEV_READ_DB02_DATA
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_es_dps_header  TYPE DRP_HEADER_S ,
ld_is_dps_header  TYPE DRP_HEADER_S ,
it_es_data  TYPE STANDARD TABLE OF DRP_DB02_ALL_S ,
wa_es_data  LIKE LINE OF it_es_data,
ld_iv_rfcdest_hrorg  TYPE DRP_RFCDISPLAY-RFCDEST ,
it_es_dps_exception  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_es_dps_exception  LIKE LINE OF it_es_dps_exception.

ld_is_dps_header = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_es_data to it_es_data.

ld_iv_rfcdest_hrorg = some text here

"populate fields of struture and append to itab
append wa_es_dps_exception to it_es_dps_exception.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name DEV_READ_DB02_DATA or its description.