📚 SAP Business One SDK Help

GetFinancialYearList Method
See Also  Example

Description

Retrieves the keys and names of all the financial years.

Syntax

Visual Basic
Public Function GetFinancialYearList() As FinancialYearsParams

Example

Getting a list of financial years (C#)Copy Code
try 

    SAPbobsCOM.FinancialYearsParams oGetList = oFYSrv.GetFinancialYearList(); 
    String result; 
    foreach(SAPbobsCOM.FinancialYearParams oGetItem in oGetList) 
    { 
        result = oGetItem.AbsEntry + " " + oGetItem.Code + " " + oGetItem.Description; 
        Interaction.MsgBox(result, (Microsoft.VisualBasic.MsgBoxStyle)(0), null); 
    } 

catch (Exception ex) 

    Interaction.MsgBox(ex.Message, (Microsoft.VisualBasic.MsgBoxStyle)(0), null); 

See Also