SAP Function Modules

SINGLEREAD_INTRENO SAP Function module







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

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


Pattern for FM SINGLEREAD_INTRENO - SINGLEREAD INTRENO





CALL FUNCTION 'SINGLEREAD_INTRENO' "
  EXPORTING
    iv_intreno =                " vvintreno
*   iv_reset_index =            " xfeld
*   iv_bypassing_index =        " xfeld
*   iv_max_index_size = 100     " i
  IMPORTING
    es_viob01 =                 " viob01
    es_viob02 =                 " viob02
    es_viob03 =                 " viob03
    es_vimi01 =                 " vimi01
    es_vimimv =                 " vimimv
    es_viak03 =                 " viak03
    es_vivw01 =                 " vivw01
    es_vicn01 =                 " vicn01
  EXCEPTIONS
    NOT_FOUND = 1               "
    BUFFER_INCONSISTENCY = 2    "
    INDEX_INCONSISTENCY = 3     "
    PARAMETER_ERROR = 4         "
    OTHER_ERROR_SINGLEREAD = 5  "
    OTHER_ERROR_INCONSISTENTT2B = 6  "
    OTHER_ERROR_SINGLEREAD_INTRENO = 7  "
    .  "  SINGLEREAD_INTRENO

ABAP code example for Function Module SINGLEREAD_INTRENO





The ABAP code below is a full code listing to execute function module SINGLEREAD_INTRENO 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_es_viob01  TYPE VIOB01 ,
ld_es_viob02  TYPE VIOB02 ,
ld_es_viob03  TYPE VIOB03 ,
ld_es_vimi01  TYPE VIMI01 ,
ld_es_vimimv  TYPE VIMIMV ,
ld_es_viak03  TYPE VIAK03 ,
ld_es_vivw01  TYPE VIVW01 ,
ld_es_vicn01  TYPE VICN01 .

DATA(ld_iv_intreno) = 'Check type of data required'.
DATA(ld_iv_reset_index) = 'Check type of data required'.
DATA(ld_iv_bypassing_index) = 'Check type of data required'.
DATA(ld_iv_max_index_size) = 'Check type of data required'. . CALL FUNCTION 'SINGLEREAD_INTRENO' EXPORTING iv_intreno = ld_iv_intreno * iv_reset_index = ld_iv_reset_index * iv_bypassing_index = ld_iv_bypassing_index * iv_max_index_size = ld_iv_max_index_size IMPORTING es_viob01 = ld_es_viob01 es_viob02 = ld_es_viob02 es_viob03 = ld_es_viob03 es_vimi01 = ld_es_vimi01 es_vimimv = ld_es_vimimv es_viak03 = ld_es_viak03 es_vivw01 = ld_es_vivw01 es_vicn01 = ld_es_vicn01 EXCEPTIONS NOT_FOUND = 1 BUFFER_INCONSISTENCY = 2 INDEX_INCONSISTENCY = 3 PARAMETER_ERROR = 4 OTHER_ERROR_SINGLEREAD = 5 OTHER_ERROR_INCONSISTENTT2B = 6 OTHER_ERROR_SINGLEREAD_INTRENO = 7 . " SINGLEREAD_INTRENO
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 ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "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_es_viob01  TYPE VIOB01 ,
ld_iv_intreno  TYPE VVINTRENO ,
ld_es_viob02  TYPE VIOB02 ,
ld_iv_reset_index  TYPE XFELD ,
ld_es_viob03  TYPE VIOB03 ,
ld_iv_bypassing_index  TYPE XFELD ,
ld_es_vimi01  TYPE VIMI01 ,
ld_iv_max_index_size  TYPE I ,
ld_es_vimimv  TYPE VIMIMV ,
ld_es_viak03  TYPE VIAK03 ,
ld_es_vivw01  TYPE VIVW01 ,
ld_es_vicn01  TYPE VICN01 .

ld_iv_intreno = 'Check type of data required'.
ld_iv_reset_index = 'Check type of data required'.
ld_iv_bypassing_index = 'Check type of data required'.
ld_iv_max_index_size = '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 SINGLEREAD_INTRENO or its description.