6
PUBLIC
© 2024 SAP SE or an SAP affiliate company. All rights reserved.
Working
with SAP Business One Service Layer
3.8.7 Semantic Layer View Query ............................................................................................... 63
3.8.8 Customized Views Exposure .............................................................................................. 70
3.8.9 Customized Views Query ................................................................................................... 72
3.8.10 Semantic Layer Basic Authentication ............................................................................... 72
3.9 SQL View Exposure ............................................................................................................................. 73
3.9.1 Create View .......................................................................................................................... 73
3.9.2 Expose View ......................................................................................................................... 74
3.9.3 View Service Endpoint ........................................................................................................ 75
3.9.4 Query View ........................................................................................................................... 77
3.9.5 Authorize View......................................................................................................................81
3.10 Batch Operations ................................................................................................................................. 82
3.10.1 Batch Request Method and URI......................................................................................... 82
3.10.2 Batch Request Headers ...................................................................................................... 82
3.10.3 Batch Request Body ........................................................................................................... 82
3.10.4 Change Sets......................................................................................................................... 83
3.10.5 Batch Request Sample Codes ........................................................................................... 84
3.10.6 Batch Response .................................................................................................................. 86
3.11 Retrieving Individual Properties ......................................................................................................... 89
3.12 Associations ......................................................................................................................................... 90
3.12.1 Metadata Definitions of Associations and Navigation Properties ...................................91
3.12.2 Retrieving navigation properties as entity ........................................................................ 93
3.12.3 Retrieving navigation properties via $expand .................................................................. 93
3.13 User-Defined Schemas ....................................................................................................................... 94
3.13.1 Filter Fields........................................................................................................................... 95
3.14 User-Defined Fields (UDFs) ................................................................................................................ 96
3.14.1 Managing Metadata of UDFs .............................................................................................. 97
3.14.2 CRUD Operations ................................................................................................................ 99
3.15 User-defined Tables (UDTs) ............................................................................................................. 100
3.15.1 Managing Metadata of UDTs............................................................................................. 101
3.15.2 CRUD Operations ............................................................................................................... 101
3.16 User-Defined Objects (UDOs) .......................................................................................................... 102
3.16.1 Managing Metadata of UDOs ........................................................................................... 103
3.16.2 Creating Entity for a UDO ................................................................................................. 107
3.16.3 Retrieving Entity for UDO ................................................................................................. 108
3.16.4 Updating Entity for UDO .................................................................................................... 110
3.16.5 Deleting Entity for UDO...................................................................................................... 110
3.16.6 Canceling/Closing Entity for UDO .................................................................................... 110
3.17 Attachments ........................................................................................................................................111
3.17.1 Setting up an Attachment Folder ..................................................................................... 112
3.17.2 Uploading an Attachment ................................................................................................. 113
3.17.3 Downloading Attachments ................................................................................................ 117
3.17.4 Updating Attachment ........................................................................................................ 118
3.18 Stream Entity Upload ........................................................................................................................ 120
3.18.1 OData Client Sample .......................................................................................................... 121
3.18.2 SAP UI5 Sample ................................................................................................................ 122
3.19 Item Image and Employee Image ..................................................................................................... 123
3.19.1 Setting up an Item Image Folder...................................................................................... 124
3.19.2 Getting an Item Image or an Employee Image ............................................................... 124
3.19.3 Updating or Uploading an Item Image ............................................................................ 125
3.19.4 Deleting an Item Image ......................................................................................................127