SAP Function Modules

OIRC_DRH_SAVE SAP Function module - Save meter readings history to dip readings history







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

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


Pattern for FM OIRC_DRH_SAVE - OIRC DRH SAVE





CALL FUNCTION 'OIRC_DRH_SAVE' "Save meter readings history to dip readings history
  TABLES
    t_drrej_del =               " oirc_drrej    Delete - Dip readings rejected records
    t_drrej_ins =               " oirc_drrej    Create - Dip readings rejected records
    t_drrej_upd =               " oirc_drrej    Modify - Dip readings rejected records
    t_socdip_upd =              " oirc_socdip   Modify - Dip readings history
    t_socdip_del =              " oirc_socdip   Delete - Dip readings history
    t_socdip_ins =              " oirc_socdip   Create - Dip readings history
    .  "  OIRC_DRH_SAVE

ABAP code example for Function Module OIRC_DRH_SAVE





The ABAP code below is a full code listing to execute function module OIRC_DRH_SAVE 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_drrej_del  TYPE STANDARD TABLE OF OIRC_DRREJ,"TABLES PARAM
wa_t_drrej_del  LIKE LINE OF it_t_drrej_del ,
it_t_drrej_ins  TYPE STANDARD TABLE OF OIRC_DRREJ,"TABLES PARAM
wa_t_drrej_ins  LIKE LINE OF it_t_drrej_ins ,
it_t_drrej_upd  TYPE STANDARD TABLE OF OIRC_DRREJ,"TABLES PARAM
wa_t_drrej_upd  LIKE LINE OF it_t_drrej_upd ,
it_t_socdip_upd  TYPE STANDARD TABLE OF OIRC_SOCDIP,"TABLES PARAM
wa_t_socdip_upd  LIKE LINE OF it_t_socdip_upd ,
it_t_socdip_del  TYPE STANDARD TABLE OF OIRC_SOCDIP,"TABLES PARAM
wa_t_socdip_del  LIKE LINE OF it_t_socdip_del ,
it_t_socdip_ins  TYPE STANDARD TABLE OF OIRC_SOCDIP,"TABLES PARAM
wa_t_socdip_ins  LIKE LINE OF it_t_socdip_ins .


"populate fields of struture and append to itab
append wa_t_drrej_del to it_t_drrej_del.

"populate fields of struture and append to itab
append wa_t_drrej_ins to it_t_drrej_ins.

"populate fields of struture and append to itab
append wa_t_drrej_upd to it_t_drrej_upd.

"populate fields of struture and append to itab
append wa_t_socdip_upd to it_t_socdip_upd.

"populate fields of struture and append to itab
append wa_t_socdip_del to it_t_socdip_del.

"populate fields of struture and append to itab
append wa_t_socdip_ins to it_t_socdip_ins. . CALL FUNCTION 'OIRC_DRH_SAVE' TABLES t_drrej_del = it_t_drrej_del t_drrej_ins = it_t_drrej_ins t_drrej_upd = it_t_drrej_upd t_socdip_upd = it_t_socdip_upd t_socdip_del = it_t_socdip_del t_socdip_ins = it_t_socdip_ins . " OIRC_DRH_SAVE
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:
it_t_drrej_del  TYPE STANDARD TABLE OF OIRC_DRREJ ,
wa_t_drrej_del  LIKE LINE OF it_t_drrej_del,
it_t_drrej_ins  TYPE STANDARD TABLE OF OIRC_DRREJ ,
wa_t_drrej_ins  LIKE LINE OF it_t_drrej_ins,
it_t_drrej_upd  TYPE STANDARD TABLE OF OIRC_DRREJ ,
wa_t_drrej_upd  LIKE LINE OF it_t_drrej_upd,
it_t_socdip_upd  TYPE STANDARD TABLE OF OIRC_SOCDIP ,
wa_t_socdip_upd  LIKE LINE OF it_t_socdip_upd,
it_t_socdip_del  TYPE STANDARD TABLE OF OIRC_SOCDIP ,
wa_t_socdip_del  LIKE LINE OF it_t_socdip_del,
it_t_socdip_ins  TYPE STANDARD TABLE OF OIRC_SOCDIP ,
wa_t_socdip_ins  LIKE LINE OF it_t_socdip_ins.


"populate fields of struture and append to itab
append wa_t_drrej_del to it_t_drrej_del.

"populate fields of struture and append to itab
append wa_t_drrej_ins to it_t_drrej_ins.

"populate fields of struture and append to itab
append wa_t_drrej_upd to it_t_drrej_upd.

"populate fields of struture and append to itab
append wa_t_socdip_upd to it_t_socdip_upd.

"populate fields of struture and append to itab
append wa_t_socdip_del to it_t_socdip_del.

"populate fields of struture and append to itab
append wa_t_socdip_ins to it_t_socdip_ins.

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