Create a new period categories in SAP BO
星期五, 二月 15, 2008 19:58Posted in category 工作
The following is a VB.NET sample that creates new period categories and returns its parameters.
Dim oPeriodCategory As PeriodCategory
‘get period category
oPeriodCategory = oCompanyService.GetDataInterface(CompanyServiceDataInterfaces.csdiPeriodCategory)
’set period code
oPeriodCategory.PeriodCategory = “My Period Code”
’set period name
oPeriodCategory.PeriodName = “My Period Name”
’set the period type can be year,quater,month or day
‘(e.g. spt_Year=0,spt_quater=1,spt_month=2,spt_days)
oPeriodCategory.SubPeriodType = BoSubPeriodTypeEnum.spt_Year
’set the beginning of Financial Year
oPeriodCategory.BeginningofFinancialYear =”2008-01-01″
oCompanyService.CreatePeriod(oPeriodCategory)
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.