SAP Function Modules

DEV_READ_TRPSTATUS_DATA SAP Function module - DEV Reporting: Extraktor for Transport Header (Return Code) Raw Data







DEV_READ_TRPSTATUS_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_TRPSTATUS_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_TRPSTATUS_DATA - DEV READ TRPSTATUS DATA





CALL FUNCTION 'DEV_READ_TRPSTATUS_DATA' "DEV Reporting: Extraktor for Transport Header (Return Code) Raw Data
* EXPORTING
*   is_dps_header =             " drp_header_s  DPS Extraktion: Kopfdaten
*   iv_rfcdest_hrorg =          " drp_rfcdisplay-rfcdest  logische Destination (Wird bei Funktionsaufruf angegeben)
*   iv_start =                  " sy-datum      Aktuelles Datum des Applikationsservers
*   iv_end =                    " sy-datum      Aktuelles Datum des Applikationsservers
*   iv_pattern =                " e070-trkorr   Auftrag/Aufgabe
*   iv_error_only =             " e071k-flag    Einstelliges Kennzeichen
*   iv_min_rc =                 " drp_trpstatus_s-rc  int1
  IMPORTING
    es_dps_header =             " drp_header_s  DPS Extraktion: Kopfdaten
  TABLES
*   es_data =                   " drp_trpstatus_all_s  DPS Extraktion: ST22 Rohdaten
*   es_dps_exception =          " bapiret2      Returnparameter
    is_e070 =                   " e070          Transportsystem: Header von Aufträgen/Aufgaben
    .  "  DEV_READ_TRPSTATUS_DATA

ABAP code example for Function Module DEV_READ_TRPSTATUS_DATA





The ABAP code below is a full code listing to execute function module DEV_READ_TRPSTATUS_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_TRPSTATUS_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 ,
it_is_e070  TYPE STANDARD TABLE OF E070,"TABLES PARAM
wa_is_e070  LIKE LINE OF it_is_e070 .

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

DATA(ld_iv_rfcdest_hrorg) = some text here
DATA(ld_iv_start) = '20210129'.
DATA(ld_iv_end) = '20210129'.

SELECT single TRKORR
FROM E070
INTO @DATA(ld_iv_pattern).


SELECT single FLAG
FROM E071K
INTO @DATA(ld_iv_error_only).


DATA(ld_iv_min_rc) = 123

"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.

"populate fields of struture and append to itab
append wa_is_e070 to it_is_e070. . CALL FUNCTION 'DEV_READ_TRPSTATUS_DATA' * EXPORTING * is_dps_header = ld_is_dps_header * iv_rfcdest_hrorg = ld_iv_rfcdest_hrorg * iv_start = ld_iv_start * iv_end = ld_iv_end * iv_pattern = ld_iv_pattern * iv_error_only = ld_iv_error_only * iv_min_rc = ld_iv_min_rc IMPORTING es_dps_header = ld_es_dps_header TABLES * es_data = it_es_data * es_dps_exception = it_es_dps_exception is_e070 = it_is_e070 . " DEV_READ_TRPSTATUS_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_TRPSTATUS_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_iv_start  TYPE SY-DATUM ,
it_is_e070  TYPE STANDARD TABLE OF E070 ,
wa_is_e070  LIKE LINE OF it_is_e070,
ld_iv_end  TYPE SY-DATUM ,
ld_iv_pattern  TYPE E070-TRKORR ,
ld_iv_error_only  TYPE E071K-FLAG ,
ld_iv_min_rc  TYPE DRP_TRPSTATUS_S-RC .

ld_is_dps_header = '20210129'.

"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.
ld_iv_start = '20210129'.

"populate fields of struture and append to itab
append wa_is_e070 to it_is_e070.
ld_iv_end = '20210129'.

SELECT single TRKORR
FROM E070
INTO ld_iv_pattern.


SELECT single FLAG
FROM E071K
INTO ld_iv_error_only.


ld_iv_min_rc = 123

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