SAP Function Modules

OIRE_INSERT_DTF SAP Function module - Insert the SSR PC transactions in the DTF tables







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

Associated Function Group: OIRE_PC_DTF
Released Date: Not Released
Processing type: Start update immediately (start immed)
update module start immediate settings


Pattern for FM OIRE_INSERT_DTF - OIRE INSERT DTF





CALL FUNCTION 'OIRE_INSERT_DTF' "Insert the SSR PC transactions in the DTF tables
* EXPORTING
*   i_dtf_is_sorted =           " char1         Single-character flag
  TABLES
    t_oireuplkxxxx =            " oireuplkxxxx
    t_oireuplpxxxx =            " oireuplpxxxx
*   t_uplnr =                   " oire1_t_uplnr
  EXCEPTIONS
    INSERT_FAILED = 1           "               Insert failed.
    NO_NUMBER_INTERVAL = 2      "               Number interval not maintained yet.
    GET_NEXT_NUMBER_FAILED = 3  "               Next wasn't determined
    .  "  OIRE_INSERT_DTF

ABAP code example for Function Module OIRE_INSERT_DTF





The ABAP code below is a full code listing to execute function module OIRE_INSERT_DTF 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_t_oireuplkxxxx  TYPE STANDARD TABLE OF OIREUPLKXXXX,"TABLES PARAM
wa_t_oireuplkxxxx  LIKE LINE OF it_t_oireuplkxxxx ,
it_t_oireuplpxxxx  TYPE STANDARD TABLE OF OIREUPLPXXXX,"TABLES PARAM
wa_t_oireuplpxxxx  LIKE LINE OF it_t_oireuplpxxxx ,
it_t_uplnr  TYPE STANDARD TABLE OF OIRE1_T_UPLNR,"TABLES PARAM
wa_t_uplnr  LIKE LINE OF it_t_uplnr .

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

"populate fields of struture and append to itab
append wa_t_oireuplkxxxx to it_t_oireuplkxxxx.

"populate fields of struture and append to itab
append wa_t_oireuplpxxxx to it_t_oireuplpxxxx.

"populate fields of struture and append to itab
append wa_t_uplnr to it_t_uplnr. . CALL FUNCTION 'OIRE_INSERT_DTF' * EXPORTING * i_dtf_is_sorted = ld_i_dtf_is_sorted TABLES t_oireuplkxxxx = it_t_oireuplkxxxx t_oireuplpxxxx = it_t_oireuplpxxxx * t_uplnr = it_t_uplnr EXCEPTIONS INSERT_FAILED = 1 NO_NUMBER_INTERVAL = 2 GET_NEXT_NUMBER_FAILED = 3 . " OIRE_INSERT_DTF
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here 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_i_dtf_is_sorted  TYPE CHAR1 ,
it_t_oireuplkxxxx  TYPE STANDARD TABLE OF OIREUPLKXXXX ,
wa_t_oireuplkxxxx  LIKE LINE OF it_t_oireuplkxxxx,
it_t_oireuplpxxxx  TYPE STANDARD TABLE OF OIREUPLPXXXX ,
wa_t_oireuplpxxxx  LIKE LINE OF it_t_oireuplpxxxx,
it_t_uplnr  TYPE STANDARD TABLE OF OIRE1_T_UPLNR ,
wa_t_uplnr  LIKE LINE OF it_t_uplnr.

ld_i_dtf_is_sorted = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_oireuplkxxxx to it_t_oireuplkxxxx.

"populate fields of struture and append to itab
append wa_t_oireuplpxxxx to it_t_oireuplpxxxx.

"populate fields of struture and append to itab
append wa_t_uplnr to it_t_uplnr.

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