SAP Function Modules

ISU_O_METERREAD_INPUT1 SAP Function module







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

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


Pattern for FM ISU_O_METERREAD_INPUT1 - ISU O METERREAD INPUT1





CALL FUNCTION 'ISU_O_METERREAD_INPUT1' "
* EXPORTING
*   x_maxerror = 1              " regen-maxcount  Entries to be Transferred
*   x_correct = SPACE           " regen-kennzx
*   x_only_formal_checks = SPACE  " regen-kennzx
*   x_valdep_partly = SPACE     " regen-kennzx
*   x_te444 =                   " te444
  IMPORTING
    y_subscr_curspos =          " isu17_meterdocu_curspos
* TABLES
*   xyt_reabld =                " reabld
  CHANGING
    xy_obj =                    " isu17_meterread
  EXCEPTIONS
    INPUT_ERROR = 1             "               Input error
    NOT_VALID = 2               "
    PLAUSI_ERROR = 3            "
    PLAUSI_ERROR_NOCOR = 4      "
    SYSTEM_ERROR = 5            "               System Error
    NOT_COMPLETE = 6            "
    INDEP_IMPLAUSIBLE = 7       "
    NOT_AUTHORIZED = 8          "
    .  "  ISU_O_METERREAD_INPUT1

ABAP code example for Function Module ISU_O_METERREAD_INPUT1





The ABAP code below is a full code listing to execute function module ISU_O_METERREAD_INPUT1 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_y_subscr_curspos  TYPE ISU17_METERDOCU_CURSPOS ,
it_xyt_reabld  TYPE STANDARD TABLE OF REABLD,"TABLES PARAM
wa_xyt_reabld  LIKE LINE OF it_xyt_reabld .

DATA(ld_xy_obj) = 'Check type of data required'.

DATA(ld_x_maxerror) = 123

DATA(ld_x_correct) = some text here

DATA(ld_x_only_formal_checks) = some text here

DATA(ld_x_valdep_partly) = some text here
DATA(ld_x_te444) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xyt_reabld to it_xyt_reabld. . CALL FUNCTION 'ISU_O_METERREAD_INPUT1' * EXPORTING * x_maxerror = ld_x_maxerror * x_correct = ld_x_correct * x_only_formal_checks = ld_x_only_formal_checks * x_valdep_partly = ld_x_valdep_partly * x_te444 = ld_x_te444 IMPORTING y_subscr_curspos = ld_y_subscr_curspos * TABLES * xyt_reabld = it_xyt_reabld CHANGING xy_obj = ld_xy_obj EXCEPTIONS INPUT_ERROR = 1 NOT_VALID = 2 PLAUSI_ERROR = 3 PLAUSI_ERROR_NOCOR = 4 SYSTEM_ERROR = 5 NOT_COMPLETE = 6 INDEP_IMPLAUSIBLE = 7 NOT_AUTHORIZED = 8 . " ISU_O_METERREAD_INPUT1
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 ELSEIF SY-SUBRC EQ 8. "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_xy_obj  TYPE ISU17_METERREAD ,
ld_y_subscr_curspos  TYPE ISU17_METERDOCU_CURSPOS ,
ld_x_maxerror  TYPE REGEN-MAXCOUNT ,
it_xyt_reabld  TYPE STANDARD TABLE OF REABLD ,
wa_xyt_reabld  LIKE LINE OF it_xyt_reabld,
ld_x_correct  TYPE REGEN-KENNZX ,
ld_x_only_formal_checks  TYPE REGEN-KENNZX ,
ld_x_valdep_partly  TYPE REGEN-KENNZX ,
ld_x_te444  TYPE TE444 .

ld_xy_obj = 'Check type of data required'.

ld_x_maxerror = 123

"populate fields of struture and append to itab
append wa_xyt_reabld to it_xyt_reabld.

ld_x_correct = some text here

ld_x_only_formal_checks = some text here

ld_x_valdep_partly = some text here
ld_x_te444 = '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 ISU_O_METERREAD_INPUT1 or its description.