biuan SAP® BUSINESS ONE SDK
API Report Types Service

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#)
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

SAP® B1 DI-API C# definition

public class ReportTypesServiceClass : IReportTypesService, ReportTypesService { public extern ReportTypesServiceClass(); public virtual extern ReportTypeParams AddReportType( ReportType pIReportType); public virtual extern void DeleteReportType( ReportType pIReportType); public virtual extern object GetDataInterface( ReportTypesServiceDataInterfaces enumMSDI); public virtual extern object GetDataInterfaceFromXMLFile( string bstrFileName); public virtual extern object GetDataInterfaceFromXMLString( string bstrXMLString); public virtual extern ReportType GetReportType( ReportTypeParams pIReportTypeParams); public virtual extern ReportTypesParams GetReportTypeList(); public virtual extern void UpdateReportType( ReportType pIReportType); }

Related information


Report Types Service Data Interfaces ReportTypesServiceDataInterfaces Enumeration
ReportTypesService data interfaces.
   Parent: Report Types Service ReportTypesService Service· Table: RTYP

Report Type ReportType Object· Table: RTYP
Represent the report type to which a layout is assigned. You can insert report types for add-on forms. Source table: RTYP.
   Parent: Report Types Service ReportTypesService Service· Table: RTYP

Report Types Params ReportTypesParams Collection
A collection of ReportTypeParams objects.
   Parent: Report Types Service ReportTypesService Service· Table: RTYP


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