SAP Function Modules

HRIQ_BW_DATA_EXTRACT_DELTA SAP Function module - Delta Queue: Calls customized FM for handling Delta of CM data







HRIQ_BW_DATA_EXTRACT_DELTA 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 HRIQ_BW_DATA_EXTRACT_DELTA into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: HRPIQ00BW_DELTA_QUEUE
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM HRIQ_BW_DATA_EXTRACT_DELTA - HRIQ BW DATA EXTRACT DELTA





CALL FUNCTION 'HRIQ_BW_DATA_EXTRACT_DELTA' "Delta Queue: Calls customized FM for handling Delta of CM data
  EXPORTING
    businessobject =            " t779w-busob   Objekttyp
    operation =                 " t779w-wfopr   Verbuchungsoperation
*   lfcod =                     " t779w-lfcod   Schlüssel: Logischer Funktionscode
    plog_tab_record =           " hrdbtab       Update-Tabelle
  TABLES
    events_per_operation =      " hrevents      Übergabestruktur Ereignisse für Ereignisermittlung
    before_image =              " bef_image     Before Image für Ereigniserzeugung im Verbucher
    after_image =               " aft_image     After Image für Ereigniserzeugung im Verbucher
    .  "  HRIQ_BW_DATA_EXTRACT_DELTA

ABAP code example for Function Module HRIQ_BW_DATA_EXTRACT_DELTA





The ABAP code below is a full code listing to execute function module HRIQ_BW_DATA_EXTRACT_DELTA 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:
it_events_per_operation  TYPE STANDARD TABLE OF HREVENTS,"TABLES PARAM
wa_events_per_operation  LIKE LINE OF it_events_per_operation ,
it_before_image  TYPE STANDARD TABLE OF BEF_IMAGE,"TABLES PARAM
wa_before_image  LIKE LINE OF it_before_image ,
it_after_image  TYPE STANDARD TABLE OF AFT_IMAGE,"TABLES PARAM
wa_after_image  LIKE LINE OF it_after_image .


SELECT single BUSOB
FROM T779W
INTO @DATA(ld_businessobject).


SELECT single WFOPR
FROM T779W
INTO @DATA(ld_operation).


SELECT single LFCOD
FROM T779W
INTO @DATA(ld_lfcod).

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

"populate fields of struture and append to itab
append wa_events_per_operation to it_events_per_operation.

"populate fields of struture and append to itab
append wa_before_image to it_before_image.

"populate fields of struture and append to itab
append wa_after_image to it_after_image. . CALL FUNCTION 'HRIQ_BW_DATA_EXTRACT_DELTA' EXPORTING businessobject = ld_businessobject operation = ld_operation * lfcod = ld_lfcod plog_tab_record = ld_plog_tab_record TABLES events_per_operation = it_events_per_operation before_image = it_before_image after_image = it_after_image . " HRIQ_BW_DATA_EXTRACT_DELTA
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_businessobject  TYPE T779W-BUSOB ,
it_events_per_operation  TYPE STANDARD TABLE OF HREVENTS ,
wa_events_per_operation  LIKE LINE OF it_events_per_operation,
ld_operation  TYPE T779W-WFOPR ,
it_before_image  TYPE STANDARD TABLE OF BEF_IMAGE ,
wa_before_image  LIKE LINE OF it_before_image,
ld_lfcod  TYPE T779W-LFCOD ,
it_after_image  TYPE STANDARD TABLE OF AFT_IMAGE ,
wa_after_image  LIKE LINE OF it_after_image,
ld_plog_tab_record  TYPE HRDBTAB .


SELECT single BUSOB
FROM T779W
INTO ld_businessobject.


"populate fields of struture and append to itab
append wa_events_per_operation to it_events_per_operation.

SELECT single WFOPR
FROM T779W
INTO ld_operation.


"populate fields of struture and append to itab
append wa_before_image to it_before_image.

SELECT single LFCOD
FROM T779W
INTO ld_lfcod.


"populate fields of struture and append to itab
append wa_after_image to it_after_image.
ld_plog_tab_record = 'Check type of data required'.

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