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

Description

Deletes an existing financial year.

The financial year is specified by its key (AbsId), which is contained in the FinancialYearParams object passed to the method.

Syntax

Visual Basic
Public Sub DeleteFinancialYear( _
   ByVal pIFinancialYearParams As FinancialYearParams _
) 

Parameters

pIFinancialYearParams
The key of the financial year to be deleted

Remarks

You cannot delete a financial year if it is associated with a record in the OACM (accumulation) or OACK (acknowledge number) tables.

Example

Deleting a financial year (C#)
try { SAPbobsCOM.FinancialYearParams oDeleteLine; oDeleteLine = (SAPbobsCOM.FinancialYearParams)oFYSrv.GetDataInterface(FinancialYearsServiceDataInterfaces.fysFinancialYearParams); oDeleteLine.AbsEntry = 4; oFYSrv.DeleteFinancialYear(oDeleteLine); } 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