getAccountingEntity macro
Use this macro to get the accounting entity of a Property the
UserArea. This only applies to Properties of type
CodeType
or
MasterDataReferenceType
string getAccountingEntity(long property.node)
Argument | Description |
---|---|
Property Node | The node of a previously retrieved property. Note that if the given node is not a property, or of a type for which the accounting entity attribute is not applicable, the result is unpredictable. |
Return value: The accounting entity of the given property.
Example:
domain tccwoc old.wc
long property.node
string accounting.entity(20)
property.node = getNamedProperty("oldWorkCenter")
if property.node <> 0 then
old.wc = getPropertyValue(property.node)
accounting.entity = getAccountingEntity(property.node)
txppldll0001.process.old.wc(old.wc, accounting.entity)
endif