Methods: Item
BulkUDCCreateOrAmend
Driver Type: DJI
Use this method for the bulk loading of item user defined costs data or bulk amendment of item user defined costs data, where performance is critical.
Closed
Driver Type: SASI
Use this method to change the status of one or more items to Closed.
CreateAsDraft
Driver Type: SASI
Use this method to create one or more draft items.
CreateOrAmend
Driver Type: SASI
Use this method to create or amend one or more items. An item is created if it does not exist and amended if it does. Whereas both the Create and Amend methods require you to know in advance if the item exists, this method can be used if you are unsure.
CreateReplaceOrDelete
Driver Type: SASI
Use this method to synchronize items. An item is created if it does not exist already and replaced if it does. If an item does not exist in the originating business unit, it is deleted.
Delete
Driver Type: SASI
Use this method to delete one or more items.
The default is to delete Item Costs (where possible) when Item deletion is requested. If you do not wish the component to attempt the item costs deletion you must set a parameter accordingly. In TPD/TD the 'Allow Item Costs Deletion' should be unchecked if deletion of child records should not take place. Otherwise, include the following in the payload used to prevent the deletion:
<MethodContext> <ItemMethodContext> <AllowItemCostsDeletion>N</AllowItemCostsDeletion> </ItemMethodContext> </MethodContext>
DeleteChildData
Driver Type: SASI
Use this method to delete child data (Item Costs, Assign Conversions, Unit Labels, Alternative Items, Serial Number, Item Characteristics, Storage Characteristics) but retain the parent record (Item).
It is also possible to delete 'grandchild' data. The deletion of child
and grandchild data is controlled by a
<DeletionFlag>
node at child level. If the flag
is set to Y, both child and grandchild is deleted. Otherwise, the child data is
retained.
For example, the
<Characteristics>
node contains child data, and
the
<NumericValues>
node contains grandchild data.
The
<DeletionFlag>
node is set to Y, so the
<DiscreteValueNumeric>
data is deleted first,
followed by the
<CharacteristicCode>
data:
<Item> <ItemCode>TEST</ItemCode> <Characteristics> <DeletionFlag> <DeleteCharacteristicAfterDiscreteValue>Y</DeleteCharacteristicAfterDiscreteValue> </DeletionFlag> <CharacteristicCode>CHILLED</CharacteristicCode> <NumericValues> <DiscreteValueNumeric>2</DiscreteValueNumeric> </NumericValues> </Characteristics> <Costs> <CostAnalysisId>1</CostAnalysisId1> <CostTypeCode>MATERIAL</CostTypeCode> <CurrencyCode>GBP</CurrencyCode> <TransactionCurrency>0</TransactionCurrency> <DeletionFlag> <DeleteCostAfterUDCostDeletion>Y</DeleteCostAfterUDCostDeletion> </DeletionFlag> <ItemUserDefinedCost> <ItemCostId>REVALUATION</ItemCostId> </ItemUserDefinedCost> </Costs> </Item>
Hidden
Driver Type: SASI
Use this method to change the status of one or more items to Hidden.
Open
Driver Type: SASI
Use this method to change the status of one or more items to Open.
Query
Driver Type: Export
Use this method to obtain item details or to extract item data from SunSystems.
SuspendedHeld
Driver Type: SASI
Use this method to change the status of one or more items to Suspended/Held.