Fonction SAP BAPI_OBJCL_GETCLASSES - Classification BAPI: Classes for Object

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CLASSTYPE_IMP BAPI1003_KEY-CLASSTYPE C 3 Class Type
KEYDATE BAPI1003_KEY-KEYDATE D 8 SY-DATUM X Key date
LANGUAGE BAPIFIELDSCACL-BAPILANGUA C 1 SY-LANGU X Language Key
OBJECTKEY_IMP BAPI1003_KEY-OBJECT C 50 Key of Object to be Classified
OBJECTTABLE_IMP BAPI1003_KEY-OBJECTTABLE C 30 Name of Database Table for Object
READ_VALUATIONS BAPI1003_KEY-FLAG C 1 X Read Assigned Values

Paramètre Reférence Long. Facultatif Description
ALLOCLIST BAPI1003_ALLOC_LIST 103 Class BAPI: Assignment List
ALLOCVALUESCHAR BAPI1003_ALLOC_VALUES_CHAR 124 X Assigned CHAR and BOOL Values
ALLOCVALUESCURR BAPI1003_ALLOC_VALUES_CURR 104 X Assigned CURR Values
ALLOCVALUESNUM BAPI1003_ALLOC_VALUES_NUM 96 X Assigned NUM, DATE, and TIME Values
RETURN BAPIRET2 548 Return Parameters


Functionality
This BAPI returns all classes where an object (for example, material)is classified. Usually, this is exactly one class, but multipleclassification means that there can be several.
The object is determined by the object key (ObjectKey) and the objecttable (ObjectTable). You must also enter the class type (ClassType).
Table AllocList contains the classes (ClassNum), class type(ClassType), classification status (Status), and object information.Error messages are logged in table RETURN. If the BAPI runssuccessfully, table RETURN contains no messages of type 'E'.

Notes
The object key (ObjectKey) must be transferred in internal format,before conversion exits. For example, a material number must betransferred with leading zeros.
This BAPI can only be used with objects that are not classes.

Description
Class type

Description
Date

Default
System date

Description
Language in which characteristic value descriptions and characteristicdescriptions are to be displayed.

Default
Logon language

Description
Key of object to be classified

Description
Name of database table for object

Description
If this indicator is set, the related values are read and output. Ifthe values are not required, do not set this indicator, because ofsystem performance.

Description
BAPI for classes: assignment list

Description
Assigned values for characteristics of type character and BOOL

Description
Assigned values for characteristics with currency format

Description
Assigned values for characteristics of types numeric, date, and time

Description
Return parameters