📚 SAP Business One SDK Help

DistributionRule Object Members
See Also  Overview 

Public Methods

Public Method FromXMLFileSets the object's properties using data from an XML file.

The XML file can be created using the object's ToXMLFile method.

Public Method FromXMLStringSets the object's properties using data from an XML string.

The XML string can be created using the object's ToXMLString method.

Public Method GetXMLSchemaReturns the XML schema for the XML generated by the ToXMLFile and ToXMLString methods.
Public Method ToXMLFileCreates an XML file that represents the object.
Public Method ToXMLStringCreates and returns an XML string that represents the object.

Public Properties

Public Property ActiveSpecify whether the distribution rule is active.

Field name: Active.

Public Property DirectIndicates whether the allocation of amounts is done directly or indirectly.

Field name: Direct

Public Property DistributionRuleLinesThe set of profit centers to which to assign costs and revenues that have been tied to this distribution rule.
Public Property FactorCodeThe key for a specific distribution rule.

Field name: OcrCode

Public Property FactorDescriptionA description for a specific distribution rule.

Field name: OcrName

Public Property InWhichDimensionThe dimension in which this distribution rule is located.

Field name: DimCode

This is a foreign key to the Dimension object.

Public Property IsFixedAmountproperty IsFixedAmount
Public Property TotalFactorA number that represents 100 percent of the amount to be distributed.

For example, if TotalFactor is 80, and the distribution contained profit center A at 20 and profit center B at 60, then profit center A would be allocated 25 percent and profit center B would be allocated 75 percent.

Field name: OcrTotal

Public Property UserFieldsReturns the UserFields object.

See Also