Fonction SAP BAPI_HIERA_CHANGESUBCLASS - Class Hierarchy BAPI: Change Assignment

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CHANGENUMBER BAPI1003_KEY-CHANGENUMBER C 12 X Change Number
CLASSNUM BAPI1003_KEY-CLASSNUM C 18 Class
CLASSTYPE BAPI1003_KEY-CLASSTYPE C 3 Class Type
KEYDATE BAPI1003_KEY-KEYDATE D 8 SY-DATUM X Valid-From Date
STATUS BAPI1003_KEY-STATUS C 1 '1' X Classification Status
SUBCLASS BAPI1003_KEY-CLASSNUM C 18 Subordinate Class

Paramètre Reférence Long. Facultatif Description
HIERARCHYVALUESNEW BAPI1003_ALLOC_VALUES 144 X Characteristic Values Assigned to Class Assignment
RETURN BAPIRET2 548 Return Parameters

Functionality
This BAPI changes the assignment of a subordinate class to a superiorclass with its assigned values, or creates the assignment with assignedvalues, if the assignment does not yet exist.
The superior class is transferred in field 'ClassNum', the subordinateclass in field 'Subclass', and the class type in field 'ClassType'. Theclassification status is set in field 'StatusNew'. You can alsotransfer a date ('KeyDate'). The characteristics with the new valuesare in table 'HierarchyValuesNew'.
If the BAPI runs successfully, table 'Return' contains no messages oftype 'E'.

Notes
The information transferred by the BAPI replaces the old datacompletely, so that an empty entry means "delete old entry", not "nochange".
This BAPI does not change the database. To do this, BAPIBapiService.TransactionCommit must be called afterward.

Description
Change number

Description
Class

Description
Class type

Description
Valid-from date

Default
System date

Description
Classification status

Default
1

Description
Subordinate class

Description
Assigned characteristic values for class assignment

Description
Return parameters