SAP COM_ATTRIBUTE_FIX_VALUES_CHECK Function Module for









COM_ATTRIBUTE_FIX_VALUES_CHECK is a standard com attribute fix values check SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for com attribute fix values check FM, simply by entering the name COM_ATTRIBUTE_FIX_VALUES_CHECK into the relevant SAP transaction such as SE37 or SE38.

Function Group: COM_ATTRIBUTE_CK
Program Name: SAPLCOM_ATTRIBUTE_CK
Main Program: SAPLCOM_ATTRIBUTE_CK
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function COM_ATTRIBUTE_FIX_VALUES_CHECK pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'COM_ATTRIBUTE_FIX_VALUES_CHECK'"
EXPORTING
IS_ATTRIBUTE = "Attribute

IMPORTING
EV_OVERLAPPING_INTERVALS = "Logical Variable
ET_ATTRIBUTE_TABLE = "Table Type for Attribute Intervals
EV_ERROR_VALUE = "Single Value or Lower Limit of Interval
EV_ERROR_VAL_LOW = "Single Value or Lower Limit of Interval
EV_ERROR_VAL_HIGH = "Upper limit of interval

CHANGING
IT_ATTRIBUTE_RANGES = "Table Type for Attribute Intervals
IT_ATTRIBUTE_VALUES = "Table Type for Attribute Single Values

EXCEPTIONS
FIXVAL_NOT_ALLOWED = 1 FIXVAL_TOO_BIG = 2 FIXVAL_CONTAINED_IN_INTERVAL = 3 LOWVAL_GREATER_THAN_HIGHVAL = 4 WRONG_DATATYPE = 5 SEVEN_BIT_ASCII_ERROR = 6 LOW_VALUE_IS_INITIAL = 7 OVERLAPPING_INTERVALLS = 8
.



IMPORTING Parameters details for COM_ATTRIBUTE_FIX_VALUES_CHECK

IS_ATTRIBUTE - Attribute

Data type: COMT_ATTRIBUTE_16_LONG_ID
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for COM_ATTRIBUTE_FIX_VALUES_CHECK

EV_OVERLAPPING_INTERVALS - Logical Variable

Data type: COMT_BOOLEAN
Optional: No
Call by Reference: Yes

ET_ATTRIBUTE_TABLE - Table Type for Attribute Intervals

Data type: COMT_ATTRIBUTE_RANGES_TAB
Optional: No
Call by Reference: Yes

EV_ERROR_VALUE - Single Value or Lower Limit of Interval

Data type: COMT_PRCAT_ATTR_VAL_LOW
Optional: No
Call by Reference: Yes

EV_ERROR_VAL_LOW - Single Value or Lower Limit of Interval

Data type: COMT_PRCAT_ATTR_VAL_LOW
Optional: No
Call by Reference: Yes

EV_ERROR_VAL_HIGH - Upper limit of interval

Data type: COMT_PRCAT_ATTR_VAL_HIGH
Optional: No
Call by Reference: Yes

CHANGING Parameters details for COM_ATTRIBUTE_FIX_VALUES_CHECK

IT_ATTRIBUTE_RANGES - Table Type for Attribute Intervals

Data type: COMT_ATTRIBUTE_RANGES_TAB
Optional: No
Call by Reference: Yes

IT_ATTRIBUTE_VALUES - Table Type for Attribute Single Values

Data type: COMT_ATTRIBUTE_VALUES_TAB
Optional: No
Call by Reference: Yes

EXCEPTIONS details

FIXVAL_NOT_ALLOWED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

FIXVAL_TOO_BIG -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

FIXVAL_CONTAINED_IN_INTERVAL -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

LOWVAL_GREATER_THAN_HIGHVAL -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

WRONG_DATATYPE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

SEVEN_BIT_ASCII_ERROR -

Data type:
Optional: No
Call by Reference: Yes

LOW_VALUE_IS_INITIAL -

Data type:
Optional: No
Call by Reference: Yes

OVERLAPPING_INTERVALLS -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for COM_ATTRIBUTE_FIX_VALUES_CHECK Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_is_attribute  TYPE COMT_ATTRIBUTE_16_LONG_ID, "   
lv_fixval_not_allowed  TYPE COMT_ATTRIBUTE_16_LONG_ID, "   
lv_it_attribute_ranges  TYPE COMT_ATTRIBUTE_RANGES_TAB, "   
lv_ev_overlapping_intervals  TYPE COMT_BOOLEAN, "   
lv_fixval_too_big  TYPE COMT_BOOLEAN, "   
lv_et_attribute_table  TYPE COMT_ATTRIBUTE_RANGES_TAB, "   
lv_it_attribute_values  TYPE COMT_ATTRIBUTE_VALUES_TAB, "   
lv_ev_error_value  TYPE COMT_PRCAT_ATTR_VAL_LOW, "   
lv_fixval_contained_in_interval  TYPE COMT_PRCAT_ATTR_VAL_LOW, "   
lv_ev_error_val_low  TYPE COMT_PRCAT_ATTR_VAL_LOW, "   
lv_lowval_greater_than_highval  TYPE COMT_PRCAT_ATTR_VAL_LOW, "   
lv_wrong_datatype  TYPE COMT_PRCAT_ATTR_VAL_LOW, "   
lv_ev_error_val_high  TYPE COMT_PRCAT_ATTR_VAL_HIGH, "   
lv_seven_bit_ascii_error  TYPE COMT_PRCAT_ATTR_VAL_HIGH, "   
lv_low_value_is_initial  TYPE COMT_PRCAT_ATTR_VAL_HIGH, "   
lv_overlapping_intervalls  TYPE COMT_PRCAT_ATTR_VAL_HIGH. "   

  CALL FUNCTION 'COM_ATTRIBUTE_FIX_VALUES_CHECK'  "
    EXPORTING
         IS_ATTRIBUTE = lv_is_attribute
    IMPORTING
         EV_OVERLAPPING_INTERVALS = lv_ev_overlapping_intervals
         ET_ATTRIBUTE_TABLE = lv_et_attribute_table
         EV_ERROR_VALUE = lv_ev_error_value
         EV_ERROR_VAL_LOW = lv_ev_error_val_low
         EV_ERROR_VAL_HIGH = lv_ev_error_val_high
    CHANGING
         IT_ATTRIBUTE_RANGES = lv_it_attribute_ranges
         IT_ATTRIBUTE_VALUES = lv_it_attribute_values
    EXCEPTIONS
        FIXVAL_NOT_ALLOWED = 1
        FIXVAL_TOO_BIG = 2
        FIXVAL_CONTAINED_IN_INTERVAL = 3
        LOWVAL_GREATER_THAN_HIGHVAL = 4
        WRONG_DATATYPE = 5
        SEVEN_BIT_ASCII_ERROR = 6
        LOW_VALUE_IS_INITIAL = 7
        OVERLAPPING_INTERVALLS = 8
. " COM_ATTRIBUTE_FIX_VALUES_CHECK




ABAP code using 7.40 inline data declarations to call FM COM_ATTRIBUTE_FIX_VALUES_CHECK

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!