6
CUSTOMER
© 2019 SAP SE or an SAP affiliate company. All rights reserved.
Working
with SAP Business One Service Layer
3.8.8 Customized Views Exposure .............................................................................................. 70
3.8.9 Customized Views Query ................................................................................................... 72
3.8.10 Semantic Layer Basic Authentication ............................................................................... 72
3.9 Batch Operations ................................................................................................................................. 73
3.9.1 Batch Request Method and URI......................................................................................... 73
3.9.2 Batch Request Headers ...................................................................................................... 74
3.9.3 Batch Request Body ........................................................................................................... 74
3.9.4 Change Sets......................................................................................................................... 75
3.9.5 Batch Request Sample Codes ........................................................................................... 76
3.9.6 Batch Response .................................................................................................................. 77
3.10 Retrieving Individual Properties ......................................................................................................... 80
3.11 Associations ......................................................................................................................................... 82
3.11.1 Metadata Definitions of Associations and Navigation Properties .................................. 82
3.11.2 Retrieving navigation properties as entity ........................................................................ 84
3.11.3 Retrieving navigation properties via $expand .................................................................. 84
3.12 User-Defined Schemas ....................................................................................................................... 85
3.13 User-Defined Fields (UDFs) ................................................................................................................ 87
3.13.1 Managing Metadata of UDFs .............................................................................................. 88
3.13.2 CRUD Operations ................................................................................................................ 90
3.14 User-defined Tables (UDTs) ................................................................................................................91
3.14.1 Managing Metadata of UDTs.............................................................................................. 92
3.14.2 CRUD Operations ................................................................................................................ 92
3.15 User-Defined Objects (UDOs) ............................................................................................................ 93
3.15.1 Managing Metadata of UDOs ............................................................................................. 94
3.15.2 Creating Entity for a UDO ................................................................................................... 98
3.15.3 Retrieving Entity for UDO ................................................................................................... 99
3.15.4 Updating Entity for UDO .................................................................................................... 101
3.15.5 Deleting Entity for UDO...................................................................................................... 101
3.15.6 Canceling/Closing Entity for UDO .................................................................................... 101
3.16 Attachments ...................................................................................................................................... 102
3.16.1 Setting up an Attachment Folder .................................................................................... 103
3.16.2 Uploading an Attachment ................................................................................................ 104
3.16.3 Downloading Attachments ............................................................................................... 107
3.16.4 Updating Attachment ....................................................................................................... 108
3.17 Item Image and Employee Image .......................................................................................................111
3.17.1 Setting up an Item Image Folder........................................................................................111
3.17.2 Getting an Item Image or an Employee Image .................................................................111
3.17.3 Updating or Uploading an Item Image ............................................................................. 112
3.17.4 Deleting an Item Image ...................................................................................................... 114
3.18 JavaScript Extension .......................................................................................................................... 114
3.18.1 JavaScript Parsing Engine ................................................................................................. 115
3.18.2 JavaScript Extension Framework ..................................................................................... 115
3.18.3 JavaScript Entry Function ................................................................................................. 116
3.18.4 JavaScript URL Mapping ................................................................................................... 117
3.18.5 JavaScript SDK ................................................................................................................... 117
3.18.6 Logging ............................................................................................................................... 130
3.18.7 JavaScript SDK Generator Tool ....................................................................................... 130
3.18.8 JavaScript Deployment ..................................................................................................... 131
3.18.9 Typical User Cases of Applying Script ............................................................................ 133
3.18.10 Consume Script Service from .Net Application ............................................................. 136