Ansicht
Dokumentation

NUMBER_CHECK - Number range: Checks whether number lies in the number interval

NUMBER_CHECK - Number range: Checks whether number lies in the number interval

CPI1466 during Backup   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book
Preliminary comment

This function module has been released.

The documentation is being revised so that it conforms to the requirements for released function modules.

This function module checks whether a number is in an external interval.

All exceptions are created with MESSAGE ... RAISING ... .

Example:

  1. Object HUGO, not year-dependent

    DATA: NUMBER(10) TYPE C,
          RC         TYPE INRI-RETURNCODE.

       NUMBER        = ...

       CALL FUNCTION 'NUMBER_CHECK'
            EXPORTING
  2. OBJECT = 'HUGO'
    NR_RANGE_NR = '01'
    NUMBER = NUMBER
    IMPORTING
    RETURNCODE = RC.

    CASE RC.
    WHEN ' '.
    * Number is in the interval
    WHEN 'X'.
    * Number is not in the interval
    ENDCASE.
  3. Object EGON, year-dependent

    DATA: NUMBER(10) TYPE C,
    RC TYPE INRI-RETURNCODE,
    YEAR TYPE INRI-TOYEAR.

    YEAR = '1992'.
    T001-BUKRS = '0001'.
    NUMBER = ...

    CALL FUNCTION 'NUMBER_CHECK'
    EXPORTING
    OBJECT = 'EGON'
    NR_RANGE_NR = '01'
    NUMBER = NUMBER
    SUBOBJECT = T001-BUKRS
    TOYEAR = YEAR
    IMPORTING
    RETURNCODE = RC.

    CASE RC.
    WHEN ' '.
    * Number is in the interval
    WHEN 'X'.
    * Number is not in the interval
    ENDCASE.




Parameters

LENGTH_CHECK
NR_RANGE_NR
NUMBER
NUMERIC_CHECK
OBJECT
RETURNCODE
SUBOBJECT
TOYEAR

Exceptions

INTERVAL_NOT_FOUND
NUMBER_RANGE_NOT_EXTERN
OBJECT_NOT_FOUND

Function Group

SNR3

BAL_S_LOG - Application Log: Log header data   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 2891 Date: 20240523 Time: 144704     sap01-206 ( 29 ms )