SAP Function Modules

OIRE_VALIDATION SAP Function module - Validation







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

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


Pattern for FM OIRE_VALIDATION - OIRE VALIDATION





CALL FUNCTION 'OIRE_VALIDATION' "Validation
  EXPORTING
*   i_call_mode = 'H'           " char1         'H' -Create, 'V' -Change
    i_procid =                  " oiraprocdef-procdef  Process ID
*   i_dtf_is_sorted = 'X'       " char1         Indicator, if the DTF tables are sorted
  TABLES
    xdtfloch =                  " oireuplkxxxx  SSR PC: Internal table for the PC header transactions
    xdtfloci =                  " oireuplpxxxx  SSR PC: Internal table for payment card item transactions
*   t_dtf_hdr_org =             " oireuplkxxxx  SSR PC: Template for generated DTF tables (header)
*   t_dtf_itm_org =             " oireuplpxxxx  SSR PC: DTF table for item information
    .  "  OIRE_VALIDATION

ABAP code example for Function Module OIRE_VALIDATION





The ABAP code below is a full code listing to execute function module OIRE_VALIDATION 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_xdtfloch  TYPE STANDARD TABLE OF OIREUPLKXXXX,"TABLES PARAM
wa_xdtfloch  LIKE LINE OF it_xdtfloch ,
it_xdtfloci  TYPE STANDARD TABLE OF OIREUPLPXXXX,"TABLES PARAM
wa_xdtfloci  LIKE LINE OF it_xdtfloci ,
it_t_dtf_hdr_org  TYPE STANDARD TABLE OF OIREUPLKXXXX,"TABLES PARAM
wa_t_dtf_hdr_org  LIKE LINE OF it_t_dtf_hdr_org ,
it_t_dtf_itm_org  TYPE STANDARD TABLE OF OIREUPLPXXXX,"TABLES PARAM
wa_t_dtf_itm_org  LIKE LINE OF it_t_dtf_itm_org .

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

SELECT single PROCDEF
FROM OIRAPROCDEF
INTO @DATA(ld_i_procid).

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

"populate fields of struture and append to itab
append wa_xdtfloch to it_xdtfloch.

"populate fields of struture and append to itab
append wa_xdtfloci to it_xdtfloci.

"populate fields of struture and append to itab
append wa_t_dtf_hdr_org to it_t_dtf_hdr_org.

"populate fields of struture and append to itab
append wa_t_dtf_itm_org to it_t_dtf_itm_org. . CALL FUNCTION 'OIRE_VALIDATION' EXPORTING * i_call_mode = ld_i_call_mode i_procid = ld_i_procid * i_dtf_is_sorted = ld_i_dtf_is_sorted TABLES xdtfloch = it_xdtfloch xdtfloci = it_xdtfloci * t_dtf_hdr_org = it_t_dtf_hdr_org * t_dtf_itm_org = it_t_dtf_itm_org . " OIRE_VALIDATION
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_i_call_mode  TYPE CHAR1 ,
it_xdtfloch  TYPE STANDARD TABLE OF OIREUPLKXXXX ,
wa_xdtfloch  LIKE LINE OF it_xdtfloch,
ld_i_procid  TYPE OIRAPROCDEF-PROCDEF ,
it_xdtfloci  TYPE STANDARD TABLE OF OIREUPLPXXXX ,
wa_xdtfloci  LIKE LINE OF it_xdtfloci,
ld_i_dtf_is_sorted  TYPE CHAR1 ,
it_t_dtf_hdr_org  TYPE STANDARD TABLE OF OIREUPLKXXXX ,
wa_t_dtf_hdr_org  LIKE LINE OF it_t_dtf_hdr_org,
it_t_dtf_itm_org  TYPE STANDARD TABLE OF OIREUPLPXXXX ,
wa_t_dtf_itm_org  LIKE LINE OF it_t_dtf_itm_org.

ld_i_call_mode = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xdtfloch to it_xdtfloch.

SELECT single PROCDEF
FROM OIRAPROCDEF
INTO ld_i_procid.


"populate fields of struture and append to itab
append wa_xdtfloci to it_xdtfloci.
ld_i_dtf_is_sorted = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_dtf_hdr_org to it_t_dtf_hdr_org.

"populate fields of struture and append to itab
append wa_t_dtf_itm_org to it_t_dtf_itm_org.

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