SAP Function Modules

OIU_SAVE_REFERENCE SAP Function module - Save PPN/posting cross reference







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

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


Pattern for FM OIU_SAVE_REFERENCE - OIU SAVE REFERENCE





CALL FUNCTION 'OIU_SAVE_REFERENCE' "Save PPN/posting cross reference
  EXPORTING
    i_t681 =                    " t681          Conditions: Structures
  TABLES
    i_time_vake_db =            " oiu_time_vake_db  Structure necessary for update function
    i_time_vake_akt =           " oiu_time_vake_db  Variable Key for Condition Maintenance: Internal Structure
    t681e_tab =                 " oiurv_t681e_t
    xkonh =                     " oiurv_konh    Conditions (Header)
    xoicq6 =                    " oiurv_oicq6   Formula Condition Data - Formula Term Items
    yoicq6 =                    " oiurv_oicq6   Formula Condition Data - Formula Term Items
    xoiuq6 =                    " oiuq6         Quotation group items
    yoiuq6 =                    " oiuq6         Quotation group items
    i_xvake =                   " oiurv_vakevb  Variable Key for Condition Maintenance: Internal Structure
    ykondat =                   " vkondat       Change document structure; generated by RSSCD000
    xkondat =                   " vkondat       Change document structure; generated by RSSCD000
  EXCEPTIONS
    STRUCTURE_NOT_SUPPORTED = 1  "              structure of access table not supported
    .  "  OIU_SAVE_REFERENCE

ABAP code example for Function Module OIU_SAVE_REFERENCE





The ABAP code below is a full code listing to execute function module OIU_SAVE_REFERENCE 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_i_time_vake_db  TYPE STANDARD TABLE OF OIU_TIME_VAKE_DB,"TABLES PARAM
wa_i_time_vake_db  LIKE LINE OF it_i_time_vake_db ,
it_i_time_vake_akt  TYPE STANDARD TABLE OF OIU_TIME_VAKE_DB,"TABLES PARAM
wa_i_time_vake_akt  LIKE LINE OF it_i_time_vake_akt ,
it_t681e_tab  TYPE STANDARD TABLE OF OIURV_T681E_T,"TABLES PARAM
wa_t681e_tab  LIKE LINE OF it_t681e_tab ,
it_xkonh  TYPE STANDARD TABLE OF OIURV_KONH,"TABLES PARAM
wa_xkonh  LIKE LINE OF it_xkonh ,
it_xoicq6  TYPE STANDARD TABLE OF OIURV_OICQ6,"TABLES PARAM
wa_xoicq6  LIKE LINE OF it_xoicq6 ,
it_yoicq6  TYPE STANDARD TABLE OF OIURV_OICQ6,"TABLES PARAM
wa_yoicq6  LIKE LINE OF it_yoicq6 ,
it_xoiuq6  TYPE STANDARD TABLE OF OIUQ6,"TABLES PARAM
wa_xoiuq6  LIKE LINE OF it_xoiuq6 ,
it_yoiuq6  TYPE STANDARD TABLE OF OIUQ6,"TABLES PARAM
wa_yoiuq6  LIKE LINE OF it_yoiuq6 ,
it_i_xvake  TYPE STANDARD TABLE OF OIURV_VAKEVB,"TABLES PARAM
wa_i_xvake  LIKE LINE OF it_i_xvake ,
it_ykondat  TYPE STANDARD TABLE OF VKONDAT,"TABLES PARAM
wa_ykondat  LIKE LINE OF it_ykondat ,
it_xkondat  TYPE STANDARD TABLE OF VKONDAT,"TABLES PARAM
wa_xkondat  LIKE LINE OF it_xkondat .

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

"populate fields of struture and append to itab
append wa_i_time_vake_db to it_i_time_vake_db.

"populate fields of struture and append to itab
append wa_i_time_vake_akt to it_i_time_vake_akt.

"populate fields of struture and append to itab
append wa_t681e_tab to it_t681e_tab.

"populate fields of struture and append to itab
append wa_xkonh to it_xkonh.

"populate fields of struture and append to itab
append wa_xoicq6 to it_xoicq6.

"populate fields of struture and append to itab
append wa_yoicq6 to it_yoicq6.

"populate fields of struture and append to itab
append wa_xoiuq6 to it_xoiuq6.

"populate fields of struture and append to itab
append wa_yoiuq6 to it_yoiuq6.

"populate fields of struture and append to itab
append wa_i_xvake to it_i_xvake.

"populate fields of struture and append to itab
append wa_ykondat to it_ykondat.

"populate fields of struture and append to itab
append wa_xkondat to it_xkondat. . CALL FUNCTION 'OIU_SAVE_REFERENCE' EXPORTING i_t681 = ld_i_t681 TABLES i_time_vake_db = it_i_time_vake_db i_time_vake_akt = it_i_time_vake_akt t681e_tab = it_t681e_tab xkonh = it_xkonh xoicq6 = it_xoicq6 yoicq6 = it_yoicq6 xoiuq6 = it_xoiuq6 yoiuq6 = it_yoiuq6 i_xvake = it_i_xvake ykondat = it_ykondat xkondat = it_xkondat EXCEPTIONS STRUCTURE_NOT_SUPPORTED = 1 . " OIU_SAVE_REFERENCE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_t681  TYPE T681 ,
it_i_time_vake_db  TYPE STANDARD TABLE OF OIU_TIME_VAKE_DB ,
wa_i_time_vake_db  LIKE LINE OF it_i_time_vake_db,
it_i_time_vake_akt  TYPE STANDARD TABLE OF OIU_TIME_VAKE_DB ,
wa_i_time_vake_akt  LIKE LINE OF it_i_time_vake_akt,
it_t681e_tab  TYPE STANDARD TABLE OF OIURV_T681E_T ,
wa_t681e_tab  LIKE LINE OF it_t681e_tab,
it_xkonh  TYPE STANDARD TABLE OF OIURV_KONH ,
wa_xkonh  LIKE LINE OF it_xkonh,
it_xoicq6  TYPE STANDARD TABLE OF OIURV_OICQ6 ,
wa_xoicq6  LIKE LINE OF it_xoicq6,
it_yoicq6  TYPE STANDARD TABLE OF OIURV_OICQ6 ,
wa_yoicq6  LIKE LINE OF it_yoicq6,
it_xoiuq6  TYPE STANDARD TABLE OF OIUQ6 ,
wa_xoiuq6  LIKE LINE OF it_xoiuq6,
it_yoiuq6  TYPE STANDARD TABLE OF OIUQ6 ,
wa_yoiuq6  LIKE LINE OF it_yoiuq6,
it_i_xvake  TYPE STANDARD TABLE OF OIURV_VAKEVB ,
wa_i_xvake  LIKE LINE OF it_i_xvake,
it_ykondat  TYPE STANDARD TABLE OF VKONDAT ,
wa_ykondat  LIKE LINE OF it_ykondat,
it_xkondat  TYPE STANDARD TABLE OF VKONDAT ,
wa_xkondat  LIKE LINE OF it_xkondat.

ld_i_t681 = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_time_vake_db to it_i_time_vake_db.

"populate fields of struture and append to itab
append wa_i_time_vake_akt to it_i_time_vake_akt.

"populate fields of struture and append to itab
append wa_t681e_tab to it_t681e_tab.

"populate fields of struture and append to itab
append wa_xkonh to it_xkonh.

"populate fields of struture and append to itab
append wa_xoicq6 to it_xoicq6.

"populate fields of struture and append to itab
append wa_yoicq6 to it_yoicq6.

"populate fields of struture and append to itab
append wa_xoiuq6 to it_xoiuq6.

"populate fields of struture and append to itab
append wa_yoiuq6 to it_yoiuq6.

"populate fields of struture and append to itab
append wa_i_xvake to it_i_xvake.

"populate fields of struture and append to itab
append wa_ykondat to it_ykondat.

"populate fields of struture and append to itab
append wa_xkondat to it_xkondat.

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