Home
SAP Business One Service Layer
Contents
1. O 2015 SAP SE or an SAP affiliate company All rights reserved Public
2. Editor x Service Layer interaction usi x mn Advanced Rest Client Applic x Y Q 5 frncel6 S000 tests trinidad JSapp index html Fri9620May96202296202015962015 18 529620GMT 02009620 F a SAP Business One TA service Layer JS B1 Service Layer implementation using Java Script Now you can manipulate SAP Business One objects using also JavaScript Service Layer is based on OData a standard protocol for REST APIs Get BP List BP Name em Name Get Items List pe v Post ITEM Get ITEM CO CU Get Sales Orders List 2015 SAP SE or an SAP affiliate company All rights reserved Public Server Side Java Script SAP HANA Extended Application Services XS Technologies Front end Technologies http s HTML5 SAPUI5 Presentation logic e Client Side JavaScript Control Flow Technologies e OData UML AAA O LU Ll LILA LL e Server Side JavaScript XSJS XML for Analytics XMLA Control flow logic Java Script Calculation logic Data Processing Technologies SQL SQLScript e Calculation Engine Functions Application Function Library AFL 2015 SAP SE or an SAP affiliate company All rights reserved SAP Business One Service Layer server Side JavaScript xsjs var client new net http Client var req new web WebRequest net http POST Session ID stored after login req cookies set BlSESSION sessionID Body contains BusinessP
3. Open Data en E Protocol OData metadata i Doc ME 57 AccountSegmentations gt Activities 5 ActivityLocations 77 ActivityStatuses 77 ActivityTypes 5 AdditionalExpenses 1 service s Found at address https Frncel6 50000 b1s v1 metadata Namespace erviceLayer Cancel dh Access the OData feed from the application by using the generated client data service classes and WCF Data Services client library Document order new ServiceLayer SAPB1 Document order CardCode strCurrentBusinessPartnerCardCode order DocDueDate DateTime Today order DocDate DateTime Today order DocType dDocument Items order DownPaymentType tYES Add lines DocumentLine newLine GetNewDocumentLine order DocumentLines Add newLine currentServiceContainer AddToOrders order DataServiceResponse response currentServiceContainer SaveChanges O 2015 SAP SE or an SAP affiliate company All rights reserved Public Windows Communication Foundation WCF Demo a Windows Forms Demo App Consume Service Layer Odata Service by WCF Connection Management Service URL https fmcel6 50000 b1 s v1 Logout CompanyDB SBODEMOUS User Name manager Password fa Insert Ord oan Get All Paging Orders Pre O 4 Mes DocEntry Customer cann Method POST lemMumber on El RequestUri https frncel6 50000 b1s v1 Login Accept application json odata minimalme
4. by SAP SE or an SAP affiliate company for informational purposes only without representation or warranty of any kind and SAP SE or its affiliated companies shall not be liable for errors or omissions with respect to the materials The only warranties for SAP SE or SAP affiliate company products and services are those that are set forth in the express warranty statements accompanying such products and services if any Nothing herein should be construed as constituting an additional warranty In particular SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related presentation or to develop or release any functionality mentioned therein This document or any related presentation and SAP SE s or its affiliated companies strategy and possible future developments products and or platform directions and functionality are all subject to change and may be changed by SAP SE or its affiliated companies at any time for any reason without notice The information in this document is not a commitment promise or legal obligation to deliver any material code or functionality All forward looking statements are subject to various risks and uncertainties that could cause actual results to differ materially from expectations Readers are cautioned not to place undue reliance on these forward looking statements which speak only as of their dates and they should not be relied upon in making purchas
5. Array SAPBl DocumentLine so DocumentLines new Array so DocumentLines 0 new SAPBl DocumentLine so DocumentLines 0 new SAPBl DocumentLine so DocumentlLines 0 ItemCode A400001 so DocumentlLines 0 ItemCode A400001 so DocumentLines 0 Quantity 2 so DocumentLines 0 Quantity 2 so DocumentlLines 0 Price 20 so DocumentlLines 0 Price 20 so DocumentLines 1 new SAPBl DocumentLine so DocumentLines 1 new SAPBl DocumentLine so DocumentlLines 1 ItemCode A00002 so DocumentlLines 1 ItemCode A00002 so DocumentLines 1 Quantity 3 so DocumentLines 1 Quantity 3 so DocumentlLines 1 Price 30 so DocumentlLines 1 Price 30 SAPB1 OrdersEntity Add so sessionld SAPBl OrdersEntity Add so sessionID O 2015 SAP SE or an SAP affiliate company All rights reserved Public SAP Business One Service Layer HANA XS Demo Extreme App Platform Portal x W e C D frncel6 8000 tests trinidad TestTSSL SOOperations html sessionID vZkiiWRA dalse Y En CC CCT Service Layer operations Sales Orders operations DocEntry 5764 CardCode C30000 Line 1 temCode Quantity Price Line 2 Line ItemCode 610000 200 Quantity Price 1 25 Add Update Delete Get ED O 2015 SAP SE or an SAP affiliate company All rights reserved Public Links Service Layer Wor
6. For example the standard CRUD create read update delete operations cannot be used to cancel a sales order so one action is added to handle it 2015 SAP SE or an SAP affiliate company All rights reserved Service Layer API Reference BusinessPartners entity 1 2 BusinessPartners show Hide List Operations Expand Operations The BusinessPartners object represents the business partners master data in the Business Partners module You can use this data to record and retrieve business partner customers vendors and leads information and schedule business partner activities BusinessPartners Retrieves business partner data Parameters filter Restrict the set of business objects returned orderby Specify the order in which business objects are returned from the service select Restrict the service return to only the properties requested by the client skip specify that the result excludes the first n entities top specify that only the first n records should be returned BusinessPartners C n D 5 a business partner Example POST https localhost bls vl BusinessPartners i CardCode cool CardName cool CardType C O 2015 SAP SE or an SAP affiliate company All rights reserved Public Service Layer API Reference BusinessPartners entity 2 2 The BusinessPartners object represents the business partners master data in the Business Partners module You can use this data
7. Installing SAP Business ey A AM nan 8 AO SAP SST ST PA o kt O MARA a NNNM MM QM 13 Metadata A RMS IA 15 Service Document AA DENEN DEMNM UE 17 Create Retrieve Update Delete CRUD Operations ccererereereereseeeaerecaaeeeacereaerenererneso 18 341 Creating dz o o BIBBIA IURE RE SERIE UNO ICE ORA BIER i 18 3 42 O RA MUN MIENNE MAD 20 3 4 3 Updating RAMA E AAP A PPO 21 344 DEEP AAA AE 22 aa KA PAA AAA 23 o BA SSA np pe 26 e MAA A SS 29 3 7 1 Batch Request Method and URI aseuso s0000 0000 CANON KALAKALAN KANA deesse esses eene e eternam anam nasa nenas 29 3 7 2 HOME MAMA 29 3 7 3 Batch Request Body mi ia 29 3 74 Fi PA AAAH 30 3 7 5 Batch Request Sample Codes cece cee eeeeeeeseseeesenessencsscccsceceesceesseeneseeneseenssenceseeesceeeees 31 3 7 6 O O a bie c n 32 O 2015 SAP SE or an SAP affiliate company All rights reserved API Reference C Bebs frncel6 50000 Service9620Layer 9620AP19620Reference htm RAR service Layer API Reference This document contains all entities and actions exposed through the Service Layer API Service Layer API follows OData 3 0 standard OData defines a uniform REST API to create and consume data So itis possible for users to leverage OData libraries to consume data exposed through Service Layer Actions Actions are used to extend the set of operations that can be performed on or with a service or entities
8. SAP Business One Service Layer Trinidad Martinez 7 SAP Business One Solutions Architect May 26 28 2015 Public T L X Jh i SAP Business One Innovation summit Barcelona La OA AMIGA la ed TARTES Agenda SAP Business One Service Layer Introduction Connection via standard HT TP REST Tools Features Documentation Usage Samples 2015 SAP SE or an SAP affiliate company All rights reserved Public Introduction B1 Service Layer Extensibility for New Breed of Apps System and Partner business objects exposed as services Equivalent BO coverage to DI API oData protocol across internet J Support high volume and throughput via multi threading as well as high availability _ Available on SAP HANA version from 9 1 version Value Proposition J Cater customer needs of using mobile and web apps 1 High volume to support new customer segment and industries 1 One Box for OLTP OLAP and DEV platform Mobile SBO Client Browser E SAP HANA XS Engine Javascript RDL SAP Business One Service SAP Business One Layer Semantic Layer Q SAP HANA SERVER 2015 SAP SE or an SAP affiliate company All rights reserved Public Global Architecture Apps B1 Client Presentation Logic Mobile UDQ SP W Extreme App Manager integration Apps integration ODBC ODBO HTTP C HTTP S SAP HANA XS Engine OData Service XMLA Service SLD Dat
9. a Access Service Apps LCM HTTP S Control Flow Logic HTTP S Environment Service O Authentication OData Business Apps Center Objects Authorization B1 Apps Framework Database Calculation Logic ODBC Master Transaction Semantic Stored E Data Data Layer Procedure 2015 SAP SE or an SAP affiliate company All rights reserved Service Layer Architecture Client HTML5 Mobile HTTP OData O Apache module OData DI Core Session Parser Manager OBServer multi threading enabled C C C business business no business object object object O v SAP HANA Database O 2015 SAP SE or an SAP affiliate company All rights reserved Public Scalability amp High Availability mp mad gt mn Server 1 O o u SL Sessions o Component O R Server 2 D DI HANA DB Og 22 SL KYA 7 gt Component c B ca gt Server 3 Load Load Balancer SL Clients Balancer Members 2015 SAP SE or an SAP affiliate company All rights reserved OData Key points HTTP RESTFUL d CLIENTS SERVERS CONSUMERS lt PRODUCERS ATOM JSON Any OData client can access data provided by any OData data source Just HTTP Data as resources HTTP methods to act on it Uniform operations GET POST PATCH PUT DELETE always mean the same Uniform way of representing structured data Atom JSON Uniform URL conventions Navigation filtering sorting
10. an OData Metadata Document representing the service s data model exposed for client consumption Entity Entity types are nominal structures with a key OData protocol defines standard way to create retrieve update delete entity CRUD Action Actions are operations exposed by an OData service Actions may return data and are not composable Actions are defined in metadata 2015 SAP SE or an SAP affiliate company All rights reserved Public Documentation https lt server gt lt Load Balancer Port gt C Be bees frncel6 50000 Documentation for SAP Business One Service Layer User Manual H OW LO WO rk with S A F B LI S ness O ne Se Pr ce Layer API Reference Web API reference for exposed OData entities and actions 2015 SAP SE or an SAP affiliate company All rights reserved Public User Manual Gm C fX bis rncel6 50000 Working with SAP Business C Table of Contents 11 About This Document 35 3 6 This document covers the basic usages of SAP Business One Service Layer and explains the technical details of building a stable scalable Web service using SAP Business One Service Layer RE ii ao Mip Ako AAAH AA AAA AG AA About SAP Business One Service Layer mmssecs0 e0000 eneeeceeceeessnesseeeeseenesenceceeeesseneseeceeseneseesseeeeeees 2 51 CE KC ST ST TR AT ST ST T ia System Requirements AA A UM EMEMENEMME o AAA ALPA pki denen OO
11. artner details req setBody body client request req https server 50000 bls vl BusinessPartners var response client getResponse 2015 SAP SE or an SAP affiliate company All rights reserved SAP Business One Service Layer Java Script TypeScript http www typescriptlang org TypeScript learn play download interact Stack Overflow filebug blog DefinitelyTyped TypeScript lets you write JavaScript the way you really want to TypeScript is a typed superset of JavaScript that compiles to plain JavaScript Any browser Any host Any OS Open Source Types enables static checking symbol based navigation statement completion and code refactoring TypeScript compiles to JavaScript code which runs on any browser in Node js or in any other ES3 compatible environment 2015 SAP SE or an SAP affiliate company All rights reserved Public SAP Business One Service Layer TypeScript for B1 Service Layer Autogenerated TypeScript classes from SAP Business One Service Layer metadata var so new SAPB1 Document so DocType SAPB1 BoDocumentTypes dDocument_Items so CardCode C20000 so DocDueDate new Date Date now so RQ Ja property SAPB1 Document AuthorizationStatus SAPB1 DocumentAuthorizationStatusEnum BaseAmount BaseAmountFC BaseAmountSC so BilOfExchangeReserved so BlanketAgreementNumber Code auto completion and documentation in so BlockDunning co T
12. dress Type Edm String gt lt Property Name MailZipCode Type Edm String gt lt Property Name Phonei Type Edm String Property Name Phone2 Type Edm String O 2015 SAP SE or an SAP affiliate company All rights reserved Public Options to develop your own application connecting to Service Layer NET on Windows Windows Communication Foundation WCF Some theory Windows Communication Foundation WCF is a framework for building service oriented applications WCF Data Services allows you to send data as asynchronous messages from one service endpoint to another enables you to create services that use the Open Data Protocol OData to expose and consume data over the Web or intranet by using the semantics of representational state transfer REST for addressing and updating resources includes a set of client libraries one for general NET Framework client applications its client libraries provide an object based programming model when you access an OData feed from environments such as the NET Framework 2015 SAP SE or an SAP affiliate company All rights reserved Public Windows Communication Foundation WCF Sample MERA To see a list of available services on a specific server enter a service URL and click Go To browse For available services click Discover Address ntt s frncel6 50000 b1s v1 metadatal o iscover Add a reference to the Service Layer
13. ew IN Response Copy to cippasd Save os fie I ersion LO Weekly Wer Ul devel per USt this encod ng Ur o ee application So many people can t be wrong x mire hESOCU Ww W3 Of Uc Alon o mins SopenSeanch hein coms peclopems earchrmsr OF Anaya Ma NG CONN ds GOON COM Deepen SUF ng ni rm Sqeorms terre iran i 5 Lb ban Gees urngineuors e x So nuipscnenis goog comu AS mis ep pur orp synet cation thread Cn About background page requirements uif e q J D 1 t t http t 3 t Ct RELATED Dev HTTP Client kdd cos REST Console ik Postman REST Client A 1507 Google Apps Script KKK 2015 SAP SE or an SAP affiliate company All rights reserved Public Tools Postman http www getpostman com Postman REST Client KI kkk r 2632 Herramientas para desarrolladores DESCRIPCION GENERAL OPINIONES AYUDA RELACIONADOS 8 1 1 695 p ostman dern 0 Funciona sin conexi n Pibes y een a e bed Postman helps you be more efficient gt TTP Sin Past pe wrat s j Cs T while working with APIs Postman is a pie tor testing AS TG a xx T scratch your own itch project The CE erre Fs need for it arose ati Postman helps you be more efficient while i working with APIs Postman is a scratch your own itch project The need for it arose while one of the developers was creating an API for his project After looking around fo
14. ing decisions 2015 SAP SE or an SAP affiliate company All rights reserved Public 2015 SAP SE oder ein SAP Konzernunternehmen Alle Rechte vorbehalten Weitergabe und Vervielfaltigung dieser Publikation oder von Teilen daraus sind zu welchem Zweck und in welcher Form auch immer ohne die ausdruckliche schriftliche Genehmigung durch SAP SE oder ein SAP Konzernunternehmen nicht gestattet SAP und andere in diesem Dokument erw hnte Produkte und Dienstleistungen von SAP sowie die dazugeh rigen Logos sind Marken oder eingetragene Marken der SAP SE oder von einem SAP Konzernunternehmen in Deutschland und verschiedenen anderen Landern weltweit Weitere Hinweise und Informationen zum Markenrecht finden Sie unter http global sap com corporate de legal copyright index epx Die von SAP SE oder deren Vertriebsfirmen angebotenen Softwareprodukte k nnen Softwarekomponenten auch anderer Softwarehersteller enthalten Produkte k nnen landerspezifische Unterschiede aufweisen Die vorliegenden Unterlagen werden von der SAP SE oder einem SAP Konzernunternehmen bereitgestellt und dienen ausschlie lich zu Informations zwecken Die SAP SE oder ihre Konzernunternehmen bernehmen keinerlei Haftung oder Gewahrleistung f r Fehler oder Unvollstandigkeiten in dieser Publikation Die SAP SE oder ein SAP Konzernunternehmen steht lediglich f r Produkte und Dienstleistungen nach der Ma gabe ein die in der Vereinbarung uber die jeweiligen Produkte und Diens
15. king with SAP Business One Service Layer in SAP Business One 9 1 version for SAP HANA partneredge SAP Business One version for SAP HANA Extensibility topics SCN SAP HANA openSAP online courses Introduction to Software Development on SAP HANA Next Steps in Software Development on SAP HANA http developers sap com hana http help sap com hana_appliance http www saphana com community implement hana academy oDATA http www odata org 2015 SAP SE or an SAP affiliate company All rights reserved Thank you Contact information Trinidad Martinez SAP Business One Solution Architects TrinidadAtSAP 2015 SAP SE or an SAP affiliate company All rights reserved 2015 SAP SE or an SAP affiliate company All rights reserved No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP SE or an SAP affiliate company SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE or an SAP affiliate company in Germany and other countries Please see http global12 sap com corporate en legal copyright index epx for additional trademark information and notices Some software products marketed by SAP SE and its distributors contain proprietary software components of other software vendors National product specifications may vary These materials are provided
16. paging etc Public 2015 SAP SE or an SAP affiliate company All rights reserved Connection via Tools How to easily test first contact with Service Layer Tools Advanced REST client http chromerestclient appspot com Advanced EST client O t wuncna lt Akk kr 2932 Develope ools OVERVIEW DETAILS REVIEWS RELATED g4 lt 1 71 The web developers helper program to create and test Advanced Rest Client hitp Arestforchrmme blogs pot com feeds postsidetadt Pak song maa resuks GE POST Pu PATCH DELETE HEAD OPTIONS Other E pue custom HTTP requests vere pest i User Agent Chrore extension2 Socket Cookie none Advanced RI T his nt for G gli Chr Projects Saved Rate it comment it share it Hetory Sauna Users re vit WS Aba Suus 200 OK Loading tine 208 ms T T ni TE e a enc imark for wi at Aust User Agem Chromeestenson2 chr m app sh ul be lii er aran aj headers Cookie none he best and the simplest client I ve His por e Dame Mon 15 Oct 2012 23 07 59 CMI pm headers Server GSE used The new GWT k is much better Contest Type mapia DO SON E Expires Mon 15 Oct 2012 22 10 34 GMT hur ibs up Ke ep up th aweso k Cache Como privado mas ageso i H Last Modited Mon 08 Oct 2012 07 41 17 GMT De ni jaji evil ETag VA TECO Ri Spt MAIWN Jara ng Cotten Ty pa Options poset VETY werful yet sir i le to use Dieg MASS Protecoon 1 moDda biock H
17. r a number of tools nothing felt just right The primary features added LJ Lm initially were a history of sent requests and collections a Guo uem A number of other features have been ft Sitio web PM Notificar uso inadecuado sesrtt 5y 1 mere Versi n 0 8 4 12 Ultima actualizaci n 15 de enero de 2015 Tama o 1 25MB Idioma English ooo SS 2015 SAP SE or an SAP affiliate company All rights reserved Public Demo Login service request Advanced Rest Client Applic x WW 9 e Q 3 chrome extension ngmloofddftdnphfdeellkdfbtbjeloo RestClient Atm Advanced Rest amp Save Open Client gt https frncel6 50000 b1s v1 Login Request GET POST PUT PATCH DELETE HEAD OPTIONS Other Socket Raw Form Headers Projects Saved History settings About Raw Form UserName manager Password 1234 CompanyDB SBODEMOUS Rate this application Donate application x www form urlencoded Y Set Content Type header to overwrite this value Clear Send Status 200 OK Loading time 873 ms Request User Agent Mozilla 5 0 Windows NT 5 1 WOW64 AppleWebKit 637 36 KHTML like Gecko Chrome 42 0 2311 135 Safari 537 36 2015 SAP SE or an SAP affiliate company All rights reserved Documentation Where to find out Service Layer features definition and usage OData Terminology Uses the Entity Data Model EDM to describe the data exposed by an OData Service Provides
18. rence Paging Implemented via top and skip allows the data to be fetched chunk by chunk Example When selecting all orders GET Orders service Layer returns HTTP 1 1 200 OK value L DOoGEDtrv T DOC Za wawa rocken en E Co Doca 3 x3 DDO TIE E Z6 DOC TG Zig oss l odata nextLink bls vl Orders skip 20 Note Default page size is 20 0 no paging lt can be customized by e Configuration option PageSize in conf b1s conf e Use OData recommended annotation odata maxpagesize in the request header 2015 SAP SE or an SAP affiliate company All rights reserved Public Service Layer API Reference Actions Provide functions besides basic entity CRUD Use HTTP verb POST bound action bound to entity for operations except CRUD EX POST Orders 22 Close global action often used to expose B1 services Ex POST ActivitiesService AddActivity IV lv sg TACTIVLCYCOdE I CardCode cl 2015 SAP SE or an SAP affiliate company All rights reserved Public Service Layer API Reference Navigation and Associations Two entities may be associated independently related Example Order and customer entities in the metadata are associated and a navigation is defined GET Orders 1 BusinessPartner The above request is equal to if you already knew that the CardCode property of the order is c17 GET BusinessPartners cl You can continue to operate on this entity a
19. s on GET BusinessPartners c1 For example to get the foreign name of the customer the following two requests are also equal GET Orders 1 BusinessPartner ForeignName GET BusinessPartners cl ForeignName O 2015 SAP SE or an SAP affiliate company All rights reserved Public Service Layer metadata Metadata describes the capability of the service It mainly defines types entities e g B1 objects and actions e g B1 services HTTP request to retrieve metadata GET Smetadata Please refer to OData CSDL Common Schema Definition Language for detail on the format of the metadata Let s check how the entities and actions are exposed Take B1 business partners and sales orders as examples We can find such sections in the metadata v lt EnumType Name BoCardTypes gt lt Member Name cCustomer gt lt Merber Name cSupplier gt Member Name eLid B1 Objects CRUD operations lt EnumType gt v lt EntityType Name BusinessPartner gt B1Services vw lt Key gt lt PropertyRef Name CardCode i Enumerations lt Key gt lt Property Name CardCode Nullable false Type Edm String UDFS UDTS UDOS lt Property Name CardName Type Edm String Property Name CardType Type Edm String lt Property Name GroupCode Type Edm Int32 i Navigation Associations lt Property Name iddress Type Edm String lt Property Name ZipCode Type Edm String lt Property Name Mailid
20. t GET BusinessPartners Sorderby CardCode desc GET BusinessPartners Sselect CardCode CardName GET BusinessPartners Scount GET BusinessPartners top 2 GET BusinessPartners top 28 skip 4 O 2015 SAP SE or an SAP affiliate company All rights reserved Public Service Layer API Reference Batch Operations Batch Operations service Layer supports executing multiple operations sent in a single HTTP request through the use of batching A batch request is submitted as a single HTTP POST request to the batch endpoint of a service located at the URI batch relative to the service root POST https servicelayerhost 8443 b1s vi Sbatch Change Set A change set is an atomic unit of work inside a Batch Operation Any failed sub request in a change set will cause the whole change set to be rolled back Change sets must not contain any GET requests or other change sets Batca Boundary Content Type multipart mixed boundary lt Changeset Boundary Changeset boundary Content Type application http Content Transfer Encoding binary Content ID 1 POST bls vl Items lt Json format Items Content Changeset boundary Content Type application http Content Transfer Encoding binary Content ID 2 PATCH b1s v1 1 lt Json format Item update content Changeset boundary gt Eile BOUDndgarbye Public 2015 SAP SE or an SAP affiliate company All rights reserved Service Layer API Refe
21. tadata Add New Order Keep Alive True ContentType application son odata minimalmetadata charset Update Method PATCH ContentLength 64 Update Order Update Comments Connection UserAgent Microsoft ADO NET Data Services Update Order Add Doc Line Timeout 1 0000000 x ProtocolVersion 1 1 elete Order Cookie Close Order Bound Action Prefer odata maxpagesize 10 O 2015 SAP SE or an SAP affiliate company All rights reserved Public Client side Java Script SAP Business One Service Layer JavaScript jQuery lt script type text javascript src thirdparty jquery min js gt lt script gt S ajax type POST url https hanaserver 50000 b1s v1 Login xhrFields withCredentials true data UserName user Password pwd CompanyDB db dataType json error function err window alert Error err responseJSON error message value connected false ip success function window alert Successfully connected connected true Eis Note1 Browsers might block cross site requests Note2 Service Layer CORS support not yet out of the box can be manually configured Sample available at SCN blog B1 Service Layer with JavaScript Handling B1 Objects without Net nor DI API O 2015 SAP SE or an SAP affiliate company All rights reserved Client side Java Script Demo TJ NDB SAP HANA
22. tleistungen ausdr cklich geregelt ist Keine der hierin enthaltenen Informationen ist als zusatzliche Garantie zu interpretieren Insbesondere sind die SAP SE oder ihre Konzernunternehmen in keiner Weise verpflichtet in dieser Publikation oder einer zugeh rigen Prasentation dargestellte Geschaftsablaufe zu verfolgen oder hierin wiedergegebene Funktionen zu entwickeln oder zu ver ffentlichen Diese Publikation oder eine zugehorige Prasentation die Strategie und etwaige k nftige Entwicklungen Produkte und oder Plattformen der SAP SE oder ihrer Konzern unternehmen k nnen von der SAP SE oder ihren Konzernunternehmen jederzeit und ohne Angabe von Gr nden unangek ndigt geandert werden Die in dieser Publikation enthaltenen Informationen stellen keine Zusage kein Versprechen und keine rechtliche Verpflichtung zur Lieferung von Material Code oder Funktionen dar Samtliche vorausschauenden Aussagen unterliegen unterschiedlichen Risiken und Unsicherheiten durch die die tatsachlichen Ergebnisse von den Erwartungen abweichen k nnen Die vorausschauenden Aussagen geben die Sicht zu dem Zeitpunkt wieder zu dem sie getatigt wurden Dem Leser wird empfohlen diesen Aussagen kein bertriebenes Vertrauen zu schenken und sich bei Kaufentscheidungen nicht auf sie zu st tzen O 2015 SAP SE or an SAP affiliate company All rights reserved Public Headline area White space Drawing area
23. to record and retrieve business partner customers vendors and leads information and schedule business partner activities BusinessPartners id Retrieves a business partner by its key Parameters select Restrict the service return to only the properties requested by the client BusinessPartners id Updates a business partner by replacing all property values with those specified in the request body Missing properties will be set to their default values sy BusinessPartners id Updates a business partner by replacing exactly those property values that are specified in the request body Missing properties will not be altered Example PATCH https localhost bls v1 BusinessPartners cQ Q 1 i CardMame Updated customer name naa GusinessPartners id Removes a business partner 2015 SAP SE or an SAP affiliate company All rights reserved Service Layer API Reference oData queries BusinessPartners Retrieves business partner data Parameters filter Restrict the set of business objects returned orderby Specify the order in which business objects are returned from the service select Restrict the service return to only the properties requested by the client skip Specify that the result excludes the first n entities top Specify that only the first n records should be returned GET BusinessPartners Sfilter CardCode eq I004 GET BusinessPartners Sfilter startswith CardCode pos
24. ypeScript language 50 amp BPChannelCode So VOCUMENTLINES 1 Uuanrtity 3 so DocumentLines 1 Price 30 SAP61 OrdersEntity DC eto xd Refactor Update Docum Go To Definition F12 Go To Declaration Ctrl F12 Find All References Shift F 12 OrdersEntity U Breakpoint k Run To Cursor Ctri F10 Navigation through compiled code Get Document SO var soParams new S soParams DocEntry 1 M Cut Chrl 1 SAPB1 0rdersEntity Ge oe Sess 5 Paste Ctrl Delete Document Outlini var soParams new S Elin i 2015 SAP SE or an SAP affiliate company All rights reserved Public SAP Business One Service Layer Generate JavaScript out of TypeScript B1 TypeScript Classes Generator Tool Provides TypeScript classes representing all B1 Objects and Services including UDTs UDFs UDOs TypeScript compiled code generates JavaScript code that can be directly run by SAP HANA XS Engine TypeScript JavaScript Add Document Add Document var so new SAPBl Document var so new SAPB1 Document so DocType SAPBl BoDocumentTypes dDocument Items soDooclype SAPBL BoDoocumentlypes dDoeument Items So CardCode C20000 so cardcode 7520209 so DocDueDate new Date Date now so DocDueDate new Date Date now so DocDate new Date Date now so DocDate new Date Date now so DocTime new Date Date now so DocTime new Date Date now so DocumentLines new
Download Pdf Manuals
Related Search
Related Contents
Bedienungsanleitung Types 8025 取扱説明書 Harbor Freight Tools 97396 User's Manual Piranha & QABrowser User's Manual - English BSCW 4.0 - User Manual - Department of Computer and Information intext:Bedienungsanleitung filetype:pdf BD ProbeTec™ ET Instructions pour les périphériques des tests Manual de Usuario Kalley K Operating Instructions 幼児の身の回りの事故防止ガイド Copyright © All rights reserved.
Failed to retrieve file