SAP Function Modules

OIRE_UPDATE_DTF SAP Function module - Update one or more payment card transactions







OIRE_UPDATE_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_UPDATE_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_UPDATE_DTF - OIRE UPDATE DTF





CALL FUNCTION 'OIRE_UPDATE_DTF' "Update one or more payment card transactions
  EXPORTING
    i_bukrs =                   " t001-bukrs    Company code
    i_ccins =                   " oireuplkxxxx-ssr_ccins  Payment card type
*   i_mode = ' '                " char1         'L' View-Update for Linknr, 'S'-View-upd for Settlnr
  TABLES
    t_dtf_hdr =                 " oireuplkxxxx  Header data
*   t_dtf_itm =                 " oireuplpxxxx  Item data
*   t_link =                    " oire1_t_link  Control table for the update
  EXCEPTIONS
    DTF_TABLE_DOES_NOT_EXIST = 1  "             No DTF table exists.
    UPDATE_FAILURE = 2          "               Update of payment card data failed.
    .  "  OIRE_UPDATE_DTF

ABAP code example for Function Module OIRE_UPDATE_DTF





The ABAP code below is a full code listing to execute function module OIRE_UPDATE_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_dtf_hdr  TYPE STANDARD TABLE OF OIREUPLKXXXX,"TABLES PARAM
wa_t_dtf_hdr  LIKE LINE OF it_t_dtf_hdr ,
it_t_dtf_itm  TYPE STANDARD TABLE OF OIREUPLPXXXX,"TABLES PARAM
wa_t_dtf_itm  LIKE LINE OF it_t_dtf_itm ,
it_t_link  TYPE STANDARD TABLE OF OIRE1_T_LINK,"TABLES PARAM
wa_t_link  LIKE LINE OF it_t_link .


SELECT single BUKRS
FROM T001
INTO @DATA(ld_i_bukrs).


SELECT single SSR_CCINS
FROM OIREUPLKXXXX
INTO @DATA(ld_i_ccins).

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

"populate fields of struture and append to itab
append wa_t_dtf_hdr to it_t_dtf_hdr.

"populate fields of struture and append to itab
append wa_t_dtf_itm to it_t_dtf_itm.

"populate fields of struture and append to itab
append wa_t_link to it_t_link. . CALL FUNCTION 'OIRE_UPDATE_DTF' EXPORTING i_bukrs = ld_i_bukrs i_ccins = ld_i_ccins * i_mode = ld_i_mode TABLES t_dtf_hdr = it_t_dtf_hdr * t_dtf_itm = it_t_dtf_itm * t_link = it_t_link EXCEPTIONS DTF_TABLE_DOES_NOT_EXIST = 1 UPDATE_FAILURE = 2 . " OIRE_UPDATE_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 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_bukrs  TYPE T001-BUKRS ,
it_t_dtf_hdr  TYPE STANDARD TABLE OF OIREUPLKXXXX ,
wa_t_dtf_hdr  LIKE LINE OF it_t_dtf_hdr,
ld_i_ccins  TYPE OIREUPLKXXXX-SSR_CCINS ,
it_t_dtf_itm  TYPE STANDARD TABLE OF OIREUPLPXXXX ,
wa_t_dtf_itm  LIKE LINE OF it_t_dtf_itm,
ld_i_mode  TYPE CHAR1 ,
it_t_link  TYPE STANDARD TABLE OF OIRE1_T_LINK ,
wa_t_link  LIKE LINE OF it_t_link.


SELECT single BUKRS
FROM T001
INTO ld_i_bukrs.


"populate fields of struture and append to itab
append wa_t_dtf_hdr to it_t_dtf_hdr.

SELECT single SSR_CCINS
FROM OIREUPLKXXXX
INTO ld_i_ccins.


"populate fields of struture and append to itab
append wa_t_dtf_itm to it_t_dtf_itm.
ld_i_mode = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_link to it_t_link.

SAP Documentation for FM OIRE_UPDATE_DTF


This function module is handling changes (insert, changes, delete) to the payment card transactions. The action that is finally done by the ...See here for full SAP fm documentation







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