SAP Function Modules

RV_CHECK_CONDITION_VALUE SAP Function module







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

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


Pattern for FM RV_CHECK_CONDITION_VALUE - RV CHECK CONDITION VALUE





CALL FUNCTION 'RV_CHECK_CONDITION_VALUE' "
  EXPORTING
*   basic_quantity_unit =       " konp-kmein    Base unit of measure
    check_currency =            " konp-konwa    Currency of value to be checked
*   check_date =                " sy-datum      Date for exchange rate conversion
    check_krech =               " konp-krech    Calculation type of value to be ch
    check_price_quantity =      " konp-kpein    Price quantity of values to be che
    check_quantity_unit =       " konp-kmein    Unit of measure of value to be che
*   check_sign_only = ' '       "               Only carry out sign check
    check_value =               " konp-kbetr    Value to be Checked
    condition =                 " konp          Current Workarea condition record
    condition_class =           " t685a-koaid   Condition class
*   local_currency =            " konp-konwa    Local currency
*   message_for_scale_value = ' '  "            Display message for scale value
    only_negative =             " t685a-knega   Indicator : only negative values a
*   product =                   " komg-matnr    Material number
*   rate =                      " tcurr-ukurs   Course: CHECK_CURRENCY <-> LOCAL_C
*   no_check_konp = SPACE       " c
*   check_komv_kschl =          " komv-kschl
  IMPORTING
    check_value =               " konp-kbetr    Value to be Checked
  EXCEPTIONS
    LOWER_LIMIT_RECORD = 1      "               Lower limit condition record dropp
    LOWER_LIMIT_TYPE = 2        "               Lower limit condition type dropped
    NEGATIVE_PRICE = 3          "               Transferred price is negative
    UPPER_LIMIT_RECORD = 4      "               Upper limit condition record excee
    UPPER_LIMIT_TYPE = 5        "               Upper limit condition type exceede
    .  "  RV_CHECK_CONDITION_VALUE

ABAP code example for Function Module RV_CHECK_CONDITION_VALUE





The ABAP code below is a full code listing to execute function module RV_CHECK_CONDITION_VALUE 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_check_value  TYPE KONP-KBETR .


SELECT single KMEIN
FROM KONP
INTO @DATA(ld_basic_quantity_unit).


SELECT single KONWA
FROM KONP
INTO @DATA(ld_check_currency).

DATA(ld_check_date) = '20210129'.

SELECT single KRECH
FROM KONP
INTO @DATA(ld_check_krech).


SELECT single KPEIN
FROM KONP
INTO @DATA(ld_check_price_quantity).


SELECT single KMEIN
FROM KONP
INTO @DATA(ld_check_quantity_unit).

DATA(ld_check_sign_only) = 'some text here'.

SELECT single KBETR
FROM KONP
INTO @DATA(ld_check_value).

DATA(ld_condition) = '20210129'.

SELECT single KOAID
FROM T685A
INTO @DATA(ld_condition_class).


SELECT single KONWA
FROM KONP
INTO @DATA(ld_local_currency).

DATA(ld_message_for_scale_value) = 'some text here'.

SELECT single KNEGA
FROM T685A
INTO @DATA(ld_only_negative).


DATA(ld_product) = some text here

SELECT single UKURS
FROM TCURR
INTO @DATA(ld_rate).

DATA(ld_no_check_konp) = '20210129'.

DATA(ld_check_komv_kschl) = some text here . CALL FUNCTION 'RV_CHECK_CONDITION_VALUE' EXPORTING * basic_quantity_unit = ld_basic_quantity_unit check_currency = ld_check_currency * check_date = ld_check_date check_krech = ld_check_krech check_price_quantity = ld_check_price_quantity check_quantity_unit = ld_check_quantity_unit * check_sign_only = ld_check_sign_only check_value = ld_check_value condition = ld_condition condition_class = ld_condition_class * local_currency = ld_local_currency * message_for_scale_value = ld_message_for_scale_value only_negative = ld_only_negative * product = ld_product * rate = ld_rate * no_check_konp = ld_no_check_konp * check_komv_kschl = ld_check_komv_kschl IMPORTING check_value = ld_check_value EXCEPTIONS LOWER_LIMIT_RECORD = 1 LOWER_LIMIT_TYPE = 2 NEGATIVE_PRICE = 3 UPPER_LIMIT_RECORD = 4 UPPER_LIMIT_TYPE = 5 . " RV_CHECK_CONDITION_VALUE
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 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_check_value  TYPE KONP-KBETR ,
ld_basic_quantity_unit  TYPE KONP-KMEIN ,
ld_check_currency  TYPE KONP-KONWA ,
ld_check_date  TYPE SY-DATUM ,
ld_check_krech  TYPE KONP-KRECH ,
ld_check_price_quantity  TYPE KONP-KPEIN ,
ld_check_quantity_unit  TYPE KONP-KMEIN ,
ld_check_sign_only  TYPE STRING ,
ld_check_value  TYPE KONP-KBETR ,
ld_condition  TYPE KONP ,
ld_condition_class  TYPE T685A-KOAID ,
ld_local_currency  TYPE KONP-KONWA ,
ld_message_for_scale_value  TYPE STRING ,
ld_only_negative  TYPE T685A-KNEGA ,
ld_product  TYPE KOMG-MATNR ,
ld_rate  TYPE TCURR-UKURS ,
ld_no_check_konp  TYPE C ,
ld_check_komv_kschl  TYPE KOMV-KSCHL .


SELECT single KMEIN
FROM KONP
INTO ld_basic_quantity_unit.


SELECT single KONWA
FROM KONP
INTO ld_check_currency.

ld_check_date = '20210129'.

SELECT single KRECH
FROM KONP
INTO ld_check_krech.


SELECT single KPEIN
FROM KONP
INTO ld_check_price_quantity.


SELECT single KMEIN
FROM KONP
INTO ld_check_quantity_unit.

ld_check_sign_only = 'some text here'.

SELECT single KBETR
FROM KONP
INTO ld_check_value.

ld_condition = '20210129'.

SELECT single KOAID
FROM T685A
INTO ld_condition_class.


SELECT single KONWA
FROM KONP
INTO ld_local_currency.

ld_message_for_scale_value = 'some text here'.

SELECT single KNEGA
FROM T685A
INTO ld_only_negative.


ld_product = some text here

SELECT single UKURS
FROM TCURR
INTO ld_rate.

ld_no_check_konp = '20210129'.

ld_check_komv_kschl = 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 RV_CHECK_CONDITION_VALUE or its description.