Loading...
 

CX_SET_ALLOCATION - Allocation tables

CX_SET_ALLOCATION

Class hierarchy
Description: (Business Patterns)

An allocation table is a list of allocations. Normally, the list consists of individual or conditional allocations.

The class for describing bills of material (CX_BILL_OF_MATERIAL) and the class for describing task lists(CX_JOB_SCHEDULE) is derived directly from this class CX_SET_ALLOCATION.

For bills of material, routings CX_SET_ALLOCATION is defined in the sense of a resource with a list consisting of "object xxx with quantity yyy". (CX_SINGLE_ALLOCATION).

CX SET ALLOCATION

Code example:
  Var(setAllocation, singleAllocation)
  // Allokationstabelle generieren
CreatePersObject(CX_SET_ALLOCATION) -> setAllocation

// Steuerungs-KZ setzen
1 setAllocation Put(setAllocationEnum)

// Einzel-Allokation in Allokationstabelle setzen
CreatePersObject(CX_SINGLE_ALLOCATION) -> singleAllocation
singleAllocation setAllocation Insert(allocations, allocators)
List of methods (MDI)
Function MA* Parameters Return Brief description
Inspect
SanityCheck INTEGER Check for consistency of the object
AllocatorByCondition STRING OBJECT
AllocatorByConditionMA * STRING
AllocatorsByCondition STRING COLLECTION
AllocatorsByConditionMA * STRING
Amount OBJECT
AmountWeak OBJECT
AssignSlot * STRING Set/read slots that refer to another data field
ClassFilter STRING, INTEGER OBJECT This object, if it corresponds to a certain class
ConditionedFilter STRING OBJECT
ConditionedFilter2 OBJECT OBJECT
Deleted INTEGER Object marked as deleted?
Description STRING Name of this object
GetDomain INTEGER Domain of this object
GetSiblings COLLECTION All siblings of this object
GetSiblings2 COLLECTION All siblings of this object
GetSlotEntries VECTOR<object> Return of internal information about slots
LastUpdate OBJECT Date of the last write access
LastUser INTEGER User who last had write access to the object
link OBJECT Add this object to the list of objects with validity
NextValidObject OBJECT Subsequent validity object in time
Occurrences OBJECT, INTEGER COLLECTION
PreviousValidObject OBJECT Previous validity object in time
Resolve OBJECT, OBJECT, STRING, INTEGER
ResolveNew OBJECT, OBJECT, STRING, INTEGER Recursive call of this function for all allocations in the set allocations
RestrictedValidity * Area of validity restricted?
SetDomain INTEGER,INTEGER Set domain
SetInspectionMessage INTEGER
SetPreMessage INTEGER
ShortName STRING Short name of this object
Siblings * Objects with validity
SpanDateValidity * Period of validity
string INTEGER CX_STRING Returns the string representation of the object
UniqueID STRING Content of the fixed data field "uniqueID
Unlink Remove this object from the list of objects with validity
Unlink2 Remove this object from the list of objects with validity
Valid OBJECT INTEGER Check validity
ValidSince OBJECT Start of validity period
ValidToday INTEGER Valid today?
ValidUntil OBJECT End of validity period
VerifySiblings INTEGER Check ring of exchange objects

* MA = Member Access function,
grey background = inherited function

Data directory (DDI)
Data field Type Reference class I* Brief description
allocations REL_MN CX_ALLOCATION List of allocations
setAllocationEnum ENUMSHORT 0: no control
1: if quantity = 0, omit
2: consists of
4: distributed to
8: forms group with
16: sequence prescribed
32: simultaneous allocation
allocators REL_MN CX_EXPANDABLE Backreference, if object itself is referenced within an allocation
amount POINTER CX_AMOUNT Reference quantity for all (subordinate) allocations in the set
attributeSet POINTER CX_ATTRIBUTE_SET Attributes for the description of the allocation
baseAmount POINTER CX_AMOUNT NULL
uniqueID STRING * Unique key
validity POINTER CX_VALIDITY Validity period of the object

* I = Indexable data field,
grey background = inherited data field

Use in AppsWH
Module Brief description
setalloc.mod Allocation set basic module
setaledt.mod Allocation set editing module
setalsel.mod Allocation set selection module