biuan SAP® BUSINESS ONE SDK
DTW Administration / Setup / Inventory / Inventory Cycles
API Inventory Cycles

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

To display the form in the application:

  • Select Administration -->Setup -->Inventory -->Inventory Cycles.

To display the Inventory Cycles Setup for order interval:

  1. Select Inventory -->Item Master Data -->Planning Data tab.
  2. From the Order Interval field, select Define New.

Example

C#
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

SAP® B1 DI-API C# definition

public class InventoryCyclesClass : IInventoryCycles, InventoryCycles { public virtual DataBrowser Browser { get; } public virtual int CycleCode { get; } public virtual string CycleName { get; set; } public virtual int Day { get; set; } public virtual EndTypeEnum endType { get; set; } public virtual BoFrequency Frequency { get; set; } public virtual BoYesNoEnum Friday { get; set; } public virtual DateTime Hour { get; set; } public virtual int Interval { get; set; } public virtual int MaxOccurrence { get; set; } public virtual BoYesNoEnum Monday { get; set; } public virtual DateTime NextCountingDate { get; set; } public virtual int RecurrenceDayInMonth { get; set; } public virtual RecurrenceDayOfWeekEnum RecurrenceDayOfWeek { get; set; } public virtual int RecurrenceMonth { get; set; } public virtual RecurrenceSequenceSpecifierEnum RecurrenceSequenceSpecifier { get; set; } public virtual RepeatOptionEnum RepeatOption { get; set; } public virtual BoYesNoEnum Saturday { get; set; } public virtual DateTime SeriesEndDate { get; set; } public virtual BoYesNoEnum Sunday { get; set; } public virtual BoYesNoEnum Thursday { get; set; } public virtual BoYesNoEnum Tuesday { get; set; } public virtual SAPbobsCOM.UserFields UserFields { get; } public virtual BoYesNoEnum Wednesday { get; set; } public extern InventoryCyclesClass(); public virtual extern int Add(); public virtual extern string GetAsXML(); public virtual extern bool GetByKey( int lCode); public virtual extern int Remove(); public virtual extern void SaveToFile( string bstrFileName); public virtual extern void SaveXML( ref string pbstrFileName); public virtual extern int Update(); }

Related information


Bo Frequency BoFrequency Enumeration
Specifies the cycle interval options for inventory counts.
   Parent: Inventory Cycles InventoryCycles Object· Table: OCYC

End Type Enum EndTypeEnum Enumeration
Specify the end type for the recurring activity.
   Parent: Inventory Cycles InventoryCycles Object· Table: OCYC

Recurrence Day Of Week Enum RecurrenceDayOfWeekEnum Enumeration
For monthly activities, specify the days when the activity recurs. You can specify multiple days.
   Parent: Inventory Cycles InventoryCycles Object· Table: OCYC

Recurrence Sequence Specifier Enum RecurrenceSequenceSpecifierEnum Enumeration
The recurrence week in the month.
   Parent: Inventory Cycles InventoryCycles Object· Table: OCYC

Repeat Option Enum RepeatOptionEnum Enumeration
Specifies the date on which the recurring activity is to take place.
   Parent: Inventory Cycles InventoryCycles Object· Table: OCYC


SAP® Business One is the trademark(s) or registered trademark(s) of SAP AG in Germany and in several other countries. Icons by Icons8 Contact
This website is not affiliated with, maintained, authorized, endorsed or sponsored by SAP AG or any of its affiliates