📚 SAP Business One SDK Help

ReportTypesService Object
See Also  Members  Example

Description

The ReportTypesService service enables you to add, look up, and delete the report types in SAP Business One.

Source table: RTYP.

Object Model




Example

Adding New Report Type (C#)Copy Code
SAPbobsCOM.ReportTypesService rptTypeService = (SAPbobsCOM.ReportTypesService)oCompany.GetCompanyService().GetBusinessService(SAPbobsCOM.ServiceTypes.ReportTypesService); 
SAPbobsCOM.ReportType newType = (SAPbobsCOM.ReportType)rptTypeService.GetDataInterface(SAPbobsCOM.ReportTypesServiceDataInterfaces.rtsReportType); 
newType.TypeName = "Addon Demo Type 3"; 
newType.AddonName = "SimpleForm"; 
newType.AddonFormType = "MySimpleForm"; 
newType.MenuID = "MySubMenu01"; 
SAPbobsCOM.ReportTypeParams newTypeParam = rptTypeService.AddReportType(newType); 



See Also