SAP Function Modules

DEV_EX_ST03_NEU SAP Function module - DEV Reporting: Extractor for ST03 Data







DEV_EX_ST03_NEU 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_EX_ST03_NEU 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_EX_ST03_NEU - DEV EX ST03 NEU





CALL FUNCTION 'DEV_EX_ST03_NEU' "DEV Reporting: Extractor for ST03 Data
* EXPORTING
*   is_dps_header =             " drp_header_s  DPS Extraktion: Kopfdaten
*   is_rfcdest_hrorg =          " drp_rfcdisplay  Anzeigestruktur fuer RFCDES-Pflege
*   iv_rfcdest_hrorg =          " drp_rfcdisplay-rfcdest  logische Destination (Wird bei Funktionsaufruf angegeben)
  IMPORTING
    es_dps_header =             " drp_header_s  DPS Extraktion: Kopfdaten
    ev_extractor_version =      " drp_header_s-version  Version des Funktionsbausteins
    ev_records =                " drp_data_s-counter  Anzahl der Meldungen
    ev_basis_release =          " drp_header_s-basis_release  R/3 Release
    ev_last_version =           " drp_header_s-version  Version der Ergebnisse
* TABLES
*   es_dps_data =               " drp_st03_data_neu_s  DPS Extraktion: ST03 ORG gesamt
*   es_dps_exception =          " bapiret2      Returnparameter
    .  "  DEV_EX_ST03_NEU

ABAP code example for Function Module DEV_EX_ST03_NEU





The ABAP code below is a full code listing to execute function module DEV_EX_ST03_NEU 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 ,
ld_ev_extractor_version  TYPE DRP_HEADER_S-VERSION ,
ld_ev_records  TYPE DRP_DATA_S-COUNTER ,
ld_ev_basis_release  TYPE DRP_HEADER_S-BASIS_RELEASE ,
ld_ev_last_version  TYPE DRP_HEADER_S-VERSION ,
it_es_dps_data  TYPE STANDARD TABLE OF DRP_ST03_DATA_NEU_S,"TABLES PARAM
wa_es_dps_data  LIKE LINE OF it_es_dps_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_is_rfcdest_hrorg) = 'Check type of data required'.

DATA(ld_iv_rfcdest_hrorg) = some text here

"populate fields of struture and append to itab
append wa_es_dps_data to it_es_dps_data.

"populate fields of struture and append to itab
append wa_es_dps_exception to it_es_dps_exception. . CALL FUNCTION 'DEV_EX_ST03_NEU' * EXPORTING * is_dps_header = ld_is_dps_header * is_rfcdest_hrorg = ld_is_rfcdest_hrorg * iv_rfcdest_hrorg = ld_iv_rfcdest_hrorg IMPORTING es_dps_header = ld_es_dps_header ev_extractor_version = ld_ev_extractor_version ev_records = ld_ev_records ev_basis_release = ld_ev_basis_release ev_last_version = ld_ev_last_version * TABLES * es_dps_data = it_es_dps_data * es_dps_exception = it_es_dps_exception . " DEV_EX_ST03_NEU
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_dps_data  TYPE STANDARD TABLE OF DRP_ST03_DATA_NEU_S ,
wa_es_dps_data  LIKE LINE OF it_es_dps_data,
ld_ev_extractor_version  TYPE DRP_HEADER_S-VERSION ,
ld_is_rfcdest_hrorg  TYPE DRP_RFCDISPLAY ,
it_es_dps_exception  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_es_dps_exception  LIKE LINE OF it_es_dps_exception,
ld_ev_records  TYPE DRP_DATA_S-COUNTER ,
ld_iv_rfcdest_hrorg  TYPE DRP_RFCDISPLAY-RFCDEST ,
ld_ev_basis_release  TYPE DRP_HEADER_S-BASIS_RELEASE ,
ld_ev_last_version  TYPE DRP_HEADER_S-VERSION .

ld_is_dps_header = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_es_dps_data to it_es_dps_data.
ld_is_rfcdest_hrorg = 'Check type of data required'.

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

ld_iv_rfcdest_hrorg = some text here

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_EX_ST03_NEU or its description.