biuan SAP® BUSINESS ONE SDK
API Financial Years Service / Update Financial Year

Description

Updates an existing financial year.

The data for the financial year, including the key of the financial year to be updated, is contained in the FinancialYear passed to the method. To update a financial year, you must first retrieve it using the GetFinancialYear method.

Syntax

Visual Basic
Public Sub UpdateFinancialYear( _
   ByVal pIFinancialYear As FinancialYear _
) 

Parameters

pIFinancialYear
The data for the financial year to be updated. The FinancialYear object must contain the key of the object to be updated.

Example

Updating a financial year (C#)
try { SAPbobsCOM.FinancialYear oUpdateLine; SAPbobsCOM.FinancialYearParams oGetLine; oGetLine = (SAPbobsCOM.FinancialYearParams)oFYSrv.GetDataInterface(FinancialYearsServiceDataInterfaces.fysFinancialYearParams); oGetLine.AbsEntry = 4; oUpdateLine = oFYSrv.GetFinancialYear(oGetLine); DateTime otime = DateTime.Parse("01/05/2008"); oUpdateLine.StartDate = otime; oUpdateLine.Description = "updated"; oFYSrv.UpdateFinancialYear(oUpdateLine); } catch (Exception ex) { Interaction.MsgBox(ex.Message, (Microsoft.VisualBasic.MsgBoxStyle)(0), null); }

See Also

Related information


Financial Year FinancialYear Object· Table: OFYM
Represents a financial year for TDS (withholding tax) reports. Source table: OFYM
   Parent: Financial Years Service FinancialYearsService Service· Table: OFYM

Financial Years Params FinancialYearsParams Collection
A collection of FinancialYearParams objects.
   Parent: Financial Years Service FinancialYearsService Service· Table: OFYM

Financial Years Service Data Interfaces FinancialYearsServiceDataInterfaces Enumeration
FinancialYearsService data interfaces.
   Parent: Financial Years Service FinancialYearsService Service· Table: OFYM

Financial Years Service FinancialYearsService Service· Table: OFYM
The FinancialYearsService service enables you to add, look up and remove financial roles for TDS (withholding tax) reports. To see the list of employee roles and create a new one, select Administration -- Setup -- Financials -- TDS --...



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