SAP Function Modules

ISU_DB_EWAOBJH_DATES_UPDATE SAP Function module - INTERNAL: Update EWAOBJH_DATES







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

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


Pattern for FM ISU_DB_EWAOBJH_DATES_UPDATE - ISU DB EWAOBJH DATES UPDATE





CALL FUNCTION 'ISU_DB_EWAOBJH_DATES_UPDATE' "INTERNAL: Update EWAOBJH_DATES
  EXPORTING
    x_upd_mode =                " regen-upd_mode  Update Mode
    x_bzg_deleted =             " regen-kennzx  Indicator
  TABLES
    t_ewaobjh_dates =           " ewaobjh_dates  Conversion Lines to Be Changed
*   t_old_ewaobjh_dates =       " ewaobjh_dates  Appendix table of changed data for service frequency
*   yt_ewaobjh_dates_insert =   " ewaobjh_dates  Appendix table of changed data for service frequency
*   yt_ewaobjh_dates_delete =   " ewaobjh_dates  Appendix table of changed data for service frequency
*   yt_ewaobjh_dates_update =   " ewaobjh_dates  Appendix table of changed data for service frequency
  EXCEPTIONS
    GENERAL_FAULT = 1           "
    .  "  ISU_DB_EWAOBJH_DATES_UPDATE

ABAP code example for Function Module ISU_DB_EWAOBJH_DATES_UPDATE





The ABAP code below is a full code listing to execute function module ISU_DB_EWAOBJH_DATES_UPDATE 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_ewaobjh_dates  TYPE STANDARD TABLE OF EWAOBJH_DATES,"TABLES PARAM
wa_t_ewaobjh_dates  LIKE LINE OF it_t_ewaobjh_dates ,
it_t_old_ewaobjh_dates  TYPE STANDARD TABLE OF EWAOBJH_DATES,"TABLES PARAM
wa_t_old_ewaobjh_dates  LIKE LINE OF it_t_old_ewaobjh_dates ,
it_yt_ewaobjh_dates_insert  TYPE STANDARD TABLE OF EWAOBJH_DATES,"TABLES PARAM
wa_yt_ewaobjh_dates_insert  LIKE LINE OF it_yt_ewaobjh_dates_insert ,
it_yt_ewaobjh_dates_delete  TYPE STANDARD TABLE OF EWAOBJH_DATES,"TABLES PARAM
wa_yt_ewaobjh_dates_delete  LIKE LINE OF it_yt_ewaobjh_dates_delete ,
it_yt_ewaobjh_dates_update  TYPE STANDARD TABLE OF EWAOBJH_DATES,"TABLES PARAM
wa_yt_ewaobjh_dates_update  LIKE LINE OF it_yt_ewaobjh_dates_update .


DATA(ld_x_upd_mode) = some text here

DATA(ld_x_bzg_deleted) = some text here

"populate fields of struture and append to itab
append wa_t_ewaobjh_dates to it_t_ewaobjh_dates.

"populate fields of struture and append to itab
append wa_t_old_ewaobjh_dates to it_t_old_ewaobjh_dates.

"populate fields of struture and append to itab
append wa_yt_ewaobjh_dates_insert to it_yt_ewaobjh_dates_insert.

"populate fields of struture and append to itab
append wa_yt_ewaobjh_dates_delete to it_yt_ewaobjh_dates_delete.

"populate fields of struture and append to itab
append wa_yt_ewaobjh_dates_update to it_yt_ewaobjh_dates_update. . CALL FUNCTION 'ISU_DB_EWAOBJH_DATES_UPDATE' EXPORTING x_upd_mode = ld_x_upd_mode x_bzg_deleted = ld_x_bzg_deleted TABLES t_ewaobjh_dates = it_t_ewaobjh_dates * t_old_ewaobjh_dates = it_t_old_ewaobjh_dates * yt_ewaobjh_dates_insert = it_yt_ewaobjh_dates_insert * yt_ewaobjh_dates_delete = it_yt_ewaobjh_dates_delete * yt_ewaobjh_dates_update = it_yt_ewaobjh_dates_update EXCEPTIONS GENERAL_FAULT = 1 . " ISU_DB_EWAOBJH_DATES_UPDATE
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_x_upd_mode  TYPE REGEN-UPD_MODE ,
it_t_ewaobjh_dates  TYPE STANDARD TABLE OF EWAOBJH_DATES ,
wa_t_ewaobjh_dates  LIKE LINE OF it_t_ewaobjh_dates,
ld_x_bzg_deleted  TYPE REGEN-KENNZX ,
it_t_old_ewaobjh_dates  TYPE STANDARD TABLE OF EWAOBJH_DATES ,
wa_t_old_ewaobjh_dates  LIKE LINE OF it_t_old_ewaobjh_dates,
it_yt_ewaobjh_dates_insert  TYPE STANDARD TABLE OF EWAOBJH_DATES ,
wa_yt_ewaobjh_dates_insert  LIKE LINE OF it_yt_ewaobjh_dates_insert,
it_yt_ewaobjh_dates_delete  TYPE STANDARD TABLE OF EWAOBJH_DATES ,
wa_yt_ewaobjh_dates_delete  LIKE LINE OF it_yt_ewaobjh_dates_delete,
it_yt_ewaobjh_dates_update  TYPE STANDARD TABLE OF EWAOBJH_DATES ,
wa_yt_ewaobjh_dates_update  LIKE LINE OF it_yt_ewaobjh_dates_update.


ld_x_upd_mode = some text here

"populate fields of struture and append to itab
append wa_t_ewaobjh_dates to it_t_ewaobjh_dates.

ld_x_bzg_deleted = some text here

"populate fields of struture and append to itab
append wa_t_old_ewaobjh_dates to it_t_old_ewaobjh_dates.

"populate fields of struture and append to itab
append wa_yt_ewaobjh_dates_insert to it_yt_ewaobjh_dates_insert.

"populate fields of struture and append to itab
append wa_yt_ewaobjh_dates_delete to it_yt_ewaobjh_dates_delete.

"populate fields of struture and append to itab
append wa_yt_ewaobjh_dates_update to it_yt_ewaobjh_dates_update.

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