Professional Documents
Culture Documents
03 BOPF Creating BOs, Nodes and Associations
03 BOPF Creating BOs, Nodes and Associations
This presentation outlines our general product direction and should not be relied on in
making a purchase decision. This presentation is not subject to your license
agreement or any other agreement with SAP. SAP has no obligation to pursue any
course of business outlined in this presentation or to develop or release any
functionality mentioned in this presentation. This presentation and SAP's strategy and
possible future developments are subject to change and may be changed by SAP at
any time for any reason without notice. This document is provided without a warranty
of any kind, either express or implied, including but not limited to, the implied
warranties of merchantability, fitness for a particular purpose, or non-infringement.
SAP assumes no responsibility for errors or omissions in this document, except if
such damages were caused by SAP intentionally or grossly negligent.
Introduction
Creating a Business Object
Creating a Node
Creation of the Node
Creation of the Data Model
Generation of DDIC Elements and Database
Node-Database Mapping
Constant Interface Generation
Locking
Node Types
Creating an Association
Address
(association with business
partner)
Header Data
Invoice no., customer no., etc.
Invoice Items
New
Open
Open and configure existing business objects using Business Object Browser.
Hint: The root node is created automatically after a business object is created and thus cannot
be created manually.
Data Structure: Each node has an internal data structure containing persistent fields
Data Structure (tr.): Data structure containing the transient fields of this node
(Transient fields: Fields that are not stored in the database and exist only in the buffer)
Combined Structure: Consists of the data structure, the optional transient data structure, and a
technical key include (necessary, for example, for buffering)
Combined Table Type: Table type for storing the data of multiple instances of a node
(necessary for mass-enabled access). The row type corresponds to the combined structure.
© 2012 SAP AG. All rights reserved. 11
Propose Repository Names (1)
ZCI_S_ROOT_DT .INCLUDE
…
…
Mark
Mark
Database table name can be proposed by BOPF (“Extras” -> “ Propose Repository Names“)
Database table can be generated (“ Extras” -> “ Generate Repository Objects” -> “ Generate
Dictionary Elements”) or created manually
Remark: Database Index for Parent Key is only generated for Database Systems <> Hana DB
(On Hana DB: please compare to DB guidelines, if manual creation of DB Index makes sense, e.g. > 500k entries expected)
2. Generate
1. Enter
Each configuration element (e.g. nodes, actions) is uniquely identifiable within BOPF at design
time, as well as during runtime, by a GUID.
Application-specific content that uses internal model information has to use these GUIDs (e.g.
reuse of implementations).
BOPF provides the option of generating a constants interface containing all GUIDs.
Hint: You need to regenerate the constants interface after the creation of new configuration
elements or just activate the object.
© 2012 SAP AG. All rights reserved. 19
Locking
Overview
Mark
Locking Group A
Locking Group B
Rule: All nodes belonging to one loading group must belong to the same locking
group.
Standard Nodes
Property Node
Message Node
Lock Node
Framework core does not hold any instance specific data, thus framework nodes are used for
storing this data.
Framework nodes not accessible for service consumers, but from BO content
Framework nodes are not stored in the database (exception: message nodes can be stored
optionally in the database)
Framework node structure:
Exactly one property node for each node
Exactly one message node for each node
Exactly one lock node for each lockable node
© 2012 SAP AG. All rights reserved. 23
Framework Nodes
How to display them
Mark
Framework-
Not in database defined
internal data
types
Select the node to which the association is assigned in the “ Node Elements” section
and follow the guided procedure.
Implementation
class for
associations
Association Binding
Can be easily modeled without any implementation work
Binding is resolved by the buffer implementation
Association types supported by binding:
o Compositions (no binding necessary)
o Specialization/reverse specialization
o Foreign key associations/reverse foreign key associations
o To_Parent
o To_Root
o Cross-business object associations
Specify binding
pattern
Specify
binding details
No part of this publication may be reproduced or transmitted in any form or for any purpose Google App Engine, Google Apps, Google Checkout, Google Data API, Google Maps,
without the express permission of SAP AG. The information contained herein may be Google Mobile Ads, Google Mobile Updater, Google Mobile, Google Store, Google Sync,
changed without prior notice. Google Updater, Google Voice, Google Mail, Gmail, YouTube, Dalvik and Android are
trademarks or registered trademarks of Google Inc.
Some software products marketed by SAP AG and its distributors contain proprietary
software components of other software vendors. INTERMEC is a registered trademark of Intermec Technologies Corporation.
Microsoft, Windows, Excel, Outlook, PowerPoint, Silverlight, and Visual Studio are Wi-Fi is a registered trademark of Wi-Fi Alliance.
registered trademarks of Microsoft Corporation.
Bluetooth is a registered trademark of Bluetooth SIG Inc.
IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x,
System z, System z10, z10, z/VM, z/OS, OS/390, zEnterprise, PowerVM, Power Motorola is a registered trademark of Motorola Trademark Holdings LLC.
Architecture, Power Systems, POWER7, POWER6+, POWER6, POWER, PowerHA, Computop is a registered trademark of Computop Wirtschaftsinformatik GmbH.
pureScale, PowerPC, BladeCenter, System Storage, Storwize, XIV, GPFS, HACMP,
RETAIN, DB2 Connect, RACF, Redbooks, OS/2, AIX, Intelligent Miner, WebSphere, Tivoli, SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP BusinessObjects Explorer,
Informix, and Smarter Planet are trademarks or registered trademarks of IBM Corporation. StreamWork, SAP HANA, and other SAP products and services mentioned herein as well
as their respective logos are trademarks or registered trademarks of SAP AG in Germany
Linux is the registered trademark of Linus Torvalds in the United States and other countries. and other countries.
Adobe, the Adobe logo, Acrobat, PostScript, and Reader are trademarks or registered Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal
trademarks of Adobe Systems Incorporated in the United States and other countries. Decisions, Web Intelligence, Xcelsius, and other Business Objects products and services
Oracle and Java are registered trademarks of Oracle and its affiliates. mentioned herein as well as their respective logos are trademarks or registered trademarks
of Business Objects Software Ltd. Business Objects is an SAP company.
UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.
Sybase and Adaptive Server, iAnywhere, Sybase 365, SQL Anywhere, and other Sybase
Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin products and services mentioned herein as well as their respective logos are trademarks or
are trademarks or registered trademarks of Citrix Systems Inc. registered trademarks of Sybase Inc. Sybase is an SAP company.
HTML, XML, XHTML, and W3C are trademarks or registered trademarks of W3C®, Crossgate, m@gic EDDY, B2B 360°, and B2B 360° Services are registered trademarks
World Wide Web Consortium, Massachusetts Institute of Technology. of Crossgate AG in Germany and other countries. Crossgate is an SAP company.
Apple, App Store, iBooks, iPad, iPhone, iPhoto, iPod, iTunes, Multi-Touch, Objective-C, All other product and service names mentioned are the trademarks of their respective
Retina, Safari, Siri, and Xcode are trademarks or registered trademarks of Apple Inc. companies. Data contained in this document serves informational purposes only. National
product specifications may vary.
IOS is a registered trademark of Cisco Systems Inc.
The information in this document is proprietary to SAP. No part of this document may be
RIM, BlackBerry, BBM, BlackBerry Curve, BlackBerry Bold, BlackBerry Pearl, BlackBerry reproduced, copied, or transmitted in any form or for any purpose without the express prior
Torch, BlackBerry Storm, BlackBerry Storm2, BlackBerry PlayBook, and BlackBerry App written permission of SAP AG.
World are trademarks or registered trademarks of Research in Motion Limited.