SAP Function Modules

DB_ICNV_TABLE_ANALYZE SAP Function module







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

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


Pattern for FM DB_ICNV_TABLE_ANALYZE - DB ICNV TABLE ANALYZE





CALL FUNCTION 'DB_ICNV_TABLE_ANALYZE' "
* EXPORTING
*   prid = 0                    " sy-tabix
*   debug = ' '                 " ddrefstruc-bool
*   appl = 'ICNV'               " ddicnvpros-iappl  Application for Incremental Conversion/Incremental Migration
* TABLES
*   tabnames =                  " ddtabname
*   dist_tab =                  " ddicnvdist
  EXCEPTIONS
    SYNTAX_ERROR = 1            "
    WRONG_METHOD = 2            "
    NO_OF_POOLS_EXCEEDED = 3    "
    OP_FAILURE = 4              "
    .  "  DB_ICNV_TABLE_ANALYZE

ABAP code example for Function Module DB_ICNV_TABLE_ANALYZE





The ABAP code below is a full code listing to execute function module DB_ICNV_TABLE_ANALYZE 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_tabnames  TYPE STANDARD TABLE OF DDTABNAME,"TABLES PARAM
wa_tabnames  LIKE LINE OF it_tabnames ,
it_dist_tab  TYPE STANDARD TABLE OF DDICNVDIST,"TABLES PARAM
wa_dist_tab  LIKE LINE OF it_dist_tab .

DATA(ld_prid) = '123 '.

DATA(ld_debug) = some text here

DATA(ld_appl) = some text here

"populate fields of struture and append to itab
append wa_tabnames to it_tabnames.

"populate fields of struture and append to itab
append wa_dist_tab to it_dist_tab. . CALL FUNCTION 'DB_ICNV_TABLE_ANALYZE' * EXPORTING * prid = ld_prid * debug = ld_debug * appl = ld_appl * TABLES * tabnames = it_tabnames * dist_tab = it_dist_tab EXCEPTIONS SYNTAX_ERROR = 1 WRONG_METHOD = 2 NO_OF_POOLS_EXCEEDED = 3 OP_FAILURE = 4 . " DB_ICNV_TABLE_ANALYZE
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:
ld_prid  TYPE SY-TABIX ,
it_tabnames  TYPE STANDARD TABLE OF DDTABNAME ,
wa_tabnames  LIKE LINE OF it_tabnames,
ld_debug  TYPE DDREFSTRUC-BOOL ,
it_dist_tab  TYPE STANDARD TABLE OF DDICNVDIST ,
wa_dist_tab  LIKE LINE OF it_dist_tab,
ld_appl  TYPE DDICNVPROS-IAPPL .

ld_prid = '123 '.

"populate fields of struture and append to itab
append wa_tabnames to it_tabnames.

ld_debug = some text here

"populate fields of struture and append to itab
append wa_dist_tab to it_dist_tab.

ld_appl = some text here

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