SAP Function Modules

OIJ_NOM_UPDATEPREPARE SAP Function module - Prepare nomination fields for DB update







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

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


Pattern for FM OIJ_NOM_UPDATEPREPARE - OIJ NOM UPDATEPREPARE





CALL FUNCTION 'OIJ_NOM_UPDATEPREPARE' "Prepare nomination fields for DB update
* EXPORTING
*   iv_add_to_log =             " boolean       boolean variable (X=true, -=false, space=unknown)
  IMPORTING
    ev_error =                  " boolean       boolean variable (X=true, -=false, space=unknown)
  TABLES
    et_roijnomc =               " roijnomc      TSW Nomination OIJNOMC update Structure
*   et_roijnomm =               " roijnommvb    Nomination Material Balance
*   ct_return =                 " bapiret2      Return parameter
  CHANGING
    cs_nom_header =             " roijnomhio    TSW Nomination Header Communication Structure
    ct_nom_item =               " roijnomiio_t  Nomination Item Communication
*   ct_nom_event =              " roijneio_t    Nomination Events Communication Table
    ct_nom_stages =             " roij_stagesio_t  TSW (&TD) STages IO
*   ct_nom_subitem =            " roijnomsubitemsio_t  Nomination sub-items communication table
*   ct_nom_hatchload =          " roijnomhatloadio_t  Hatch load sequence communication table
*   ct_nom_hatchplan =          " roijnomhatplanio_t  Table type for the hatch plan communication structure
    ct_nom_ref =                " roijnomrio_t  Nomination Reference Documents Update Table Type
*   ct_subitem_events =         " roijsubitemeventsvb_t  Table type for update structure for subitems events
    .  "  OIJ_NOM_UPDATEPREPARE

ABAP code example for Function Module OIJ_NOM_UPDATEPREPARE





The ABAP code below is a full code listing to execute function module OIJ_NOM_UPDATEPREPARE 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:
ld_ev_error  TYPE BOOLEAN ,
it_et_roijnomc  TYPE STANDARD TABLE OF ROIJNOMC,"TABLES PARAM
wa_et_roijnomc  LIKE LINE OF it_et_roijnomc ,
it_et_roijnomm  TYPE STANDARD TABLE OF ROIJNOMMVB,"TABLES PARAM
wa_et_roijnomm  LIKE LINE OF it_et_roijnomm ,
it_ct_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_ct_return  LIKE LINE OF it_ct_return .

DATA(ld_cs_nom_header) = 'Check type of data required'.
DATA(ld_ct_nom_item) = 'Check type of data required'.
DATA(ld_ct_nom_event) = 'Check type of data required'.
DATA(ld_ct_nom_stages) = 'Check type of data required'.
DATA(ld_ct_nom_subitem) = 'Check type of data required'.
DATA(ld_ct_nom_hatchload) = 'Check type of data required'.
DATA(ld_ct_nom_hatchplan) = 'Check type of data required'.
DATA(ld_ct_nom_ref) = 'Check type of data required'.
DATA(ld_ct_subitem_events) = 'Check type of data required'.
DATA(ld_iv_add_to_log) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_roijnomc to it_et_roijnomc.

"populate fields of struture and append to itab
append wa_et_roijnomm to it_et_roijnomm.

"populate fields of struture and append to itab
append wa_ct_return to it_ct_return. . CALL FUNCTION 'OIJ_NOM_UPDATEPREPARE' * EXPORTING * iv_add_to_log = ld_iv_add_to_log IMPORTING ev_error = ld_ev_error TABLES et_roijnomc = it_et_roijnomc * et_roijnomm = it_et_roijnomm * ct_return = it_ct_return CHANGING cs_nom_header = ld_cs_nom_header ct_nom_item = ld_ct_nom_item * ct_nom_event = ld_ct_nom_event ct_nom_stages = ld_ct_nom_stages * ct_nom_subitem = ld_ct_nom_subitem * ct_nom_hatchload = ld_ct_nom_hatchload * ct_nom_hatchplan = ld_ct_nom_hatchplan ct_nom_ref = ld_ct_nom_ref * ct_subitem_events = ld_ct_subitem_events . " OIJ_NOM_UPDATEPREPARE
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_cs_nom_header  TYPE ROIJNOMHIO ,
ld_ev_error  TYPE BOOLEAN ,
ld_iv_add_to_log  TYPE BOOLEAN ,
it_et_roijnomc  TYPE STANDARD TABLE OF ROIJNOMC ,
wa_et_roijnomc  LIKE LINE OF it_et_roijnomc,
ld_ct_nom_item  TYPE ROIJNOMIIO_T ,
it_et_roijnomm  TYPE STANDARD TABLE OF ROIJNOMMVB ,
wa_et_roijnomm  LIKE LINE OF it_et_roijnomm,
ld_ct_nom_event  TYPE ROIJNEIO_T ,
it_ct_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_ct_return  LIKE LINE OF it_ct_return,
ld_ct_nom_stages  TYPE ROIJ_STAGESIO_T ,
ld_ct_nom_subitem  TYPE ROIJNOMSUBITEMSIO_T ,
ld_ct_nom_hatchload  TYPE ROIJNOMHATLOADIO_T ,
ld_ct_nom_hatchplan  TYPE ROIJNOMHATPLANIO_T ,
ld_ct_nom_ref  TYPE ROIJNOMRIO_T ,
ld_ct_subitem_events  TYPE ROIJSUBITEMEVENTSVB_T .

ld_cs_nom_header = 'Check type of data required'.
ld_iv_add_to_log = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_roijnomc to it_et_roijnomc.
ld_ct_nom_item = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_roijnomm to it_et_roijnomm.
ld_ct_nom_event = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ct_return to it_ct_return.
ld_ct_nom_stages = 'Check type of data required'.
ld_ct_nom_subitem = 'Check type of data required'.
ld_ct_nom_hatchload = 'Check type of data required'.
ld_ct_nom_hatchplan = 'Check type of data required'.
ld_ct_nom_ref = 'Check type of data required'.
ld_ct_subitem_events = 'Check type of data required'.

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