SAP Function Modules

OIRC_PRC_SAVE SAP Function module - Save price check history







OIRC_PRC_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_PRC_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_PRC_SAVE - OIRC PRC SAVE





CALL FUNCTION 'OIRC_PRC_SAVE' "Save price check history
  TABLES
    t_prchk_del =               " oirc_prchk    Delete - SSR Pricing - Price check
    t_prchk_ins =               " oirc_prchk    Create - SSR Pricing - Price check
    t_prchk_upd =               " oirc_prchk    Modify - SSR Pricing - Price check
    .  "  OIRC_PRC_SAVE

ABAP code example for Function Module OIRC_PRC_SAVE





The ABAP code below is a full code listing to execute function module OIRC_PRC_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_prchk_del  TYPE STANDARD TABLE OF OIRC_PRCHK,"TABLES PARAM
wa_t_prchk_del  LIKE LINE OF it_t_prchk_del ,
it_t_prchk_ins  TYPE STANDARD TABLE OF OIRC_PRCHK,"TABLES PARAM
wa_t_prchk_ins  LIKE LINE OF it_t_prchk_ins ,
it_t_prchk_upd  TYPE STANDARD TABLE OF OIRC_PRCHK,"TABLES PARAM
wa_t_prchk_upd  LIKE LINE OF it_t_prchk_upd .


"populate fields of struture and append to itab
append wa_t_prchk_del to it_t_prchk_del.

"populate fields of struture and append to itab
append wa_t_prchk_ins to it_t_prchk_ins.

"populate fields of struture and append to itab
append wa_t_prchk_upd to it_t_prchk_upd. . CALL FUNCTION 'OIRC_PRC_SAVE' TABLES t_prchk_del = it_t_prchk_del t_prchk_ins = it_t_prchk_ins t_prchk_upd = it_t_prchk_upd . " OIRC_PRC_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_prchk_del  TYPE STANDARD TABLE OF OIRC_PRCHK ,
wa_t_prchk_del  LIKE LINE OF it_t_prchk_del,
it_t_prchk_ins  TYPE STANDARD TABLE OF OIRC_PRCHK ,
wa_t_prchk_ins  LIKE LINE OF it_t_prchk_ins,
it_t_prchk_upd  TYPE STANDARD TABLE OF OIRC_PRCHK ,
wa_t_prchk_upd  LIKE LINE OF it_t_prchk_upd.


"populate fields of struture and append to itab
append wa_t_prchk_del to it_t_prchk_del.

"populate fields of struture and append to itab
append wa_t_prchk_ins to it_t_prchk_ins.

"populate fields of struture and append to itab
append wa_t_prchk_upd to it_t_prchk_upd.

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