Fonction SAP BAPI_CLASS_GET_CHARACTERISTICS - Import Characteristics and Allowed Values for Class

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CLASSNUM BAPI_CLASS_KEY-CLASSNUM C 18 Class
CLASSTYPE BAPI_CLASS_KEY-CLASSTYPE C 3 Class Type
KEY_DATE BAPI_KEY_DATE-KEY_DATE D 8 SY-DATUM X Validity Time
LANGU_INT BAPI_LANGUAGE-LANGUAGE_INT C 1 X Internal Language Key
LANGU_ISO BAPI_LANGUAGE-LANGUAGE_ISO C 2 X ISO Language Key
WITH_VALUES BAPI_WITH_VALUES-WITH_VAL C 1 'X' X Find Allowed Values

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN1 u 470 Return Parameters for Messages

Paramètre Reférence Long. Facultatif Description
CHARACTERISTICS BAPI_CHAR 198 Chars with Attributes
CHAR_VALUES BAPI_CHAR_VALUES 168 Allowed Values for Characteristics

Functionality
This module reads characteristics and allowed values for a class.
This includes overwritten characteristics and values.

Description
Return parameter for messages

Description
External class number: together with CLASSTYPE, this identifies aclass.

Description
Class type: together with CLASSNUM, this identifies a class.

Description
If engineering change management is active, the date influences theresult.

Description
Language key in internal format

Description
Language for returning object texts and value descriptions.

Default
Logon language

Description
If you select this parameter ('X'), the program reads the allowedvalues for the characteristics.

Description
NAME_CHAR: Name of characteristic
DESCR_CHAR: Description
ENTRY_OBLIGATORY: Entry required
ADDITIONAL_VAL: Additional values allowed
UNIT: Unit in internal format
If the characteristic has NUM or CURR format
(CURR to remain compatible with internal format in
classification system), this is the unit or currency
in internal format.
UNIT_T_EXT: External technical unit (6 characters)
If the characteristic has NUM format, this is the
unit in external technical format.
BASE_UOM_ISO: Unit in ISO format.
If the characteristic has NUM format, this is the
unit in ISO format.
CURRENCY: Currency in internal format
If the characteristic has CURR format, this is the
currency in internal format.
CURRENCY_ISO: Currency in ISO format
If the characteristic has CURR format, this is the
currency in ISO format.
DATA_TYPE: Data type
NUMBER_DIGITS: Number of characters
NUMBER_DECIMALS: Number of decimal places
TEMPLATE: Template
DIN_KEY: DIN code
DEPARTMENT_VIEW: Organizational area (view for department)
SIGN: Plus or minus sign
SINGLE_VALUE: Single value
INTERVALS_ALLOWED: Interval values allowed
CASE_SENSITIVE: Case sensitive
OBJECT_TABLE: Table for reference characteristic
TABLE_FIELD: Table field for reference characteristic
CHAR_INHERITED: Inherited characteristic

Description
NAME_CHAR: Name of characteristic
CHAR_VALUE: Characteristic value in character format
If the characteristic has CHAR or BOOL format, this
field contains an entry.
DESCR_CVAL: Value description
If the characteristic has CHAR format and value
descriptions exist in the language you transfer, this
field contains an entry.
NUM_VAL_FM: Characteristic value in NUM format/lower limit of interval
If the characteristic has NUM, DATE, TIME or CURR format,
this field contains an entry.
The entry matches the internal format:
NUM: Figure without unit
DATE: YYYYMMDD - for example, 19971231
CURR: Figure without currency key (with decimal point)
TIME: HHMMSS (maximum value is 240000)
If the value is a single value, field VAL_RELATN contains
a 1.
NUM_VAL_TO: Upper limit of numeric interval
If the characteristic has NUM, DATE, TIME or CURR format,
and an interval is found, this field contains the upper
limit of the interval (internal format).
CURR_VAL_FM: If the characteristic has CURR format, this field shows
the figure in field NUM_VAL_FM, in external format.
CURR_VAL_TO: If the characteristic has CURR format, this field shows
the figure in field NUM_VAL_TO, in external format.
VAL_RELATN: Value description
If the characteristic has NUM, DATE, TIME or CURR format,
this field contains an value that describes the
relationship between NUM_VAL_FM and NUM_VAL_TO.
This value can be a single value or an interval.
The following example assumes that:
NUM_VAL_FM = 1 or initial
NUM_VAL_TO = 5 or initial
VAL_RELATN NUM_VAL_FM NUM_VAL_TO Example
1 EQ 1
2 GE LT >=1 - <5
3 GE LE >=1 - <=5
4 GT LT >1 - <5
5 GT LE >1 - <=5
6 LT <5
7 LE <=5
8 GT >1
9 GE >=1
For formats CHAR and BOOL, the value for VAL_RELATN is 1.