Description
Sets the specified report layout as default for a specific document type.
Syntax
Parameters
Example
| Setting a default report layout (Visual Basic) | Copy Code |
|---|
Dim oCmpSrv As SAPbobsCOM.CompanyService
Dim oReportLayoutService As ReportLayoutsService
Dim oDefaultReportParams As DefaultReportParams
oCmpSrv = oCompany.GetCompanyService
oReportLayoutService = oCmpSrv.GetBusinessService(ServiceTypes.ReportLayoutsService)
oDefaultReportParams = oReportLayoutService.GetDataInterface(ReportLayoutsServiceDataInterfaces.rlsdiDefaultReportParams)
oDefaultReportParams.LayoutCode = "POR20005"
oDefaultReportParams.ReportCode = "POR2"
oDefaultReportParams.UserID = 1
oReportLayoutService.SetDefaultReport(oDefaultReportParams)
|
|
See Also