Description
The InventoryCycles object enables to setup cycles of inventory counts and order intervals. Inventory cycles setup enables to track inventory counts by issuing an alert each time a count is due. It also is used for planning the order intervals.
Source table: OCYC.
Object Model
Remarks
Example
| C# | Copy Code |
|---|
AddInventoryCycleEnhancedIn90(oCompany, "CycleAnnualEnhancedIn90", BoFrequency.bof_Annually); AddInventoryCycle(oCompany, "CycleAnnual", BoFrequency.bof_Monthly, DateTime.Today); static void AddInventoryCycleEnhancedIn90(SAPbobsCOM.Company oCompany, string cycleName, BoFrequency frequecy) { InventoryCycles oCycle = (InventoryCycles)oCompany.GetBusinessObject(BoObjectTypes.oInventoryCycles); oCycle.CycleName = cycleName; oCycle.Frequency = frequecy; oCycle.RepeatOption = RepeatOptionEnum.roByDate; oCycle.Interval = 1; oCycle.Hour = DateTime.Now; oCycle.endType = EndTypeEnum.etByDate; oCycle.SeriesEndDate = Convert.ToDateTime("2015-10-30"); oCycle.RecurrenceMonth = 8; // 1 ~ 12 oCycle.RecurrenceDayInMonth = 20; // 1 ~ 31 oCycle.Add(); } static void AddInventoryCycle(SAPbobsCOM.Company oCompany, string cycleName, BoFrequency frequecy, DateTime nextCountingDate) { InventoryCycles oCycle = (InventoryCycles)oCompany.GetBusinessObject(BoObjectTypes.oInventoryCycles); oCycle.CycleName = cycleName; oCycle.Frequency = frequecy; oCycle.Day = 20; // 1 ~ 31 oCycle.Hour = DateTime.Now; oCycle.Add(); }
|
|
See Also