SAP Function Modules

ISB_GAP_UPDATE_DATA SAP Function module - IS-B: RM Update Results of Gap Analysis + Parameter File







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

Associated Function Group: RMG6
Released Date: Not Released
Processing type: Start of update delayed (Start Delayed)
update module start delayed settings


Pattern for FM ISB_GAP_UPDATE_DATA - ISB GAP UPDATE DATA





CALL FUNCTION 'ISB_GAP_UPDATE_DATA' "IS-B: RM Update Results of Gap Analysis + Parameter File
  TABLES
    data_table =                " jbrsvgapres2
    header_table =              " jbrsvgaphd2
    szen_table =                " jbrsvgapszen
*   err_table =                 " jbrsvgaperr
  EXCEPTIONS
    DATA_ERROR = 1              "
    HEADER_ERROR = 2            "
    DATABASE_ERROR = 3          "
    ERROR_WHILE_SAVING = 4      "
    .  "  ISB_GAP_UPDATE_DATA

ABAP code example for Function Module ISB_GAP_UPDATE_DATA





The ABAP code below is a full code listing to execute function module ISB_GAP_UPDATE_DATA 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_data_table  TYPE STANDARD TABLE OF JBRSVGAPRES2,"TABLES PARAM
wa_data_table  LIKE LINE OF it_data_table ,
it_header_table  TYPE STANDARD TABLE OF JBRSVGAPHD2,"TABLES PARAM
wa_header_table  LIKE LINE OF it_header_table ,
it_szen_table  TYPE STANDARD TABLE OF JBRSVGAPSZEN,"TABLES PARAM
wa_szen_table  LIKE LINE OF it_szen_table ,
it_err_table  TYPE STANDARD TABLE OF JBRSVGAPERR,"TABLES PARAM
wa_err_table  LIKE LINE OF it_err_table .


"populate fields of struture and append to itab
append wa_data_table to it_data_table.

"populate fields of struture and append to itab
append wa_header_table to it_header_table.

"populate fields of struture and append to itab
append wa_szen_table to it_szen_table.

"populate fields of struture and append to itab
append wa_err_table to it_err_table. . CALL FUNCTION 'ISB_GAP_UPDATE_DATA' TABLES data_table = it_data_table header_table = it_header_table szen_table = it_szen_table * err_table = it_err_table EXCEPTIONS DATA_ERROR = 1 HEADER_ERROR = 2 DATABASE_ERROR = 3 ERROR_WHILE_SAVING = 4 . " ISB_GAP_UPDATE_DATA
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "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:
it_data_table  TYPE STANDARD TABLE OF JBRSVGAPRES2 ,
wa_data_table  LIKE LINE OF it_data_table,
it_header_table  TYPE STANDARD TABLE OF JBRSVGAPHD2 ,
wa_header_table  LIKE LINE OF it_header_table,
it_szen_table  TYPE STANDARD TABLE OF JBRSVGAPSZEN ,
wa_szen_table  LIKE LINE OF it_szen_table,
it_err_table  TYPE STANDARD TABLE OF JBRSVGAPERR ,
wa_err_table  LIKE LINE OF it_err_table.


"populate fields of struture and append to itab
append wa_data_table to it_data_table.

"populate fields of struture and append to itab
append wa_header_table to it_header_table.

"populate fields of struture and append to itab
append wa_szen_table to it_szen_table.

"populate fields of struture and append to itab
append wa_err_table to it_err_table.

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