Method SAVE
Use
The SAVE method transfers the CUR tables and CUR structures to the database.
Sample source text:
Only the main parts of the source text are mentioned below.
METHOD if_maintenance_brf~save .
DATA:
lv_subrc TYPE sysubrc,
lv_count TYPE i VALUE 0.
*------ do it ---------------------------------------------------------
CALL METHOD super->if_maintenance_brf~save
IMPORTING
ev_count = lv_count.
CALL METHOD cl_aux_brf=>save_structure
EXPORTING
iv_tabname = 'TBRF142'
iv_edit_mode = mv_edit_mode
iv_history_available = if_maintenance_brf~mv_history_available
iv_applclass = ds_brf150-applclass
iv_import_status = ds_brf150-import_status
iv_key_category = 'F'
iv_key_object = ds_brf150-expression
iv_version = ds_brf150-version
iv_count = lv_count
IMPORTING
ev_subrc = lv_subrc
CHANGING
cs_structure_cur = ms_brf142_cur
cs_structure_old = ms_brf142_old.
CALL METHOD cl_aux_brf=>save_table
EXPORTING
iv_tabname = 'TBRF144'
iv_edit_mode = mv_edit_mode
iv_history_available = if_maintenance_brf~mv_history_available
iv_applclass = ds_brf150-applclass
iv_import_status = ds_brf150-import_status
iv_key_category = 'F'
iv_key_object = ds_brf150-expression
iv_version = ds_brf150-version
iv_count = lv_count
IMPORTING
ev_subrc = lv_subrc
CHANGING
ct_table_cur = mt_brf144_cur
ct_table_old = mt_brf144_old.
ENDMETHOD.
Description:
The SAVE method executes the actual saving activity. The CUR tables and CUR structures as well as the OLD tables and structures form the basis for this activity.
As with method LOAD, there are also some utility methods in class CL_AUX_BRF that implement the save step generically.