SAP Cloud Applications Studio 1408
SAP Cloud Applications Studio 1408
Multilizer PDF Translator Free version - translation is limited to ~ 3 pages per translation.
Multilizer PDF Translator Free version - translation is limited to ~ 3 pages per translation.
Multilizer PDF Translator Free version - translation is limited to ~ 3 pages per translation.
Multilizer PDF Translator Free version - translation is limited to ~ 3 pages per translation.
Tabla de contenido
1 T r a b a j a r c o n l a b i b l i o t e c a d e e s t u d i o . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8. . . . . . . . . . . . . .
2 I n f o r m a c i ó n d e a c t u a l i z a c i ó n p a r a s o l u c i o n e s e s p e c í f i c a s d e l c l i e n16
te....................
3 Q u é h a y n u e v o ( 1 4 0 8 ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
....
3,1 N o v e d a d e s d e S A P C l o u d A p p l i c a t i o n s S t u d i o . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
................
4 I n i c i e s e s i ó n e n e l r e p o s i t o r i o . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
..............
5 Empezar......................................................... 21
5,1 C ó m o e m p e z a r c o n e l e s t u d i o . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
.
5,2 A c e r c a d e S A P C l o u d A p p l i c a t i o n s S t u d i o . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23
.............
5,3 M a t r i z d e c a r a c t e r í s t i c a s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
....
5,4 Primeros pasos................................................................ 27
I n s t a l a c i ó n y a c t u a l i z a c i ó n d e S A P C l o u d A p p l i c a t i o n s S t u d i o . . . . . . . . . . . . . . . . . . 27
........................
Roles de usuario........................................................................... 29
G u í a r á p i d a d e c o n f i g u r a c i ó n d e l u s u a r i o . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
........................
5,5 I n t r o d u c c i ó n a l e n t o r n o d e d e s a r r o l l o i n t e g r a d o . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
.....
T r a b a j a n d o e n e l e n t o r n o d e d e s a r r o l l o i n t e g r a d o . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36
............
U s o d e l c o n t e n i d o d e a y u d a . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41
.........
C o n t e n i d o d e a y u d a : p r e g u n t a s y r e s p u e s t a s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45
....................
Mis soluciones............................................................................ 48
E x p l o r a d o r d e r e p o s i t o r i o s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
..........
E j e c u t a r u n a c o n s u l t a p a r a e x p l o r a r u n o b j e t o d e n e g o c i o . . . . . . . . . . . . . . . . . . . . . . . 52
........................
E x p l o r a d o r d e s o l u c i o n e s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
........
A g r e g a r n u e v o e l e m e n t o c u a d r o d e d i á l o g o . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
........................
V e n t a n a P r o p i e d a d e s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .63
....
Trace Explorer............................................................................ 66
T r a b a j a n d o c o n l o s m a g o s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66
......
B i b l i o t e c a d e i c o n o s ( S t u d i o ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .68
.........
B i b l i o t e c a d e i c o n o s ( U I D e s i g n e r ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .71
...............
5,6 M o d e l o d e s o l u c i ó n p ú b l i c a ( P S M ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .73
............
A c e r c a d e l m o d e l o d e s o l u c i ó n p ú b l i c a ( P S M ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .73
....................
5,7 I n t r o d u c c i ó n a l m o d e l a d o d e o b j e t o s d e n e g o c i o . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
...................
M o d e l a d o d e o b j e t o s d e n e g o c i o . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
............
M o d e l a d o d e o b j e t o s d e n e g o c i o : t i p o s d e d a t o s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .85
......................
B u s q u e e l t é r m i n o d e r e p r e s e n t a c i ó n d e u n t i p o d e d a t o s . . . . . . . . . . . . . . . . . . . . . . .89
........................
C a t e g o r í a s d e o b j e t o s d e n e g o c i o . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
..............
In this library you can view reference documentation about the SAP Cloud Applications Studio (“studio”). The library
contains reference documentation to help you get started with the studio, as well as information related to quality
assurance, information for studio administrators, and detailed information on development activities in the studio. The
library also contains reference documentation for the user interface designer (UI designer), and references the general
concepts and tools in the SAP cloud solutions.
This documentation does not describe the standard features and technologies in Microsoft Visual Studio. For
information about Microsoft Visual Studio, see http://www.microsoft.com .
Any software coding or code lines/strings (“Code”) provided in this documentation are only examples
and are not intended for use in a productive system environment. The Code is only intended to better
explain and visualize the syntax and phrasing rules for certain SAP coding. SAP does not warrant the
correctness or completeness of the Code provided herein and SAP shall not be liable for errors or
damages cause by use of the Code, except where such damages were caused by SAP with intent or
with gross negligence.
First Steps
Scripting Languages
● Scripting Language Reference [page 169] ● Syntax for the Implementation of Business Logic
The scripting language is used to define business [page 198]
objects and business object extensions as well as to You use these methods and keywords to implement
implement the business logic for cloud partner the business logic of your solution. For this task, you
solutions. This lightweight language is easy to learn can also use predefined built-in functions and reuse
and to use with its focused set of features. services:
The keywords, methods and functions of the scripting ○ Built-In Functions [page 257]
language are described in separate sections according
to the task you want to perform: ○ Basic Reuse Libraries [page 226]
● Notification Rules
Learn how to enable your custom business object for
notification rules.
Check Out the Style Guides Check Out the Reference Guides
Style Guide for Writing System Message Texts [page 651] Reference Guide for Documentation of Cloud Solutions from
This style guide provides you with the standards and SAP [page 677]
guidelines for writing system messages to be displayed on
This reference guide provides an overview of the main
the user interface (UI) of your solution. It also provides the
reference documentation types specific to the SAP cloud
standards and guidelines for writing system messages that
solution.
are relevant for SAP Support; these messages are not
displayed on the UI.
Ask your peers questions and search for answers. Check out the additional information on the SAP Cloud
You can find the discussion forum in the SAP Community Applications Studio available in the Business Center for cloud
Network (SCN) at http://scn.sap.com/community/ solutions from SAP at https://www.sme.sap.com (or through
business-bydesign/studio/ . the direct link https://wiki.sme.sap.com/wiki/x/ IAOEEQ ).
The following information is relevant, if the tenants of your customer are upgraded to a new version. The steps you
need to take to upgrade your customer-specific solution differ according to the tenant type on which you are
developing.
Customer's Tenant
SAP maintains the upgrade to a new version to ensure high quality upgrade of the customer's production tenant and
test tenants.
Please take into account that you cannot access the customer's tenant during the upgrade preparation phase
(this is one week before the downtime period of the upgrade) and during the upgrade period itself.
Development Tenant
SAP does not upgrade your development tenant. However, if your solution has been deployed in a customer's tenant,
it will automatically be upgraded when SAP upgrades that tenant. You can then download the upgraded version of
your solution, upload it to the next studio version, and then create a patch for this solution.
You can upload solutions that have not yet been deployed in a customer's tenant as well as solution templates to
the next studio version or the subsequent studio version, for example:
SAP Solutions OnDemand Studio 1302 SAP Solutions OnDemand Studio 1305 SAP Cloud Applications Studio 1308
(February 2013) (May 2013) (August 2013)
This document provides information about what is new in the SAP Cloud Applications Studio version 1408 (August
2014).
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
Any software coding or code lines/strings (“Code”) provided in this documentation are only examples
and are not intended for use in a productive system environment. The Code is only intended to better
explain and visualize the syntax and phrasing rules for certain SAP coding. SAP does not warrant the
correctness or completeness of the Code provided herein and SAP shall not be liable for errors or
damages cause by use of the Code, except where such damages were caused by SAP with intent or
with gross negligence.
Overview
Before you start working in the studio, you must connect to the repository, which contains any solutions that you
develop as well as the SAP public solution model (PSM) content.
Prerequisites
● You have a user and password for the repository. For more information, see User Setup Quick Guide
[page 30].
Procedure
1. Open the studio.
2. The Connect to Repository dialog box is displayed. Select the System that contains the repository to which
you want to connect.
In most cases, only one System is available; this is your development repository.
To edit the repository system connection, from the Administration menu, click the pencil icon ( ) to
the right of the System field or select Options and Settings and edit the settings on the Connectivity
tab.
There is an information icon to the right of each entry field. When you click one of them, the system
displays information about the corresponding entry field.
To change your password, click the pencil icon ( ) to the right of the Password field. The SAP cloud
solution opens where you can change your password: Enter your credentials and click Change
Password. You are then prompted to enter a new password.
Result
After you have logged on to the repository, any solutions that you have created appear in the My Solutions tool
window. This is what you can do from here:
● You can open a solution to view and work on the solution content in the Solution Explorer .
● You can create a new solution. For information about creating solutions, see Create a Customer-Specific
Solution [page 162] .
● When you hover over a solution in the My Solutions window, a quick info text is displayed. It shows the name,
description, type, and status of the solution and tells you, if the solution is a patch solution. This is an example
of such a quick info text:
Name: Y77VXGW3Y_
Status: In Development
Patch Solution: No
See Also
My Solutions [page 48]
Solution Explorer [page 54]
Repository Explorer [page 49]
First Steps
Any software coding or code lines/strings (“Code”) provided in this documentation are only examples
and are not intended for use in a productive system environment. The Code is only intended to better
explain and visualize the syntax and phrasing rules for certain SAP coding. SAP does not warrant the
correctness or completeness of the Code provided herein and SAP shall not be liable for errors or
damages cause by use of the Code, except where such damages were caused by SAP with intent or
with gross negligence.
Availability
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
The SAP Cloud Applications Studio (“studio”) for the SAP cloud solutions enables SAP partners, resellers, and
customers to adapt and enhance the solution capabilities of the SAP cloud solutions.
The development tools provided are presented in an integrated development environment (IDE) based on Microsoft
Visual Studio. Using the studio, you can develop, deploy, and test specific add-on functionality. Furthermore, you
can create and integrate new business content, services, and user interfaces to provide complete micro-vertical
business solutions.
The studio allows SAP partners, resellers, and customers to work with the same entities that SAP uses in the core
development of its cloud solutions and to develop solution capabilities that have the same look and feel as the SAP
standard cloud solutions.
Customer-Specific Solutions
The development of a customer-specific solution is triggered by a customer requirement. The solution is typically
developed by a reseller for a specific customer.
For information about the development scenarios for customer-specific solutions, see Lifecycle Management of
Customer-Specific Solutions [page 135].
Features
● Provides access to all tools you need to create and enhance the functionality of the SAP standard cloud
solution.
● Is integrated with the tools that administrators work with in the SAP cloud solution.
● Allows you to manage the entire the entire lifecycle of customer-specific solutions, including development,
testing, and assembly.
● Makes it easy and quick for you to perform activities through features such as wizards for multistep tasks.
● Simplifies programming through features such as code completion.
For information about the specific features and tools provided by the studio, see Working in the Integrated
Development Environment [page 36] .
For information about the basic principles of the PSM and SAP content types, see About the Public Solution Model
(PSM) [page 73].
For information about the UI designer, see Introduction to the User Interface Designer [page 563] .
For information about web services, see Web Services Quick Guide [page 499] .
You can also integrate data from the SAP cloud solution with data provided by an online web service or application
by creating mashups. Mashups can include web searches, company or industry-specific business information or
online map searches.
For information about mashups, see Mashups Quick Guide [page 445] .
Translation Support
You can extract text from certain project items and export it in an XML-based file format for translation into one of
the languages supported by the SAP standard cloud solution.
For information about the functions that support translation of a solution, see Translation Quick Guide
[page 553].
For information about the development scenarios for customer-specific solutions, see Lifecycle Management of
Customer-Specific Solutions [page 135].
Cloud Readiness
The studio supports the development of solution capabilities that are tailored for specific customers. The
development and deployment of these solution capabilities causes no disruption to daily business because the
upload process of a solution to a customer's production system does not require any system downtime.
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes all
features that are available within the studio. Not all of these features are available for every SAP cloud solution.
General Features
SAP Business SAP Cloud for SAP Cloud for SAP Cloud for Travel
ByDesign Customer Financials and Expense
Scripting Language
SAP Business SAP Cloud for SAP Cloud for SAP Cloud for Travel
ByDesign Customer Financials and Expense
Business Configuration
SAP Business SAP Cloud for SAP Cloud for SAP Cloud for Travel
ByDesign Customer Financials and Expense
Extension
SAP Business SAP Cloud for SAP Cloud for SAP Cloud for Travel
ByDesign Customer Financials and Expense
Mashups
SAP Business SAP Cloud for SAP Cloud for SAP Cloud for Travel
ByDesign Customer Financials and Expense
Screens
SAP Business SAP Cloud for SAP Cloud for SAP Cloud for Travel
ByDesign Customer Financials and Expense
Service Integration
SAP Business SAP Cloud for SAP Cloud for SAP Cloud for Travel
ByDesign Customer Financials and Expense
Prerequisites
● To download the studio from the SAP Service Marketplace, you need a valid S user.
You are using one of the following operating systems:
●
○ Microsoft Windows XP operating system
○ Microsoft Windows Vista
○ Microsoft Windows 7 operating system
● You have installed the following:
○ Relevant version of Microsoft .NET Framework
○ Relevant version of Microsoft Visual Studio 2010 Shell (Isolated)
○ Relevant version of Microsoft Silverlight
Partners are required and solely responsible to regularly install security updates or patches provided by
Microsoft Corporation for the Microsoft .NET Framework and Microsoft Visual Studio 2010 Shell (Isolated).
As these components need to be installed/obtained by the partner, SAP is not responsible for installation of
any related security updates or patches. For more information, see http://www.microsoft.com
.
● The studio version must match the release version of the SAP cloud solution for which you are creating a
solution.
To determine the release version in the SAP cloud solution, click Help About [SAP cloud solution] and
verify that the Technical Release details match the latest build version of the studio.
● Previous Build
If relevant, you have removed the previous build. Check the sections below on updating your studio installation
Steps
1. Go to the SAP Service Marketplace at https://www.service.sap.com .
2. Go to SAP Support Portal , and select the Software Downloads tab.
3. On the Software Downloads tab, click Support Packages and Patches .
4. Click Search for Software Downloads .
5. There are two ways of searching for the studio:
● In the Search Term field, enter SAP Cloud Applications Studio and click Search .
The Search Results appear. Click SAP CLOUD APPLICATIONS STUDIO. The various studio versions are
displayed.
● In the Search Term field, enter Cloud Studio and click Search .
Look for the SAP CLOUD APP STUDIO 1311 entry in the search results.
If the search does not produce any results, you might not have a valid S user. In such a case, please
contact solution partner management.
If you encounter any issues, please contact SAP Partner Management by writing an e-mail to
[email protected] .
Developer
Developers can perform the following tasks:
● Create and maintain all types of development objects, such as business objects and user interfaces, in the
studio, user interface (UI) designer, and administrator tools for the SAP cloud solutions
Access work center views for Analytics
●
For more information about what the developer role can do, see the reference documentation in the section
Developer Desktop [page 292].
Studio Administrator
The studio administrator must not be confused with the administrator in the SAP cloud solution. These
users have different roles.
Studio administrators can perform all tasks that a developer can perform. In addition, studio administrators can
perform the following tasks:
For more information about the tasks that only a studio administrator can perform, see:
● Administration Quick Guide [page 149]
● Implementation Manager Quick Guide [page 151]
Business User
The business user role is used for testing within the development or test tenant of the SAP cloud solution. Business
users have authorizations and restrictions equivalent to users on a customer tenant; they have no authorization
within the studio.
Business Users can perform the following tasks (depending on their access rights):
● Create additional business users
● Assign work center views to other business users
Before you can begin administrating, developing, or testing solutions in the SAP Cloud Applications Studio
(“studio”), you have to create development users (studio administrator and developer user roles) and business
users. You create these users in the SAP cloud solution
After these users have been created, the development users must change their initial passwords and maintain
contact data. Business users only need to change their initial passwords.
Development users with studio administrator or developer user roles are for use in the studio only.
Business users are for use in the SAP cloud solution.
User Roles
The user roles are Studio Administrator, Developer, and Business User.
For more information, see User Roles [page 29].
SAP Business ByDesign Application and User Management User and Access Management Business Users
SAP Cloud for Customer Application and User Management User and Access Management Business Users
Administrator General Settings Business Users
SAP Cloud for Travel and Application and User Management User and Access Management Business Users
Expense
SAP Cloud for Financials Application and User Management User and Access Management Business Users
Tasks
Prerequisites
● Prerequisites for creating service agents, assigning user IDs and passwords, assigning work centers, and
creating business users:
○ You have an initial business user. The initial user is provided to you during the tenant provisioning
process. Only use the initial business user in the SAP cloud solution. Do not use it in the studio.
○ To create the service agent, you need access to the following work center views:
SAP Cloud for Travel and Expense Business Partners Service Agents
○ To assign access rights to the business user, you need access to the following work center views:
SAP Cloud for Travel and Expense Application and User Management Business Users
SAP Cloud for Financials Application and User Management Business Users
SAP Business ByDesign Business Partner Data —> New Service Agent
Project Management —> New Service Agent
Resource Management —> New Service Agent
SAP Cloud for Customer Business Partners —> New Service Agent
Project Management —> New Service Agent
Resource Management —> New Service Agent
SAP Cloud for Financials Business Partners —> New Service Agent
SAP Cloud for Travel and Expense Business Partners —> New Service Agent
If the Service Agent ID field is enabled, your entry must have the prefix EXT.
If internal number assignment is active, the system determines the new ID.
For the ID, the system uses the naming convention <LastName><FirstName><ServiceAgentID>.
For example, the service agent ID for Kate Jacob could be JACOBKATEEXT999.
Assign a User ID and a Password to the Service Agent (for Development Users)
1. Open the Business Users view by clicking Application and User Management User and Access
Management Business Users .
2. Search for the service agent (business user) that you created. For the search, enter one of the following:
●
*<ServiceAgentID> (for example, *EXT999)
● Name
3. Click Edit and select Attributes .
The Business User quick activity opens.
4. In the User Data screen area, define a user ID, for example, the last name of the service agent.
5. In the Language field, set the language to English.
You must set the language to English to ensure the consistency of your solution, because the logon
language of both the SAP cloud solution and the studio is English
SAP Cloud for Travel and Expense Application and User Management Business Users
SAP Cloud for Financials Application and User Management Business Users
2. Search for the service agent (business user) that you created. For the search, enter one of the following:
*<ServiceAgentID>
●
(for example, *EXT999)
● Name
3. Click Edit and select Access Rights.
The Edit Access Rights quick activity opens.
4. In the Edit Access Rights editor, on the Work Center and View Assignment tab assign the following work centers
and views by selecting Assigned to User .
The work centers and views that are available for assignment depend on the SAP cloud solution,
therefore not all work center views may be available to you.
For more information about the features that are available to you in the studio and for some of
which you require these access rights, see Feature Matrix [page 24].
You can also use business roles to assign access rights to users. In the Edit Access Rights editor,
click the Business Roles tab. For more information, see the Business Roles Quick Guide in your SAP
cloud solution.
○ PDI_DEVELOPMENT / Development
The users must change the initial password. To do this, they must log on for the first time to the
SAP cloud solution using the assigned user ID. The system requests a new password.
The user can use the same password in both the SAP cloud solution and in the studio.
In addition to the users for the studio, you also have to create business users for use in the SAP cloud solution
only. These business users are for test purposes and are not for use in the studio.
Do not assign the Partner Development work center and its views to a business user role. These users
must not have access to the studio.
You use business users to perform the following in the SAP cloud solution:
Scoping and deployment of your business configuration entities
●
Steps
1. Create the required business users (administrator users and end users) in the SAP cloud solution.
Assign the required work centers and work center views to the business users.
2.
To enable testing of business configuration entities, at least one standard business user must be
assigned to the Business Configuration work center.
Do not test or change business configuration entities with a development user.
Development Users
After receiving your user details, before logging on to the studio, you must first change your initial
password in the SAP cloud solution. This is important, because you cannot change the initial password
in the studio.
Do not change the logon language defined for your user ID, as this causes inconsistencies in the solution.
The logon language must be English.
For information about reporting an incident in the SAP cloud solution, see Report an Incident [page 535] .
If you do not maintain your contact details, when you create an incident the system forwards the incident
automatically to a development user in your organization, who has maintained contact data.
1. Log on to the SAP cloud solution with your development user and proceed as follows:
SAP Business Home Self-Services Self-Services Overview Company Address Book Edit My Contact
ByDesign
Data
SAP Cloud for Home Self-Services Overview Self-Services Overview Company Address Book Edit
Financials
My Contact Data
2. Enter your telephone number and e-mail address and save your entries.
Business Users
After receiving your user details, you must first change your initial password in the SAP cloud solution.
The development tools provided by the release are presented in an integrated development environment (IDE) based
on Microsoft Visual Studio. The user interface (UI) of the release, referred to as the developer desktop, is composed of
different elements. Many elements are standard features and tools of Microsoft Visual Studio, for example, the
Menu toolbar, the Standard toolbar, various tool windows, and the document window. In addition, the developer
desktop provides UI elements that represent specific features and tools of the release development environment.
To get an idea of the integrated development environment, have a look at the following screenshot:
Availability
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
Product Documentation
You can access the release documentation from the Help menu by selecting SAP Cloud Applications Studio Help .
The library documentation appears in your browser.
For more information, see Using Help Content [page 41] .
This documentation does not describe the standard features and technologies in Microsoft Visual Studio. For
information about Microsoft Visual Studio, see http://www.microsoft.com .
Developer Desktop
The following sections describe the tools that you can use for the administration and lifecycle management of a
solution and how you can access the corresponding user interface (UI) elements.
Administration toolbar
The Administration toolbar provides a number of administrative tasks, such as creating and deleting customer-
specific solutions or solution templates and managing user sessions. You can also access the Session
Administration tool window from the Administration toolbar.
You can access the Administration toolbar in the View menu by clicking Toolbars Administration .
For more information, see Administration Quick Guide [page 149] .
Session Administration
The Session Administration tool window displays a list of users in the release with open sessions. If you are assigned
the Administrator role, you can delete user sessions and any item locks that are applied for the corresponding
sessions. All other users can delete their own sessions and item locks, but they cannot delete other users' sessions
and item locks.
You can access the Session Administration tool window in the View menu and in the Administration menu.
Implementation Manager
The Implementation Manager ( ). is a tool for managing the lifecycle of customer-specific solutions. You can access
the lifecycle management functions provided by the release from a toolbar and a tool window:
● Implementation Manager tool window
The tool window provides a view of the solution status and implementation log at each stage in the process.
You can access the Implementation Manager tool window in the View menu and in the Administration menu.
● Implementation Manager toolbar
For more information, see Implementation Manager Quick Guide [page 151] .
Administration menu
You can access existing administration and lifecycle management functions from the Administration menu. The
Administration menu also gives you access to most of the functions provided by the My Solutions tool window.
The functions available on the Administration menu are:
● Log On
For information, see Log on to the [page 19].
Repository Log Off
●
● Create Solution
For information, see Create a Customer-Specific Solution [page 162].
● Delete Solution
● Session Administration
● Solution Administration
Here you can access the following functions: Trigger Test Deployment , Request Quality Review, and Create
Patch .
● Implementation Manager
● Admin Log
● Switch Customer
For information, see Switch a Customer Assignment [page 148] .
Open UI Designer
●
If you have opened a solution, you can navigate to the UI designer by using this function.
For more information, see Introduction to the User Interface Designer [page 563] .
● Switch On/Off Admin Mode in SAP Solution
If you want to define analytics content or create a mashup, you must switch on the admin mode in the studio.
This makes sure that the system saves your content and any changes you make in your solution. Here is a list
of the functions that use the admin mode:
You cannot switch on the admin mode for solution templates. For more information, see Solution
Templates [page 159] .
The following sections describe the tools that you can use to develop a solution and how you can access
the corresponding user interface (UI) elements.
My Solutions
The My Solutions tool window provides functions that allow you to create solutions and to access the repository. You
must log on to a repository system to create and edit solutions in the studio.
For more information, see My Solutions [page 48] .
Repository Explorer
The Repository Explorer tool window displays SAP content that is released with the public solution model (PSM)
such as business objects, data types, enhancement options, inbound service interfaces, and reuse UIs. You can
explore the content to gain an understanding of the repository structure and the business context and use of SAP
content, which you can reuse and enhance in your solution.
Solution Explorer
The Solution Explorer tool window displays a solution and the project items created for this solution, for example, a
business object or a screen. In the Solution Explorer , you can open items for editing and add new items to a solution.
For more information, see Solution Explorer [page 54] .
Properties window
The Properties window displays information about the item in your solution that is currently selected in the Solution
Explorer . When you select the solution, you can view solution properties such as the solution status. When you select
Document windows
In the release, document windows provide a view of the items that you add to your solution. Examples of items that
you can open, edit, and save in a document window are business object definitions, extensions for existing business
object definitions, data sources, and business object queries. The type of document window in which an item opens
depends on the type of item. For example, when you open a business object definition, the business object file is
displayed in the code editor.
Document windows are displayed on tabs in the center of the developer desktop. You can switch between open
document windows by using the tabs. You can also view multiple document windows side-by-side.
You can open an item in a document window by double-clicking the item in the Solution Explorer .
If you double-click an item that represents a user interface component, such as a quick activity floorplan (QAF)
screen or a business configuration view, the item file opens in a separate window in the UI designer.
● Debug
If you have started debugging, this view displays tracing information that the system is collecting during the
debug run. For more information, see Debugging User Interface [page 540].
You can access the Output window in the View menu by clicking Output .
Wizards
The wizards in the studio guide you through a logical sequence of steps, making it easier and quicker for you to
perform development activities that are complex, unfamiliar, or infrequently performed. All wizards are easy to
access and follow similar user interface (UI) patterns.
For more information, see Working with the Wizards [page 66] .
Trace Explorer
The Trace Explorer is a tool for gathering and analyzing diagnostic information.
For more information, see Trace Explorer [page 66] .
The studio documentation is also called Help content. When you want to know something about a certain topic, you
can either search the integrated Help content or the local Help content.
The following table shows the differences between the integrated and the local Help content and the advantages of
the local Help content:
Download Help The integrated Help content comes If you want to install the local Help content manually (see
together with the studio. below for more information), download the MS Help files
from the SAP Help Portal or SAP Business Center.
Install Help The Help content is installed The local Help content is installed automatically. However, you
automatically together with the can also install it manually, for example, to install a different
studio. version.
Display Help In the standard content player in In the Help Viewer that you have installed:
your browser ●
Microsoft Help Viewer 1.0
Open Help In the studio, go to Help SAP If the local Help content is installed, you can access it as
follows:
Cloud Applications Studio Help
● In the studio, go to Help View Help
Search Help Search in individual documents Use the Help Viewer search function and search the entire
local Help content.
For more information, see View Local Help Content
[page 44].
Update Help The integrated Help content is The local Help content is automatically updated when you
updated automatically when you update your studio build. You can also update it manually by
update your studio build. installing a new version of the local Help content.
For more information, see Installing For more information, see Installing and Updating the SAP
and Updating the SAP Cloud Cloud Applications Studio [page 27] under “Updating Your
Applications Studio [page 27] under
Studio Installation” and Install Local Help Content Manually
“Updating Your Studio Installation”.
[page 43] .
Remove Help You cannot remove the integrated You can remove the local Help content.
Help content. For more information, see Remove Local Help Content
[page 44].
If you cannot open the Topics in Detail page by clicking the link, you can navigate to the page
by opening the Business Center at https://www.sme.sap.com ; then select SAP Business
ByDesign Solution Information Wiki Info Exchange SAP Solutions OnDemand Studio .
In the Partner/Developer Information section, select Topics in Detail and then
Documentation — SAP Cloud Applications Studio .
b. At the top of the page, click the Documentation — SAP Cloud Applications Studio tab and navigate to the
Installing the Help Content in Microsoft Help Viewer Format section.
c. Click the Download now button for the relevant version, save the .zip file to your local computer, and
extract the two Help files (an .msha file and an .mshc file) from the .zip file.
You can also find the Help content in the SAP Help Portal : Go to Software Development Kits (SDKs),
select your version of the studio and then click the Help Content link.
You can also right-click the program entry while holding the SHIFT key.
For more information, see Search for Topics [page 44] and Use Context-Sensitive F1 Help [page 45] .
You can now install the current version of the Help as described under Install Local Help Content Manually
[page 43].
○ Standard vocabulary for documentation — caution, tip, information, use, see, ...
○ ...
● Sync to ToC Function
Highlights the current topic in the table of contents so that you can explore surrounding content.
Context-sensitive help is available for ... What you need to do to access context-sensitive help
... wizards, dialog boxes, and tool windows ● In the studio, press F1 when you open a wizard or dialog box or
when you select a tool window.
●
In the studio, click the Help icon ( ) located in the top right of
the user interface element.
... keywords when you create a business object In the code editor, when you define a business object for your solution and
press F1 , an overview document opens ( Syntax for Business Object
Definitions [page 170] ), which contains a list of functions and keywords
with links to further information.
... keywords when you create a script file In the code editor, place your mouse cursor on a keyword and press F1 .
If documentation is not available for a keyword, an overview document
opens (Syntax for Implementation of Business Logic [page 198] ).
We have collected some questions that may come up when you are using the help content. Read the sections below
to get answers to your questions and additional information about using the Help content for the studio.
If you want to know how to manually install and use the Help content, see Using Help Content [page 41] .
I cannot complete the installation of Microsoft Visual Studio 2010 Shell (Isolated)
Redistributable Package. What do I do?
Uninstall the unfinished installation and restart your computer. Make sure that you have installed the latest Microsoft
updates and switch off your antivirus software. Reinstall Microsoft Visual Studio 2010 Shell (Isolated) Redistributable
Package, restart your computer, and switch on your antivirus software again.
● Microsoft Help Viewer 1.0 is installed with the Microsoft Visual Studio 2010 Shell (Isolated) Redistributable
Package and with Microsoft Visual Studio 2010 editions. It displays the documentation in your default
browser. So really, the viewer is your browser, for example, Microsoft Internet Explorer 9.
● Microsoft Help Viewer 1.1 ships with Service Pack 1 of Visual Studio 2010. Microsoft Help Viewer 1.1 is a
standalone Help Viewer. If Microsoft Help Viewer 1.0 is installed on your computer and you then install
Microsoft Visual Studio 2010, SP 1, Microsoft Help Viewer 1.0 is removed from your computer.
I have installed Microsoft Visual Studio 2010, SP1, but I still see Help Viewer 1.0, not 1.1. Which
version do I have?
To see which Help Viewer version is installed, open Control Panel Programs Programs and Features .
You will find an entry for either Microsoft Help Viewer 1.0 or Microsoft Help Viewer 1.1.
The Help Library Manager that you open from the Help menu → Manage Help Settingsis a component of the Help
Viewer. In Microsoft Visual Studio 2010, SP1, Help Viewer 1.1 is still shipped with Help Library Manager 1.0. The title
bar of the Help Library Manager dialog box therefore displays Help Library Manager — Microsoft Help Viewer 1.0 even
when Help Viewer 1.1 is installed.
What is H3Viewer?
H3Viewer is a third-party tool developed by The Helpware Group that you can install and use instead of the Microsoft
Help Viewer. The advantage of using H3Viewer is that it displays the full table of contents (TOC), whereas Microsoft
Help Viewer 1.0 doesn't display the TOC. If you install H3Viewer, you can still use Microsoft Help Viewer.
I don't have administrator privileges, so how can I install the Help content?
You need to run the studio as an administrator to install Help content on your local computer.
If the message The content publisher cannot be verified. Installing this content requires administrator privileges. is
displayed, please do the following:
1. On your desktop, click the Start button and in the programs list, find SAP Cloud Applications Studio [x.x] .
2. Right-click the program entry and select Properties .
3. In the Properties dialog box, on the Compatibility tab, select Run program as an administrator .
You can also right-click the program entry while holding the SHIFT key.
You can now install the Help content manually on your local computer by following the instructions in Using Help
Content [page 41] under “Install Local Help Content Manually”.
Why is the message “No content was found on your computer.” displayed?
Please check whether the studio Help content is installed. If no studio Help content is installed, you need to install
the Help content manually on your local computer by following the instructions in Using Help Content [page 41]
under “Install Local Help Content Manually”.
If you have already installed the Help content and tried to open the Help by pressing F1 , please report this issue
and describe exactly what you did before the message appeared. For information about reporting problems, please
see Report an Incident [page 535].
When I try to view the studio Help, why does the MSDN Library open in my browser and display
the message “Page Not Found”?
2. In Help Library Manager , click the Choose online of local help link, select I want to use local help, and then
OK.
3. If the Help content hasn't been installed automatically, you need to do this manually by following the
instructions in Using Help Content [page 41] under “Install Local Help Content Manually”.
When I try to view the studio Help, why is the Visual Studio documentation displayed in my
browser?
If the Help content hasn't been installed automatically, you need to do this manually by following the instructions in
Using Help Content [page 41] under “Install Local Help Content Manually”.
Why isn't the studio Help displayed in the contents even though I can access studio Help topics by
clicking F1 and from the Help menu?
You probably installed the Help content while the Help Viewer was open. Try closing and reopening the Help Viewer.
The layout of the studio Help topics looks strange in the Help Viewer. What can I do?
Try reinstalling the Help Viewer and make sure that you do not change the default path for the library location.
Why doesn't the search find the topic I'm looking for even though I know that documentation
exists?
Avoid using stop words in your search queries. A stop word is a word that occurs frequently in natural language,
such
a astheor. If you enter a phrase that contains one or more stop words in the search text box, the Help Viewer doesn't
display any results in the results list.
For example, enter create report and not create a report in the search text box.
The stop word files for Microsoft Help Viewer 1.0 and 1.1 are stored on your local computer in c:\program
files\Microsoft Help Viewer\v1.0\ folder. Depending on which Help Viewer you have installed, the
location may differ.
If you still cannot find the topic you are looking for, try using the following Boolean operators: AND, OR, and NOT.
For more information, see Using Help Content [page 41] under “Search for Topics”.
5.5.4 My Solutions
The My Solutions tool window provides functions that allow you to create solutions and to access the repository. You
must log on to a repository system to create and edit solutions in the studio.
Features
When you open the studio, you first log on to the repository. By default, the My Solutions tool window is displayed
on the left of the developer desktop. You can also open the My Solutions window in the View menu.
● Log Off
● Delete Solution
To delete a solution, right-click the solution and select Delete Solution .
● Open Solution
To open a solution, right-click the solution and select Open Solution. You can also open a solution by double-
clicking it.
● Solution Properties
If you want to display the solution properties, in the My Solutions window, right-click the solution and select
Solution Properties . In the Solution Properties window, you can also add or change the contact information.
You can also access some of these functions from the Administration menu.
See Also
Solution Explorer [page 54]
The Repository Explorer tool window displays SAP content that is released with the public solution model (PSM)
such as business objects, data types, enhancement options, inbound service interfaces, and reuse UIs. You can
explore the content to gain an understanding of the repository structure and the business context and use of SAP
content, which you can reuse and enhance in your solution.
Prerequisites
To display SAP content in the Repository Explorer , you must log on to the repository. For information, see Log on to
the Repository [page 19] .
If the system cannot find any entities that match your search term, you can try the following:
Click the Clear Search button ( ) to search in all namespaces and development units (for
●
business objects) or usage categories (for data types).
Enter a different spelling or search term.
●
● View information — You can hover over an entity in the tree view to display information about the entity such
as the object category or the subelement type. The information also indicates whether write access is
allowed for an entity and whether the entity is deprecated.
● View documentation — You can click a business object and its elements to display comprehensive
documentation in the documentation pane. On the Description tab, you see the business object (element)
documentation; the data type information is displayed on the Data Type tab of the documentation pane and
is also accessible via the Data Types tab as described below.
Code Data Type Context Can only be used as context structure of a code data type.
Core A core data type according to CCTS that has unrestricted usage.
Key Can be used as key in business object node structures, but not in messages.
Message Intermediate Can only be used in message types, but only at intermediate levels and not for the message type
itself.
● View information and documentation — You can hover over an entity in the tree view to display information
about the entity such as the namespace. The information also indicates the usage type of the enhancement
option (single use or multiple use) and the related business object.
The documentation of the enhancement options describes how you can use an enhancement option, when
the enhancement option is called, and what it does. Furthermore, it gives information about the business
configuration content you need to develop for an enhancement implementation, the scoping requirements
in the customer system, as well as information about the filters, the input parameters and output
parameters, and testing activities.
● View information and documentation — You can hover over an entity in the tree view to display information
about the entity such as the namespace.
● Navigate to UI designer — You can open the reuse UI by right-clicking the UI and selecting Open in UI
Designer.
See Also
About the Public Solution Model (PSM) [page 73]
Look Up the Representation Term of a Data Type [page 89]
The studio enables you to execute queries for SAP business objects and custom business objects to help you better
understand the business object data model.
For custom business objects, you can execute the QueryByElements query, which is generated automatically, and
complex custom queries. For more information, see Create a Query [page 342]
Procedure
1. To execute a query for SAP business objects, proceed as follows:
In the studio, select
a. View Repository Explorer.
b. Select the Business Objects tab and make sure that the Queries button is selected.
c. Select a business object (or search one using the Search field) and expand the tree view.
d. Select a query ( ), right-click it, and select Execute Query.
The Query Parameter Selection window opens.
2. Optional: In the Query Parameter Selection window, you can do the following:
● Add or Remove parameters
● Paste Values from Clipboard into the Lower Boundary field
● Define the Maximum Number of Records
● Calculate the Available Number of Records for Selection
3. To define the selection parameters, do the following:
a. Click the Parameter field to select a parameter.
b. To exclude records from the results, click the Include/Exclude field and select Exclude. The default
value is Include .
c. Click the Option field to select one of the following selection options: Equal to, Between, Contains
Pattern , Less Than, Less Than or Equal to, Greater Than, Greater Than or Equal to.
d. Enter a Lower Boundary Value and an Upper Boundary Value, if required.
4. Click OK to execute the query.
Result
The results list is displayed in the documentation pane. You can use the following options:
Navigate by Association
●
Explore the query results by following the associations of the business object. Please note that this is not
possible, if the debugger is active.
● Reopen Search
Click this button to reopen the Query Parameter Selection and adjust the selection parameters.
● Single-Record View
Select a record and press the button to display the record in the Single-Record View window.
● Search window
Search for a string or term in the query results.
● Output Formatting Active
Toggle between the technical view and the user view. If you select Output Formatting Active , the user view is
displayed.
● Generate Code
Click this button to generate the .absl code that executes the query with the selection parameters used.
.absl
You can then copy this code into a new or existing file. In case there is already coding in your .absl
file, there may be conflicts due to duplicate imports or variables, which you need to resolve.
If you cannot see all the buttons, click the down arrow on the right or enlarge the query results window.
The Solution Explorer tool window displays a solution and the project items created for this solution, for example, a
business object or a screen. In the Solution Explorer , you can open items for editing and add new items to a solution.
When you double-click a solution in the My Solutions tool window, the solution opens in the Solution Explorer . By
default, the Solution Explorer tool window is displayed on the right of the developer desktop. You can also open the
Solution Explorer in the View menu by clicking Solution Explorer .
At the top of the Solution Explorer window, there are three buttons: You can view the properties of your solution and
items, add a new item, and refresh your solution. This updates the contents and status of your solution displayed in
the Solution Explorer .
In the Solution Explorer window, the solution is displayed with its description (= the name you have given your
solution) and the status information (for example, In Development). Below the solution, you can see all the items
and item objects of the solution.
The Solution Explorer uses icons in front of the items and item objects to display status information. Depending on
the status, the icons used for items and objects change. For example, added to an item or object means "checked
out by me" and means that the item has no up-to-date runtime objects. As an example, the following table shows the
icons used for business objects:
Runtime objects of business object are up-to-date Business object has been checked out by me
Runtime objects of business object are not up-to-date Business object has been checked out by another user
The activation status of the runtime objects of an solution is displayed in the Properties window. For more information,
see Properties Window [page 63] .
Project
The project node displays the name of the project and the status of the solution, for example, In Development . When
you create a solution for the first time, the status of the solution is In Development and you can use all available
functions. When the status of the solution changes, for example, to Assembled , you can view the solution, but you
cannot make any changes. For more information about the life cycle of a solution, see Lifecycle Management of
Customer-Specific Solutions [page 135].
You can create folders to structure the items according to your preferences. Currently, items cannot be moved
between folders in the Solution Explorer .
Generic Actions
Depending on the status of your solution, you can perform various actions for an item or the solution by
right-clicking a node or item. Actions that you cannot choose for the solution or item you have selected are grayed out. Here is an
overview of the actions that are available in the Solution Explorer :
● Activate
For more information on the activation of business objects, see Activate a Business Object [page 342] .
Check
●
You can use the following check functions:
For
○
a selected item of the solution:
Right-click the element and select Check.
For all items of the solution:
○
Right-click the project node and select Check Items .
○ For all items and runtime objects of the solution:
Right-click the project node and select Check Items and Runtime Objects . This option checks the
consistency of the design-time files and of the generated runtime objects.
● Check In/Check Out/Check In All Files
Items that you have checked out (for example, when changing them) are locked by you and other users cannot
edit these items. A red check mark identifies items that you have checked out. When you have finished editing
an item, you can check it in to make it available for other users to edit. You can also check in all items at the
same time by right-clicking the solution and selecting Check In All Files. Items checked out by other users are
identified by a blue user icon. The Properties window displays the user that has checked out the items.
● Add
You can access the following functions via the Add option:
○ Add New Item
Opens the Add New Item dialog box that displays the installed item templates that SAP provides for
solution development. For more information about the items you can add to your solution, see Add New
Item Dialog Box [page 56] .
You can also open the Add New Item dialog box by clicking the button at the top of the Solution
Explorer tool window.
● Delete
You can use the delete function to delete an item and its corresponding runtime objects.
● Translation
See Also
Working in the Integrated Development Environment [page 36]
Overview
The Add New Item dialog box displays the installed item templates that SAP provides for solution development. You
can add items such as business objects, different user interface (UI) components, and Web services to your solution.
Availability
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
You can also open the Add New Item dialog box by clicking the button at the top of the Solution
Explorer tool window.
The Add New Item dialog box opens. By default, all items are displayed in the center pane in alphabetical
order.
You can also display items by category by selecting one of the categories from the list in the Installed
Templates pane under SAP:
○ Business Configuration
When you select an item, a brief description of the item appears in the right pane. You can add the following
items.
File
Installed Template Icon Extension Description How To...
Business Object .bo You can create a business object definition that ... Create a Business
specifies the structure and organization of the Object. For more
business object. On the basis of your business information, see
object definition, you can then implement the Business Objects Quick
business logic and generate screens. Guide [page 326]
Code List Data Type .codeli Code list data types can, for example, be used in ...Create a Code List
business objects or business object extensions. Data Type [page 385]
st
You can define configurable code list data types
via business configuration objects and business
configuration sets.
Form .xdp You can create a print form for a business object. ... Create a Print Form
Print forms are read-only portable document [page 408]
format (PDF) documents that are generated from
data stored in the business object. You can
define the data that you want to include in the
form and design the layout.
Mass Data Run .run A run that specifies the automatic mass ...Create a Mass Data
processing of a business object action. It Run [page 437]
contains the selection criteria and the processing results.
Query .qry You can create a query that contains search ... Create a Query
parameters and fields from different business [page 342]
object nodes. You can then create an object
work list (OWL) that uses your query data in
search and information retrieval operations.
Reuse Library .librar You can create a reuse library and define its ...Reuse Library Quick
functions to organize the code in your solution or Guide [page 382]
y
to reuse code in several script files.
Tax Decision Tree .bcctax You can create a tax decision tree for a country. ...Create a Tax Decision
Based on this decision tree, the system Tree [page 321]
determines the tax event for this country when
you create an invoicing document, such as a
customer or supplier invoice.
File
Installed Template Icon Extension Description How To...
Analytical Report .report You can create a report based on an SAP data ... Create a Report
source or based on a custom data source you [page 430]
have created.
Combined Data Source .cds A combined data source combines data from two ... Create a Combined
or more data sources that share common or Data Source
similar characteristics.
[page 427]
Data Source .ds You can create a data source that includes key ... Create a Data Source
figures and characteristics and transformation [page 425]
and aggregation rules. You can also reference
other data sources. You can then create a report
that uses your data source. To join or combine
data from different data sources, you can create
joined and combined data sources using the
administrator tool for Analytics.
Joined Data Source .jds A joined data source joins data from two or more ... Create a Joined Data
data sources that share common characteristics. Source [page 418]
Key Figure .kf You can create a calculated or restricted key ...Create a Key Figure
figure based on an SAP data source or based on [page 432]
a custom data source you have created. You can
use the key figure in a report. A calculated key
figure is determined using calculation rules or
formulas. A restricted key figure is restricted to a
specified characteristic value.
File
Installed Template Icon Extension Description How To...
BAC Elements .bac You can create business options, business ... Create a Business
topics, and country options. Option [page 304]
... Create a Business
Topic and Business
Options [page 306]
Business Configuration .bco You can create a business configuration object ... Create a Business
Object (BCO) as the basis of a business configuration Configuration Object
set (BC set). [page 314]
Business Configuration .bcc You can create a business configuration set (BC ... Create a BC Set
Set set) based on a business configuration object Using an SAP BCO
(BCO). You can then assign your BC set to a [page 312]
business option using the Business
Configuration Wizard. ... Create a BC Set
Using a Custom BCO
[page 316]
Business Configuration QA.uico You can create a business configuration view (BC ... Create a Business
View view) for a business configuration set (BC set) to Configuration View
mponent
allow administrators to change the values defined [page 317]
in the BC set during fine-tuning. You model the
view using the UI designer.
Implementation Project .bct Fine-tuning project templates provide sample ... Create a Fine-Tuning
Template content for a specific scenario that is defined by Project Template
SAP. The fine-tuning activities you need to
[page 320]
complete for the template are explicitly listed.
File
Installed Template Icon Extension Description How To...
Business Object .xbo You can create business object extensions to ... Create a Business
Extension enhance SAP business objects by adding Object Extension
extension fields to them. You can then add the [page 361]
extension fields to forms, screens, reports, and
search categories. You can also use the
extension fields in script files.
Embedded Component EC.uico An embedded component is a reusable user ... Model an Embedded
interface component that you can add to other Component
mponent
floorplans. The parent floorplan influences the
[page 587]
behavior of the embedded component. You can
model this component in the UI designer.
Process Extension .xs You can create a process extension scenario to ... Create a Process
Scenario link business contexts to other related business Extension Scenario
contexts. You can then use the [page 377]
Scenario
annotation to specify that an extension field is
available for all the business contexts in the
scenario.
References to .ref You can select the customer-specific fields that ... Create References to
Customer-Specific you want to use in script files. Customer-Specific
Fields [page 371]
Fields
File
Installed Template Icon Extension Description How To...
Data Mashup .MC.uim You can create a mashup that combines and ... Create a Data
displays data from both internal and external Mashup [page 464]
ashup
sources. You can then use the Data Mashup
Builder in SAP's cloud solution to transform or
merge external Web services with internal
business data using industry-standard Web
service protocols.
HTML Mashup .MC.uim You can create a mashup that embeds HTML or ... Create an HTML
JavaScript code in a screen. Mashup [page 467]
ashup
Mashup Port Binding PB.uima Create a port binding to add a mashup to your ... Create a Port Binding
floorplan. for a Mashup
shup
[page 461]
REST Mashup Web .WS.uim You can create a Web service based on the REST ... Create a Mashup
Service architectural style. For REST Web services, you Web Service
ashup
need to know the request URL and any relevant
[page 471]
query parameters. You define the REST Web
service using the administrator tools for mashup
and Web service authoring. To integrate the Web
service in a screen, you must add the Web service
to a data mashup.
RSS/Atom Mashup .WS.uim You can create a Web service based on RSS or ... Create a Mashup
Web Service Atom feeds. For RSS or Atom feeds, you need to Web Service
ashup
know the end-point URL of the Web service or
[page 471]
the WDSL location. You define the RSS/Atom
Web service using the administrator tools for
mashup authoring and Web service authoring. To
integrate the Web service in a screen, you must
add the Web service to a data mashup.
SOAP Mashup Web .WS.uim You can create a Web service based on SOAP. ... Create a Mashup
Service For SOAP Web services, you need to know the Web Service
ashup
WSDL location (URL). You define the SOAP Web
[page 471]
service using the administrator tools for mashup
authoring and Web service authoring. To integrate
the Web service in a screen, you must add the
Web service to a data mashup.
URL Mashup .MC.uim You can create a mashup that sends data from ...Create a URL Mashup
SAP's cloud solution to the URL of an online [page 462]
ashup
service provider. The service provider uses the
data, for example, to perform a search, and the
results are displayed in a new browser window.
File
Installed Template Icon Extension Description How To...
Fact Sheet (FS) FS.uico An FS is a one-page read-only overview of an ... Model a Fact Sheet
object. It displays the object properties, can have [page 570]
mponent
different views, and can contain links for
navigating to related objects. You can model this
overview in the UI designer.
Guided Activity GAF.uic A GAF is a floorplan for an activity that can be ... Model a Guided
Floorplan (GAF) divided into a logical sequence of steps. It Activity Floorplan
omponen
consists of a series of screens that guide the [page 579]
t user through an activity to complete a specific
task. You can model this floorplan in the UI designer.
Modal Dialog (MD) MD.uico An MD is a small movable and resizable window ... Model a Modal Dialog
that helps users perform a simple task. You can [page 585]
mponent
model this dialog in the UI designer.
Object Instance OIF.uic An OIF allows users to create, delete, view, and ... Model an Object
Floorplan (OIF) edit a business object such as an employee, a Instance Floorplan
omponen
purchase order, or a supplier's record. You can [page 574]
t model this floorplan in the UI designer.
Object Value Selector OVS.uic An OVS supports users in selecting values for an ... Create an Object
(OVS) input field. An OVS is most commonly called from Value Selector Dialog
omponen
an input field. You can configure an OVS Box [page 577]
t component in the UI designer. You can also
configure an OVS Control (an input field with a
value selection helper) in the UI designer and
consume the OVS component.
Object Work List (OWL) OWL.uic An OWL is a list pane that contains business ... Model an Object
objects such as purchase orders or opportunities. Work List [page 576]
omponen
Users can perform tasks on objects and trigger
t follow-on processes. You can embed an OWL in
a view. You can model this list in the UI designer.
Port Type Package PTP.uic A PTP hosts one or more port types. A port type ... Create a Port Type
(PTP) is a blueprint for an inport or an outport. You can Package [page 584]
omponen
create a PTP to facilitate navigation between
t components that have inports and outports
within the same PTP without any mapping. You
can configure these components in the UI
designer.
Quick Activity Floorplan QA.QA.u A QAF allows users to quickly perform a self- ... Model a Quick
(QAF) contained or short subtask of a larger task, for Activity Floorplan
icompon
example, create a bidder within the creation of a [page 572]
ent request for quotation. A QAF is a simple task-
specific alternative to an OIF. You can model this
floorplan in the UI designer.
Quick Create Floorplan QC.uico A QC allows casual users to quickly create, delete, ... Generate Screens for
(QC, not available for view, and edit a business object record, such as an a Business Object [page
mponent
SAP Business account or an opportunity. A QC is a slide-in 350]
ByDesign) window, that allows users to edit the record without
navigating away from the UI they are currently
seeing. UIs that are created with QCs are intended
to be used on tablets and on PCs.
Quick View Floorplan QV.uico A QV is a preview on a thing. A thing is the ... Generate Screens for
(QV, not available for representation of one or several entities in the a Business Object [page
mponent
SAP Business system and is intended to match the data record 350]
ByDesign) currently displayed on the UI. The QV combines
several pieces of detailed information on a thing
without navigating away from the UI that the user
currently sees. Data displayed in a QV cannot be
edited. QVs are intended to be used on tablets
and PCs.
Thing Inspector TI.uico A TI allows the user to get a complete view of a ... Generate Screens for
Floorplan (TI, not thing. The TI shows all aspects of a thing and is a a Business Object [page
mponent
available for SAP compact summary of all primary attributes, the 350]
Business ByDesign) tags, and the actions that can be carried out. TIs
are intended to be used on tablets and PCs.
Thing Type Floorplan TT.uida A TT describes the general UI properties of a ... Generate Screens for
(not available for SAP thing, such as its name and various icons on the a Business Object [page
taobjec
Business ByDesign) UI, its binding against a business object, and its 350]
t key. It is used for navigating between the
screens that are thing-based and for the
provisioning of REST services for a thing.
Work Center (WoC) .uiwoc A WoC groups task-specific activities such as ... Model a Work Center
managing purchase orders or planning and [page 583]
budgeting. Each WoC has multiple views. You
can model a WoC in the UI designer.
Work Center View .uiwocv A view contains information or tasks related to a ... Model a Work Center
specific topic. Views can contain a worklist and View [page 581]
iew
can link to other activity floorplans such as QAFs
or GAFs. Views must be assigned to a WoC.
You can model views in the UI designer.
File
Installed Template Icon Extension Description How To...
Communication .csd You can select a set of inbound and outbound ... Define a
Scenario services that allows customers to create Communication
communication arrangements in SAP's cloud Scenario [page 527]
solution to exchange business documents
electronically.
External Web Service .wsid You can create an external Web service ... Integrate an External
Integration integration of type SOAP or REST. You can then Web Service Using
address the Web service in your business logic SOAP [page 521]
to enable access from the SAP cloud solution to
a remote application. ... Integrate an External
Web Service Using
REST [page 522]
Internal .pid You can create a service integration definition to ... Configure Internal
Communication exchange data between two business objects Communication
that are located in different deployment units. [page 493]
The definition contains the configuration for
asynchronous communication between the
business objects.
Web Service .webser You can create a Web service based on a ... Create a Web Service
business object. Web services enable remote [page 515]
vice
access to the business object data using
SOAP-based communication.
XML File Input .pid You can create an XML schema definition that ... Create XML File Input
allows customers to create an XML file, which [page 494]
can then be used to import third-party data from
other systems into SAP's cloud solution.
Overview
The Properties window displays information about the item in your solution that is currently selected in the Solution
Explorer . When you select the solution, you can view solution properties such as the solution status. When you select
Features
You can access the Properties window in the View menu by clicking Properties Window or by pressing F4 . You
can view the following solution properties or item properties by selecting the solution project node or an item in the
Solution Explorer .
Solution Properties
Property Description
Advanced
General
Compiler Version Version of the scripting language compiler that is used to check or activate the solution. This field
typically contains two numbers separated by a slash, for example, 1302 / 1211. The first number
indicates the compiler version of the .absl files. The number after the slash indicates the compiler
version of the and files.
.bo .xbo
Description Description of the solution defined when the solution was initially created
Last Changed On Date and time when the project was last changed, that is, when an item was last added to or deleted
from the solution
Type Type of the solution defined when the solution was initially created; this property characterizes the
focus and content of a solution.
For a customer-specific solution, this property can have one of the following values:
Customer-Specific
● Solution
For information, see Create a Solution [page 162] .
Solution Template
●
For information, see Create a Solution Template [page 161] .
Item Properties
Property Description
Advanced
Local Path Full path of the project item on the client computer
General
Business Object Type Code representation of the type of the business object in the repository
Code
(for business objects
only)
Checked Out By User who has currently checked out the project item
Check Out On Date and time when the project item was checked out
Created On Date and time when the project item was created
Last Changed On Date and time when the project item was last changed
Status
Activation Status Status of the (runtime) objects of an item displayed in the Properties window:
This property can have one of the following values:
● Runtime objects up to date
● Runtime objects out of date
● Runtime objects do not exist
● Runtime objects contain errors
● Check pending/Check not possible
Make sure that the status of the runtime objects is Runtime objects up to date when you
perform runtime tests. Otherwise, you may test on outdated runtime data. To update the runtime
objects, activate the item by right-clicking the item and selecting Activate .
To illustrate the activation status in the Solution Explorer , a red dot ( ) is displayed next to the item
icons whenever the runtime objects are not up-to-date.
For detailed Information about how the status of items and object items is displayed by icons
in the Solution Explorer , see Solution Explorer [page 54] .
The Trace Explorer is a tool for gathering and analyzing diagnostic information.
For more information about tracing, see Tracing Quick Guide [page 543] .
Features
You can access tracing functions in the studio as follows:
● Functions in the Debug toolbar
The Debug toolbar provides debug functions and in addition functions that allow you to start and stop tracing.
You can also access the Trace Explorer tool window from this toolbar.
You can access the Debug toolbar in the View menu by clicking Toolbars Debug .
● Trace Explorer tool window
The Trace Explorer tool window displays active and completed traces. You can run a local trace, run a trace
for a business user, use incident traces for troubleshooting purposes, and view the results of a recorded trace.
You can access the Trace Explorer tool window in the View menu. You can also access the Trace Explorer tool
window from the Debug toolbar.
Overview
The wizards in the studio guide you through a logical sequence of steps, making it easier and quicker for you to
perform development activities that are complex, unfamiliar, or infrequently performed. All wizards are easy to
access and follow similar user interface (UI) patterns.
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
Wizard Features
The wizards in the studio:
● Guide you through a logical sequence of dependent or independent working steps.
Consist of three steps or more.
●
○ Is always the last step, for example, first step (1/3), second step (2/3), Review step (3/3).
○ Is display-only.
You cannot change any entries in the Review step. To change an entry, click Back .
● Remain open until you have finished defining the item and the system has generated the item.
Most generated items appear in the Solution Explorer . When you define BAC elements, you can double-click
the .bac file or right-click the file and select Open to display and change the BAC elements you have defined.
Each wizard step displays the following buttons: Back, Next, Finish, Cancel. The appearance of the buttons depends
on the wizard step displayed, that is, whether the function is available. For example, the Back function is not available
in the first wizard step.
Available Wizards
You can access the following wizards in the studio:
Studio Wizards
Wizard Use
Business Configuration Object Wizard Create a Business Configuration Object [page 314]
Business Configuration Set Wizard ● Create a BC Set Using an SAP BCO [page 312]
Create a BC Set Using a Custom BCO [page 316]
●
Code List Data Type Wizard Create a Code List Data Type [page 385]
External Web Service Integration Wizard Integrate an External Web Service Using SOAP [page 521]
Integrate an External Web Service Using REST [page 522]
Mass Data Run Wizard Create a Mass Data Run [page 437]
Tax Decision Tree Wizard Create a Tax Decision Tree [page 321]
The following tables show some of the most frequent icons used in the studio.
Main Menu
Help Menu
Solution Explorer
Generic Actions
Activate Clean
Open Delete
For more information, see Business Objects Quick Guide [page 326] and Add New Item Dialog Box [page 56] .
Implementation Manager
For more information, see Implementation Manager Quick Guide [page 151] .
See Also
Icon Library (UI Designer) [page 71]
The following tables show some of the most frequent icons used in the user interface designer (UI designer).
For more information about what you can do with the tools, see
Introduction to the User Interface Designer
[page 563] .
Main Menu
Display<->Edit Activate
Controller
Data Model
The SAP public solution model (PSM) contains all entities in the SAP cloud solution that are released for use by
external consumers. External consumers can be partners who develop solutions on top of the SAP cloud solution
such as add-ons and integration scenarios or administrators who, for example, use SAP data sources to create
new reports. The modular and homogenous architecture of the SAP cloud solution allows SAP to offer external
consumers a highly flexible means of developing additional functionality without modifying the standard solution.
Basic Principles
The SAP Cloud Applications Studio (“studio”) allows SAP partners, resellers, and customers to work with the same
entities that SAP uses in the core development of its cloud solutions and to develop solution capabilities that have
the same look and feel as the SAP standard cloud solutions. The content developed using the studio resides on a
Understanding Deprecation
The current structures and processes defined within the public solution model (PSM) remain stable for the current
and upcoming release. If it is necessary for SAP to make changes to PSM entities to meet technical or business
requirements, SAP uses a deprecation mechanism that allows external consumers to update their solutions in an
appropriate time frame.
SAP plans to make changes to specific business object elements in the future:
● The business object elements are set to deprecated and, if an element is deprecated, all children
are also deprecated. For example, if a business object node is deprecated, all actions, queries, and
elements that belong to this node are also deprecated.
● SAP identifies the use of deprecated elements in a solution, informs the partner or other external
consumer who developed the solution, and provides information about the successor element.
The external consumer creates a new version of the solution before another SAP release becomes
●
available.
The new version of the solution is made available to customers for activation with the new release
●
of the SAP solution
● SAP revokes the respective business object element.
1. Create an incident in the SAP cloud solution and use the prefix PSM.
For information on how to create an incident, see here [page 535] .
2. Describe the use case of your solution and what you are trying to achieve (that is, what is the purpose of
your development/solution?).
3. Describe the required business content/entities to be released in PSM, and why you need them.
4. If you require business content such as the fields of a business object from a UI, provide a screenshot of that
UI and highlight the elements that need to be enabled for read-access and for write-access.
5. Add your contact information - that is, e-mail address and telephone number - so that SAP can easily get back
to you in case of questions.
Deployment Units
A deployment unit is a piece of software that can be operated on a separate physical system, isolated from other
pieces of software. the SAP cloud solutions are organized in deployment units that group semantically related
business objects. For example, the Customer Relationship Management deployment unit groups business objects
such as Campaign, Lead, Opportunity, and Sales Order. The Foundation deployment unit mainly contains master
data objects, such as Material, Employee, and Customer.
Business Objects
A business object is a code representation of a self-contained, independent, real-world business concept, such as a
company, an employee, a sales order, an opportunity, or a product. The definition of a business object describes the
structure and behavior of a real-world business concept. Each business object resides in a deployment unit and
consists of a hierarchy of nodes, which represent the data.
Business object elements can be published for read-only access or for write access; write access means that an
external consumer can create, update, or delete instances of that business object by calling the core services
Create, Update, or Delete.
Data Types
A data type is a classification of a particular type of information.
Enhancement Options
An enhancement option is a repository object provided by SAP for a specific application to allow the standard
behavior of the application to be enhanced without modifying the standard solution. Enhancement options are
defined with metadata and documentation. A distinction is made between single-use enhancement options and
multiple-use enhancement options. If an enhancement option is for single use, it can be implemented only once in
a solution. If an enhancement option is for multiple use, it can be implemented more than once in a solution.
For information about creating an implementation of an SAP enhancement option, see Create an Enhancement
Implementation [page 380] .
Embedded Components
An embedded component is a reusable user interface component that you can add to other floorplans. The parent
floorplan influences the behavior of the embedded component.
Data Sources
A data source is an object that provides a multidimensional, analytical view of business data. Data sources are the
basis of analytical report content and are associated with a specific access context or can be unrestricted.
Reuse Libraries
For more information, see Basic Reuse Libraries Reference [page 226] .
Reuse libraries for business areas
●
The reuse libraries for business areas provide additional, very specific services to the scripting language that
are relevant for functions in the SAP solution's business areas, for example, in the Financial Management
business area. These services are all based on entities provided by SAP.
For more information, see Reuse Libraries for Business Areas Reference [page 252] .
Extension Scenarios
Extension scenarios enable you to create an extension field in one business context and then add that extension
field to multiple other business contexts. The data stored in the extension field is then passed from one business
context to the next as part of a business process. The following extension scenarios have been predefined by SAP:
Account - General Information to Lead - General Information
●
Overview
The SAP cloud solutions are built using the concept of “business objects” to model the business environment. This
document provides an introduction to the structure and behavior of SAP business objects.
All business logic is implemented in business objects that model real-world objects and processes.
The business object model is the central anchor for script coding, the user interface (UI), forms, and business tasks.
Changes to the business object may require corrections to scripts, UI screens, forms, and so on.
Therefore, when developing an cloud solution, we recommend that you complete the business object
design as far as possible before proceeding.
Deployment Unit
Each business object belongs to a deployment unit, which is a piece of software that can be operated on a separate
physical system, isolated from other pieces of software. For more information, see here [page 179] .
To ensure the right naming according to the business semantics, the business object name is constructed / chosen
according to ISO 11179 naming standards.
A separate node represents a logical / semantic group of elements that can be treated as a group even if the elements
could be assigned directly to the higher-level node.
The creation of a node implicitly introduces a composition, that is, a relationship between the parent node and the
child node. Compositions can be used to access features of the child node from the parent node (for example, in
action implementations). For each composition, a reverse association to the parent node is created implicitly.
● Delivery Terms
Creating Sub-types
An object or object node can “play” different roles. You have to decide which roles are important from a business
point of view and should be represented explicitly by sub-types.
Analyze all objects and object nodes to determine whether some roles can be merged – this is an indication for the
existence of sub-types. Merging the roles leads to generalized objects or components.
To homogenize the use of data types, SAP defines global data types that represent business-related content in
conformance with widely used Web and business standards, such as DateTime, Amount, Currency, Text, String,
and Boolean.
All business objects and service interfaces share the same pool of global data types. For more information, see Data
Types [page 85] .
● Product
● Location
In the element structure these associations are represented by the corresponding reference component.
Business logic is added in script coding, which may call operations from other business object nodes.
The Save service checks the consistency of the business object and saves to the database. This is automatically
handled by the studio.
● Copy
● Release
● Approve
● Complete
The status of a business object can determine which actions are allowed.
Queries
A query is a service that returns a list of business object instances based on query parameters. Queries support
sorting, paging, and the use of "search engine" indexes.
● Complex queries can also be created that allow joining over business object nodes and business logic (for
example, complex time dependencies)
See Also
Example: Building a Solution [page 91]
Each element of a business object must be assigned a data type. To homogenize the use of data types, SAP defines
consolidated global data types (GDTs) that represent business-related content in conformance with widely used Web
and business standards. All business objects and service interfaces share this same pool of GDTs.
You can access the data types that are available via the Repository Explorer [page 49] : Data Types.
SAP data types are located in the namespace: AP.Common.GDT (namespace: http://sap.com/xi/BASIS/
Global). .
Data Types
The studio uses the following data types:
Example
The second structured data type consists of content and technical attributes. These are hidden in the studio so that
only the content is visible.
Example
Example
Identifier
You use the ID data type to identify a business object or business concept.
element <ID_name> : ID;
The ID data type has up to 60 characters, is not structured and does not contain the Content element. The data
type supports, for example, upper case conversion and alpha conversion. Alpha conversion fills purely numeric user
input like “4711” with leading zeros to allow better sorting in character fields. For example, if alpha conversion is not
used, an alphabetic sorting would lead to results such as: “1”, “10”, “100”, “1000”, “2”, “20”, “200”, and so on.
● MEDIUM = 40 characters
● LONG = 80 characters
● EXTENDED = 255 characters
Boolean
You use the Indicator data type to identify a Boolean element.
element <some_indicator> : Indicator;
element
<some_date>
"2012–04-24";
Date
=
: element
<some_time>
"16:35:14";
Time
=
:
Number
You use the following data types to declare numbers, amounts, quantities, and measures:
element <some_number> : NumberValue;
element
<some_amount>
Amount;
: element
<some_quantity>
Quantity;
: element
<some_measure>
Measure;
: NumberValue
● Use the Amount data type for money. This is a structured data type that consists of a number and a currency
code (for example: 25 EUR).
● Use the Quantity data type for all other quantities (pieces, length, weight, and so on). This is a structured
data type that consists of a number and a code for the measurement unit (for example: 25 KGM represents
25 kilograms).
● Use the Measure data type for measures (pieces, length, weight, and so on). This is a structured data type
that consists of a number and a code for the measurement unit (for example: 25 MTR represents 25 meters).
Code Lists
A code list is a field with a set of predefined values. SAP provides a large number of code lists as data types that you
can use. The data type name ends with the word “Code” to identify it as a code list.
● Static code lists. For more information, see Create a Code List Data Type [page 385]
Configurable code lists. For more information, see Configurable Code Lists.
●
Most SAP code lists are context-independent. Some of the code lists, however, are context-dependent, that is, the
code values differ depending on the context (for example, country).
The following table shows the values of the WorkAgreementAdministrativeCategoryCode code list of two
different countries.
element
<some_email_address>
EmailURI
:{content
="[email protected]"};
= element
<some_web_address>
WebURI
"http://www.sap.com";
:=
Procedure
1. In the studio, select View Other Windows Repository Explorer .
2. In the Repository Explorer , select Data Types.
3. In the Search data types window, search for the data type you want to use.
The data type details window opens.
4. Under Overview, you find the representation of the data type.
See Also
Repository Explorer [page 49]
Technical Object
A technical object supports the technical infrastructure or IT Service and Application Management (ITSAM) of the
application platform.
Transformed Object
A transformed object provides consumer-friendly services across multiple business objects and their already
existing functionality. A transformed object is used if a view on multiple business objects is required in the
representation of a business object (for example, because the using application requires a business object).
Transformed objects are instantiated at run-time and do not have their own persistence – they rely on the
persistence of the underlying business objects.
Dependent Object
A dependent business object is used as a reusable part in another business object. It represents a concept that
cannot stand alone from a business point of view. Instances of dependent objects can only occur in the context of
other business objects.
● Customer Transaction Document (this is the template for SalesOrder, Quote, Return, ServiceOrder,
ServiceRequest, and so on)
● Product (this is the template for Material, Service Product, Warranty, and so on)
Overview
In this example you are going to build a solution to manage the allocation of car parking spaces to employees in the
SAP cloud solution.
● The solution contains one business object – representing a car park – of which there can be multiple instances.
The car park business object contains a node for "parking spaces" – of which there can be 0 to n.
●
● Each parking space is assigned to an Employee ID using an Object Value Selector (OVS) – this allows you to
look up the employees within the company.
● The parking space node has an association to the Employee business object – this allows you to retrieve the
employee's first and last name.
Any software coding or code lines/strings (“Code”) provided in this documentation are only examples
and are not intended for use in a productive system environment. The Code is only intended to better
explain and visualize the syntax and phrasing rules for certain SAP coding. SAP does not warrant the
correctness or completeness of the Code provided herein and SAP shall not be liable for errors or
damages cause by use of the Code, except where such damages were caused by SAP with intent or
with gross negligence.
Tasks
6. Add some data to the car park. First you need an ID to identify your car park. You can then add extra
information, such as a name and the number of car spaces.
element CarParkID : ID;
element CarParkName : LANGUAGEINDEPENDENT_LONG_Text;
element CarParkDescription : LANGUAGEINDEPENDENT_LONG_Description;
element Number_of_ParkingSpaces : IntegerValue;
7. Each car park can have multiple car parking spaces. Therefore, you create a node with a multiplicity of [0,n] to
represent the car spaces within each car park. Each node requires an ID.
node ParkingSpace [0,n] {
element ParkingSpaceID : ID;
}
8. Each car space can be assigned to an employee. Therefore, you create an element of type EmployeeID to
record the employee.
element ParkingSpace_AssignedEmployeeID : ID;
9. To make the connection to the existing employees in the company, you create an association to the SAP
business object: Employee. This enables you to use the data from this business object in your screens. To
use the Employee association you first have to import the namespace of the Employee business object.
import AP.FO.BusinessPartner.Global;
association ToEmployee [0,1] to Employee;
10. You can add some additional information for the car space.
element ParkingSpace_Disabled : Indicator;
element Vehicle_RegistrationNumber : LANGUAGEINDEPENDENT_MEDIUM_Text;
element ParkingSpace_Level : NumberValue;
11. Save and activate the business object.
You can find the complete business object code here [page 103] .
3. In the Solution Explorer , double-click the QA floorplan to open it in the user interface designer (UI designer).
On the Designer tab, you can see that the root node elements from the business object are automatically
displayed as fields on the screen.
On the DataModel tab, you can see that the data field and the binding are created automatically.
7. On the Designer, drag the ParkingSpace_AssignedEmployeeID element onto the second column header of
the list pane. Select No when prompted to use backend text and save your changes.
5. Select the GivenName column and in the Property Explorer, select Properties Appearance
DisplayType StaticText . Repeat the steps for the FamilyName column and save your changes.
Add a Toolbar
1. Select the list pane by clicking the area to the left of the first column.
2. In the Property Explorer select AdvancedListPaneVariant: ListPaneVariant .
8. Click OK.
1. In the Solution Explorer , double-click the WCF screen to open it in the UI designer.
2. On the Designer tab, click the folder icon to select the OberonCenterStructure .
3. In the Property Explorer , click the Title field.
4. In the DependentProperty Editor , select Overridden Text and enter a name for the work center (for example
Car Park Manager).
If other users have completed this example, there may be multiple work centers with the same title. In
this case, you may want to give the work center a unique title, such as <your name> – Car Park
Manager.
5. Click OK, then Save and Activate and close the UI designer.
From the OWL you can create new car parks or edit the details of existing car parks.
Further Development
Now that you have developed a solution, you can begin to appreciate the power and flexibility of the studio.
There are many enhancements you could make to this solution. Here are just a few ideas:
● Add a field to calculate the number of unassigned car spaces. For more information, see here [page 111].
Create a read-only car park fact sheet. For more information, see here [page 114].
●
○ Create a View button on the OWL that links to the carpark fact sheet using object-based navigation
(OBN). For more information, see here [page 120].
○ Create a link from the car park fact sheet to the employee fact sheet using object-based navigation
(OBN). For more information, see here [page 124].
● Extend the employee business object to show the Parking Space ID on the employee fact sheet. For more
information, see here [page 128].
● Add a URL mashup to display the car park location on a map. For more information, see here [page 106] .
Add a form to provide a PDF printout of parking spaces and assigned employees.
●
● Add date/time information to each parking space. You could then add a cost per day or per hour.
businessobject CarPark
// *Further Development*
//
declare
an
error
message
that
is
called
if
the
BO
fails
validation
//
raises
Message_Car_Park_Full
// - An alternative key of type UUID exists implicitly for each node, enabling the node
// *Further Development*
// define an error message to be displayed if the BO fails validation
// *Further Development*
element
add
an
// display
to how
many
parking
spaces
are
available
element
// Number_of_ParkingSpaces_Available
IntegerValue;
:
declare
// action
an calculate
to the
available
car
spaces
action
// Update_AvailableParkingSpaces;
// *Further Development*
// add an element to record location information
this
//field
used
iswith
URL
mashup
a display
to the
location
the
of
car
park
element
// CarParkLocation
LANGUAGEINDEPENDENT_MEDIUM_Description;
:
//
each
car
park
will
have
multiple
parking
spaces
//
we
create
node
a with
to
parking
0n spaces
//
each
parking
space
is
assigned
unique
a identifier
element
ParkingSpaceID
ID;
:
//
display
the
ID
of
the
Employee
assigned
to
the
parking
space
element
ParkingSpace_AssignedEmployeeID
ID;
:
parking
//
a space
may
be
designated
"Disabled
as
a Friendly"
parking
space
element
ParkingSpace_Disabled
Indicator;
:
there
is
//
electric
an charging
station
for
this
parking
space
element
? ParkingSpace_ElectricChargeStation
Indicator;
:
display
//license
the plate
number
employee's
the
of element
car Vehicle_RegistrationNumber
LANGUAGEINDEPENDENT_MEDIUM_Text;
:
// for a multi-level car park, we have the possibility to specify a level number
}
}
import ABSL;
import AP.FO.BusinessPartner.Global;
//
Auxiliary
flag
that
will
help
us
decide
whether
we
have
to
//
update
the
ToEmployee
association.
//
Our
pointer
tothe
employees'
query.
var
qryEmployees;
//Objectthatwillholdtheparametersforouremployees'querycall.varparamEmployee;
//Collectionofresultvaluesofouremployees'querycall.var
resultEmployees;
//CheckwhetherourToEmployeeassociationisstilluptodate.Ifnot,we'll//havetoupdateit.
if (this.ParkingSpace_AssignedEmployeeID.IsInitial()) {
// => No employee indicated for the parking space.
if (this.ToEmployee.IsSet()) {
// => Our ToEmployee association still holds the employee that had been // associated before - so
}
}
else if (!this.ToEmployee.IsSet()) {
//
=>
We
do
have
an
employee
indicated
for
the
parking
space,
however,
//
the
association
ToEmployee
hasn't
been
initialized,
yet.
//
=>
Set
our
flag
to
true.
bUpdateEmployee
true;
=
}
else if (this.ToEmployee.IdentificationEmployeeID.EmployeeID.content !=
this.ParkingSpace_AssignedEmployeeID) {
// => We do have an employee indicated for the parking space, however,
// the association ToEmployee still holds the employee that had been associated to the space before.
//
=>
Set
our
flag
to
true.
bUpdateEmployee
true;
=
if (bUpdateEmployee) {
// Since we know that we can have only one employee to the ID, we // take the first resul
break;
}
}
Overview
In this example you are going to add a URL mashup to the quick activity (QA) floorplan. This mashup will display the
car park location on a map, based on the location information entered.
Prerequisites
● You have completed the example: Building a Solution [page 91]
● The mashup has been created in the SAP cloud solution. For more information, see Mashups Quick Guide
[page 445] .
Procedure
1. Add an element on the root level of the Car Park business object to record location information.
element CarParkLocation : LANGUAGEINDEPENDENT_Text;
f. In the Property Explorer , select the mashup outport from the drop-down list at the top.
g. Click the Anchor field under Extensibility .
Result
The mashup is available from the Web Services menu on the QA. When you click the mashup, the URL is opened with
the value entered into the Car Park Location field as an input parameter.
In this example you are going to configure the car park object work list (OWL) to refresh automatically when a new
car park instance is saved on the quick activity floorplan (QAF).
Prerequisite
You have completed the example: Building a Solution [page 91]
Procedure
1. Open the object work list (OWL) in the UI designer.
2. On the Controller tab, create a new Inport with the name AutoRefresh_Inport.
3. In the Property Explorer , perform the following actions:
● set the property Events OnFire to the default EventHandler – this event handler executes the
query for the OWL
● enter the name AutoRefresh_LocalEvent in the field Navigation Local Event .
4. Save and activate.
5. Open the quick activity floorplan (QAF) in the UI designer.
6. On the Controller tab, create a new Outport with the name AutoRefresh_Outport.
Operations are executed from top to bottom, so you need to save the new business object instance
before running the default query.
Result
When you save a new car park instance on the QAF, then return to the OWL, the list of car parks is updated with the
car park that you created - you do not have to click Go to run the query again.
In this example you are going to add a field that automatically calculates the remaining car parking spaces available,
based on the total number of spaces and the number of spaces assigned to employees. You will use an action to
calculate the field value and you will call this action from a BeforeSave event on the root node. The result is displayed
as a column on the object work list.
Prerequisite
You have completed the example: Building a Solution [page 91]
Procedure
1. In the studio, open the Car Park business object.
In the root node, add an element of type
2. IntegerValue with the name AvailableParkingSpaces.
element AvailableParkingSpaces : IntegerValue;
3. In the root node, declare an action called Update_AvailableParkingSpaces
action .
Update_AvailableParkingSpaces;
Result
The available parking spaces are now displayed for each car park. The number will be updated if you edit a car park
and change the total number of car spaces, add a new space, or delete a space. You have to click Go on the OWL to
re-run the query and display the current information.
Overview
In this example you are going to create a fact sheet for a car park instance. The fact sheet (FS) provides a read-only
version of the information entered on the quick activity (QA) floorplan. The main steps in creating a fact sheet are as
follows:
It is intended that the fact sheet will be accessed from a View button on the object work list (OWL). For more
information about creating the button and linking to the car park fact sheet, see here [page 120] .
Prerequisites
● You have completed the example: Building a Solution [page 91]
Procedure
1. Right-click the CarPark business object and select Create Screens.
2. Select the fact sheet floorplan and click OK.
3. Double-click the fact sheet to open it in the UI designer.
Delete the column on the right.
4.
5. Delete the fields Exldr, Exldr1 and Exldr2 .
6. Delete the Edit button.
7. Delete the View All button.
8. Select the IdentificationRegion and edit the FloorplanTitle to include the Car Park ID as a variable.
9. Select the SectionGroup and set the property ShowHeader to false.
10. Select the SectionGroup and select the property Contents > Fields to open the Field Collection Editor and re-
order the fields.
11. Select each field and set the property DisplayType to StaticText .
12. Select each field and edit the Label property.
13. Add a flex layout row below the existing row.
14. From the Toolbox, drag-and-drop an AdvancedListPane into the new row.
15. Edit the property PaneHeader to read Car Spaces.
16. Add a column to the table.
17. Drag-and-drop the following fields from the BO Browser/Data Model onto the table columns:
● ParkingSpaceID
● ParkingSpace_AssignedEmployeeID
● GivenName
● FamilyName
18. Rename the column header labels:
● Parking Space ID
● Assigned Employee ID
● First Name
● Last Name
Overview
In this example you are going to create an object-based navigation (OBN) link from the Car Park Manager object
work list (OWL) to the Car Park fact sheet. You have already configured the fact sheet with an inport that allows for
OBN, now you are going to create an OBN outport to connect to this inport.
Prerequisites
● You have completed the example: Building a Solution [page 91] .
● You have completed the example: Create a Fact Sheet for the Car Park [page 114] .
Overview
In this example you are going to create an object-based navigation (OBN) link from the Employee ID field on the Car
Park fact sheet to the Employee's fact sheet.
Prerequisites
● You have completed the example: Building a Solution [page 91] .
● You have completed the example: Create a Fact Sheet for the Car Park [page 114] .
● You have completed the example: Create an OBN to the Car Park Fact Sheet [page 120] .
Procedure
1. Open the Car Park fact sheet in the UI designer.
2. On the DataModel tab, add a new data field to the DataList.
3. Select the new data field, select the BO element SAP_ToEmployee and click the Bind button.
19. Click the Designer tab and select the Assigned Employee ID column.
20. In the Property Explorer set the Events > OnClick field to Open_Employee_Factsheet_Handler.
Overview
In this exercise you will extend the Employee business object and then enhance the Employee fact sheet to display
the car parking space assigned to the employee. This involves the following steps:
Prerequisites
● You have completed the example: Building a Solution [page 91]
Procedure
1. In the Solution Explorer , right-click your project and select Add New Item .
2. Select the Business Object Extension template, enter the name Employee_BO_Extension, and click Add .
[Tooltip("Iftheemployeehasbeenassignedacarparkingspace,theIDisdisplayedhere.")]
}
5. Save and activate the XBO.
6. In the Solution Explorer , right-click the Employee_BO_Extension and select Enhance Screen.
7. Select the floorplan employeecontactdataqafeco and click OK.
The floorplan is opened in the UI designer.
8. On the Designer tab, select the Basic Information section group.
9. In the Extensibility Explorer , click the Add Extension Field to Section Group button.
10. In the Add Extension Field dialog box, select the extension field to add to the floorplan and click Apply .
Remember to select the Is Display Only check box so that the field will appear as static text.
11. In the Solution Explorer , open the Event-AfterModify script for the Parking Space node.
12. Add the following code at the end of the script file, just before the closing bracket:
foreach (var common in employee.Common)
{common.Assigned_Car_Parking_Space_ID = this.ParkingSpaceID;}
When a car space is modified, this script will update the extension field (
Assigned_Car_Parking_Space_ID) with the ID of the Parking Space.
13. Save and activate the script file.
Result
For employee's that have an assigned car parking space, the ID of the parking space is displayed on the employee's
fact sheet.
Overview
In this example you are going to create a validation script that will check if there are any car spaces available. The
script checks if the number of parking spaces assigned is greater than the total number of parking spaces. If there
are no available spaces, an error message is displayed and you will not be able to save your changes to the car park.
Prerequisites
● You have completed the example: Building a Solution [page 91]
Procedure
1. Edit the car park business object to declare the message and specify the message text.
Declare the message after the business object name:
a.
businessobject CarPark_Manager raises Message_Car_Park_Full {
b. Enter the message text at the root node level:
Result
When you edit a car park and create more car spaces than the total number of car spaces, an error message is
displayed and you will not be able to save your changes.
Overview
The localization toolkit is a set of development tools and instructions that enable SAP partners to extend and adapt
the capabilities of the SAP Business ByDesign solution to provide a locally-compliant solution for customers in
countries where a fully-localized SAP country version is not available.
The toolkit enables customers and subsidiaries to implement business processes for a number of localization topics
in these countries, without the need for the implementation of a fully-localized country version. In this way, it is only
necessary to implement the legal and local regulations relevant particular to the business processes required by the
customer or subsidiary rather than all country requirements.
The toolkit comprises tools integrated in the SAP Business ByDesign solution, implemented using the SAP Cloud
Applications Studio, or available as extensibility features such as extension fields. Using the toolkit, you can extend
and adapt existing capabilities, for example, you can implement additional business configuration, such as
accounting principles and chart of accounts for a new country, create tax content for non-localized countries,
extend existing fields, create new reports, or implement different form templates for output documents.
Availability
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
Overview
The studio supports the full end-to-end lifecycle management of customer-specific solutions. This includes
developing, testing, and deploying your solution as well as creating patches to deliver updates to your customer
There are different scenarios in which you may want to develop a customer-specific solution:
● The tenant where you develop your solution and the tenant where you upload your solution must be
on the same release.
Development Customer's
Activity Tenant Test Tenant For information, see ...
Create and Maintain Solution With BC Sets Using Yes No Create a BC Set Using an SAP BCO
SAP BCOs [page 312]
Customer-specific solutions for the SAP cloud solution are installed in a multi-tenant environment. The solution
provider needs to ensure that all solutions are of the highest quality and have the lowest possible Total Cost of
Ownership (TCO).
SAP requests you to conform to the criteria described in this document in order to ensure the quality of your solution.
Functional Correctness
You must ensure that your solution has been tested and documentation is provided for all test cases.
Performance
You must ensure that your solution does not adversely impact the performance of the SAP cloud solution.
Simple Transactions
Examples of simple transactions are: Object Work Lists, purchase request, leave request.
Complex Transactions
The end-user response time for complex transactions must be:
On average end-to-end < 1.7 s
●
Examples of complex transactions are: integrated transactions like order, but also simple analytical content and fact
sheets.
Complex Tasks
To enhance the end-user experience for complex tasks, the following must be true:
Progress indicator available
●
Examples of complex tasks are: analytical content, planning, multilevel bill of material explosion.
Security
You must implement measures to ensure the security of your solution. Furthermore, your solution must not impact
the security of the SAP cloud solution.
Code Scan
Security code scans are an important measure to minimize security risks. For customer-specific solutions, no code
scans are performed by default. SAP reserves the right to perform code scans of customer-specific solutions in
order to detect possible security risks.
If your solution functionality runs on an external system, you must conduct a security code scan or assign a third
party to conduct a security code scan of the external component. SAP reserves the right to request proof of a
successful code scan.
As there is no default security code scan for customer-specific solutions, you must take action to avoid the top 10
security risks as defined by the Open Web Application Security Project:
● http://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project
Preventative Measures
You must implement measures to prevent security attacks. You can find more information on preventing common
security attacks at the following links:
Useful guidelines and hints on secure programming can be found in the SAP NetWeaver Developer's Guide:
http://help.sap.com/saphelp_nw2004s/helpdata/en/58/4d767ed850443c891ad27208789f56/ frameset.htm
Backdoors
The solution must be free of intentionally hidden and non-documented features that circumvent security measures
(backdoors).
Vulnerabilities
The solution must prevent typical vulnerabilities such as:
Missing input validation
●
Documentation
Documentation must be provided to describe the following:
Authorization and roles
●
You must provide customers with updates to the security documentation (for example, security bulletins) when
applicable.
Authorizations
The solution must provide the capability to separate the authorizations (roles) for different types of users (that is,
administrative and non-administrative users). Users must only have the permissions that are required for their
work (segregation of duties). The authorization concept must be documented (that is, delivered roles per business
and technical user). Search results may contain sensitive data and therefore must be filtered based on the
authorization level of the user.
Data Transfer
The transfer of data to other services or service providers must be configurable and documented.
Security Settings
Security settings and recommendations must be documented and available to the customer.
Supportability
You must provide for the maintenance and support of your partner solution throughout its entire product lifecycle.
Maintenance
Your solution must have a defined release and maintenance strategy and process, which must be linked with the
SAP interface, product, and maintenance process for the SAP cloud solution. This is required as SAP reserves the
right to deprecate entities or functions in the SAP cloud solution with a new release, which might have an impact on
your solution and might require that you need to update your solution.
Interface Deprecation
You must be able to react, properly and in time, to the possible deprecation of interfaces from SAP’s public solution
model (PSM).
Interfaces of the PSM can be deprecated by SAP. Generally, SAP provides alternative interfaces that continue to
offer the required business functionality.
SAP promises that deprecated interfaces remain fully functional within two releases (approximately one year).
During this period of time, you need to react by removing usage of the deprecated interfaces from your partner
solution.
Overview
If the customer has already gone live with the SAP solution, you can develop and test your customer-specific solution
on the customer's test tenant. In this case, development is done on the test tenant and the finalized solution is
uploaded and activated on the customer's production tenant. This document describes the after go live scenario. For
information about how to request a test system, see the documentation of the SAP Solution.
The following guidelines and restrictions apply if you work on a test tenant:
If the test tenant is a copy of the customer's production tenant, on which your solution is already
●
activated, you can only create a patch for this solution. For more information, see Create a Patch on a
Customer's Test Tenant [page 142].
● If the test tenant is a tenant that the customer has requested for a preproduction tenant, be aware that
the test tenant is not available anymore after the customer has gone live with the respective production
system. Assemble and download your solutions that are still in development before the changes are
merged.
● If the customer has gone live, additional test tenants that had been requested for the preproduction
tenant are not available anymore. Therefore you must assemble and download all solutions that are
still in development on these test tenants before the customer goes live.
The following graphic gives a schematic overview of the lifecycle management process. The process is explained in
detail below.
Process Flow
1. In the studio, you log on to the customer's test tenant and create a solution ( Studio Administrator ).
2. You develop your solution including the necessary business configuration content ( Developer).
You can create BC Sets using SAP BCOs only on your development tenant.
This allows you to test both partial and complete activation of your business configuration
content in the development environment.
You then log on to the SAP cloud solution with your business user and perform your tests.
In the SAP cloud solution, you scope your solution manually (
● Business User).
To do this, you log on to the SAP cloud solution with your business user. In the Business
Configuration work center, you perform scoping for the business option that you created for your
solution and for the required standard functions of the SAP cloud solution.
You then perform your tests.
4. You assemble and download the solution ( Studio Administrator ).
After you have performed your tests successfully, in the studio, you log on to the test tenant to assemble and
download your solution. For more information, see the Implementation Manager Quick Guide [page 151] .
If you are working on a preproduction tenant and you have used the Deploy Business Configuration
function in the previous step, the system now removes the business configuration content from the
SAP cloud solution.
If you are developing your solution on the customer's preproduction tenant, then you do not need to
upload the solution. Instead, after assembling the solution, go to step 7.
In the studio, you log on to the production tenant and upload the solution. .
6. You activate the solution on the production tenant ( Studio Administrator ).
After the solution has been successfully uploaded, you activate it on the customer's production tenant.
Before activating the solution, we recommend that you inform the customer of any functions that may
be affected by the update. For example, if the administrator at the customer has adapted an
analytical report, this may be affected by any changes you have made to the same report.
7. The customer activates your solution by selecting the relevant business option in Scoping.
Follow-On Activities
After the solution has been activated on the customer's production tenant, you can only make changes or corrections
to it by creating a patch. A patch follows the same lifecycle as the original solution, with the exception that the
business option does not need to be selected again.
Overview
If you need to make changes or corrections to a customer-specific solution after you have assembled it, you can
create a patch.
● If your original solution contains a Web service, this Web service will have a different namespace in the
patch solution. You must therefore adapt the settings of your client testing tool to test the Web service in
your patch solution.
Prerequisites
In the studio, you have logged on to the customer's test tenant where you created the original solution and you have
opened this solution.
Only users with the Studio Administrator role can create patches.
Procedure
1. On the Implementation Manager toolbar, click the Create Patch button.
The system creates a patch solution and copies all files in your solution to a new namespace within the patch
solution. The namespace is generated automatically and cannot be changed.
The patch solution is created in the background and this process may take some time. Click Refresh in the
Implementation Manager tool window to update the solution status.
2. In the Implementation Manager , open the patch solution by clicking the Open button next to the Patch
Solution field.
You can always access the patch solution from the original solution by opening the Implementation
Manager and, on the Current Version tab, clicking the Open button next to the Patch Solution field.
You can also navigate to the original solution from the patch solution in the same way.
3. In the patch solution, make your changes. Then activate the patch solution.
4. You can test specific solution content in the studio using the preview function. To test your patch solution in
the SAP cloud solution, you have to enable the solution on the test tenant as follows:
a. In the Implementation Manager , click the Enable button next to the Solution Enablement for Business
User in Cloud Solution field.
The “Disabled” changes to an “Enabled” and the patch solution is enabled on the test tenant instead
of the original solution. For more information, see Enable and Disable Your Solution in the SAP Cloud
Solution [page 164].
If a BC change project is open on the tenant before you enable the patch solution on the test
tenant, you will not be able to merge the change project unless you disable the patch solution.
For more information, see What You Need to Consider When a Change Project Is on the Same
Test Tenant [page 144] .
b. In the SAP cloud solution, log on to the test tenant with your business user.
You will be able to see your patch solution in place of the original solution.
Before activating the solution, we recommend that you inform the customer of any functions that may
be affected by the update.
If you are developing customer-specific solutions on your customer's test tenant and your customer uses this tenant
for change projects at the same time, both of you need to consider the following information. Otherwise your
customer won't be able to merge the change project to the production tenant.
This information is not relevant when your customer has requested a separate test tenant that is only used for the
change project.
As a general rule, the solutions on both tenants need to have the same version when the change project is
merged to the customer’s production tenant. Another rule is that a change project cannot be merged if a
solution template is being developed on the customer’s test tenant or has been uploaded to it. In such a
case, you must disable the solution template on the test tenant before the change project is merged.
Check this table to find out what needs to be done before the change project can be merged to the production
tenant. Answer the following questions and make a decision:
● Did a solution exist on the production tenant before the change project was created?
Do you intend to create a solution or patch solution on the test tenant
● after the change project has been
created?
No, there was no solution. Yes, I'll create a solution. Before the change project can be merged to the production
tenant, you need to do one of the following:
● Complete your solution, assemble and download it,
and upload the solution to the production tenant.
Yes, a solution existed. Yes, I'll create a patch Before the change project can be merged to the production
solution. I'll also enable it for tenant, you need to do the following:
the business user to allow the
● Disable the patch solution for the business user in the
patch to be tested.
test tenant.
Overview
You can develop a customer-specific solution on your development tenant and after having tested, assembled, and
downloaded the solution, you can upload it to the customer's tenant.
The following graphic gives a schematic overview of the lifecycle management process. The process is explained in
detail below.
Prerequisites
● In the SAP cloud solution, you have set up the following users:
○ User with the Studio Administrator role on any tenants to which you want to upload the solution, for
example, the customer's production tenant.
○ A business user for testing purposes in the SAP cloud solution on your development tenant.
● In the studio, you are logged on to your development tenant.
Process Flow
1. In the studio, you check the current customer assignment and make sure that the ID of the customer for
whom you want to create and develop the solution is displayed ( Studio Administrator ).
For more information, see Switch a Customer Assignment [page 148] .
2. You create a solution ( Studio Administrator ).
3. You develop your solution including the necessary business configuration content ( Developer).
4. You test the solution ( Business User).
You can test specific solution content in the studio using the preview function.
You can also test your solution in the SAP cloud solution for the tenant on which you created the solution.
As a prerequisite, you must scope your solution. You have the following options:
In the studio, you trigger deployment of your business configuration content ( Studio Administrator ).
●
If you have defined BAC elements for your solution, a dialog box opens when you use the Deploy
Business Configuration function. You have to select one of the following options:
● Deploy all business configuration content for your solution
● Deploy only the business configuration content for your solution that is assigned to the
business options you have selected in the business adaptation catalog
This allows you to test both partial and complete activation of your business configuration
content in the development environment.
You then log on to the SAP cloud solution with your business user and perform your tests.
In the SAP cloud solution, you scope your solution manually (
● Business User).
To do this, you log on to the SAP cloud solution with your business user. In the Business
Configuration work center, you perform scoping for the business option that you created for your
solution and for the required standard functions of the SAP cloud solution.
You then perform your tests.
5. You assemble and download the solution ( Studio Administrator ).
For more information, see the Implementation Manager Quick Guide [page 151] .
6. After you have performed a tests successfully, you log on to the customer's production tenant in the studio
to upload the solution. You activate the solution on the production tenant ( Studio Administrator ).
Before activating the solution, we recommend that you inform the customer of any functions that may
be affected by the update. For example, if the administrator at the customer has adapted an
analytical report, this may be affected by any changes you have made to the same report.
7. In the SAP cloud solution, the customer activates a solution by selecting the relevant business option in
scoping.
Overview
If you need to make changes or corrections to a customer-specific solution after you have assembled it, you can
create a patch.
When you create a patch of a solution on your development tenant, the patch is created in the same solution and
namespace but with a different version number. For more information, see Patches [page 163].
Prerequisites
In the studio, you have logged on to your development tenant where you created the original solution and you have
opened this solution.
Only users with the Studio Administrator role can create patches.
Procedure
1. On the Implementation Manager toolbar, click the Create Patch button.
The system creates a patch in the same solution and sets the solution status to In Development. The version
number of the solution is updated to the next higher number.
2. Your can now implement the required changes.
When you have finished making your changes, you can activate and then test your solution.
3. In the Solution Explorer , right-click your solution and choose Activate .
4. To test your solution, you can do one of the following:
In the studio, trigger deployment of your business configuration content. To do this, in the Solution
●
Explorer , right-click the Business Configuration node in your solution and select Deploy Business
Configuration .
This allows you to test both partial and complete activation of your business configuration
content in the development environment.
You then you log on to the SAP cloud solution with your business user and perform your
tests. In the SAP cloud solution, you scope your solution manually.
●
To do this, you log on to the SAP cloud solution with your business user. In the Business
Configuration work center, you perform scoping for the business option you created for your solution
and for the required standard functions of the SAP cloud solution.
You then perform your tests.
When you have finished testing, you can download your solution and then upload it to the customer's tenant.
5. In the studio, in the Solution Explorer , right-click the project of your solution and select Check In All Files.
6. On the Implementation Manager toolbar, click the Assemble and Download button.
The system assembles the patch and downloads it to a .zip file.
7. Log off from your development tenant and then log on to the customer's tenant to which you have uploaded
the patch.
8. In the Implementation Manager , click the Upload button. Select the .zip file containing the patch.
The system uploads the .zip file with your corrections and checks for any compatibility issues.
9. In the Implementation Manager , click the Activate button.
The patch is activated in the cloud solution from SAP.
Overview
If you are developing customer-specific solutions on your development tenant, you can create solutions for more
than one customer. For example, if you are working on a solution for customer A, you can save your solution and
then switch to work on the solution for customer B. For this, you need to switch the customer assignment. Afterwards,
in the My Solutions tool window in the studio, only the solutions of customer B are listed and you can create new
solutions only for this specific customer.
Prerequisites
In the studio, you are logged on to your development tenant.
If your are logged on to your development tenant with a user that has the Developer role, you can only switch
a customer assignment. However, if you want to create a new customer assignment, you need to log on with a
user that has the Studio Administrator role.
● To switch to an existing customer assignment, select a customer from the list of existing customers.
● To create a new customer assignment, click Create Customer .
a. In the Create Customer dialog box, enter a customer name and the customer ID that SAP has
provided to the customer.
b. Click OK.
c. In the Switch Customer dialog box, choose this new customer from the list.
3. In the Switch Customer dialog box, click OK.
The system logs off and you need to log on again to your development tenant. In the My Solutions window,
only the solutions of the current customer are listed. If you have not yet created any solutions for this
customer, the My Solutions window is empty.
6.6 Administration
Users with the Studio Administrator role can use the Administration toolbar to access a number of administrative
tasks, such as creating and deleting customer-specific solutions or solution templates and managing user sessions.
If the Administration toolbar is not visible in the studio, you can access it by clicking View Toolbars
Administration .
You can also use the functions for the studio administrator in the Administration menu.
Solution Templates
You can create templates containing reusable items and upload these items to customer-specific solutions. For
more information, see Solution Templates [page 159] and Solution Templates Quick Guide [page 157].
Maintenance Mode
A customer-specific solution is in maintenance mode, if it has been assembled and downloaded; the solution status
then is Assembled. You can make changes to the solution in a patch; however, you can only make restricted changes
to certain content types. These change and delete restrictions ensure that you do not make changes to a solution
that could lead to loss of data or create inconsistencies or errors on a customer's production tenant.
Tasks
Create a Solution
You can design and develop customer-specific solutions to enhance the SAP standard cloud solution for a specific
customer. In the studio, you can create a solution in which all items that you develop or changes that you make to
existing entities are stored.
Create a Patch
If you need to make changes or corrections to a customer-specific solution after you have assembled it, you can
create a patch. Depending on the tenant on which you are working, the process of creating a patch is different:
● Locks created by the UI designer can only be deleted by the user that created the lock; an administrator
cannot delete these locks.
Delete a Solution
1. Log on to the repository and open the solution.
2. On the Administration toolbar, click Delete Solution and confirm that you want to delete the solution.
You cannot delete a solution on a production tenant. We recommend you switch the solution off by
deselecting it in Scoping. Then report an incident to request assistance from SAP.
Further Tasks
You use the Implementation Manager to manage the lifecycle of customer-specific solutions. The Implementation
Manager enables you, for example, to assemble and download a solution, upload and activate a solution, and create
a patch for a solution. If you are not able to activate a solution, you can carry out different troubleshooting activities
in the Implementation Manager .
For more information, see Implementation Manager Quick Guide [page 151] .
You use the Implementation Manager to manage the lifecycle of customer-specific solutions. The Implementation
Manager enables you, for example, to assemble and download a solution, upload and activate a solution, and create
a patch for a solution. If you are not able to activate a solution, you can carry out different troubleshooting activities
in the Implementation Manager .
Only users with the Administrator role can access the Implementation Manager tools. For more information
see User Roles [page 29] .
If the Implementation Manager is not visible in the studio, you can access it as follows:
● To enable the Implementation Manager tool window, click View Implementation Manager .
The tool window provides a view of the solution status and implementation log at each stage in the process.
Lifecycle Management
The studio supports the full end-to-end lifecycle management of customer-specific solutions. This includes
developing, testing, and deploying your solution as well as creating patches to deliver updates to your customer
For more information, see Lifecycle Management of Customer-Specific Solutions
[page 135].
Patches
If you need to make changes or corrections to a customer-specific solution after you have assembled it, you can
create a patch.
Maintenance Mode
A customer-specific solution is in maintenance mode if it has been assembled and downloaded, that is, the solution
status is Assembled. You can make changes to the solution in a patch; however, you can only make restricted
changes to certain content types. These change and delete restrictions ensure that you do not make changes to a
solution that could lead to loss of data or create inconsistencies or errors on a customer's production tenant.
Solution Templates
You can create templates containing reusable items and upload these items to customer-specific solutions. For
more information, see Solution Templates [page 159] and Solution Templates Quick Guide [page 157].
Tasks
1. In the studio, log on to the tenant where you created the solution, and open the solution.
2. In the Solution Explorer , right-click the solution and select Activate .
3. In the Solution Explorer , right-click the project and select Check In All Files.
4. On the Implementation Manager toolbar, click the Assemble and Download button.
5. Enter a file name to save the template as a .zip file locally.
The system checks the solution for consistency and then assembles and downloads all the items in the
solution to a .zip file.
After the solution has been assembled and downloaded, the status changes to Assembled . The solution is
now locked for further development and any changes can only be made by creating a patch.
● SAP does not import a patch to its cloud solution at the same time.
During the upload process, the status of the solution is In Deployment . If no errors or warnings are found
during upload, you can activate the solution.
4. In the Implementation Manager , click the Activate button.
The status of the solution changes to Deployed .
For more information, see Enable and Disable Your Solution in the SAP Cloud Solution [page 164] .
You cannot merge the content of the copy back to the original solution. After having achieved a satisfactory
development status of the copy, you need to repeat all changes in the original solution that you made in the
copy.
1. In the studio, log on to the tenant where you created the solution and open the solution.
2. In the Solution Explorer , right-click the solution and select Activate .
3. In the Solution Explorer , right-click the project and select Check In All Files.
4. In the Implementation Manager , click the Assemble and Download button and then Download a Copy .
5. Enter a description for the copy and save the .zip file locally.
The status of the original solution remains In Development .
6. Optional: If you want to upload the copy to a different tenant, log on to this tenant.
7. In the Implementation Manager , click the Upload button and select the .zip file of the copy.
8. Agree to the terms of the upload disclaimer and click Continue .
The copy is uploaded and opened. The status of the solution is In Deployment .
9. In the Implementation Manager , click the Activate button.
Troubleshooting
If you were not able to activate the solution or patch, try the following:
1. In the Implementation Manager , click Show Log File to display updated log information on the Version
History tab.
If your solution or patch did not contain any errors, click the Activate button to activate the solution or patch
again.
2. If this does not work, click the Reactivate button in the Implementation Manager to generate all the objects in
the solution or patch again.
3. If reactivation fails, create an incident. For more information, see Report an Incident [page 535] .
Further Tasks
Users with the Studio Administrator role can use the Administration toolbar to access a number of administrative
tasks, such as creating and deleting customer-specific solutions or solution templates and managing user sessions.
For more information, see Administration Quick Guide [page 149] .
If you open a solution or solution template that has been created in a studio version older than 1302, the Migrate
Solution button is displayed in the Solution Explorer .
Business Background
The reason for this is that a new scripting language compiler has been introduced. It offers the following advantages:
Improves performance, for example, reduces activation time
●
However, you will not benefit from the advantages of the new backend compiler. In addition, since studio version
1302, new functions have been developed for the new compiler that you cannot use with your old solutions and
solution templates. Please also note that you must migrate old solution templates, if you want to use them in a new
solution.
Solution or solution template created in this studio version What you need to do to benefit from the new compiler
SAP Business ByDesign Studio 4.0 Migrate your solution or solution template
SDK for SAP's On-Demand Solutions 1.0 Migrate your solution or solution template
SDK for SAP's On-Demand Solutions 1.5 (1211) Migration not necessary
SAP Cloud Applications Studio August 2013 (1308) Migration not necessary
To check the compiler version of your solution, open the Properties window. The Compiler Version field
typically contains two numbers separated by a slash, for example, 1302 / 1211. The first number indicates
the compiler version of the .absl files. The number after the slash indicates the compiler version of
the .bo and .xbo files.
The Migrate Solution option is also available in the Administration menu. It is grayed if your solution
already uses the current scripting language compiler.
If the solution has errors, these are displayed in the Error List . Resolve the errors and click the
Migration Solution button again.
● If the migration was not successful, you cannot start the migration process again. Please create
an incident instead and ask SAP Support for help.
● Once the solution has been migrated, the migration cannot be reverted.
● If your old solution contains alternative key elements that use data types with unrestricted length, for example,
Identifier or LANGUAGEINDEPENDENT_Text, you cannot migrate your solution. However, you can
replace these data types with compatible data types. This is also possible in patch solutions.
This is an overview of the data types that you need to replace and of the data types that you can use instead:
You only need to replace these data types, if you have used them in AlternativeKey elements.
Data types that you need to replace Data types that you can use instead
BASIS.Global:Identifier AP.PDI.bo:EXTENDED_ID
AP.Common.GDT:Identifier AP.PDI.bo:EXTENDED_ID
BASIS.Global:Name AP.Common.GDT:EXTENDED_Name
AP.Common.GDT:Name AP.Common.GDT:EXTENDED_Name
AP.Common.GDT:LANGUAGEINDEPENDENT_Name AP.Common.GDT:LANGUAGEINDEPENDENT_EXTENDED_Name
AP.Common.GDT:Description AP.Common.GDT:LONG_Description
AP.Common.GDT:Note AP.Common.GDT:LONG_Description
AP.Common.GDT:Text AP.Common.GDT:LONG_Description
AP.Common.GDT:LANGUAGEINDEPENDENT_Text AP.Common.GDT:LANGUAGEINDEPENDENT_EXTENDED_Text
2. if your solution contains associations to the business object or the business object node.
However, you can resolve this ambiguity by adding the name of the Root node or the name of the business
object to the association target. Here is an example:
Wrong: The Target identifier following the to keyword of the FirstTarget association is not
unique.
Correct: Specify whether the association points to the
root
●
node of the other Target business object (association FirstTarget to
Target.Root)
or to the
● Target subnode of the same business object (association FirstTarget to
Source.Target )
You can create templates containing reusable items and upload these items to customer-specific solutions.
For more information, see Solution Templates [page 159].
Tasks
You cannot merge the content of the copy back to the source template. After having achieved a satisfactory
development status of the copy, you need to repeat all changes in the original that you made in the copy.
1. In the studio, log on to the tenant where you created the template and open it.
2. In the Implementation Manager , click the Assemble and Download button and then Download a Copy .
3. Enter a description for the copy and save the .zip file locally.
The status of the original remains In Development .
4. Optional: If you want to upload the copy to a different tenant, log on to this tenant.
5. In the Implementation Manager , click the Upload button and select the .zip file of the copy.
6. Agree to the terms of the upload disclaimer and click Continue .
The copy is uploaded and opened. The status of the template is In Development and you can continue
developing.
1. In the studio, log on to the tenant where you created the template, and open the template.
2. In the Solution Explorer , right-click the template and select Check In All Files.
3. On the Implementation Manager toolbar, click the Assemble and Download button.
4. Enter a file name to save the template as a .zip file locally.
The system checks the template for consistency and then downloads all the items in the template to
the .zip file.
Please note that the solution template and the solution, into which you import the items of the solution
template, must have been created for the same deployment unit. However, if you have created your
solution template in the Foundation deployment unit, the solution can have any deployment unit.
3. In the Implementation Manager , click the Import Solution Template button and select the .zip file of the
template that you have downloaded before.
The items of the template are added to the solution.
the item
● If the template contains a BAC element and the solution already has a BAC element, the system
doesn't import the BAC element of the template.
Make sure that your solution works well with the replaced or added items, for example, check if the associations are
still valid. When you have finalized your solution, activate it.
Please make sure that the SAP cloud solution from which you have downloaded the solution template
matches the SAP cloud solution to which you want to upload the solution template.
With a solution template, you can organize development content that you want to reuse for customer-specific
solutions. Solution templates enable you to easily start the development of customer-specific solutions, for
example, for a specific industry.
● The solution template and the solution, into which you import the items of the solution template, must have
been created for the same deployment unit. However, if you have created your solution template in the
Foundation deployment unit, the solution can have any deployment unit.
You can import a solution template into the studio version in which it has been created and into the two subsequent
versions, for example:
SAP Solutions OnDemand Studio 1302 SAP Solutions OnDemand Studio 1305 SAP Cloud Applications Studio 1308
(February 2013) (May 2013) (August 2013)
When you import a template into a solution, all items of the template are added to the solution. If an item in the
solution has the same name as in the template, the system replaces the item in the solution with that of the
template. Please note the following exceptions:
● If an item with the same name exists in another folder of the solution, the system doesn't import the item.
● If the template contains a BAC element and the solution already has a BAC element, the system doesn't import
the BAC element of the template.
Overview
You can create templates containing reusable items and import these items into customer-specific solutions. This
allows you to easily start the development of customer-specific solutions by reusing common development content,
for example, for a specific industry.
Prerequisites
You are logged on to the repository of your development tenant or to the repository of your customer's test tenant
with a user that has the studio administrator role.
Procedure
1. On the Administration toolbar, click Create Solution ( ).
The Create Solution dialog box opens.
2. Select the Solution Template type.
3. Enter the customer and a description for the solution template.
4. Select the deployment unit in which you want to create your template and click OK.
For more information about deployment units, see Deployment Unit (Business Object) [page 179] .
5. Enter your contact information and click OK.
Your solution template is created.
If you want to change the partner contact information, please do the following: In the My Solutions
window, right-click the solution and select Solution Properties . The Solution Properties dialog opens,
where you can change the contact information. Click OK to save your changes.
Result
You have created a solution template.
How your solution template is displayed
●
In the My Solutions window, the new solution template is displayed as follows: [solution template
description] [solution template name].
● In the Solution Explorer , the solution template is opened and displayed as follows: [solution template
description] (In Development).
You can design and develop customer-specific solutions to enhance SAP's standard cloud solution for a specific
customer. In the studio, you can create a solution in which all items that you develop or changes that you make to
existing entities are stored.
Depending on the tenant that you are working on, the following applies:
● Customer's Tenant
You create your solution for this specific customer on the customer's test tenant.
● Development Tenant
On your development tenant you can develop solutions for different customers. Each time you create a
solution, ensure that this solution is assigned to the correct customer ID. For more information, see Switch
a Customer Assignment [page 148] .
To create customer-specific solutions, you must be logged on to the studio with a user that has the Studio
Administrator role.
Procedure
1. Optional: If you are developing on your development tenant, in the Administration menu, choose Switch
Customer .
Check that the ID of the customer for which you want to develop the solution is displayed. If not, select a
different customer or create a new customer assignment.
If you are logged on to your development tenant and you are creating a new solution, the system
automatically creates the solution for the customer that is currently displayed in the Switch
Customer dialog box. Be aware, that only a solution with the correct customer ID can be uploaded to
the corresponding tenant of your customer.
You can also use this function to create a solution template. For more information, see Create a
Solution Template [page 161] .
Result
You have created a solution.
How your solution is displayed
●
In the My Solutions window, the new solution is displayed as follows: [solution description] [solution name].
● In the Solution Explorer , the solution is opened and displayed as follows: [solution description] (In
Development).
See Also
Mobile Solutions [page 639]
6.7.5 Patches
Overview
A patch is needed if you want to make changes or corrections to a customer-specific solution after it has been
assembled. The customer-specific solution is then in maintenance mode and you can only make restricted
changes for certain content types. For more information, see Maintenance Mode [page 166] .
Only users with the Studio Administrator role can create patches.
Patch Types
Depending on the type of customer's tenant where you are developing the creation and handling of a patch works
differently:
need to use the Implementation Manager in the studio to enable the patch solution instead of the original
solution in the test tenant.
When you assemble the patch solution, the patch is copied back to the namespace of the original solution.
The patch solution is used for all future updates to the original solution. Any changes you need to make in
the future can be made by creating a new patch again. To do this, open the existing patch solution in the
To find out for which tenants the patch is intended, in the Implementation Manager , select the Tenant Status tab.
When you create a new solution on your tenant, this solution is automatically enabled for your business user in the
SAP cloud solution. This means that your solution is visible in the SAP cloud solution when you log on with your
business user on this tenant.
The title of this area of the screen shows which solution is currently open, the original solution or the patch
solution (if a patch solution exists). In this example, the original solution is open.
2. In the Solution Enablement for Business Users in Cloud Solution field, click Enable or Disable.
You use the Enable function to make either the original solution or the patch solution visible in the SAP cloud
solution. In the example, if you open the patch solution first and then use the Enable function, you make the
patch solution visible and the original solution is automatically removed and disabled.
You use the Disable function for special scenarios, for example, if your customer has opened a change project
on the test tenant before you created the patch solution. If you want to know more, see What You Need to
Consider When a Change Project Is on the Same Test Tenant [page 144] .
If a solution template is being developed on the customer’s test tenant or has been uploaded to this
tenant, it is also automatically enabled. If there is a change project on the same tenant, you to need to
disable the solution template before the change project can be merged to the production tenant.
Check this table to see what happens when you enable or disable a solution:
Enable the patch solution in the SAP The system removes the scoping of the After logging on to the SAP
cloud solution on the test tenant. original solution in the SAP cloud solution and cloud solution with your
disables the original solution automatically. business user, you need to
scope your patch solution
manually.
Enable the original solution in the SAP The system removes the scoping of the patch After logging on to the SAP
cloud solution on the test tenant. solution in the SAP cloud solution and cloud solution with your
disables the patch solution automatically. business user, you need to
scope your original solution
manually.
Disable the patch solution in the SAP The system removes the scoping of the patch
cloud solution on the test tenant. solution in the SAP cloud solution.
Disable the original solution in the SAP The system removes the scoping of the
cloud solution on the test tenant. original solution in the SAP cloud solution.
If you need to disable both the original solution and the patch solution, first disable the solution that
is open. Then open the other solution and disable it. It doesn't matter which solution is open first.
Overview
A customer-specific solution is in maintenance mode, if it has been assembled and downloaded; the solution status
then is Assembled. You can make changes to the solution in a patch; however, you can only make restricted changes
to certain content types. These change and delete restrictions ensure that you do not make changes to a solution
that could lead to loss of data or create inconsistencies or errors on a customer's production tenant.
Deletion
When your solution is in maintenance mode, you can delete the following items:
Business Configuration Object (BCO) Business Configuration Quick Guide [page 294]
Code List Data Type Create a Code List Data Type [page 385]
Mass Data Run Object Mass Data Run Quick Guide [page 433]
Reference to a joined data source created by an administrator Create a Joined Data Source [page 429]
in the cloud solution
Reference to a combined data source created by an Create a Combined Data Source [page 427]
administrator in the cloud solution
Reference to a key figure created by an administrator in the Create a Key Figure [page 432]
cloud solution
See Also
Maintenance of Business Configuration Content [page 302]
Maintenance of Analytics Content [page 423]
Maintenance of Business Objects [page 338]
Maintenance of Business Object Extensions [page 360]
● Scripting Language Reference [page 169] ● Syntax for the Implementation of Business Logic
The scripting language is used to define business [page 198]
objects and business object extensions as well as to You use these methods and keywords to implement
implement the business logic for cloud partner the business logic of your solution. For this task, you
solutions. This lightweight language is easy to learn can also use predefined built-in functions and reuse
and to use with its focused set of features. services:
The keywords, methods and functions of the scripting ○ Built-In Functions [page 257]
language are described in separate sections according
to the task you want to perform: ○ Basic Reuse Libraries [page 226]
Any software coding or code lines/strings (“Code”) provided in this documentation are only examples
and are not intended for use in a productive system environment. The Code is only intended to better
explain and visualize the syntax and phrasing rules for certain SAP coding. SAP does not warrant the
correctness or completeness of the Code provided herein and SAP shall not be liable for errors or
damages cause by use of the Code, except where such damages were caused by SAP with intent or
with gross negligence.
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
Overview
The scripting language is used to define business objects and business object extensions as well as to implement
the business logic for cloud partner solutions. This lightweight language is easy to learn and to use with its focused
set of features.
The sandbox environment for the scripting prevents a partner who has created erroneous implementations from
damaging data of other users by accident. This kind of sandbox environment is ensured by the script execution
runtime. Security-relevant features, such as direct access to database tables, are strictly controlled or not made
available in the scripting language. Instead, all data access is made available through the business object
infrastructure.
The keywords, methods and functions of the scripting language are described in separate sections according to the
task you want to perform:
To fully understand the keyword descriptions, it is essential to have a basic understanding of the business object
model and its features, such as associations, actions, and queries.
Model names of SAP entities are in British English according to ISO 11179.
Syntax
The syntax conventions for scripting language are as follows:
Character Description
[] Indicates that you can use none, one, or more of the enclosed options. Do not include the brackets in your option.
| A vertical line between two parts of a statement indicates that only one of these two parts can be used within the
statement.
? Indicates that the symbol (or the group of symbols in parenthesis) to the left of the operator is optional (it can
appear just once or not at all). You can use it as a postfix to “[ ]”.
+ Indicates that something can be repeated at least once or any number of times. You can use it as a postfix to “[ ]”.
* Indicates that something can appear any number of times (and possibly be skipped altogether). You can use it
as a postfix to “[ ]”.
XXX Indicates a placeholder. Replace placeholders with actual values in your code snippet.
Use the keywords and functions listed below to describe the structure and interface of a business object in the studio.
For more information about the general syntax conventions and rules, see
Scripting Language [page 169] .
Code Completion
You can use CTRL + SPACEBAR at any cursor location to display the valid code completion options for the
current context . If there is only one option, the code is completed at once. The code completion is also activated, if
you enter a period (.) in a path expression or a colon (:), for example, in an element statement.
○ association
○ businessobject
○ element
○ import
○ namespace
○ node
○ query
○ to
○ type
○ using
○ valuation
Comments
You can enter comments using the following syntax:
comment line
●
// <comment text>
A comment line starts with two slashes (//) and spans to the end of the current line.
● comment block
/* <comment text> <comment text> <comment text> */
A comment block starts with a forward slash followed by an asterisk and ends with an asterisk followed by a
forward slash.
List of Annotations
In the following, the annotations are listed in alphabetical order:
Description If you want to identify a node uniquely with an identifier that can be read by human beings, you use the
AlternativeKey annotation. You can use this identifier in an association to refer to a business object
node. In addition, this identifier is stored as an additional key field in the database and thus accelerates
enterprise searches and queries.
It is not possible to have more than one alternative key of the same type in a business object node.
Custom business objects contain an implicit alternative key of type UUID for each node, enabling
the node to be used as an association target.
Syntax [<annotat
ion>[(<pa
rameter>)
]?]
Description Annotations
are used to
add a
category or
property to an
object
specified by
the
subsequent
keyword. The
names of the
annotations
are
predefined
and can be
displayed by
the code
completion.
Technically,
you can
combine as
many
annotations
as you want.
But not all
combinations
are possible
and not all of
them make
sense. For
more
information,
see the list of
possible
combinations
below.
[Deployme ntUnit(Cu
Example with
two
annotations
[Dependen tObject(T
Annotation Overview
Label (Business Object) [page 182] content element AlternativeKey, Tooltip, Transient
Tooltip (Business Object) [page 185] content element AlternativeKey, Label, Transient
Syntax <annotation>
[ ]?
association
<name>
<multiplicity>
[ ]?
to
<composition
path
to
target
node>
[using
<alternative
key>]?;
[page 181].
Associations are based on a foreign key relationship. The using clause specifies the key element of the
target business object node for the relationship. As a prerequisite, the key element must be an alternative
key and foreign key usage must be allowed for it. The using clause is optional. For business objects defined
in the same project, the target node’s hidden SAP_UUIDelement is used. For other business objects, the
UUID of the target node is used.
The multiplicity of an association can be either [0,1] or [1,1] . If no multiplicity is specified, [1,1] is used by
default. Only compositions can have a multiplicity with an upper boundary of “n”. However, you can easily
simulate the [1,n] multiplicity by combining a [1,n] node composition with a [1,1] intra or cross-business-
object association. For more information about compositions, see
Node (Business Object) [page 183] .
As a rule, the target node of an association must be located in the same deployment unit as the current
business object or in the Foundation deployment unit.
The path to the target node is expressed as follows: <namespace>:<business object>.<node>. The path
from the root node of the business object to the target node must not be part of the expression. You can
omit <namespace>, if you have imported the required namespace by using an
Import statement or if the
business object is part of your solution. If you leave out <node>, the target node of the association is the
root node of the business object. The following example shows the possible path expressions of an
association in a complex business object:
If the target node is the root node, do not use the target node path in the association definition. If
the target business object is the current business object, do not use the target business object in
the association definition. However, this does not apply if the source
and the target node is the root
node of the current business object.
You can mark associations as relevant for access control by adding the annotation
RelevantForAccessControl .
Description Use the businessobject keyword to specify the name and the nodes of a business object. A business object
consists of a root node, which can contain child nodes. Even if not specified, the multiplicity of the root
node is [1,1].
The .bo file that contains the business object definition must have the same name as the business
object itself. Each file contains the definition of a single business object.
Example Business object, message and root node element. The root node raises a specified message:
businessobject BonusRule raises ReferenceInvalid {
message
ReferenceInvalid
text
"Reference
is
invalid";
element
ItemID
ID;
:
Syntax [CrossDeploymentUnit]
association
<name>
to
<path
to
target
node>
[using
<composition
path
to
target
node>]?
Description You can use the CrossDeploymentUnit annotation to define an association from a node of a business
object in one deployment unit to a node of a business object in another deployment unit.
Optionally, you can specify the alternative key of the target node with the using keyword.
Description Default values are initial values that are used to fill fields automatically when a new instance is created.
The studio supports only static default values such as Boolean values, status information, numeric values,
and free text.
Description A dependent object is a reusable part of a business object that - from a business point of view - cannot
stand alone, but can only be used in the context of the business object. You can include the
TextCollection and AttachmentFolder dependent objects in a business object definition.
MultipleTexts
For the TextCollection dependent object you can use the annotation to
support different text types.
In order to define the dependent object inclusion node, you have to specify a name. You can either use the
dependent object name itself, for example, TextCollection, or add a specific meaning to the
dependent object name, for example, ProcurementSpecificationTextCollection. If you
include a dependent object in a business object definition several times, you should provide different names
for each of the dependent object inclusion nodes. You can, for example, use the following syntax:
<subordinate node name> + <dependent object name> , such as
ItemAttachmentFolder.
You can add the same dependent object only once to a business object node.
Each business object resides in a deployment unit. You can explore SAP business objects that are released
with the public solution model (PSM) and the deployment units in the Repository Explorer tool window. For
more information, see Repository Explorer [page 49] .
When a solution is created, the solution has to be assigned to a deployment unit. The business objects that
are created subsequently in the solution are assigned to this default deployment unit. If you want to assign a
business object to a different deployment unit, use the annotation
DeploymentUnit at the beginning
of the business object definition.
You can directly access business objects that reside in the Foundation deployment unit from any
deployment unit. However, business objects in the Foundation deployment unit cannot access any
business object residing in another deployment unit, not even by using asynchronous communication.
You can only use a query to read the data of this business object.
For all other deployment units the following applies: You cannot directly change the data of a business
object residing in another deployment unit. However, you can read the data of such a business object by
using a query, the
Retrieve method or an association. To change the data of a business object residing
in another deployment unit, use asynchronous, message-based communication. For more information,
see Configure Internal Communication [page 493] .
When defining an identifier element, we recommend you use the ID data type instead of the
Identifier data type. The ID data type always has 60 characters, is not structured and does
not contain the Content element. The data type supports, for example, upper case conversion
and alpha conversion. Alpha conversion fills purely numeric user input like “4711” with leading zeros
from the left side to allow better sorting in character fields. For example, if alpha conversion is not
used, an alphabetic sorting would lead to results such as: “1”, “10”, “100”, “1000”, “2”, “20”, “200”,
and so on.
You can define additional properties of an element by using annotations. For example, the annotation
AlternativeKey defines the key element of a business object node. Key elements uniquely identify a
node and can be used to identify the target of an association. An alternative key, of type
SAP_UUID
UUID, is generated implicitly for each node. Therefore, you do not need to define an alternative key for
each node.
Enclose annotations in square brackets.
You can use imported business objects and data types in the definition of associations, elements, and
messages. You can reference the imported objects directly by their names instead of using fully qualified
names. If you use a namespace only for one or two sub-entities, you can omit the import statement and
use the qualified name
<namespace name>:<name> instead. If there are no conflicts for any entity in
the business object within all imported namespaces, you can omit the relevant namespace, as the system
can identify it automatically.
If you use more than one namespace in your business object definition, we recommend that you
define an alias for each imported namespace and qualify business objects or data types from
these namespaces by using the aliases.
You do not need to import business objects and data types from the namespace of the current project but
you can access them directly by their names.
You can use code completion for importing the namespace as well as for accessing imported objects, that
is, when you select the target business object of an association or the data type of a node element or
message parameter.
Example [Label
("My
label
for
field
1")]
element
ROOT_Field1
LANGUAGEINDEPENDENT_EXTENDED_Text;
:
See Also
Add a Label and Tooltip to a Business Object [page 341]
Syntax message
<message
ID>
text
"<message
text>"
[:
<data
type
1>[,
<data
type
2>[,
<data
type
3>[,
<data
type
4>]?]?]?]?
;
Description Use the message keyword to define a message between two business objects. The definition of a message
includes the message ID, the message text, and, optionally, data types of up to four message parameters.
The parameter names are defined by the system.
The limit for a message ID is 30 characters and for a message text is 73 characters. The message ID must
be unique within the business object; use uppercase for letters. You can reference data types from different
namespaces. For more information, see Element (Business Object) [page 180] and Import (Business
Object) [page 181] .
Description You can use the MultipleTexts annotation together with the TextCollection dependent object to
support different text types.
If the TextCollection dependent object is assigned to the current node, the MultipleTexts
annotation defines if more than one text is allowed.
See Also
Dependent Object (Business Object) [page 179]
Syntax node
<name>
[
<multiplicity>
]?[
<Raises>
]?{[
<Element>,
<Action>,
<Association>,
<Node>
]*};
Example Business object and raises statement for the root node, message definition and root node element as well
as subnode with a raises statement followed by a subnode element:
businessobject WorkingPlan raises DateMissing { message DateMissing text "Date is
}
}
Description At least one message ID must follow the raises statement. Following the message ID, you can enter as many
messages as needed. If the message is not part of the same business object, you must also specify the
message group. The name of the message group is identical to the corresponding name of the business
object.
}
● Raises statement that raises messages from the same business object and messages with different
message groups
businessobject
BonusRuleTwo
raises
BonusRuleOne.DateMissing
message
{ ReferenceInvalid
text
"Reference
is
i
node
Item
raises
BonusRuleOne.DateMissing,
ReferenceInvalid
element
{ ItemID
ID;
:
}
action Count raises ReferenceInvalid;
}
Syntax [RelevantForAccessControl[(<parameter>)]?]
Description To do this, you mark associations [page 175] as relevant for access control by adding the annotation
RelevantForAccessControl . The following conditions must be met:
● For each business object, you can only use one association that is relevant for access
control. The source node of the association must be the root node.
●
● The target node of the association must be root node of the target business object.
● The target business object must have an association that is relevant for access control. The target
of this association must be the dependent object Access Control List.
● The target business object must support at least one access context. You can find this information
in the Repository Explorer by viewing the documentation of the relevant business object and by
searching for the Supported Access Context section. If this section is not listed in the
documentation, access context is not supported for this business object.
Example [Tooltip
("My
tooltip
for
field
1")]
element
ROOT_Field1
LANGUAGEINDEPENDENT_EXTENDED_Text;
:
See Also
Add a Label and Tooltip to a Business Object [page 341]
Syntax association
<name>
[<multiplicity>]
to<target
node>
valuation
(condition
[&&
condition]*);
<condition>
::=
<element
oftarget
node>
<operator>
<element
defined
insource
node>
|
<code
value>
● If the association refers to the root node of a business object, the valuation is executed on all
instances of this business object (association across all instances of a business object).
The valuation keyword is followed by one or several conditions, which are evaluated when the
associations are resolved. You define a condition as follows:
1. You specify the target element.
This element must exist in the target node of the association.
You specify one of the following comparison operators:
2.
● == (is equal to)
● < (is less than)
● > (is greater than)
● >= (is greater than or equal to)
(is less than or equal to)
● <=
● ! (not equal)
If you want to compare two node elements, you can only use the == operator.
3. You define either an element defined in the source node or a code value.
&&
You can use the AND operator ( ) to connect several conditions. Please note that in this case the OR
operator ( ) and the NOT operator !( ) are not supported.
|
In a condition, you can specify elements with non-structured data types only. However, you can use the
element path, for example, , to use elements of structured data types.
Amount.content
The valuation keyword cannot be used together with the using keyword and the
RelevantForAccessControl annotation.
}
}
In the real world, BusinessObject1 may represent a catalog, containing sub-items that are ordered in
a hierarchy (all items belong to the same catalog)
Valuation across all instances of a business object:
businessobject BusinessObject1 {
[AlternativeKey] element ID:ID;
element ParentID:ID;
association toChild [0,n] to BusinessObject1 valuation (ParentID == ID);
}
In the real world, BusinessObject1 may represent persons or objects (for example, buildings) that
build a hierarchy.
Valuation with a code value:
businessobject BusinessObject1 {
[AlternativeKey] element ID:ID;
node CountryNode [0,n]{
element ID:ID;
element CountryCode:CountryCode;
}
association toGermany [0,1]to CountryNode valuation (CountryCode == "DE");
Use the keywords and functions listed below to describe the structure and interface of a business object extension
in the studio.
For more information about the general syntax conventions and rules, see Scripting Language [page 169] .
● Entities within a business object cannot have the same name as the business object.
Entities cannot use names that already exist in the business object being extended.
●
○ association
○ businessobject
○ element
○ import
○ namespace
○ node
○ query
○ to
○ type
○ using
Extension Template
When you create a business object extension, you are presented with a template that includes the extendable nodes.
Taking the Sales Order business object as an example, the extension template begins with the annotation
[Extension] and contains the extendable node Item. The Root node is also extendable, although not explicitly
shown.
import AP.Common.GDT;
import AP.CRM.Global;
node Item {
}
}
Code Completion
Based on the code you type, code completion presents you with a list of valid options. For example, when you
type a colon ( an element name, you will see a list of valid data types. If there is only one valid option, the code is
:) after
completed at once.
You can also use CTRL + SPACEBAR to force the code completion function to display the valid options at the
current cursor location.
Comments
You can enter comments using the following syntax:
● comment block
/* <comment text> <comment text> <comment text> */
A comment block starts with a forward slash followed by an asterisk and ends with an asterisk followed by a
forward slash.
List of Keywords
List of Annotations
Description The businessobject keyword specifies the business object being extended.
Syntax [<annotation>[(<parameter>)]?]
Description Annotations are used to add a category or property to an object specified by the subsequent keyword. The
names of the annotations are predefined and can be displayed by the code completion.
Technically, you can combine as many annotations as you want. But not all combinations are possible and not
all of them make sense. For more information, see the list of possible combinations below.
Description You can declare a decimal value with a specific number of digits before and after the decimal point.
The decimal annotation [Decimal (x,y)] requires two parameters:
● x = the total number of digits allowed, up to a maximum of 29
The first parameter value must be greater than the second parameter value.
When you use negative numbers, the minus sign is counted as a digit. For example, [Decimal
(2,0)] allows 55 and -5 but not -55.
Description Use the element keyword to define an extension element for a business object node.
The element name must be unique within the solution and cannot exceed 60 characters.
The element type can be a simple data type, for example,
LANGUAGEINDEPENDENT_EXTENDED_Text , or it can be a structured data type such as Amount. You
can import data types from different namespaces. However, you cannot define new data types. For more
information on importing entities, see Import (Business Object Extension) [page 193] .
● Date
● DecimalValue
● ID
● Indicator
● Quantity
● Time
● LANGUAGEINDEPENDENT_EXTENDED_Text
If you use this data type in a business object extension, the length of the corresponding field
is not restricted to a specific number of characters. Only in business object definitions, the
field length is restricted to 255 characters.
● WebURI
● EmailURI
By importing additional namespaces, you can access additional SAP CodeLists and Identifiers.
You can also use CodeLists that you have defined within your solution.
Description You can define a label for an extension field. If you then add the extension field to a screen, the label is
displayed on the screen instead of the extension field name.
If the element is structured, such as Amount, the label annotation is defined for the .content
element. Please note that you cannot define a label for a structured element that does not contain
a .content element or that contains more than one .content element.
Example [Label("ScreenLabel")]elementOpportunity_BO_extension_field:Indicator;
Syntax message
<message
ID>
text
“<message
text>”
[:
<data
type
1>[,
<data
type
2>[,
<data
type
3>[,
<data
type
4>]?]?]?]?;
Description Use the message keyword to define a message for a business object extension. The definition of a message
includes the message ID, the message text which can include up to four parameters, and the data types of
any parameters used.
The limit for a message ID is 30 characters and for a message text is 73 characters. The message ID must
be unique within the business object extension.
Messages can only be raised in the business object extension where they are defined. In addition,
messages must be assigned to the individual nodes where they are to be called.
message Warning_Message text "This is a Warning message with two parameters &1 an
Description The node keyword specifies the extendable nodes within a business object.
You cannot create your own nodes within an business object extension.
Description Use the raises keyword to declare messages for a business object extension. At least one message ID must
follow the raises statement.
Messages can only be raised in the business object extension where they are defined. In addition,
messages must be assigned to the individual nodes where they are to be called.
message Warning_Message text "This is a Warning message with two parameters &1 and &2" :
Overview
Description The Reference annotation enables you to use an element declared in one business object extension in
another business object extension. You can also use an element in the item node that is declared in the
root node of the same business object extension.
The Reference annotation cannot be combined with the following annotations:
Decimal
●
● Relation
● Label
● Tooltip
● Transient
You do not need to include a data type when referencing an element, as the data type is specified
in the original element definition.
Examples 1. Reference from one business object extension to another business object extension
Definition of the first business object extension:
element Test_Extension_Field : Text;
Definition of the second business object extension:
[Reference] element Test_Extension_Field;
2. Reference from an item node to the root node of the business object extension
Definition of the root node:
element Test_Extension_Field : Text;
Definition of the item node:
[Reference] element Test_Extension_Field;
In contrast to the Relation [page 196] annotation, which refers to any business object element, the
Reference annotation refers to a specific element within the same business object.
Examples [Relation(AP.CRM.Global:Opportunity.Item.ItemProduct.ProductKey.ProductI
D)] element MyProductID : ProductID; [Relation(AP.FO.BusinessPartner.Global:Employee.Iden
Description A process extension scenario links the data from one business context to other related business contexts.
You create an extension scenario from a list of predefined extension scenarios. For example, you can
create an extension scenario that links the following business contexts:
Each extension scenario contains one or more data flows. Each data flow consists of a source and target
business context. This reflects the direction in which data is passed from one business context to the next
as part of a business process.
Extension scenarios are specific to the node for which they were created. If an extension scenario
was created for the root node, then it can only be called at the root node within the .xbo. Similarly,
an extension scenario created for the item node can only be called from the item node within
the .xbo.
If you now extend any of the business objects involved in the scenario, you can use the annotation
[Scenario] to declare that the element is available to all the business contexts specified in the scenario. For
example, if you add an element to the Lead business object, you can use an extension scenario to make this
element available if you extend the Opportunity, Sales Quote, or Sales Order. When an Opportunity is created
from the Lead, the data for your extension field is passed to the Opportunity. Similarly, when a Sales Order is
created from the Opportunity, the data is passed to the Sales Order.
Description You can define a tooltip for an extension field. If you then add the extension field to a screen, the tooltip is
displayed when you place the cursor on the extension field.
If the element is structured, such as Amount, the tooltip annotation is defined for the .content
element. Please note that you cannot define a tooltip for a structured element that does not contain
a .content element or that contains more than one .content element.
Example [Tooltip("ScreenTooltip")]elementOpportunity_BO_extension_field:Indicator;
The methods and keywords listed below enable you to implement the business logic for your solution in script files,
such as actions, validations and events. You can implement, for example, BeforeSave events and OnSave
validations, and the actions that you have defined for your business objects. For more information about the
general syntax conventions and rules, see Scripting Language [page 169] .
You can also use built-in functions and reuse libraries that extend the scope of the methods described below. For
more information, see the following documentation:
Type Handling
The scripting language supports type inference, thereby avoiding the need of explicitly identifying relevant types.
This is especially useful for script files, where elements of existing business objects are accessed either by your own
business objects or by SAP business objects. For structured element types, the code completion enables you to see
the data type’s structure while accessing the elements of the involved business objects.
For more information about the basic data types that the scripting language supports and their behavior, see
Behavior of Data Types [page 264].
Code Completion
Apart from using a period (.) for the code completion of path elements, you can use the key combination CTRL +
J to display all options for the current context. You can use this feature at any cursor location, for example, when
Method Tooltip
The method tooltip displays the documentation of a method and its parameter definitions. The method tooltip
appears when you type an opening parenthesis, which is the method parameter indicator character.
To display the method tooltip, you can also use the key combination CTRL + SHIFT + SPACEBAR whenever
the cursor is located within a method name or a parameter of a method call. If multiple methods with the same name
but different parameters are available, you can choose the appropriate method signature from the list using the up
and down arrow keys. If you use the left and right arrow keys, you can display the definitions of the individual
parameters.
The method tooltip is displayed automatically when you type the parameters of a method. The method parameter
description moves to the next parameter whenever you type a comma (,) before the closing parenthesis.
Comments
The syntax supports single-line and multiple-line (block) comments. A single-line comment starts with two slash
marks (//) and spans to the end of the current line. The block comment, which can span multiple lines, starts with
a slash mark and an asterisk (/*) and ends with an asterisk and a slash mark (*/).
Single-line comment:
// <comment>
Multi-line comment:
/* <comment> */
Code Formatter
The code formatter helps to maintain a clean and readable source code in script files. It offers the following formatting
options:
When you have opened a script file in the code editor, you can execute the code formatter by selecting
Edit Advanced Menu Format Document . Alternatively, you can press CTRL + K or CTRL + D .
The code formatter formats the whole script file; you cannot use it to format only parts of the code.
Syntax
Simple and complex statements are supported. Complex statements usually contain a code body which is opened
and closed by braces { }. The body, in turn, can contain any type of statement, that is, the statements can be nested.
Simple statements, in contrast, can only be assignments and path expressions, in addition to variable declarations
and the import statement.
You cannot receive and handle messages that have been raised by a different script file containing
implementation code or the business object infrastructure, for example, during the creation of a
business object node instance.
If the multiplicity of the action definition in the business object model is [0,0], you can execute the action
statically by using static path expressions that identify a business object node. If the multiplicity is [1,1] or
[1,n], you can execute the action instance-based. In this case, the instance identifier has to be a collection.
break;
}
● Static execution ([0,0]):
BOName.NodeName.ActionName();
Description Use the Add method to add a single row or an existing collection to the end of a collection.
This method cannot be applied to read-only collections. This is only relevant for code related to form
data type extensions and in case of mass-enabled script files, in which the this keyword represents
an immutable collection of nodes.
Description The arithmetic expressions support the common mathematical operators for addition, subtraction,
multiplication, division, and modulo calculations. Operands can be atomic expressions, such as literals,
variable identifiers, path expressions, or other arithmetic expressions.
You can overwrite the precedence order of the operators by using parentheses.
The operands have to evaluate to the exactly same type. The compiler does not implicitly convert
incompatible types. The plus sign (+) operator is overloaded to allow string concatenation.
Example var
result
(-0.234e-5
= this.Total)
+ currentValue;
* var
resultString
"Hello
= "world!";
+"
Description An assignment assigns the value of the expression on the right to the expression on the left. The expression
on the left must be a variable or an element of a business object instance whereas the expression on the
right can be any kind of expression. For the expressions on the right you can use static path expressions, for
example, if you want to keep a copy of a reference to static query metadata. The default assignment uses
copy semantics.
You can also assign node instances on the right to associations on the left. The node instances on the right
can either be a newly created node instance or a node instance that has been retrieved through a query.
However, this kind of assignment is only possible for modeled associations with [1,1] multiplicity. Node
instances to [1,n] associations, which are implemented and not modeled, are assigned implicitly when new
node instances are created through create-enabled associations.
To exchange data between business objects that are located in different deployment units,
configure an internal communication by using the Service Integration Wizard . For more information,
see Configure Internal Communication [page 493] .
When accessing a [1,n] composition, a collection of nodes is returned. Therefore, you cannot access a
member of structured data types of the foreign business object nodes. Instead, you must use the
foreach loop statement to access the individual instances in the returned node collection (see the second
example below).
If the operand on the left of an assignment is an association access path expression followed by an element,
data can also be written to the foreign business object node instance.
If the node type matches the target definition of the association (see the third example below), you can
associate a foreign business object node instance that was just created.
Reading a business object node instances can be performed by either following an association or executing a
query. Updates are simply handled by assignment statements; the path expression on the left points to an element
of a business object node instance. The changes are automatically committed to the context business object once
the script file completes the execution without errors.
The following methods are available for the business object lifecycle:
Create Instance [page 207]
●
Description You can use the IsSet () method for [1,1] or [0,1] associations to check whether the association was
set before. Otherwise any access to an association that was not set causes a runtime error.
Description You can use the Clear method for the following scenarios:
● If you have created a collection, you can use this method to remove all rows from the collection.
This method cannot be applied to read-only collections. This is relevant for code related to
form data type extensions and in case of mass-enabled script files, in which the this keyword
represents an immutable collection of nodes.
● You have declared a variable by using the elementsof modifier and you pass initial values to
subelements of the business object node. In this case, you can use the Clear method to remove the
initial values from the subelements.
Syntax var <variable name> : collectionof <static path expression> | <data type>;
Description If you define a collection explicitly, the collection's row type is inferred from the static path expression, for
example, a business object node, or the row type is based on an unstructured data type.
A collection is a standard table that is defined on the basis of business object nodes or node elements, for example,
a collection of opportunities. Collections are generated when instances of business object nodes are returned by the
system. You can obtain a collection of business object nodes in several ways, for example:
● You follow [1,n] composition associations. For more information, see Association Access [page 203] .
● You execute a Create with reference action with a collection parameter. For more information, see Create
with Reference Action [page 208] .
● You execute a business object node query. For more information, see Query Execution [page 217] .
Besides collections generated by the system, you can also define a collection explicitly.
The collection handling methods generally apply their logic to a copy of the collection and return a modified copy of
the original collection. Therefore these methods declare a collection as return value. However, the Add method and
the Clear method behave in a different way. They modify the collection to which they are applied. These methods do
not have any return value.
If you use a method to add or clear a collection or a row in a collection, this only has an impact on the collection
itself. To delete or create new business object nodes, use the Delete or Create operation for business objects.
For more information, see Business Object Lifecycle [page 204] .
Description Conditional expressions evaluate Boolean values. The supported operators are shown in the syntax
above. Use arithmetic expressions as operands, which can also be atomic expressions, such as literals,
variable identifiers, and path expressions.
Description The continue statement and the break statement can be used within the code block of loop statements,
such as foreach and while statements.
The break statement immediately exits the enclosing loop statement. The continue statement quits the
current loop iteration and continues with the next iteration at the top of the code block of the enclosing
loop statement. In nested loop statements, however, the break statement only exits the inner loop.
Usually you need to embed the continue statement or the break statement into an enclosing if condition in
order to avoid endless loops or a forced single loop
execution. foreach (node in query.Execute()) {
Example
count = count + 1;
if (count < 3) continue; if (count > 5) break; node.SomeAction();
Description If you use the Count method, the system returns the number of rows in a collection.
● You can also use the method to create subnodes of existing business objects, for example, through
composition access because this access implicitly maintains the association relationship between
the parent and root node. The Create method binds to static member path expressions that identify
a business object node. It also binds to associations that are create-enabled, for example,
compositions or intra-business-object associations. In compositions, the parent node instance is
automatically derived from the preceding path expression and is used for the composition
maintenance.
The instance-based Create method for subnode creation is not available for variables that are
derived from association access because in this case the parent node cannot be reliably
determined.
● Optionally, you can also provide node data to the Create method as a parameter. When provided,
this data is automatically copied to the newly created node instance. The parameter type is the
complete element structure of the node. You can infer the node element type as part of the
variable declaration by identifying a certain node through a static path expression. For more
information, see Declarations [page 209] .
You can also assign the data to the node instance after the node has been created. However, if you create
instances of SAP business objects, for some of the business objects you must provide default values in the
parameters at the time the business objects are created.
newItem = this.Items.Create(itemData);
Syntax <business
object
name>[.<node
name>].<CWR
action
name>(SomeNode|
NodeCollection)([<param>]*);
Description The Create with reference (CWR) action is a special type of action that can only be executed statically and
that directly returns one or more instances of the node to which the action belongs. All CWR actions are
overridden to offer two signatures, one with a single node parameter and one with a collection of nodes.
CWR actions return a single node or a collection of nodes depending on the collection property of the
method call parameter.
Syntax var
<variable
name>
collectionof?
[: elementsof?
<static
path
expression>
<data
| type>]?[=
literal
<path
| expression>]?;
Description The implementation language is a statically-typed language that allows you to use declared variables only.
You always need to declare the variable before you can use it in a statement. If you declare a variable
within a code block (so-called variable scoping), that is, within the braces ({...}), the scope of this variable is
limited to this code block.
Variable shadowing is not supported, that is, variables cannot reuse names that are already
declared in an enclosing scope.
The variable type is automatically inferred upon first assignment of the variable. You can assign an initial
value either by specifying a literal or by specifying a path expression, that is, elements of other already
existing variables or elements of the this context. Assignments use copy semantics, that is, a temporary
copy is created when individual elements are accessed using the this context. Node variables have
reference semantics.
Alternatively, you can explicitly specify the variable type in the variable declaration. For this, you can use
basic data types as well as global data types (GDTs).
You can also derive the underlying type of a business object node by using the elementsof modifier followed
by a static path expression that identifies a business object node. This is useful if you define initial node
data that can be passed as a parameter to the Create operation of a business object node. Do not use the
elementsof modifier if you want to derive the type of an element from a static path expression.
Description The Delete operation, which uses the inverse semantics of the Create operation, can only be called in the
instance-based variant and must be applied to business object nodes. The reason is that the instance to
be deleted must be identified by the preceding member path expression. The Delete operation can also be
applied to collections of business object nodes.
Example foreach
(var
BO
in
TestBO.QueryByElements.Execute())
if
(BO.Name
{ ==
"delete")
{
BO.Delete();
}
}
Deletion of a collection of nodes:
TestBO.QueryByElements.Execute().Delete()
Description You can use the Where method to filter a collection in order to return only the rows that meet the criteria.
This method returns a new collection, for example, collection A, which contains a subset of the source
collection, for example, collection B.
Example In the following example, the collection collB is the result of a query that was executed previously:
var mySearchValues : elementsof myBO.Item;
var collA;
mySearchValues.ItemID.content = "Bill";
collB.Where(n
collA
= n.ItemID
=> mySearchValues.ItemID
!= (n.ItemID.content
||! n.ItemID.content
1000
&&
< "Fred"));
==
var collStringsResult;
collStringsResult
collStrings.Where(
= "Fred"
==n=>
collStringsResult
n); collStrings.Where(
= n.StartsWith(
=>n "Fred"
);)
Syntax foreach
(var?
<identifier>
in<path
expression>)
{
<statement
list>
If a loop variable refers to a collection of business object nodes, the variable has reference
semantics, that is, you can always change the data of the collection elements.
The statements within the foreach body can make use of the loop variable to access the instance of the
current iteration. For information about how to obtain collections of business object nodes, see Collection
Handling [page 206] .
}
Example for form data type extension:
foreach (var elemData in FormData.CollectionSubElement) { elemData.Element = "New Value";
Syntax Applicable in collection handling when you use the OrderBy and DistinctBy methods:
<function parameter name> => <function parameter name>.<method or
property of inferred type>
Applicable in collection handling when you use the , Where and Remove methods:
<function parameter name> => <function parameter name>.<method or
property of inferred type> <arithmetic expression>
holds the statement. In OrderBy methods and DistinctBy methods, the statement is a path expression and
in Where methods and Remove methods the statement is a comparison. In all these cases, the path
expression must specify a structured element.
Do not use a function parameter name that you have already used for a declared variable. For more
information, see Declarations [page 209] .
Description Use the GetFirst or GetLast method to return the first or last row of a collection.
Description The if statement is a control statement. Depending on the result of the logical expression, the system
executes or skips the statement block. Optionally, else if and else subclauses can be used.
}
else if (fulfillment >= 1.0) {
bonus = this.Actual.content * 0.15;
else { bonus = 0; }
}
Description The import keyword imports business objects or reuse libraries from namespaces that are available in the
studio in the Repository View. Imports have to be defined at the very top of a script file. You can only import
complete namespaces but no individual entities. If there are naming conflicts between different entity types
in the same namespace, for example, if a reuse library has the same name as a business object, you must
fully qualify the name upon usage.
The namespace syntax in the scripting language is different to the namespace representation in the
Repository View . In the scripting language, the constant http://sap.com/xi prefix of the URL-based
namespaces is omitted and the slash mark (/) is replaced by a period (.).
Imported business objects can be statically accessed by typing the business object name as the root
identifier of a path expression. The local namespace of the solution is imported implicitly, that is, local
business objects can be accessed without an import statement.
If you use more than one namespace, we recommend that you define an alias for each imported
namespace and qualify business objects or data types from these namespaces by using the
aliases. For examples, see Name Qualification [page 215] .
Code completion is available for the namespace import, as well as for the static access of imported
business objects and reuse libraries. The code completion for the namespace import always offers the
required amount of subsequent path elements in order to complete the namespace so that the
corresponding entities can be accessed, for example, business objects or reuse libraries.
● Numeric literals, that is, positive and negative integers and floating points
You can use a literal, for example, as an expression on the right of an assignment or as a parameter of a
method call in a path expression.
In a literal string, you can use a backslash (\) to escape characters, such as carriage returns or quotation
marks (“). You can use the following escape sequences:
● \n (new line)
● \r (carriage return)
● \t (tab)
● \v (vertical tab)
● \f (form feed)
● \\ (backslash)
● \” (quotation marks)
Description The logical operators AND (&&) and OR (||) always evaluate the overall expression to a Boolean value. The
operands themselves are conditional expressions, which in turn are comprised of arithmetic expressions,
finally breaking down to atomic expressions, such as literals, variable identifiers, and path expressions.
You can also use the NOT operator (!) combined with brackets to override the precedence default value of
subexpressions.
Short circuit evaluations are not supported. That is, if in a logical AND or OR expression the value
of the first operand is sufficient to determine the result of the operation, the second operand is still
evaluated.
Example if
(fulfillment
>=0.8
&&fulfillment
<
1.0)
{
…
}
check
=
!(this.Element
>
42);
Syntax <object
type
1>::<alias
for
namespace>:<path
element>.<object
type
2>:<path
element>;
Description Usually, you can address the imported objects directly by their names instead of using fully qualified
names. However, if more than one object type (for example, a business object node, query, association,
or action) is declared with the same name, you need to fully qualify the objects in order to make them
unambiguous. This is necessary, for example, in the following cases:
● Two namespaces are imported that contain business objects with the same name.
● You have created a business object with the same name as an SAP business object. To reference
the SAP business object, you need to enter the fully qualified name of this business object including
its namespace alias. Without mentioning the namespace, the system will choose your business
object instead of the SAP business object.
● You want to access a business object that has the same name as a reuse service or a message.
● A node name in one business object is the same as a query name in the same business object on
the same level.
If the system discovers such a naming conflict, you can either use code completion to insert the correct
path expression or enter it directly by using two colons (::).
Example Fully qualifying names because two namespaces contain business objects with the same name:
import AP.CRM.Global as CRM;
var sapSalesOrder : CRM:SalesOrder;
var mySalesOrder: SalesOrder;
Fully qualifying names because there are nodes, elements or associations within the same name:
import ABSL;
import AP.FinancialAccounting.Global as fin;
var costObject : fin:FinancialAccountingViewOfCostObject;
var descriptionNodeElements : elementsof
fin:FinancialAccountingViewOfCostObject.Node::Description;
var description : fin:FinancialAccountingViewOfCostObject.Element::Description; costObjec
Syntax <rootitem>[.<datatypeelement>|businessobjectnodefeature|methodname[(<param>*)]]*
Path expression containing a library function parameter (for example, of a reuse library service) for use in a
variable declaration:
<library>.<library function>.<param>.<...>
● Associations
● Method calls
● Type of variables
Path expressions always start with a root item. The root item can be a variable identifier, the this context,
a static access to an imported business object or a reuse library, as well as a message declared in the
business object definition.
If the root item is a variable of a structured data type, the path expression addresses subelements of this
data type. If the this context and imported business objects are used, all supported business object node
features can be addressed through the path expressions. The business object node features are element
and subelement access, associations, queries, actions, including Create with reference [page 208]
actions, and the Create Instance [page 207] operation and the Delete Instance [page 210] operation. If
the root item is a reuse library or a Web service (
library), you must add the reuse service or Web service )
operation ( and at least the parameter. If the parameter is of a structured type, the
library function
path expression can also include the elements and subelements of this type.
Associations are instance-based and they can therefore only be followed by the this context and by
variables that are typed as business object nodes. In contrast, queries are static entities that have to be
retrieved and executed based on imported business objects. As an action can have the multiplicity [0,0],
[1,1], or [1,n], a query can either be accessed statically or instance-based, which depends on the
multiplicity. For the execution of an action, you can provide parameters to the action method call in the
same way as you can provide parameters for the execution of any reuse library service.
Methods and complete reuse libraries can be bound to certain data types and are then automatically
offered in the code completion. In addition to actions that are defined as part of the business object model
and that belong to a certain business object node, there are also various methods that are available for all
The following evaluated conditions are available for the root node of the reference business object:
IsStarted
●
● IsChanged
● IsCancelled
These conditions return the default condition evaluation result for the root node of the reference business
object.
<query>.Count ([<SelectionParameters>]);
<query>.CreateSelectionParams ();
<selection parameter collection>.Add(<QueryParameterPath>, <Sign>,
<Option>, <LowValue>, [<HighValue>]);
<selection parameter collection>.Add(<QueryAssociationPath>,
<NodeInstance>);
<query>.CreateSortingParams ();
<selection parameter collection>.Add(<QueryElementPath>);
<selection parameter collection>.AddDescending(<QueryElementPath>);
A query does not take data into account that has been created or changed but has not yet been
saved to the database.
Selection Parameters
Each query defines a set of selection parameters. There may be selection parameters that are not part of a
node’s element structure. Selection parameters are passed as a collection to the query. You can create an
empty selection parameter collection by using the
CreateSelectionParams function defined for
the corresponding query. You can also add selection parameters to the collection by using the
Add function.
Add requires the following parameters:
● QueryParameterPath identifies a query parameter, for which you define the selection
parameter. QueryParameterPath is a path expression that starts with the query variable
describing the same query that was used to create the selection parameters. It is either followed
by a parameter name or, in case the parameter is structured, by an element path. The complete
path must always point to an unstructured parameter.
● Sign defines whether the selection shall be included in the result set (" ") or excluded from the I
result (" E
").
● Option is an operator used to compare the values defined in the selection parameters with the
actual values in the business object nodes. Possible values are:
Possible values for the Option parameter and what they mean
EQ
= Equal NE = Not equal
GT = Greater LT = Less
● LowValue and HighValue define the actual filter values. HighValue is optional and you can
use it for options that allow for BT
ranges, that is, " " or " NB". You can either define these values by
specifying literals or by supplying variables or elements of node instances (for example, by using
this.<ElementName> ). The type of the provided values must match the type of the specified
query parameter structure element. Please note that he system does not perform an implicit type
conversion.
The values of the options " CP" and " NP" are patterns that can include the wildcard characters " " #
*
or " ". You can escape a wildcard character by using the " " character. +
There are cases where you need to query for all instances of a business object node that have an
association to a certain instance of another business node. This you can do by adding a selection parameter
for the source foreign key element of the association. The source foreign key elements of custom business
objects are generated implicitly by the system and cannot be accessed by the script code. However, if you
need to access the source foreign key elements, you can use the association name to define a selection
parameter. For this purpose, the
Add function has an additional signature with only two parameters:
● The QueryAssociationPath parameter identifies an association (that is, its foreign key
element) for selection. QueryAssociationPath is a path expression that starts with the query
SAP Cloud Applications Studio — Version August 2014 (1408)
218 © 2014 SAP AG. All rights reserved.
variable describingPUBLIC
the same query as the one that was used to create the selection parameters.
Scripting Languages
·
The path expression is followed by an association name. Please note that the system supports only
foreign key associations defined at the same node where the query is defined.
The
Example Definition of business object QueryExample:
import AP.Common.GDT as apCommonGDT;
businessobject QueryExample
{
[AlternativeKey]
element Number : IntegerValue;
element NextNumber : IntegerValue;
element Period : DatePeriod;
elementClass:ClassificationCode;//customcodelistdatatypewithvaluesALPHAandBETA
row Count is 4
*/
// 2) Select a range of Period.StartDate
var startDate1 = Date.Create(2013, 02, 01);
var
SAP Cloud Applications Studio startDate2
— Version = Date.Create(2013, 05, 01);
August 2014 (1408)
Scripting Languages PUBLIC • © 2014 SAP AG.
var selectionParams = query.CreateSelectionParams(); All rights reserved. 219
selectionParams.Add(query.Period.Sta
7.2.4.32 Raise Message (Business Logic)
Description You can use the raise keyword to raise messages that have been declared in the business object definition.
When you use the Create method, an instance of a message is created that is automatically bound to the
message type.
The Create method has one mandatory parameter: the severity. You have to supply the severity as a string:
● "E" for errors
● "W" for warnings
● "S" for success messages
As additional optional parameters you can supply the values for placeholder variables as declared in the
message text. The type of these values is ANY.
You do not need to import messages if they are declared in the business object definition. They are then
automatically available in the code completion of the current context.
Description You can use the DistinctBy method to delete duplicate rows in a collection according to the specified criteria.
var collStringsUnique;
collStringsUnique = collStrings.DistinctBy( n=>n );
Description You can use the Remove method to remove those rows from the collection that meet the criteria. This
method returns a new collection, for example, collection A, which contains a subset of the source collection,
for example, collection B.
Description This method allows you to reset an association. If, for example, a target node instance has been deleted by
following the association, you must reset the association because the references that point to the deleted
business object are not cleared automatically. Therefore, such invalid references must be explicitly deleted
and every access to an association must be secured by a previous
IsSet check call. For information about
the IsSet check for associations, see Check Associations [page 204] .
The Reset method can only be applied to foreign key associations and is not available for variables that
are derived from association access.
Description You can use the Retrieve method to read the data of a single node instance or a collection of node instances
of a business object. In contrast to the Query [page 217] method, which always reads data directly from
the database, the Retrieve method enables you to read data that has been modified but not yet been stored
in the database.
As parameters for the method, you can pass a single alternative key or a collection of alternative keys,
which have been declared as variables. The variables, which contain the alternative key values, need to be
of the same type as the alternative keys specified in the business object. If the method is used for a
collection of node instances, it returns a new collection.
retrieveColl = SalesOrder.Retrieve(collectionID);
Description The use of the return keyword is mandatory in .absl files that were created by using the Service
Integration wizard. The return value has to be of Boolean type.
For each of the four condition evaluations (Relevance, Start, Change, Cancel) that are possible in a service
integration scenario, the Boolean return value must be used to signal the calling process agent about the
evaluation result. To calculate the condition for the current root node instance, you can access the process
context information of this node and its node values.
Description The InReconciliation Boolean indicator specifies conditions that depend on the mode of execution, that is,
the standard message mode or the reconciliation message mode. The reconciliation mode is an error
recovery mechanism that allows it to send a new message, the reconciliation message. This reconciliation
message contains the complete information and cancels all previous erroneous messages.
Example if (InReconciliation) {
...
}
return false;
Service integration allows you to synchronize data between several involved business objects that are located in
different deployment units in an asynchronous way. The business objects exchange the data through XML
messages. You can use the methods listed below to determine for which nodes of the sending business object the
data is transmitted.
Script files can be used for the condition evaluation, which specifies whether the data of a node is part of the cross-
business-object synchronization. Therefore, the .absl files in service integration scenarios support parameters
that are passed in at runtime. Additionally, a Boolean return value is expected that signals to the calling process
agent whether the business object instance is to be considered in the message construction. Furthermore, the
process context is attached to every business object node instance that allows you to check certain status
information related to service integration.
In script files that are executed within a service integration scenario, the context information is read-only. This means
that the system prevents accessible business object nodes and calls of actions from being changed. The information
about the script file signature (that is, the parameters and return values and their corresponding types) is documented
in a comment block at the very beginning of each
.absl file. In service integration scenarios,
various .absl file subtypes are involved. This is also documented in the comment.
The following methods are available for service integration:
● Script File Parameter [page 222]
● Return Values [page 222]
● Process Context [page 216]
Description You can navigate along associations that have been set by the user interface but you can also set
associated node instances explicitly. For this, you can use a simple standard assignment expression that on
the left provides a path expression, whose last element is an association. The path expression on the right
must evaluate to the node type that is expected to be the target node of the modeled association. For such
assignments, you can only use modeled associations with [1,1] or [0,1] multiplicity. The expression on the
right can be, for example, an item of a query execution result or a Create operation.
break;
}
● Assign newly created node instance:
var data : elementsof TargetBO; data.Name = "Created"; this.ToTarget = TargetBO.Crea
Description You can use the OrderBy or OrderByDescending method to sort a collection in ascending or descending
order according to the specified sorting criteria. By default, collection columns of numeric and byte type
are sorted by their value and columns of string type are sorted as text. You can define the sorting criteria
as action parameters by using a function literal, which refers to the columns of the collection. To define
multiple sorting criteria, add ThenBy or ThenByDescending statements to the expression.
If the row type of a collection is structured, you need to specify the sorting criteria. The sorting
parameters must be an atomic data type, that is, you are not allowed to define a structured
attribute of the collection row type as a sorting parameter. If the row type is unstructured, you can
only sort by row and cannot specify a sorting criteria.
Sorting does not have a permanent effect on business object nodes. Each time a node is read from
the system, all previous sorting results are lost.
Description The switch control statement provides a more convenient option to express if.. else if.. code
blocks that evaluate exactly the same field against different values again and again. The switch type is
limited to non-structured data types. The case clause allows for arbitrary expressions, for example, the
use of variables.
The default clause is optional.
Description The this keyword defines the context in which the script file is executed. You must use the keyword as the
first member of a path expression that accesses the context. The keyword has the type of the business
object node that the script file is assigned to and, at runtime, points to the current instance of such a
business object node. The keyword can define the root of a path expression, just as imported business
objects do for static access. The this keyword itself is immutable and cannot be modified, whereas the
elements of the node represented by this can be modified.
If you use the this keyword in the coding of a mass-enabled script file, this represents a collection
of business object nodes.
The code completion for the business object node specified by this displays instance-based features such
as node elements, associations and instance-based actions including mass-enabled features. Queries and
static actions are not instance-based and therefore you can address them only through static business
object access.
You can use the GetObjectNodeReference() method along with the this keyword to return the
following information about the business object nodes in a solution:
● Node ID of the relevant business object node
ObjectTypeCode of the business object
●
The basic SAP reuse libraries of the scripting language extend the scope and functions that you use to implement
your business logic in the studio. These “language-near” libraries provide basic functions that are used quite often,
for example, to retrieve context data, such as the current date or time for the current identity.
SAP reuse libraries allow for parameters that are either data types (CDTs or GDTs) or business object node instances.
The return values have to be data types.
To use basic SAP reuse libraries, you need to import the namespace ABSL with the import keyword. For more
information on the import keyword, see Syntax for Implementation of Business Logic [page 198] .
The functions of the SAP reuse libraries can always be accessed in a static manner. In addition, most of the libraries
are bound to a certain data type. In this case, the instance of the data type on which the method is executed will be
automatically passed to the method at runtime as the first parameter.
import ABSL;
var globalDateTime = GlobalDateTime.ParseFromString("2008–03–30");
var date = globalDateTime.ConvertToDate():
This SAP reuse library contains a function that you can use to convert a string to a binary value.
Binary.ParseFromString
Binary.ParseFromBase64String
Example this.Binary.Content=Binary.ParseFromBase64String("ThisisaBase64string");
Example Binary.ParseFromString("This
=bin
var string");
a is54686973206973206120737472696E67
Result: Binary value
var base = Binary.ToBase64String(bin);
Result: Base64 string VGhpcyBpcyBhIHN0cmluZw==
This SAP reuse library contains functions that provide context information, for example, the current time in the time
zone of the user or the identity UUID of the user that is currently logged on.
Context.GetCurrentGlobalDateTime
Description Returns the current date and time in Coordinated Universal Time (UTC).
this.result = Context.GetCurrentGlobalDateTime();
Example
Result: Current date and time in UTC
Context.GetCurrentIdentityUUID
Description Returns the Identity UUID of the user currently logged on. this.result
= Context.GetCurrentIdentityUUID();
Example
Result: Identity UUID of the user currently logged on.
Context.GetCurrentSystemDate
Description Returns the current date in the time zone of the system. this.result
= Context.GetCurrentSystemDate();
Example
Result: Current date in the time zone of the system
Context.GetCurrentSystemDateTime
Description Returns the current date and time in the time zone of the system.
this.result = Context.GetCurrentSystemDateTime();
Example
Result: Current date and time in the time zone of the system.
Context.GetCurrentSystemTime
Description Returns the current time in the time zone of the system.
Context.GetCurrentUserDate
Description Returns the current date in the time zone of the user. this.result
= Context.GetCurrentUserDate();
Example
Result: Current date in the time zone of the user
Context.GetCurrentUserDateTime
Description Returns the current date and time in the time zone of the user.
this.result = Context.GetCurrentUserDateTime();
Example
Result: Current date and time in the time zone of the user
Context.GetCurrentUserTime
Description Returns the current time in the time zone of the user. this.result
= Context.GetCurrentUserTime();
Example
Result: Current time in the time zone of the user
Context.GetCurrentUserLanguage
Context.GetCurrentUISwitches
Description Returns the user interface switches (UI switches) of the current solution assigned to the current user.
this.result = Context.GetCurrentUserUISwitches();
Example
Result: Table listing the UI switches. The line type of the table is PDI_ABSL_STRING
Context.GetCurrentSystemTimeStamp
Description Returns the time stamp for the current Coordinated Universal Time (UTC) reference time of the system as
a numeric value.
Context.GetSystemURL
This SAP reuse library contains functions that you can use for currency-based amounts. For example, you can
convert an amount from one currency into another.
CurrencyConversion.GreaterEquals
Description Indicates whether or not an amount is greater than or equal to another amount.
You can compare amounts with different currency codes. The result depends on the exchange rate
maintained in the system.
this.result = this.amount1.GreaterEquals(this.amount2);
Result: False
CurrencyConversion.GreaterThan
this.result = this.amount1.GreaterThan(this.amount2);
Result: False
CurrencyConversion.LessEquals
Description Indicates whether or not an amount is less than or is equal to another amount.
You can compare amounts with different currency codes. The result depends on the exchange rate
maintained in the system.
Result: True
CurrencyConversion.LessThan
Result:
CurrencyConversion.Equals
Result: False
CurrencyConversion.Add
CurrencyConversion.Subtract
Example this.amount1.content
this.amount1.currencyCode
10; = "EUR";
this.amount2.content
= this.amount2.currencyCode
23; = "EUR";
this.result
this.amount1.Subtract(this.amount2);
= = EUR
-13
CurrencyConversion.Round
CurrencyConversion.ConvertCurrency
Description Converts an amount into a different currency based on the exchange rate maintained in the system.
this.amount.content = 10.3754;
Example
this.amount.currencyCode = "EUR";
this.result = this.amount.ConvertCurrency("USD");
Result: Depends on the exchange rate
CurrencyConversion.SpellAmount
Description Spells out an amount. The integer part and the decimal part of a decimal number are spelled out
separately and returned in the respective fields. If you do not provide the language, the logon language is
used as a default.
This SAP reuse library contains functions that you can use to compare dates and to perform simple calculations with
dates. Furthermore, it contains other useful date features, for example, services that you can use to determine the
start or end date of a month related to a specified date.
Date.Create
Date.GreaterEquals
Description Indicates whether or not a date is later than or equal to another date.
Result:
Date.GreaterThan
Description Indicates whether or not a date is later than another date. this.date1
= Date.ParseFromString("20100215");
Example
this.date2 = Date.ParseFromString("20100402");
this.result = this.date1.GreaterThan(this.date2);
Result: False
Date.LessEquals
Description Indicates whether or not a date is earlier than or equal to another date.
this.date1 = Date.ParseFromString("20100215");
Example
this.date2 = Date.ParseFromString("20100402");
this.result = this.date1.LessEquals(this.date2);
Result: True
Date.LessThan
Date.IsBetween
Description Indicates whether or not a date is between two specified date values.
this.date1 = Date.ParseFromString("20100215");
Example
this.date2
Date.ParseFromString("20100330");
= this.date3
Date.ParseFromString("20100402");
= this.result
this.date2.IsBetween(thi
=
Result:
Date.GetDay
Date.GetMonth
Date.GetYear
Date.GetWeek
Date.AddDuration
Date.SubtractDuration
Date.Delta
Description Returns the delta duration between two specified date values.
this.date1 = Date.ParseFromString("20100215");
Example
this.date2 = Date.ParseFromString("20100218");
this.result = this.date1.Delta(this.date2);
Result: Duration value P3D
Date.StartOfMonth
Description Returns the start of the month related to a specified date. this.date
= Date.ParseFromString("20100215");
Example
this.result = this.date.StartOfMonth();
Result: Date value 20100201
Description Returns the end of the month related to a specified date. this.date
= Date.ParseFromString("20100215");
Example
this.result = this.date.EndOfMonth();
Result: Date value 20100228
Date.StartOfYear
Description Returns the start of the year related to a specified date. this.date =
Date.ParseFromString("20100215");
Example
this.result = this.date.StartOfYear();
Result: Date with value 20100101
Date.EndOfYear
Description Returns the end of the year related to a specified date. this.date =
Date.ParseFromString("20100215");
Example
this.result = this.date.EndOfYear();
Result: Date with value 20101231
Date.ConvertToGlobalDateTime
Description Converts a date into a global date and time value. this.date =
Date.ParseFromString("20100215");
Example
this.result = this.date.ConvertToGlobalDateTime();
Result: Global date time value 20100215000000
Date.ParseFromString
Description Converts a string into a date. The service accepts both the internal format and the ISO format.
This SAP reuse library contains a function that you can use to convert a string into a date and time value.
This SAP reuse library contains functions that you can use to compare durations and to perform simple calculations
with durations.
Duration.Create
Duration.GreaterEquals
Description Indicates whether or not a duration is greater than or equal to another duration.
this.duration1 = Duration.ParseFromString("P3Y");
Example
this.duration2 = Duration.ParseFromString("P5Y");
this.result = this.duration1.GreaterEquals(this.duration2);
Result: False
Duration.GreaterThan
Duration.LessEquals
Description Indicates whether or not a duration is less than or equal to another duration.
Result:
Duration.LessThan
Duration.AddDuration
Example Duration.ParseFromString("P28DT1H");
this.duration1
= Duration.ParseFromString("P10DT2H");
this.duration2
= this.duration1.AddDuration(this.durat
this.result
= "P
Duration.SubtractDuration
Negative durations are not allowed. Therefore, the first duration value must be greater than the
second duration value.
Result: As the result is ambiguous the function does not return a result. Instead it returns a corresponding
error message.
this.result = this.duration1.SubtractDuration(this.duration2, true);
Result: The function uses 30 days for the duration of each month. The result is the duration value P28D
Duration.ConvertToDays
Duration.ParseFromString
This SAP reuse library contains functions that you can use to compare global date and time values and to perform
simple calculations with global date and time values. Furthermore, it contains other useful global date and time
features, for example, functions that you can use to determine the start or end of a global date and time of a month.
For GlobalDateTime elements, use the data type GLOBAL_DateTime of namespace http://sap.com/xi/
BASIS/Global.
Some functions include the IsUTC parameter. This parameter indicates whether global date and time is passed in
Coordinated Universal Time (UTC) or to the time zone of the user. This parameter is needed because the user
interface does not pass the date and time in UTC but in the time zone of the user.
GlobalDateTime.GreaterEquals
Description Indicates whether or not a global date and time value is greater than or equal to another global date and
time value.
Example
GlobalDateTime.ParseFromString("20100215104352");
=
this.gDateTime1
GlobalDateTime.ParseFromString("20100402235401");
=
this.gDateTime2
this.gDateTime1.GreaterEquals(this.gDateTime2);
= this.result
Result: False
GlobalDateTime.GreaterThan
Description Indicates whether or not a global date and time value is greater than another global date and time value.
this.gDateTime1 = GlobalDateTime.ParseFromString("20100215104352");
Example
this.gDateTime2 = GlobalDateTime.ParseFromString("20100402235401");
this.result = this.gDateTime1.GreaterThan(this.gDateTime2);
Result: False
Description Indicates whether or not a global date and time value is less than or equal to another global date and time
value.
Example
GlobalDateTime.ParseFromString("20100215104352");
this.gDateTime1
= GlobalDateTime.ParseFromString("20100402235401");
this.gDateTime2
= this.gDateTime1.LessEqual(this.gDateTime2);
= this.result
Result: True
GlobalDateTime.LessThan
Description Indicates whether or not a global time value is less than another global time value.
this.gDateTime1 = GlobalDateTime.ParseFromString("20100215104352");
Example
this.gDateTime2 = GlobalDateTime.ParseFromString("20100402235401");
this.result = this.gDateTime1.LessThan(this.gDateTime2);
Result: True
GlobalDateTime.Equals
Description Indicates whether or not a global date and time value is equal to another global date and time value.
this.gDateTime1 = GlobalDateTime.ParseFromString("20100215104352");
Example
this.gDateTime2 = GlobalDateTime.ParseFromString("20100402235401");
this.result = this.gDateTime1.Equals(this.gDateTime2);
Result: False
GlobalDateTime.IsBetween
Description Indicates whether or not a global date and time value is between two other specified global date and time
values.
Result: True
GlobalDateTime.GetDate
GlobalDateTime.GetTime
GlobalDateTime.GetMonth
GlobalDateTime.GetYear
GlobalDateTime.GetWeek
Description Returns the calendar week of a global date and time value.
GlobalDateTime.GetHour
GlobalDateTime.GetMinute
GlobalDateTime.GetSecond
GlobalDateTime.SubtractDuration
GlobalDateTime.Delta
Description Returns the delta duration between two global date and time values. this.gDateTime1 =
GlobalDateTime.ParseFromString("20100215104352");
Example
this.gDateTime2 = GlobalDateTime.ParseFromString("20100218114352");
this.result = this.gDateTime1.Delta(this.gDateTime2);
Result: Duration value P3DT1H
GlobalDateTime.StartOfMonth
Description Returns the start of a month related to a global date and time value. this.gDateTime1 =
GlobalDateTime.ParseFromString("20100215104352");
Example
this.result = this.gDateTime.StartOfMonth();
Result: Global date time value 20100201000000
GlobalDateTime.EndOfMonth
Description Returns the end of a month related to a global date and time value. this.gDateTime1 =
GlobalDateTime.ParseFromString("20100215104352");
Example
this.result = this.gDateTime.EndOfMonth();
Result: Global date time value 20100228235959
GlobalDateTime.StartOfYear
Description Returns the start of a year related to a global date and time value. this.gDateTime1 =
GlobalDateTime.ParseFromString("20100215104352");
Example
this.result = this.gDateTime.StartOfYear();
Result: Global date time value 20100101000000
GlobalDateTime.EndOfYear
Description Returns the end of a year related to a global date and time value.
GlobalDateTime.ConvertToDate
GlobalDateTime.ConvertToDateTime
Description Converts a global date and time value into a date and time value.
Use this function only when an SAP business object uses the DateTime data type in the http://
sap.com/xi/BASIS/Global namespace. Do not use the DateTime data type in your own
business object definitions.
GlobalDateTime.ConvertToLocalDateTime
Description Converts a global date and time value into a local date and time value. You can specify target time zone .
If no time zone is specified, the function converts the global date and time value into the time zone of the
user that is currently logged on.
GlobalDateTime.ConvertToLocalNormalisedDateTime
Description Converts a global date and time value into a local normalized date and time value. You can specify a time
zone. If no time zone is specified, the time zone of the user that is currently logged on is used.
Description Converts a string into a global date and time value. The function accepts both the internal format and the
ISO format.
This SAP euse library contains provides a function for language codes.
LanguageCode.ParseFromString
Description Converts a string into a language code. Before the conversion the system checks if the string is a valid
language code. The function accepts ISO codes only.
This SAP reuse library contains functions that deal with local date and time values.
LocalDateTime.ConvertTimeZone
Description Converts a local date and time value from one time zone into another time zone.
this.localDateTime = LocalDateTime.ParseFromString("20100215104352
Example
CET");
this.result = this.LocalDateTime.ConvertTimeZone("UTC");
Result: Local date time value 20100215094352 UTC
LocalDateTime.ConvertToGlobalDateTime
Description Converts a local date and time value into a global date and time value. this.localDateTime =
LocalDateTime.ParseFromString("20080330120000
Example
CET");
this.result = this.localDateTime.ConvertToGlobalDateTime();
Result: Global date time value 20080330100000
Description Converts a string into a local date and time value. The function accepts both the internal format and the
ISO format.
This SAP reuse library contains a function that deals with local normalized date and time values.
LocalNormalisedDateTime.ConvertToGlobalDateTime
Description Converts a local normalized date and time value into a global date and time value.
import ABSL;
Example
var global2;
var locnorm;
var global3;
global2 = GlobalDateTime.ParseFromString("20080330120000"); locnorm = global2.Con
Overview
This SAP reuse library contains functions that you can use to draw numbers. The drawn numbers are separated by
identifiers that support different number ranges for different object types, for example document types. These
identifiers are called number range objects.
NumberRange.DrawNumber
Description Draws a new number; ideally the next number in the sequence of a given number range object.
The first value in the range always equals to 1; and the last value is 999.999.999.
In cases where the current value has reached the maximum value 999.999.999, the system raises a
message, and the number range is reset to 0. Hence, the next drawn number is 1.
NumberRange.ResetRange
Example NumberRange.ResetRange("RECORD");
numberRangeObject
var "ORDER";
= ID
NumberRange.ResetRange(
: numberRangeObject
);
Result: The value of the number range objects RECORD and ORDER is set to 0.
This SAP reuse library contains functions that you can use for integers and decimals.
Numeric.IsNumeric
Numeric.ParseFromString
Description Converts a string into a numeric value. Before the conversion the system checks if the string is a valid
numeric value.
Description Converts a numeric value into a string by rounding it to a given number of decimal places. The string
format depends on the locale of the current user. If you want to ensure that the dot is used as decimal
mark independently of the locale, you need to provide the optional
RawRepresentation parameter. This
parameter is useful, for example, when the sting needs to be parsed again into a numeric value using the
Numeric.ParseFromString function.
Example this.pi = 3.14159;
this.result = this.pi.RoundToString( 2 );
Result: "3.14" or "3,14" (depending on the locale of the user)
If you want to ensure that the dot is used as decimal mark consistently, use the following
statement: this.result = this.pi.RoundToString( 2 , true);
This SAP reuse library contains functions for codes and identifiers with implementation type NUMC.
For information about the data types and their implementation type, see the Business Center at https://
www.sme.sap.com under
SAP Business ByDesign Community Wiki SAP Business ByDesign Studio Public
Solution Model . You can find the information in the Published Data Types List.
NumericCharacter.ParseFromString
Description Converts a string into a numeric character. Before the conversion the system checks if the string is a valid
numeric character.
This SAP reuse library contains functions that you can use to compare quantities and to perform simple calculations
of quantities. The functions allows to use different units of measure if they are convertible.
QuantityConversion.GreaterEquals
Description Indicates whether or not a quantity is greater than or equal to another quantity.
this.result = this.quantity1.GreaterEquals(this.quantity2);
Result: True
QuantityConversion.GreaterThan
this.result = this.quantity1.GreaterThan(this.quantity2);
Result: False
QuantityConversion.LessEquals
Description Indicates whether or not a quantity is less than or equal to another quantity.
this.quantity1.Content = 52;
Example
this.quantity1.unitCode = "EA"; this.quantity2.Content = 52; this.quantity2.unitCode = "E
this.result = this.quantity1.LessEquals(this.quantity2);
Result: True
QuantityConversion.LessThan
this.result = this.quantity1.LessThan(this.quantity2);
Result: False
QuantityConversion.Equals
this.result = this.quantity1.Equals(this.quantity2);
Result: True
Description Adds two quantities. You can add quantities of different units of measure (UoM). If you do not specify a
target UoM, the function returns the result in the UoM of the first quantity.
Example this.quantity1.Content
this.quantity1.unitCode
53; = "EA";
this.quantity2.Content
= this.quantity2.unitCode
52; = "EA";
this.result
this.quantity1.Add(this.quan
= =
QuantityConversion.Subtract
Description Subtracts a quantity from another quantity. You can substract quantities of different units of measure
(UoM). If you do not specify a target UoM, the function returns the result in the UoM of the first quantity.
this.result = this.quantity1.Subtract(this.quantity2);
Result: Quantity value 1 EA
QuantityConversion.Divide
this.result = this.quantity1.Divide(this.quantity2);
Result: Decimal value 1,56756756756756
This SAP reuse library contains the following functions that you can use, for example, to compare times.
Time.GreaterEquals
Description Indicates whether or not a time value is greater than or equal to another time value.
this.time1 = Time.ParseFromString("120157");
Example
this.time2 = Time.ParseFromString("230000");
this.result = this.time1.GreaterEquals(this.time2);
Result: False
Time.GreaterThan
Result:
Time.LessEquals
Description Indicates whether or not a time value is less than or equal to another value.
this.time1 = Time.ParseFromString("120157");
Example
this.time2 = Time.ParseFromString("230000");
this.result = this.time1.LessEquals(this.time2);
Result: True
Time.LessThan
Description Indicates whether or not a time value is less than another value.
this.time1 = Time.ParseFromString("120157");
Example
this.time2 = Time.ParseFromString("230000");
this.result = this.time1.LessThan(this.time2);
Result: True
Time.GetHour
Time.GetMinute
Time.GetSecond
Time.Delta
Description Returns the duration delta between two specified time values.
this.time1 = Time.ParseFromString("120157");
Example
this.time2 = Time.ParseFromString("230000");
this.result = this.time1.Delta(this.time2);
Result: Duration value PT10H58M3S
Description Converts a string into a time value. The function accepts both the internal format and the ISO format.
This reuse library contains functions for Universal Unique Identifiers (UUIDs).
UUID.ParseFromString
Example this.result.content =
UUID.ParseFromString("00163E01023602DD88AFE2F34FC4C3F3");
Result: UUID 00163E01023602DD88AFE2F34FC4C3F3
UUID.Generate
WebServiceUtilities.ExecuteWebService
Descriptio Calls a REST or RSS/Atom mashup Web service. This reuse library focuses on relatively simple Web services
n that can be modeled as a mashup Web service. If you need to control the Web service call in more detail, you
can use the
WebServiceUtilities.ExecuteRESTService reuse function.
For more information, see Using a Mashup Web Service in a Script File [page 477] .
WebServiceUtilities.ExecuteRESTService
Descriptio Calls a REST Web service defined in an External Web Service Integration scenario. For more information, see
n Integrate an External Web Service Using REST [page 522].
This reuse library allows you to control the Web service call using a set of parameters. You can, for example,
dynamically create the request body or use specific authentication mechanisms or header parameters. The
following parameters need to be filled:
● ResourceName: Resource name of the rest service that is concatenated to the defined URL in the service
of the communication arrangement
● URLParam: Additional URL parameters that are concatenated to the defined URL in the service of the
communication arrangement
After executing the service, the function fills the following parameters in the result structure:
ReturnCode
● : Return code of the REST call, for example, 200for success
For more information, see Example: Consume a REST Service [page 524] .
The SAP reuse libraries for business areas provide additional, very specific services to the scripting language that
are relevant for functions in the business areas of the cloud solution from SAP, for example, in the Financial
Management business area. These services are all based on entities provided by SAP.
To use an SAP reuse library for a specific business areas, you need to import the namespace of the relevant
business area with the import keyword, for example, import
AP.FO.ProductDataMaintenance.Global;. For more information about the import keyword, see Syntax
for Implementation of Business Logic [page 198] .
To use this SAP reuse library, you need to import the AP.IS.CodingBlock namespace.
AccountingCodingBlockAssignmentUtilities.ToMessage
Example FormData.ItemAccountingCodingBlockAssignment =
this.ToItemAccountingCodingBlockAssignment.ToMessage( );
In this example, FormData.ItemAccountingCodingBlockAssignment is
the AccountingCodingBlockAssignment global data type.
this.ToItemAccountingCodingBlockAssignment refers to the
AccountingCodingBlockAssignment subnode of the
AccountingCodingBlockDistribution dependent object.
Result: Accounting coding block assignment.
To use this SAP reuse library, you need to import the AP.FO.Address.Global namespace.
AddressSnapshotUtilities.ToForm
Description Converts an address into a format that can be used in a print form. The data stored in an instance of the
Address Snapshot business object is converted into the FormAddress global data type.
This SAP reuse library contains a service that is based on advanced functions for date and time processing. To use
this library, you need to import the AP.IS.DateAndTime.Global namespace.
Description Returns the next active time value based on the calendar, direction (+ or -) and the date and time value
passed.
this.CalCode.content = "11";
this.NextDateTime = DateTimeUtilities.GetNextActiveTimePoint(this.CurrentDateTime
This reuse library contains a service that is relevant for the Financial Management business area. To use this library,
you need to import the AP.FO.CompanyFinancialsProcessControl.Global namespace.
FinancialsProcessUtilities.GetProcessLockStatus
Description Returns the process lock status for a given accounting transaction date, company and business transaction
type group. Please note that on the user interface of SAP Business ByDesign, process lock is called
“Process Control” and accounting transaction date is called “Posting Date” or “Proposed Posting Date” .
For information about the process lock, see the SAP Business ByDesign Library under Business
Areas Financial Management Financial and Management Accounting General Leger Master
Data Companies View Quick Guide for Companies (General Ledger) Set the Process Control .
In this example, this.ToCompany refers to the Company business object provided by SAP.
Result: Process lock status code, for example, 1for status “not blocked”.
This SAP reuse library contains a service that is based on the Set of Books business object provided by SAP. To
use this library, you need to import the namespace.
AP.FinancialAccounting.Global
Descriptio Returns the start date and the end date of the fiscal year for a given company, set of books, and fiscal year.
n
if(!this.sobid.content.IsInitial())
{
comp = Company.Retrieve(this.CompanyId);
var temp = "2012";
fyID = NumericCharacter.ParseFromString(temp);
if(comp.IsSet())
{
FYDates =
SetofBooksUtilities.GetFiscalYearStartEndDate(this.sobi
d, fyID, comp); this.FYStartDate = FYDates.StartDate; this.FYEndDate = FY
{
{
{
Result:
Start date of the fiscal year, for example, 01012012 for year 2012
End date of the fiscal year, for example, 31122012 for year 2012
This SAP reuse library contains a service that is based on the Material business object provided by SAP. To use
this library, you need to import the AP.FO.ProductDataMaintenance.Globalnamespace.
MaterialUtilities.QuantityConversion
Description Converts a quantity of a material or product into a different unit of measure or quantity specification.
This SAP reuse library contains a service that is based on output management functionality. To use this reuse library,
you need to import the following namespaces:
● AP.Common.GDT
● BASIS.Global
● DocumentServices.Global
Availability
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
OutputManagementUtilities.GetPDF
Descriptio Provides business object data in a portable document format (PDF) document.
n
Example //variables
var FormTemplateLanguage = "E";
var PDF : BinaryObject;
var FormTemplateCode : OutputRequestFormTemplateCode; FormTemplateCode.content = "ZMEI
Result: A PDF, which can be used further for storage, for example, as a business object attachment.
This SAP reuse library contains a service that is based on the PriceAndTaxCalculation dependent object
provided by SAP. To use this library, you need to import the
AP.FO.PriceAndTax.Global namespace.
PriceComponentUtilities.ToMessage
Description Converts the PriceAndTaxCalculation dependent object into the FormPriceComponent global
data type.
Example FormData.PriceComponent =
this.PriceAndTaxCalculation.PriceComponent.ToMessage( );
In this example, FormData.PriceComponent is the FormPriceComponent global data
type . this.PriceAndTaxCalculation.PriceComponent refers to the
PriceAndTaxCalculation dependent object.
Result: Form price component.
The SAP built-in functions of the scripting language extend the scope of the syntax for the implementation of your
business logic in a similar way as the basic reuse libraries. However, in contrast to the reuse libraries, you do not
need to import a namespace to use the built-in functions.
Clear All data types except for Boolean data types. Clears a value.
IsInitial All data types except for Boolean data types. Indicates whether a value is initial
or not. Returns a Boolean value.
ToString ● All base types except for string data types Converts a value into a string.
All non-base types that are not structured For binary values UTF-8 encoding
●
is used. Invalid byte sequences are
● Amount (http://sap.com/xi/AP/Common/GDT) replaced by the replacement
character (U+FFFD). The
● Quantity (http://sap.com/xi/AP/Common/GDT)
replacement character is shown as
● LOCAL_DateTime (http://sap.com/xi/BASIS/Global) a black diamond with a white
question mark.
● LOCALNORMALISED_DateTime (http://sap.com/xi/BASIS/Global)
Example:
if (!this.numericValue.IsInitial()) {
this.string = this.numericValue.ToString();
this.numericValue.Clear();
}
You can use these functions to read the description of numeric code data types or character-based code data types.
If you use a structured data type, the method binds to the structure but not to the content element.
GetDescription
Description Returns the description of a code value in the language of the user. For some data types, for example, if
you use the RegionCode data type, you also need to provide the ListID element.
GetDescriptionInOtherLanguage
Description Returns the description of a code value in a specified language. For some data types, for example, if you
use the data type, you also need to provide the element.
RegionCode ListID
Example var codeDescriptionInEnglish =
code.GetDescriptionInOtherLanguage(LanguageCode.ParseFromString("EN"));
These functions contain description and processing functions for character strings.
Contains
EndsWith
Find
Description Searches from left to right and returns the position of a substring in a string. Optionally, you can define a
search area by specifying the start position only or by specifying the start position as well as the length of
the search area. If no substring is found, the function returns the value "-1".
The function returns the value “-1” and raises a message if the system encounters one of the following
issues:
● The substring is empty (error message)
● The start position is not within the length of the string (error message)
Description Searches from right to left and returns the position of a substring in a string. Optionally, you can define a
search area by specifying the start position only or by specifying the start position and the length of the
search area. If no substring is found, the function returns the value "-1".
The function returns the value “-1” and raises a message if the system encounters one of the following
issues:
● The substring is empty (error message)
● The start position is not within the length of the string (error message)
FindLastRegEx
Description Searches from right to left and returns the position of a regular expression pattern in a string. Optionally,
you can define a search area by specifying the start position only or by specifying the start position and the
length of the search area. If no substring is found, the function returns the value "-1".
The function returns the value “-1” and raises a message if the system encounters one of the following
issues:
● The substring is empty (error message)
● The start position is not within the length of the string (error message)
For information about the operators that you can use in a regular expression pattern, see the ABAP Keyword
Documentation .
Example this.string
"aaa
bbb
ccc
bbb";
= this.result
this.string.FindRegEx("b\\s+");
=
Description Searches from left to right and returns the position of a regular expression pattern in a string. Optionally,
you can define a search area by specifying the start position only or by specifying the start position and the
length of the search area. If no substring is found, the function returns the value "-1".
The function returns the value “-1” and raises a message if the system encounters one of the following
issues:
● The substring is empty (error message)
● The start position is not within the length of the string (error message)
For information about the operators that you can use in a regular expression pattern, see the ABAP Keyword
Documentation .
Example this.string
"aaa
bbb
ccc
bbb";
= this.result
this.string.FindRegEx("b\\s+");
=
Length
Matches
Description Indicates whether or not the source string matches the regular expression pattern.
The function raises a message and returns the result false, if the system encounters one of the following
issues:
● The regular expression pattern is empty (error message)
The regular expression pattern is invalid (error message)
●
Replace
ReplaceRegEx
Description Returns all locations in a string with a substring that match a regular expression pattern. Optionally, you
can define a search area by specifying the start position only or by specifying the start position and the
length of the search area.
If the substring is empty or the regular expression pattern is invalid, the function returns the source string
and raises an error message. If the source string is empty, the function returns an empty string and raises
an information message.
For information about the operators that you can use in a regular expression pattern, see the ABAP Keyword
Documentation .
StartsWith
Substring
Description Returns a substring of a string starting at a specified position. Optionally, you can define the length of the
substring.
The function raises a message and returns an empty string, if the system encounters one of the following
issues:
● Either the start position or the sum of start position and length of the substring is not within the
length of the string (error message)
● The length of the substring succeeds the length of the string (error message)
The source string is empty (information message)
●
● The start position or the length of the substring is a negative number (error message)
ToUpperCase
Trim
Description Deletes leading and trailing characters. It is not relevant for the result, in which order you pass the
characters to the system. If you do not specify a character, the system removes all blank characters.
If the source string is empty, the system raises an information message and returns an empty string.
this.string = " aaabbbccc ";
Example
this.result = this.string.Trim();
Result: String value aaabbbccc
TrimLeft
Description Deletes leading characters. It is not relevant for the result, in which order you pass the characters to the
system. If you do not specify a character, the system removes all blank characters.
If the source string is empty, the system returns an empty string and raises an information message.
this.string = "xyz xyz abcd";
Example
this.result = this.string.TrimLeft("zyx");
Result: String value xyz abscd
TrimRight
Description Deletes trailing characters. It is not relevant for the result, in which order you pass the characters to the
system. If you do not specify a character, the system removes all blank characters.
If the source string is empty, the system returns an empty string and raises an information message.
this.string = "xyz xyz abcd";
Example
this.result = this.string.TrimRight("bd ca");
Result: String value xyz xyz
This function binds to code and identifier data types with the NUMC implementation type.
You can use the Repository Explorer tool window to explore the SAP data types that are released with the public
solution model (PSM) and their implementation type. For more information, see Repository Explorer [page 49] .
You can use these functions to remove leading zeros from or add leading zeros to numeric identifier data types and
character-based identifier data types.
As a prerequisite for this function, the alpha-conversion indicator for the data type must be set.
AddLeadingZeros
RemoveLeadingZeros
Overview
The scripting language supports basic data types such as string, numeric and Boolean values. In addition, the
existing metadata of the underlying SAP cloud platform for core data types (CDTs) and global data types (GDTs) is
made available.
The implementation type of the particular data type is taken into account during the mapping of CDTs and GDTs to
the basic types of the scripting language. In the studio, you can explore all SAP data types that are released with the
public solution model (PSM) and their implementation type in the Repository Explorer on the Data Types tab. For
more information, see Repository Explorer [page 49] .
For more information, see the data type definitions of the World Wide Web Consortium (W3C ) at http://
www.w3.org/TR/xmlschema-2/ .
As a consequence, you do not need to implement validations in your script files to ensure that the user input matches
the data type definition. The SAP web service runtime validates the service input according to the data type definition
(XSD schema validation).
Internal numerical variables defined in the scripting language are of the DF34_DEC implementation type.
var
string
this.ShortText;
= //
string
unrestricted
is
a string
var
this.IntegerValue;
=i is
//
of
i
DF34_DEC
type
position = string.Find("\"culpa\"");
string.Substring(position); // result: ""culpa" …" (not restricted)
position = string.Find("\"augue\"");
this.ShortNote = string.Substring(position);// result: ""augue" duis …" (40 char)
Conversion
Syntax
If variables are typed with data types that belong to the same basic type in the scripting language, they are implicitly
converted by the scripting language. For example:
this.ID = this.ShortName;
if ( this.Amount.content > this.IntegerValue) …
If variables are typed with data types that belong to different basic types in the scripting language, they need to be
converted by using conversion functions, for example, ToString(), Numeric.ParseFromString(),
GlobalDateTime.ConvertToDate()..
Behavior
If you perform operations on string variables in your script files, you need to ensure that the length of the result
strings match the data type definition. For example:
// ShortName is typed with LANGUAGEINDEPENDENT_SHORT_Name -> length = 10 // LongName is typed with LANG
The program terminates when saving if the length of the LongName field is greater than 10 characters and no
check exists.
If the content of a variable is outside the range that is specified by the data type definition, the following can occur
as a consequence:
Variables of unrestricted length, for example, variables of theLANGUAGEINDEPENDENT_Text data type, are
truncated at a length of 255 characters as soon as they are saved to the database. For texts that are longer
than 255 characters, use the TextCollection dependent object.
For variables that are typed with numerical data types, rounding is performed according to the definition of the target
data type. While the scripting language uses decfloat34 internally, the values are rounded according to the
definition of the data type as soon as the value is assigned to a business object element.
Note: The Quantity.content data type is specified as a decimal value with 31 digits and 14 fractions.
this.IntegerValue1 = 1 / 3; // result: 0
this.IntegerValue2 = 2 / 3; // result: 1
var num = 1/3;
this.IntegerValue3 = num * 3; // result: 1
this.IntegerValue4 = this.IntegerValue1 * 3; // result: 0 this.Quantity1.content = 1 / 3
num = this.Quantity5.content;
this.Quantity8.content = num * 3000000000000000000; // result: 0
● Alpha conversion
Alpha conversion fills purely numeric user input like “4711” with leading zeros from the left side to allow
better sorting in character fields. For example, if alpha conversion is not used, an alphabetic sorting would
lead to sorting results such as: “1”, “10”, “100”, “1000”, “2”, “20”, “200”, and so on.
The UI runtime performs upper case conversion and alpha conversion automatically. The scripting language,
however, does not perform these types of conversion automatically. Therefore you need to ensure this in your
script files.
this.ID = string.ToUpperCase();
position = this.ID.Find("A"); // result: 9
The UI runtime performs a content check of the code list. The scripting language, however, does not perform this
check automatically. Therefore you need to ensure this in your script files.
Overview
The front-end script is the programming language used in the user interface designer (UI designer) to define a set of
rules and the logic of the behavior of UI controls. For example, you can write a front-end script to enable an edit
● Dynamic calls of event handlers (for example, for dynamic OBN links)
Script Execution
All scripts (including calculation rules) are executed in a sequential manner together with all other events by the
event queue processor in the UI runtime on the client. Parallel execution of scripts is not possible. For each
execution of a script, the scripts environment is recreated. All variables, including global variables, are reset.
Syntax
The scripts are defined as part of a UI component model. The UI component models are stored and processed as
XML files; the script sources are stored as character data sections within these UI component models. The
character set of the scripts is based on UTF-8.
Each script and each block used inside control statements is a sequence of statements. For more information, see
Lexical Structure of Front-End Scripts [page 272] and Syntax of Front-End Scripts [page 273].
For more code samples, see Front-End Code Snippets [page 277] .
Any software coding or code lines/strings (“Code”) provided in this documentation are only examples
and are not intended for use in a productive system environment. The Code is only intended to better
explain and visualize the syntax and phrasing rules for certain SAP coding. SAP does not warrant the
correctness or completeness of the Code provided herein and SAP shall not be liable for errors or
damages cause by use of the Code, except where such damages were caused by SAP with intent or
with gross negligence.
The lexical structure of the front-end scripts contains identifiers, comments, and literals.
Identifiers
Identifiers consist of:
● Letters: a-z, A-Z
● Digits: 0–9
● Special: underscore ( _ )
Identifiers must start with a letter or an underscore. There is no length restriction for identifiers.
We recommend using reasonable identifiers since parsing times are adversely affected by large identifiers.
Comments
Comments follow Java/C# specification:
● Single line comments start with //. The remainder of the line is considered part of the comment.
Comments delimited by /* and */. All content between the delimiters is considered part of the comment.
●
Literals
● String Literals
String expressions begin and end with double or single quote marks, and these string expressions are subject
to backslash escape.
The scripting engine does not support any escape sequences in the literals.
● Numeric Literals
○ -1234: Numeric integers must only contain decimal digits (other characters such as underscore ( _ ) are
not supported).
○ 123.56: Decimals must consist of two strings of decimal digits separated by a period ( . ).
See Also
Syntax of Front-End Scripts [page 273]
The syntax of the front-end script contains variables, statements, and expressions.
Variables
The following variables are supported:
● Global variables prefixed by a -character $
The UI runtime framework automatically adds the following global variables into the script environment:
$controller
○ : allows interaction with the UI component controller. For more information, see Global
Variable: $controller [page 287] .
$data: allows access to and modification of the data of the UI component. For more information,
see ○Interacting with Runtime Data [page 283] .
$textpool
○ : allows the use of modeled texts from the text pool of the UI component.
$eventArgs
○ : allows accessing event-specific data.
○ $currentrow: for calculation rules of controls used inside iterator elements (for example, cell renderers in
the table control),
$currentrow provides access to the list row against which the control is bound.
● Local variables
The basic types that can be used for scripting correspond to the types used by the UI controller:
● boolean
● integer: a 32–bit integer value
● decimal: a 128–bit data type. Compared to floating-point types, the decimal type has a greater precision
and a smaller range, which makes it suitable for financial and monetary calculations.
string
● : string literals
The initial type of a variable is determined the first time the variable is assigned a value. Afterwards, only values of
the same type can be assigned.
Statements
Simple statements are as follows:
assignment statement
Syntax assignment :=
reference = expression
Example tuesday = 'Tuesday'
number = 10
Syntax arguments :=
expression
| expression, argument_list
print_statement
print
:=expression
print
|arguments
if statement
Syntax if_statement:
if_predicate block end
| if_predicate block else_block
| if_predicate block elseif_statement
if_predicate:
if expression then
| if expression NEWLINE
else_block:
else block end
elseif_statement:
elseif_predicate block end
| elseif_predicate block else_block
| elseif_predicate block elseif_statement
elseif_predicate:
elif expression then
| elif expression NEWLINE
if ( true )
print 'ok'
end
a=1;
if ( a==2 )
print 'ko' ;
elif ( a==1 )
print 'ok' ;
else
print 'ko' ;
end
a=1;
if ( a==2 )
print 'ko' ; elif ( a==1 ) b=3;
if ( b==2 )
print 'ko' ;
elif ( b==1 )
print 'ko' ;
else
print 'ok' ;
end
else
print 'else reached' ;
print 'ko' ;
end
unless statement
Syntax unless_statement :=
unless_predicate block end
| unless_predicate block else_block
unless_predicate :=
unless expression then
| unless expression NEWLINE;
else_block :=
else block end
Example unless ( false )
print 'ok'
end
Syntax ternary_statement :=
expression ? statement : statement
Example a=1; b=3; c=3;
((a > 0) and (b == 3)) ? (a=1) : (c=2)
Comment In this example, the expression on the left side evaluates to "true".
The assignment statement a=1 is executed.
for statement
Syntax for_statement :=
for_in block end
for_in:
for reference in expression NEWLINE
Comment Only integer ranges in the form 2..5 (last item included) and 2...5 (last item excluded) are supported. All other
expressions will raise a runtime error.
while statement
Syntax while_statement:
while_predicate block end
while_predicate:
while expression NEWLINE
Example i=0
while i<5
print i
i=i+1
end
Expressions
The front-end script interpreter supports the following expressions:
literals, decimal numbers, integer numbers, constants
● true and false
● parentheses to indicate precedence
● method invocations
● variables
● unary expressions
● boolean expressions
● relational expressions
● equality expression
All statements are expressions, including methods and variables. The last member pushed onto the stack is
considered as the return value of a method, there is no return statement. The return value of a calculation
rule in the runtime framework is determined in the same way. To return a value from a method or from the
front-end script program, use an expression.
Example
a // will return the value of the variable 'a'
result
//
a=will
also
return
the
value
of
the
variable
'a'
because
the
assignment
statement
is
an
expression
and
puts
'a'
onto
the
stack
The variable result has been introduced to facilitate adoption of the runtime framework. It is a common
result
cause of error that after an assignment to (which is a way of moving a value to the stack), another
statement moves another value to the stack and this is then used as the result of the calculation rule.
Calculation Rules
● Make a Control Read Only Using Calculation Rule
Accessing Data List Values from Calculation Rules
●
Language Constructs
● And/Or/If Clauses
● Break Out of a Loop
Other
● Call Another EventHandler
Any software coding or code lines/strings (“Code”) provided in this documentation are only examples
and are not intended for use in a productive system environment. The Code is only intended to better
explain and visualize the syntax and phrasing rules for certain SAP coding. SAP does not warrant the
correctness or completeness of the Code provided herein and SAP shall not be liable for errors or
damages cause by use of the Code, except where such damages were caused by SAP with intent or
with gross negligence.
Description Gets lead selection data from a list and changes an unbound data model field that is assigned to
attribute SelectedVariant of a pane container. Script is executed OnLeadSelectionChange of
DataList:List in Data Model.
Result: In an object worklist, the displayed preview pane changes when a new line is selected.
Description If a link is clicked in a list, and the lead selection does not change, you need to check the event
argument.
Note that if you have a simple source side dispatching script (only one variable involved), we
recommend using the Eventhandler condition instead of a script.
Description You need to create a variable of type Boolean and initial value "true" at root level. Associate the
same with enabled property of the button. In the OnClick event of the button, associate an
EventHandler of type script and use the following script.
$data.result = false;
else
$data.result = true;
end
else
$data.result = true;
end
Description Note that the selection applies only to the data which is available on the client.
lead = 2
Example
$data.DataList.SetLeadSelectedIndex(lead)
Description This function may be useful for custom radio button groups.
Note that you will have to set the text via a textpool element.
Example $data.DataList.Add( )
$data.DataList.Add( )
0..($data.DataList.Count-1)
infor
i $data.DataList.Get(i).Code
$data.DataList.Get(i).Value
i= "text"
=i +
end
Calculation Rules
Description In the property dialog of the control, the ReadOnly attribute is available. If you open the editor and
chose the Calculation Rule selection, a script window opens. To insert new lines, use the Shift +
Enter key combination. In the example below, you must make sure to add IssuerBankCode as an
invalidation trigger to execute the script.
Note that the value of the last expression is used as the result of a calculation rule. The actual name
of the parameter does not matter. This will lead to unwanted side effects if you use any expressions
after determining the return value. To avoid this, make sure to do a final expression of the return
value at the end of your script. The recommended name for the parameter is result.
Description If you want to get the current value of a datalist field in a calculation rule, you can use
$controller.Resolve and the relative path of the field in the datalist.
Note that there is limited SAP List Viewer (ALV) functionality for calculated fields in lists. For example,
there is no sorting and grouping.
In the example below, to ensure that the value is always recalculated correctly, you also have to add
the fields LowerBoundaryFiscalYearID_LRL_DE and LowerBoundaryAccountingPeriodID_LRO_DE
as invalidation triggers of your calculation rule.
Example if ( $controller.Resolve("./TestRunIndicator_LRI_DE") )
result = $textpool.Lookup("PTK") //Test
else
result = $textpool.Lookup("PTL") //Update
end
Description You can access the code value description by adding .Description.
code = $data.CountryCode
Example
description = $data.CountryCode.Description
text
=
"Code:
"
+
code
+
",Description:
"
+
description
$data.CalculatedValue
=
text
Language Constructs
And/Or/If Clauses
Description You can put parts of the and/or/if clause in one row. LeadSelection =
$data.Interactor1_KA.LeadSelectedIndex
Example
if ( LeadSelection > -1 )
SelectedRow = $data.Interactor1_KA.Get(LeadSelection)
if ( SelectedRow.InspectionTypeCode_EP != 5 and SelectedRow.Status_ES == 5 and Sele
result = false
else
result = true
end
end
Description Useful for conditional breakouts from the loops, such as selecting a checkbox depending on a
condition.
i = 0;
while i < $data.DataList.RowCount
if ( $data.DataList.Get(i).dataField == KeyFigureLeadSelected ) break;
else
$data.ManageExceptions.Get(LeadSelection).checkbox1 =
true;
end
end
i = i + 1;
end
Description The following shows how to call the event handlers "FireIncomingCheck" and
"FireAccountingDocument" from a script.
Description Translatable text should not be hard coded in scripts. You should define a new entry in TextPool
with parameter binding.
Description To format an amount according to a currency code, you need a new statement.
amount = 2.1
Example
currencyCode = "EUR"
result = $controller.Utils.AmountToString(amount, currencyCode)
Using $System.Saved
Example if ($controller.Utils.IsInitial($data.$System.Saved))
result = true else result = false end
Description Note that DirtyState is an unbound field that needs to be added under /Root in the data model to
save the dirty state temporarily.
To prevent the context from becoming dirty, for example on executing a business object action (and
thus preventing the work protect popup from being shown), you have to do as follows.
Example 1. Add a script operation before the business object action is executed which saves the current
dirty state:
$data.DirtyState = $data.$System.IsDirty
2. Add another script operation after the business object action is executed which resets the
dirty state to the previous value:
$data.$System.IsDirty = $data.DirtyState
Description You can check if an OBN target configured for a floorplan has a valid UI assigned to the current user.
$controller.CheckNavigationTarget( "ServiceRequestRootCreateWithRefer
Example
ence")
See Also
Front-End Script Reference [page 269]
Overview
The interaction with runtime data is accomplished by accessing members of the global variable $data. The global
variable $data provides access to the controller data container of the UI component by providing a reference to the
Root structure.
● Data Structures
Data structures may contain other data elements (fields, structures, and lists). Each member inside a
structure can be uniquely identified by its name.
The Root of the data container is the entry point to all data available for a UI component instance.
● Data Fields
Data fields are used to hold data values. The following base types are supported:
○
string
○ integer
○ float
○ date
○ boolean
○ binary
Note that it is not possible to work with binary data fields in scripting.
time
○
Note that it is not possible to work with time data fields in scripting.
datetime
○
Note that it is not possible to work with datetime data fields in scripting.
Data Lists
●
Lists contain zero or more List Rows, which are derived from data structures.
The overall composition structure of the data container is determined at design time. It is not possible to add
additional members to a data structure at runtime.
When you use the following rules to work with data container elements, you acquire references to data element
instances. The data elements are mutable.
Examples:
//
access
the
field
'NameField'
underneat
the
'Root'
structure
nameFieldRef
$data.NameField
=
acess
//
member
a the
sub
of
structure
subFieldRef1
subStructRef.SubField
=
directly
// access
member
a the
of
sub
structure
subFieldRef2
$data.SubStruct.SubField
=
Add () Reference Adds a new list row and returns a myListRef = $data.MyList
to new list reference to resulting list row
myListRowRef = myListRef.Add() myListRowRe
row instance.
instances
This may only be used with unbound
lists. For bound lists, explicitly
modeled list operations have to be
used.
Get(rowIdentifie Reference Returns the list row with the rowRef = $data.MyList.Get('12')
to the row specified row identifier or null if no
r(string))
instance such row exists.
Get(index(string)) Reference Returns the list row at the zero- rowRef = $data.MyList.Get(2)
to the row based index of the list.
instance
RowCount integer Returns the number of rows that are count = $data.RowCount
currently available on the client for
this list.
The scripting environment is agnostic of the CCTS type system used by the UI layer. Do not use scripting to
construct or format any representation of a data field value which is intended to be presented to an end user.
Use text pool replacements instead.
Once you have acquired a reference to a data field instance, you may work with it like a normal scripting variable.
This means you may assign or retrieve the value.
Code Code Returns the code value for a code- codeValue = $data.CodeField.Code
value list field. The value of the field itself
contains the key of the code (which
(string)
may differ from the code value for
hierarchical code lists). Returns
Overview
The $controller global variable enables script developers to access state information of the UI component
controller and to call controller methods.
ErrorOccu boolean Returns a boolean value that indicates whether an error has if($controller.ErrorOccu
rred occurred.
rred)
// block executed on
error
end
Transient boolean Returns a boolean value that indicates whether or not a if($controller.Transient
ErrorOccu transient error has occurred. Transient errors are typically
ErrorOccured)
caused by input validation errors and have to be resolved by
rred
the end user before normal processing can resume. // block which executes
on transient error
end
GetCurren string Returns the current logon language of the running session. $data.currLanguage =
tLanguage $controller.GetCurrentLa
nguage();
Utils <object> Returns an object instance which provides general utilities for utils=$controller.Utils
working with all data types. For more information, see General
Utilities for Working with Data [page 288] .
StringUtils <object> Returns an object instance which provides utilities for utils =
working with strings. For more information, see Utilities for
$controller.StringUtils
Working with Strings [page 289] .
Controller Methods
HandleEvent(eventNa Adds the event with the name eventNameto the $controller.HandleEvent('MyEvent'
me(string)) event processing queue of the controller. The )
method invocation is not synchronous.
uri
OpenLink(uri(string)) Opens the target in a new window $controller.OpenLink('http://
www.sap.com')
[page 290] .
Utils returns an object instance which provides general utilities for working with all data types.
the initial
value for its
type.
An object instance with utilities for working with strings is exposed via the global variable
$controller.StringUtils .
Using the Resolve controller method, script developers can use binding expressions to resolve the value of a field.
binding_expression :=
/Root binding_particles
binding_particles :=
binding_particle
| binding_particle binding_particle
binding_particle :=
/{data element name}
| /{list name}[{row identifier}]
| /{list name}/@{row index}
● Example 2: Assume that a data field named LastName is defined as a member of the structure Address , which
is defined under the root of the data model, the expression /Root/Address/LastName can be used to
address the data field.
List Rows
List rows can be addressed as follows:
By providing the row identifier
●
Example: Assume that a data field named LastName is defined as a member of the list Addresses , which is
defined under the root of the data model, and the row identifier of the row to be addressed is 4711, the
expression /Root/Addresses[4711]/LastName can be used to address the field.
Using indices is not a reliable way of addressing rows in lists that may be paged. Unless modeled
otherwise, all bound lists are paged by default.
The development tools provided by the SAP Cloud Applications Studio (“studio”) are presented in an integrated
development environment (IDE) based on Microsoft Visual Studio. The user interface (UI) of the studio is referred
to as the developer desktop. From the developer desktop you access specific features and tools of the
development environment.
Any software coding or code lines/strings (“Code”) provided in this documentation are only examples
and are not intended for use in a productive system environment. The Code is only intended to better
explain and visualize the syntax and phrasing rules for certain SAP coding. SAP does not warrant the
correctness or completeness of the Code provided herein and SAP shall not be liable for errors or
damages cause by use of the Code, except where such damages were caused by SAP with intent or
with gross negligence.
● Notification Rules
Learn how to enable your custom business object for
notification rules.
Availability
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
In SAP cloud solutions, business configuration enables prospective or existing customers to evaluate and set up
their system in the production environment to meet company-specific requirements. It also allows customers to
adapt and optimize their solutions at any time as business needs change.
You must create business configuration content for all solution capabilities that you create using the studio. You
create business configuration content in the studio and anchor your solution in the business adaptation catalog
(BAC) so that it is available for activation by customers who buy your solution.
Availability
Business option (mandatory) Create a business option when no selective adaptation ...Create a Business Option
of business configuration content is required. [page 304]
Business topic and business Create a business topic when you need to provide ...Create a Business Topic and
options multiple business options to key users. Business Options [page 306]
Country Define a country if your solution requires country- ...Create a Country and Business
specific scoping for a country that is not supported by Options [page 309]
the SAP standard cloud solution.
Business configuration set Create a BC set to configure the behavior of business ...Create a BC Set Using an SAP
(BC set) processes in your solution and define code list data BCO [page 312]
types that you can use to model fields in a business
...Create a BC Set Using a Custom
object.
BCO [page 316]
Create a BC set using an SAP business configuration
object (BCO) to configure the behavior of standard
business processes in the SAP cloud solution.
Business configuration object Create a custom BCO to define solution-specific ...Create a Business Configuration
(BCO) business configuration content on which you can base Object [page 314]
a BC set.
Business configuration view Create a BC view to allow key users to change the ...Create a Business Configuration
(BC view) values defined in a BC set during fine-tuning. View [page 317]
Fine-tuning project template Create a fine-tuning project template to provide sample ...Create a Fine-Tuning Project
content for a specific scenario that is defined by SAP. Template [page 320]
Tasks
1. In the studio, open the solution that contains the business option or business topic you want to change.
2. In the Solution Explorer , right-click the solution and select Open.
The Business Configuration Wizard opens.
3. Make your changes and then click Save.
To change a business option that you added to a business topic, in the Create Business Options and
Assign Solution Content step, use the Change Business Option function.
● Delete a Business Option or a Business Topic
1. In the studio, open the solution that contains the business option or business topic you want to change.
2. In the Solution Explorer , right-click the solution and do one of the following:
For information about the change and delete restrictions for business configuration content in a
solution that is in maintenance mode, see Maintenance of Business Configuration Content
[page 302] .
a. In the Solution Explorer , clean all BC sets that are based on the BCO by right-clicking the .bcc files
and selecting Clean.
b. Double-click the .bco file.
The BCO opens in a document window.
c. On the Fields tab, add or change one or more fields and then save your changes.
d. In the Solution Explorer , right-click the .bco file and select Activate .
You can only activate a BC set that is based on a BCO that you changed by opening the BC set in
a document window and saving it.
To delete a business configuration object that is used in a business configuration set, you must first
delete the BC set.
For information about the change and delete restrictions for business configuration content in a
solution that is in maintenance mode, see Maintenance of Business Configuration Content
[page 302] .
Create a Tax Decision Tree (available for SAP Business ByDesign only)
You can create a tax decision tree to automatically determine a tax event for a country that does not have an SAP
country version in SAP Business ByDesign.
For more information, see Create a Tax Decision Tree [page 321] .
Create a Fine-Tuning Project Template (available for SAP Business ByDesign only)
You perform the following tasks in the studio and in the SAP cloud solution in Business Configuration work center:
the Create a Fine-Tuning Project Template
●
In the Solution Explorer , click the Add New Item button and select Implementation Project Template .
You can complete a project once the design has been accepted.
2. In the Solution Explorer , right-click the .bct file of the active implementation project template and select
Complete .
Under Edit Activities , the activities are no longer displayed as links.
3. Optional: Check the status of the implementation project template in the studio by doing the following:
a. Open the implementation project template in the studio by double-clicking the . bct file.
b.
Check that the status of the implementation project template is Completed , that a completion date
is displayed, and that you can no longer change the description.
Reopen an Implementation Project Template
●
Solution Explorer *.bct Reopen
1. In the studio, open the solution that contains the implementation project template you want to reopen.
2. In the Solution Explorer , right-click the .bct file of the completed implementation project template and
select Reopen.
3. Optional: Check the status of the implementation project template in the studio by doing the following:
Open the implementation project template in the studio by double-clicking the .
a. bct file.
b. Check that the status of the implementation project template is Active and that no completion date
is displayed.
4. Optional: Check the status of the implementation project template in the SAP cloud solution by doing
the following:
a. In the SAP cloud solution, choose Business Configuration Implementation Projects and select
your project.
b. Check that the Edit Project Scope and Open Activity List functions are available and that the status
of the project is Started .
To check content in the business adaptation catalog (BAC), for example, for testing purposes, you must be
assigned the Business User role and have access rights for the Business Configuration work center. For more
information, see User Setup Quick Guide [page 30] .
1. In the SAP cloud solution, in the Business Configuration work center, open the Implementation Projects view.
2. Select a project and click Edit Project Scope .
The Edit Project Scope guided activity is displayed. The business topic or business option you created using
the Business Configuration Wizard is displayed in the Scoping phase under Scoping Element . The description
and scoping questions you defined in the Business Configuration Wizard are displayed in the Questions phase.
If you have defined BAC elements for your solution, a dialog box opens when you use the Deploy Business
Configuration function. You have to select one of the following options:
● Deploy all business configuration content for your solution
● Deploy only the business configuration content for your solution that is assigned to the business
options you have selected in the business adaptation catalog
This allows you to test both partial and complete activation of your business configuration content in the
development environment.
Overview
The full set of the SAP cloud solution's capabilities is outlined in a central business adaptation catalog (BAC). This
catalog organizes and structures the capabilities into a hierarchy of business areas, packages, topics, and options.
Solutions created in the studio require business configuration content that then appears as elements (BAC
elements) in the catalog and allows administrators to implement solutions in the production environment.
Customers work with the SAP cloud solution in the production environment after it has gone live. This environment
contains all elements required to run the customer's business processes using the SAP cloud solution and customers
can adapt the solution in the Business Configuration work center.
Features
When you create a solution in the studio, you must create business configuration content that contains at least one
business option to allow customers who buy your solution to activate the solution in the production environment.
A business option represents the most detailed decision level involved in defining or adapting a solution capability.
Business options can be hidden or can appear in scoping, fine-tuning, and/or the solution proposal. Each business
option specifies a particular way to perform a function. Each business option belongs to a business topic. For
information about how to create a business option, see
Create a Business Option [page 304] .
Optionally, you can also create the following business configuration content:
Business topic
●
A business topic relates to specific functions within an application area. In the standard SAP solution,
examples are Account Management and Time Administration. Each business topic belongs to a business
package and contains a number of business options.
For information about how to create a business topic, see Create a Business Topic and Business Options
[page 306] .
● Business configuration set (BC set)
A BC set is a technical container for the configuration settings and corresponding values that are associated
with a business option. The content contained within BC sets is deployed to the runtime environment where it
is loaded into the underlying configuration tables. Each configuration setting within a BC set has attributes
which specify whether it is hidden, visible, or changeable for the customer.
See Also
Business Configuration Quick Guide [page 294]
Overview
When you create a solution in the studio, you must create business configuration content that contains at least one
business option to allow customers who buy your solution to activate the solution in the production environment.
You can assign your business option to a standard business topic or you can create a business topic to which you
add your business options.
Prerequisites
● You have created and opened a solution in the studio. For more information, see Create a Customer-Specific
Solution [page 162].
● You understand the dependencies that exist between the elements in the business adaptation catalog and
the constraints that are applied by the selections that administrators make during scoping. For more
information, see Scoping.
● To check content in the business adaptation catalog, for example, for testing purposes, you must be assigned
the Business User role and have access rights for the Business Configuration work center. For more
information, see User Setup Quick Guide [page 30] .
Process Flow
1. In the studio, you create one or more business options.
If you create more than one business option, you group your business options in a business topic.
For information about how to create one business option, see
Create a Business Option [page 304] . For
information about how to create more than one business option, see Create a Business Topic and Business
Options [page 306] .
2. You define your business options.
a. You provide a scoping question and details about each business option.
During scoping, administrators select or deselect a business option by answering its associated scoping
question. Scoping questions are located in the business adaptation catalog (BAC) at the business topic
level. A scoping question is displayed for each business option in the BAC. In the SAP cloud solution,
customers can review the details you provide about BAC elements on the Overview and Relevance
tabs.
For more information about implementing a project in an SAP production system and the Fine-Tune
phase, see Implementing a Project — First Implementation.
c. You select additional functionality required by your solution by selecting the relevant business topics
from the business adaptation catalog list.
d. You define where you want the business configuration content to be available in the business adaptation
catalog.
For more information about the business adaptation catalog, see Business Adaptation Catalog
[page 300] and "Configuring Your SAP Solution" in the documentation in your SAP cloud solution.
3. Optional: You create a BC set and assign it to a business option.
You specify whether administrators are able to add or delete the values of specific fields in fine-tuning.
For more information, see
Create a BC Set Using an SAP BCO [page 312]
●
● Create a BC Set Using a Custom BCO [page 316]
4. Optional: You create a business configuration view (BC view) for a BC set using the UI designer and assign
this view to the Business Configuration work center.
For more information, see Create a Business Configuration View [page 317] .
You can only create a BC view for a BC set that uses a custom BCO. You cannot create a BC view
for an SAP BCO.
When you use the Deploy Business Configuration function, a dialog box opens. You have to select one
of the following options:
● Deploy all business configuration content for your solution
● Deploy only the business configuration content for your solution that is assigned to the business
options you have selected in the business adaptation catalog
This allows you to test both partial and complete activation of your business configuration content in
the development environment.
7. You check that your business configuration content appears in the BAC in the SAP cloud solution.
For more information, see Business Configuration Quick Guide [page 294].
Overview
A customer-specific solution is in maintenance mode, if it has been assembled and downloaded; the solution status
then is Assembled. You can make changes to the solution in a patch; however, you can only make restricted changes
to certain content types. These change and delete restrictions ensure that you do not make changes to a solution
that could lead to loss of data or create inconsistencies or errors on a customer's production tenant.
Action Allowed
Change Name No
Change Anchor No
Change Required Scope With restrictions: You can remove the required scope, but you
cannot add required scope.
Change assigned business options With restrictions: see "Maintenance of Business Options"
below
Action Allowed
Change Name No
Change Anchor No
Action Allowed
Change Name No
Action Allowed
Change Name No
Change Description No
Business configuration set field values: Add or delete new rows Yes
Action Allowed
See Also
Business Configuration Quick Guide [page 294]
Lifecycle Management of Customer-Specific Solutions
[page 135]
Maintenance Mode [page 166]
8.2.3 Tasks
Overview
You can create a business topic to group business options and provide multiple business options for customers to
customize your solution.
If you want to create more than one business option, you need to create a business topic first to group the business
options. For more information, see Create a Business Topic and Business Options [page 306] .
● To check content in the business adaptation catalog, for example, for testing purposes, you must be assigned
the Business User role and have access rights for the Business Configuration work center. For more
information, see User Setup Quick Guide [page 30] .
Procedure
1. In the Solution Explorer , do the following:
a. Click the Add New Item button.
The Add New Item dialog opens.
b. Select SAP Business Configuration BAC Elements and click Add .
The Business Configuration Wizard opens.
2. In the Create and Anchor Elements in the Business Adaptation Catalog step, do the following:
● Under Type of Business Configuration , select Business Option .
● Under Basic Information , do the following:
○ Enter a name and a description for the business option and then enter a scoping question.
Your scoping question indicates the functionality of the business option and allows
administrators to decide whether to select the business option during project implementation.
For more information about project implementation, see Implementing a Project — First Implementation.
○ Optional: Select Visible in Fine-Tuning if you want to assign a business configuration set (BC set)
to the business option and you want customers to be able to adapt the field values of the BC set
during fine-tuning; then under Fine-Tuning, do the following:
1. If customers must complete a fine-tuning activity before the solution goes live, select
Mandatory for Go-Live .
2. Enter a description for the fine-tuning activity.
A fine-tuning activity is only mandatory for go-live in the customer system if a BC set that
was created using a custom business configuration object (BCO) is assigned to the
business option. In this case, you must also create a BC view. For more information about
creating a BC view, see Create a Business Configuration View [page 317].
○ On the Overview tab, write a text that describes the function that this element provides and the
benefits of using this element. Aim to write no more than three to five sentences. However, when
additional valuable information is available, you should include it.
○ On the Relevance tab, write a text that describes when or why the customer should select this
element and what are the implications of selecting or not selecting this element. Explain the
relevance of this element in terms of real-world business requirements.
○ Click Next .
3. In the Review step, check that the information you have entered is correct and then click Finish.
The system assigns all content that is relevant for business configuration such as business objects and
business configuration sets (BC sets) to your business option. The content is displayed under the business
option.
4. In the Solution Explorer , right-click the .bac file and then select Activate to make the business option available
in the BAC.
Result
The system has added the business option to the business adaptation catalog (BAC). You can check the result by
logging on to the cloud solution as a business user. You select an implementation project in the Business
Configuration work center and edit the project scope. The Scoping step displays the BAC elements and you can
navigate to the business option you created.
See Also
Business Configuration Quick Guide [page 294]
Overview
You can create a business topic to group business options and provide multiple business options for customers to
customize your solution.
Prerequisites
● You have created and opened a solution in the studio. For more information, see Create a Customer-Specific
Solution [page 162].
● To check content in the business adaptation catalog, for example, for testing purposes, you must be assigned
the Business User role and have access rights for the Business Configuration work center. For more
information, see User Setup Quick Guide [page 30] .
If you need to create only one business option, under Type of Business Configuration , select
Business Option . For information about how to create one business option for a solution, see
Create a Business Option [page 304] .
○ On the Relevance tab, write a text that describes when or why the customer should select this
element and what are the implications of selecting or not selecting this element. Explain the
relevance of this element in terms of real-world business requirements.
Bank Directory File Upload
Example: The business topic is relevant if you wish
to upload a bank directory from a provider of your choice.
3. In the Create Business Options and Assign Solution Content step, create your business options by doing the
following:
a. Click Create Business Option .
The Create Business Option dialog box opens.
b. In the Create Business Option dialog box, under Basic Information , do the following:
1. Enter a name and a description for the business option.
3. On the Relevance tab, write a text that describes when or why the customer should select this
element and what are the implications of selecting or not selecting this element. Explain the
relevance of this element in terms of real-world business requirements.
c. Optional: If you want the business option to appear in the BAC, select Visible in Scoping and under
Scoping, do the following:
● If your business option provides functionality that is essential for your solution, select
Mandatory and enter a scoping statement that describes the functionality of the business option.
By default, the business option will be in scope when a customer selects the business topic in the
BAC.
● If your business option is not mandatory, enter a scoping question. Your scoping question
indicates the functionality of the business option and allows administrators to decide whether to
select the business option during project implementation.
d. Optional: Select Visible in Fine-Tuning if you want to assign a business configuration set (BC set) to
the business option and you want customers to be able to adapt the field values of the BC set during
fine-tuning; then under Fine-Tuning , do the following:
1. If customers must complete a fine-tuning activity before the solution goes live, select Mandatory
for Go-Live.
2. Enter a description for the fine-tuning activity.
A fine-tuning activity is only mandatory for go-live in the customer system if a BC set that was
created using a custom business configuration object (BCO) is assigned to the business
option. In this case, you must also create a BC view. For more information about creating a
BC view, see Create a Business Configuration View [page 317] .
e. Under Anchor Business Option below , you can either accept the selection of Header Element of the
Solution or select SAP Element and then Select Anchor to anchor your business option in the BAC.
Expand the tree and select your business topic, an SAP business topic or business option group and
click OK.
f. Repeat the steps above for each business option and click Next .
The Create Business Options and Assign Solution Content step now displays all business options that
you created on the right.
4. In the Create Business Options and Assign Solution Content step, assign solution content to each business
option by using the arrow buttons or by means of drag-and-drop.
The system displays the solution content you assign under the business option. You can also use the arrow
buttons or drag-and-drop to unassign solution content.
5. In the Review step, check that the information you have entered is correct and then click Finish.
6. In the Solution Explorer , right-click the .bac file and then select Activate to make the business topic available
in the BAC.
Result
The system has added the business topic to the business adaptation catalog (BAC). You can check the result by
logging on to the cloud solution as a business user. You select an implementation project in the Business
Configuration work center and edit the project scope. The Scoping step displays the BAC elements and you can
select the business topic that you created.
If you have created all business configuration content your solution requires, you can trigger deployment of your
business configuration content to be able to use the content in your solution. To do this, right-click your solution and
select Deploy Business Configuration .
When you use the Deploy Business Configuration function, a dialog box opens. You have to select one of the
following options:
● Deploy all business configuration content for your solution
● Deploy only the business configuration content for your solution that is assigned to the business
options you have selected in the business adaptation catalog
This allows you to test both partial and complete activation of your business configuration content in the
development environment.
See Also
Business Configuration Quick Guide [page 294]
Overview
You can define a country and create one or more business options, if your solution requires country-specific scoping
for a country that is not supported by the SAP cloud solution.
Prerequisites
● You have created and opened a solution in the studio. For more information, see Create a Customer-Specific
Solution [page 162].
Procedure
1. In the Solution Explorer , do the following:
a. Click the Add New Item button and click Add .
The Add New Item dialog opens.
b. Select SAP Business Configuration BAC Elements .
The Business Configuration Wizard opens.
2. In the Create and Anchor Elements in the Business Adaptation Catalog step, do the following:
a. Under Type of Business Configuration , select Country and Business Options .
b. Under Basic Information , enter a name and description and then select the country for which your
solution is relevant.
3. In the Create Business Options and Assign Solution Content step, create one or more business options for
your country by doing the following:
a. Click Create Business Option .
The Create Business Option dialog box opens.
b. In the Create Business Option dialog box, under Basic Information , do the following:
● Enter a name and a description for the business option.
● On the Overview tab, write a text that describes the function that this element provides and the
benefits of using this element. Aim to write no more than three to five sentences. However, when
additional valuable information is available, you should include it.
The Time Recording Integrated with Procurement business option allows you to use
time recording for third party service agents, such as consultants and service
technicians. The working times of service agents can then be allocated to procured
services and purchase orders. The recorded times are taken into account in invoice
verification.
● On the Relevance tab, write a text that describes when or why the customer should select this
element and what are the implications of selecting or not selecting this element. Explain the
relevance of this element in terms of real-world business requirements.
The Time Recording Integrated with Procurement business option is relevant if you
want to consider the working time recorded by service agents for invoice verification.
If the Services with Time Sheet Recordings for Projects business option (within the
Service and Non-Stock Material Procurement business topic) is selected, this
business option is automatically included in your scope.
c. Optional: If you want the business option to appear in the BAC, select Visible in Scoping and under
Scoping, do the following:
1. If your business option provides functionality that is essential for your solution, select
Mandatory and enter a scoping statement that describes the functionality of the business option.
If your business option is not mandatory, enter a scoping question. Your scoping question
indicates the functionality of the business option and allows administrators to decide whether to
select the business option during project implementation.
2. Click Select Anchor and anchor your business option in the BAC by expanding the tree and
selecting a business topic or a business option group.
d. Optional: Select Visible in Fine-Tuning if you want to assign a business configuration set (BC set) to
the business option and you want customers to be able to adapt the field values of the BC set during
fine-tuning; then under Fine-Tuning , do the following:
1. If customers must complete a fine-tuning activity before the solution goes live, select Mandatory
for Go-Live.
2. Enter a description for the fine-tuning activity.
When you define a business configuration set (BC set), you must also specify whether
administrators are able to add or delete the values of specific fields. For more information
about creating a BC set, see Create a BC Set with a Custom BCO [page 316].
You must assign all solution content such as business objects and BC sets to a business option
before you trigger test deployment of your solution. If dependencies exist between BC sets
defined in your solution. for example, a value defined in one BC set is referenced in a second BC
set, you must assign both BC sets to the same business option or you must assign the referenced
BC set to a mandatory business option.
5. In the Review step, check that the information you have entered is correct and then click Finish.
6. In the Solution Explorer , right-click the .bac file and then select Activate to make the country and its business
options available in the BAC.
7. Check that the system has added the country and the business options you created to the business adaptation
catalog (BAC) by doing the following:
When you use the Deploy Business Configuration function, a dialog box opens. You have to select one of the
following options:
● Deploy all business configuration content for your solution
● Deploy only the business configuration content for your solution that is assigned to the business
options you have selected in the business adaptation catalog
This allows you to test both partial and complete activation of your business configuration content in the
development environment.
See Also
Business Configuration Quick Guide [page 294]
Overview
You can create a business configuration set (BC set) using an SAP business configuration object (BCO) to configure
the behavior of standard business processes in the SAP cloud solution. If you create an implementation of an
enhancement option which is for single use only, you can also define a BC set using an SAP BCO so that you can
enhance the filter values.
● You can only create a BC set using an SAP BCO if you are developing the solution on your
development tenant. For information, see Lifecycle Management of Customer-Specific Solutions on Your
Development Tenant [page 145] .
You can also create a BC set using a business configuration object that you have created in the solution. For more
information, see Create a BC Set Using a Custom BCO [page 316].
Prerequisites
● You have created and opened a solution in the studio. For more information, see Create a Customer-Specific
Solution [page 162].
● You have permission to access the business configuration objects (BCO) that are released with the SAP public
solution model (PSM).
You can only use BCOs that are released with the SAP public solution model (PSM).
Under Business Configuration Object , the system displays the deployment unit, the namespace, whether a
fine-tuning activity is available, and a description of the BCO.
3. In the Define the Values of Your Business Configuration Set step, specify the field values of your BC set by
doing the following:
a. In the BCO hierarchy view, select the root node.
If the BCO only has one node, by default, the hierarchy is hidden.
b. In the field columns, specify values for at least all mandatory fields.
An asterisk (*) is used to indicate mandatory fields. Field values must comply with the data type of the
field. You can display information about a field by clicking the field name.
7. In the Solution Explorer , right-click your solution and select Deploy Business Configuration to be able to use
your business configuration content in a solution.
The system deploys the business configuration content you created and makes the field values available in
the development environment.
This allows you to test both partial and complete activation of your business configuration content in
the development environment.
Result
You have created a BC set using an SAP BCO and assigned it to a business option.
See Also
Business Configuration Quick Guide [page 294]
Overview
You can create a business configuration object (BCO) and use it as the basis of a business configuration set (BC
set).
Prerequisites
You have created and opened a solution in the studio. For more information, Create a Customer-Specific Solution
see [page 162].
Procedure
1. In the Solution Explorer , do the following:
a. Click the Add New Item button.
The Add New Item dialog opens.
b. Select SAP Business Configuration Business Configuration Object and click Add .
The Business Configuration Wizard opens.
2. In the Create Business Configuration Object step, do the following:
● Under Basic Information , enter a name and description.
● Optional: Select Create Code List Data Type if you want the system to create a code list data type that
can be used, for example, in business objects and business objects extensions.
In this case, only one key field is allowed.
If you want to use a static code list in your solution, you can create a code list data type. For
more information, see Create a Code List Data Type [page 385].
* The data type is displayed if you have selected the Create Code List Data Type option in step
2.
b. Click Finish.
A new item with the file extension .bco appears in the Solution Explorer under the Business
Configuration node.
5. Activate the business configuration object by right-clicking the .bco file and selecting Activate .
Result
You have created a BCO that you can now use as the basis of a business configuration set (BC set). You can
reference the values of this BCO in more than one BC set. For more information, see a BC Set Using a Custom BCO
Create
[page 316] .
See Also
Business Configuration Quick Guide [page 294]
Create a BC Set Using an SAP BCO [page 312]
Overview
You can create a business configuration set (BC set) using a business configuration object (BCO) that you have
defined in your solution.
You can also create a BC set using an SAP BCO. For more information, see Create a BC Set Using an SAP
BCO [page 312].
Prerequisites
You have created and activated a business configuration object in your solution. For more information about creating
a BCO, see Create a Business Configuration Object [page 314] .
Procedure
1. In the Solution Explorer , do the following:
a. Click the Add New Item button.
The Add New Item dialog opens.
b. Select SAP Business Configuration Business Configuration Set and click Add .
The Business Configuration Wizard opens.
You can also right-click your custom BCO and select Create Business Configuration Set .
You can only use BCOs that you created in the solution.
3. In the Define the Values of Your Business Configuration Set step, specify the field values of your BC set.
● The field values must comply with the data type of the field. You can display information about
a field by clicking the field name.
● As a partner, you cannot enter values in the Key [Code]* field that start with “Z”. This
namespace is reserved for customers.
● When you, as a customer, enter values in the Key [Code]* field, these values should start with
“Z”. This guarantees that your entries cannot be overwritten by content delivered by a partner
solution. If, however, your business requires that you deviate from this recommendation, you
should inform the SAP partner to avoid clashes of content.
7. In the Solution Explorer , right-click your solution and select Deploy Business Configuration to be able to use
your business configuration content in a solution.
The system deploys the business configuration content you created and makes the field values available in
the development environment.
When you use the Deploy Business Configuration function, a dialog box opens. You have to select one
of the following options:
● Deploy all business configuration content for your solution
● Deploy only the business configuration content for your solution that is assigned to the business
options you have selected in the business adaptation catalog
This allows you to test both partial and complete activation of your business configuration content in
the development environment.
Result
You have created a BC set based on a BCO that is defined in your solution and assigned it to a business option.
See Also
Business Configuration Quick Guide [page 294]
Create a BC Set Using an SAP BCO [page 312]
Overview
You can create a business configuration view (BC view) for a business configuration set (BC set) to allow
administrators to add new values during fine-tuning or to delete the values of a BC set. You create the view in the
studio and you model the view in the UI designer.
You can only create a BC view for a business configuration set (BC set) that was created using a custom
business configuration object (BCO). You cannot create a BC view for an SAP BCO.
Procedure
1. In the studio, create a business configuration view by doing the following:
a. In the Solution Explorer , activate the BCO for which you want to create the view by right-clicking
the .bco file ( ) and selecting Activate .
b. In the Properties window, make sure that the activation status of the BCO is Runtime objects up to
date .
c. Right-click the .bco file and select Create Business Configuration View .
The Create Business Configuration View dialog box opens.
d. Enter a name for the view, make sure that your BCO is selected, and then click OK.
A new item with the file extension .QA.uicomponent ( ) appears in the Solution Explorer .
e. In the Solution Explorer , open the BC view by right-clicking the .QA.uicomponent file and selecting
Open in UI Designer.
The view opens in the UI designer.
2. Optional: In the UI designer, modify the BC view, for example, change the field labels:
a. On the Designer tab, select the column whose name you want to change and in the Property Explorer ,
under Text Information , click the Label field.
b. Click the arrow button and in the Dependent Property Editor , in the Overridden Text field, enter a new
name.
3. In the UI designer, assign your BC view to the Business Configuration work center by doing the following:
a. In the Configuration Explorer , open the Implementation Projects work center view by opening the /
SAP_BYD_APPLICATION_UI/BCTools/WorkCentre/ folder. The file name of the view is
ImplementationProjects_WCView.WCVIEW.uiwocview.
b. In the Extensibility Explorer , select the ImplementationProjects_WCView.ao.uianchor anchor
and click Assign Component to View .
c. In the Type field, select NavigationTarget .
d. In the Component field , select your BC view from the Repository. It is stored in the following folder:
[name of your solution]_BC] SRC [your BC view] . Click OK and Apply .
You can find the name of your solution in the studio: In the Solution Explorer , select your
solution. In the Properties , in the Project File field, there is the name of your solution.
c. In the Solution Explorer , activate the BC set by right-clicking the .bcc file ( ) and selecting
Activate .
d. In the Properties window, make sure that the activation status of the BC set is Runtime objects up to
date .
For information about creating a BC set, see Create a BC Set Using a Custom BCO [page 316] .
Make your BC view available in the business adaptation catalog (BAC) by doing the following:
5.
a. In the Solution Explorer , select your solution and click Add New Item. Select BAC Elements and click
Add .
The Business Configuration Wizard opens.
b. Follow the wizard steps and create a business option or a business topic and more than one business
option.
Make sure that you select Visible in Fine-Tuning and, if appropriate, Mandatory for Go-Live for the
business option to which you want to assign the BC set that you created to make your BC view
accessible in fine-tuning.
c. In the Solution Explorer , right-click the .bac file ( ) and select Activate to make the business option
available in the BAC.
6. Open your BC view for testing in the cloud solution by doing the following:
Log on to the cloud solution as a business user.
a.
b. In the cloud solution, in the Business Configuration work center, open the Implementation Projects
view.
c. Select a project and click Edit Project Scope .
The Edit Project Scope guided activity is displayed.
d. Follow the guided activity and answer the scoping question for your business option with Yes.
The business topic or business option you created is displayed in the Scoping phase under Scoping
Element. The description and scoping questions you defined are displayed in the Questions phase.
When you finish the guided activity, the activity you assigned to your business option is added to the
activity list.
e. In the Implementation Projects view, select the implementation project and click Open Activity List .
The Activity List guided activity opens and displays the Prepare phase. Activity List displays all activities
that are mandatory for go-live. You must add any activities that are optional manually. For information
about adding optional activities, see the activity list documentation in the cloud solution.
f. In the Activity List , click Hide Phased List and search for your activity by the activity description you
defined in the studio.
g. Select your activity and click Open .
Your BC view opens and you can test the result.
If you have assigned more than one BC view to the same business option, a fact sheet with the
links to all of the views is displayed when you click the activity.
See Also
Business Configuration Quick Guide [page 294]
Overview
You can create a fine-tuning project template in the studio as part of a solution. Fine-tuning project templates provide
sample content for a specific scenario that is defined by SAP, such as Financials Chart of Account. The fine-tuning
activities you need to complete for the template are explicitly listed.
Prerequisites
You have created and opened a solution in the studio. For more information, see Create a Solution [page 162] .
Procedure
1. In the Solution Explorer , right-click your solution and click Add New Item .
The Add New Item dialog opens.
2. Select SAP Business Configuration Implementation Project Template .
3. Enter a name and click Add .
The Create Implementation Project Template dialog opens.
4. In the Create Implementation Project Template dialog, do the following:
a. Enter a name and a description.
b. From the Activity Group list, select the scenario for which you want to create a template, for example,
Financials Chart of Account .
Information about the required scope of the template and the fine-tuning activities you need to
complete is displayed under the name of the activity group (currently: for Financials Chart of
Account ).
c. Click OK to save the template.
A new item with the file extension .bct ( ) appears in the Solution Explorer under your solution.
5. Right-click the .bct file and select Activate .
The status of the template changes to Active .
6. Right-click the .bct file and select Open.
The template opens in a document window.
7. Under Scoping and Fine-Tuning, click Edit Project Scope .
The logon screen of the SAP cloud solution opens in your browser. Do the following:
8. Enter the user name and password that you entered when logging on to the repository.
If you have created a fine-tuning project template for the Financials Chart of Account activity
group, select Financial Management and Accounting General Ledger .
d. In the Questions step, answer the relevant scoping questions based on the information displayed under
Activity Group and click Next .
Select Financial and Management Accounting General Ledger General Ledger and
under Income Statement by Function of Expense , select the In Scope checkbox. Confirm the
Review Status popup by clicking Yes.
e. In the Review step, review your scope changes and click Finish.
f. In the Confirmation step, click Close.
9. In the studio, refresh the template by clicking Refresh in the document window and then click Confirm
Milestone: Design Accepted .
In the cloud solution, the Confirm Milestone: Design Accepted view opens.
10. Select Design Accepted and click Confirm to confirm that you have finished defining the scope of your
template. Confirm the Design Accepted popup by clicking Yes.
You cannot move on to the next phases until you have confirmed this milestone. The confirmation
process can take up to 30 minutes.
11. In the studio, refresh the template by clicking Refresh in the document window .
The links to the individual activities that you need to complete are activated.
12. Complete the activity list by clicking the links to open each activity in the fine-tune phase of the implementation
project.
Result
You have created a fine-tuning project template in the studio and predefined the fine-tuning activities for a specific
scenario. You can now complete your implementation project template. For more information, see Business
Configuration Quick Guide [page 294] .
See Also
Complete the Activity List [page 324]
You can create a tax decision tree in the studio to automatically determine a tax event for a country that does not
have an SAP country version in SAP Business ByDesign.
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
Prerequisite
You have created and activated the tax content of the country for which you want to create the tax decision tree. For
more information, see Create Tax Content for Non-Localized Countries in the SAP Cloud Applications Studio .
Procedure
1. In the Solution Explorer , do the following:
a. Select the Withholding Tax checkbox if you want to create the decision tree for withholding tax
determination.
b. Click Add New Item . The Add New Item dialog opens.
c. Select Tax Decision Tree and click Add . The Tax Decision Tree Wizard opens.
2. In the Create Decision Tree step, do the following:
a. Add a Name (2 characters only) and a Description .
b. Select a country from the dropdown list and specify a date from which the decision tree is valid.
c. Click Next to go to the next step.
3. In the Define the Decision Tree Structure step, do the following:
a. Click Add Question . The system creates a root node where you can add your first question.
b. Double-click the root node to define the question type. The Question Form dialog opens where you can
choose from three different parameters: Question, Result, and Error .
c. If you select Question and click OK, the system gives you an option to enter a Question, select a Test
Parameter , Comparison Parameters , and Comparison Value .
d. Specify the question and select the required test parameter, comparison parameters, and comparison
value.
Tax Exemption Reason Code Tax Type, Taxable Country, Tax exemption reason code value
Taxable Region
PartnerTaxGroup Taxable Country, Partner Role Withholding Tax Rate Type value for
[values -SF (Ship From), ST (Ship the corresponding tax type selected
To), CF (Contract From), CT in the context parameter
(Contract To)], Tax Type, Taxable
Region
IncomeType Taxable Country, Tax Type Income type value for the
corresponding tax type selected in
the context parameter
e. Click OK.
The system adds the question to the tree.
f. Click Add Question again. The system creates two nodes: True and False. Double-click True to add a
question as above. Similarly add a question to False. Continue the steps till you reach a result or an
error and click OK to finalize your decision tree.
g. Click Next to go to the Review step.
4. In the Review step, check that the information you have entered is correct and then click Finish.
A new item with the file extension .bccxtax ( ) appears in the Solution Explorer under the project node.
5. In the Solution Explorer , right-click the .bccxtax file and select Activate .
6. In the Solution Explorer , right-click your solution and select Deploy Business Configuration to be able to use
your decision tree in a solution.
Result
You have created a tax decision tree, which you can use to determine the tax event when you process an invoicing
document in the SAP Business ByDesign system.
Overview
You can match business requirements to the capabilities of your solution by completing an activity list of the
implementation and project management activities that customers need to perform before the solution can go live.
You do this in the Prepare phase, the Fine-Tune phase, and the Integrate and Extend phase of an implementation
project.
The system generates the activity list based on the scope defined for the implementation project template. The
activity list is divided into separate phases and includes all mandatory implementation and project management
activities that customers need to complete before the solution can go live. You can add optional activities to the
activity list and complete them; most optional activities relate to the Fine-Tune phase but may also relate to other
phases. In the Prepare phase and the Fine-Tune phase, you must confirm milestones that allow you to track the
status of your implementation project template.
Prerequisites
You have created and activated a fine-tuning project template in the studio and you have defined the scope of this
template in the SAP cloud solution. For more information, see Create a Fine-Tuning Template [page 320] .
Procedure
1. Open the activity list to complete it for your implementation project template by doing the following:
a. In the studio, in the Solution Explorer , right-click the .bct file and select Open Project Overview.
The logon screen of the SAP cloud solution opens in your browser.
b. Enter the user name and password that you entered when logging on to the repository.
The Project Overview view opens.
c. Check that the description is correct and that the name in the Title field is the name of your
implementation project template with your project namespace as the prefix.
d. Click Open Activity List .
The Activity List guided activity opens and displays the Prepare phase.
To ensure that an implementation project template and its solution remain consistent, always open
an implementation project template in the Project Overview view by using the Open Project
Overview function in the studio.
Some activities contain data that cannot be copied to another system; therefore, they need to
be repeated in other systems. You can identify these activities in the Repetition Required column.
If you complete an activity in the development environment that requires repetition, the
customer must repeat this activity in the production system. Therefore, we recommend that
you provide documentation for these activities in your Solution Documentation. For more
information, see Documentation Types in the SAP Solution
(ESS_CON_PDI_MainDocTypes.xml). and Templates Quick Guide
(TemplatesQuickGuide.xml)..
c. On the Activity List screen, change the status of each completed activity to Closed. To do this, select
each activity, click Change Status , and then select Closed.
The Activity List screen indicates whether an activity is open, in process, or closed.
At the top of the screen, you can view the overall progress for each phase of your implementation
project template. At the bottom of the screen, you can view the total number of activities in the
activity list for the selected phase and the numbers of open, in process, and closed activities.
● Additional Information
Some activities in this phase have additional information to assist customers in
completing them. You can access the additional information either directly in the Help
Center of the relevant activity under Help Resources by clicking Help Center in the
Infobar .
● Mandatory and Optional Activities
By default, the activity list contains only mandatory activities. In the Fine-Tune phase and
the Integrate and Extend phase, you can add optional activities to the activity list.
● Translate Configuration Settings
You can only provide your configuration settings in fine-tuning activities in one language.
● Restore Default Fine-Tuning Settings
To avoid causing inconsistencies, you cannot delete standard fine-tuning settings.
The activities you need to complete in the Integrate and Extend phase depend on the scope of your
implementation project template.
In the studio, you can create your own business object and define its nodes and relevant elements in the business
object definition. After you have defined your business object, you can generate the screens for your business object.
Availability
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
Scripting Language
The scripting language is used to define business objects and business object extensions as well as to implement
the business logic for cloud partner solutions. This lightweight language is easy to learn and to use with its focused
set of features.
Screens
In the Create Screens dialog, you select the screens you want to use for your solution.
For more information see Screen Types [page 333] .
For an example on how to build a solution, see Example: Building a Solution [page 91] .
Tasks
If you use a template to create a new project item, do not change or delete the extension of the item
name. For example, do not delete the .bo file extension of the business object file.
A new item with the file extension .bo appears in the Solution Explorer .
A document window opens that displays your business object file in a code editor.
For more information on the syntax of business objects, see Syntax for Business Object Definitions [page 170].
Enter a Business Object Definition
For more information about entering a business object definition, see
[page 340].
Create a Query
In the studio, you can define queries that allow you to access and combine the fields defined in different nodes or
business objects in a single query and to combine data from different business object nodes. You can also use a
query to make a custom business object available in the enterprise search.
For more information about creating a query, see here [page 342] .
For more information about defining access control, see here [page 345] .
See Also
Maintenance of Business Objects [page 338]
In the studio, script files are used to implement the business logic for actions, events or validations of business object
nodes.
Depending on whether you are implementing the business logic for business objects or the business logic for
business object extensions, you can create the following script files:
Action —
AfterLoading event —
— Action validation
Features
Actions
An action is an element of a business object node hat describes an operation performed on that node, for example,
setting a status. The action operates on a set of node elements or instances that have been created or changed.
Action script files are provided if you have added actions to your business object definition.
Event
The system executes an event implemented for custom business objects in ascending order from bottom to top,
that is, from subnode to root node. In case of events implemented for extended business it is the reverse: the system
executes an event in descending order from top to bottom, that is, from root node to subnode.
● BeforeSave
This event determines the current data of a node.
BeforeSave
Please note that if a script file has modified a business object node, the system doesn't
execute the code of an AfterModify script file for this same node anymore.
The system doesn't execute an AfterLoading event for a node instance that is being initially created.
To calculate a transient field at this point in time,AfterModify
you can implement an event.
Validations
A validation is used to check if particular conditions are fulfilled, such as the conditions for saving a business object
node. Validations can only read data and cannot change any values. The result of a validation must always evaluate
to a Boolean value, that is, to
true or false. The system executes validations in no particular order. It executes all
of the validations, that is, even if a validation already returned false, the remaining validations are executed.
A validation that checks whether the string “0243” is contained in the elemData field:
if (this.elemData.Contains("0243")) {
return(true);
}
else {
return(false);
}
You can create action validation script files only in solutions or solution templates that have been
created with the 1302/1211 compiler version or higher. You can find the compiler version in the
Properties window of your solution.
Mass Enablement
You can specify whether a script file is to be executed for multiple instances of business object nodes, which is
referred to as mass enabling.
Maintenance Mode
You can delete a script file when your solution is in maintenance mode. For more information, see Maintenance Mode
[page 166] .
If you use the this keyword in the coding of a mass-enabled script file, this represents a collection of business
object node references.
8.3.2.2 Queries
Overview
A query is a service operation that can be used for search and information retrieval operations. It is defined at a
business object node and has selection parameters. The result structure is defined by the business object node
the query is specified for; however, it may also include elements from different business object nodes.
You can use queries to display business object data directly in an object worklist (OWL) using the user interface
designer (UI Designer) or to access the data using the scripting language. For more information about the usage in
UI designer, see Model an Object Work List [page 576] and Configure a Query [page 608] .
Query Types
Default Query
By default, each business object node of a custom business object has a query called QueryByElements. The query
contains all elements of the node as selection parameters and the query result contains instances of this node. In
general, the QueryByElements query has a linear dependency on the number of instances in the business object
node (t = O(n), where n is the number of business object instances in the database).
The QueryByElements query is a simple query and does not provide full-text indexing. We therefore recommend
that you use the default query when:
● The selection parameter list contains an equal condition on an element that is the alternative key of the node.
An alternative key is supported by an index so the runtime dependency is t = O(log n).
If you define an association in your business object as relevant for access control by using the
RelevantForAccessControl annotation and you use the default QueryByElements query, error
messages related to role-based access management (RBAM) might occur if you use the query to control
access. These RBAM error messages are suppressed when you create a complex query in your solution.
Complex Query
A complex query is a custom query that allows you to access and combine data from different business object nodes
or business objects in a single query. Complex queries support full-text indexing for all query elements (t = O(log n).
We therefore recommend that you define a complex query when a large number of records is expected in the node.
In the studio, you can create queries using the Query Wizard. For information, see Create a Query [page 342] . When
you define a query, you must specify which business object fields to include in the query. You can also specify which
elements you want to:
If an [1,n] association is defined for an element, you cannot use the field in the query result. We therefore recommend
that you select the most detailed node as the parent node. For more information about associations in business object
definitions, see Association [page 175] .
If you want to implement instance-based access control for the results displayed in an object worklist
(OWL), you must create a complex query. You cannot create a default query for this scenario. For
information about defining access control, see Define Access Control [page 345] .
Executing Queries
● Execute Function in Script Files
In script files, you typically use the Execute function which allows to pass selection parameters to the query
and returns a collection of node instances that match the selection. A query reads the data of a node directly
from the database which means that unsaved data that has been created or modified in the current session or a
session running in parallel is not taken into account.
If a query returns a collection of nodes, the collection is not sorted by default. However, if you have defined a
query on a custom business object, you can specify that the result is to be sorted by specified elements.
Another option is to use the
Sort Collection functions (see Sort Collection [page 224] ). Please note that
sorting a collection in memory is slower than sorting performed by a query that is executed on the database.
If you need to process only a small part of the result and the number of nodes matching the selection criteria
is quite high, you can optimize the amount of data that needs to be read from the database by using a sort
option. For example, if you want to find the last document saved by a particular user and the search criterion
The studio enables you to create screens for your business object. In the Create Screens dialog, you are prompted
to select the screen types you want to use. For information on how to create screens, see Generate Screens for a
Business Object [page 350] .
You can select the following screen types:
Screen
Type Description Example
simple Create
operation).
Fact Sheet
Quick View
Quick Create
Thing Inspector
Overview
When you create the screens for your business object in the studio, you are asked to select the screen navigation
you want to use. The following sections describe the two types of navigation that are available (object-based and
thing-based navigation) and help you decide when to use what.
Object-Based Navigation
This is the navigation pattern used in SAP Business ByDesign.
When you use object-based navigation, you enter the application via work center and work center view to get to the
object work list. Then you leave the object work list to work on quick activity or object instance floorplan screens.
The following graphic shows the various screens that you can create for object-based navigation:
Thing-Based Navigation
This is the navigation pattern used in the other solutions. The fundamental integral part of thing-based navigation is a
thing.
What Is a Thing?
A thing is an object a user works with, such as product or business partner. It contains content that has been collected
from various applications, actions, and business objects. A thing is supposed to ensure easy consumption of that
content and a consistent user experience. It is assigned to a thing type.
For the thing ABC Corporation , the thing type would be Business Partners.
When you use thing-based navigation, you also navigate via a work center and a work center to an object worklist as
in object based navigation. However, in thing-based navigation, you can call up quick view and quick create screens
without leaving the object work list or go to a thing inspector screen.
The following graphic shows the various screens that are part of thing-based navigation:
Screens Using Thing-Based Navigation: (1) Work Center, (2) Work Center View, (3) Object Work List, (4) Quick Create (QC), (5)
Quick View, (6) Thing Inspector, (7) Thing Type, ES = Enterprise Search; FD = Feeder
See Also
Generate Screens for a Business Object [page 350]
Screen Types [page 333]
Overview
A customer-specific solution is in maintenance mode, if it has been assembled and downloaded; the solution status
then is Assembled. You can make changes to the solution in a patch; however, you can only make restricted changes
to certain content types. These change and delete restrictions ensure that you do not make changes to a solution
that could lead to loss of data or create inconsistencies or errors on a customer's production tenant.
Availability
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
association ToBonusPlan
to BonusPlan using ID —> association ToBonu
Multiplicity of node see see see The following changes are allowed:
comments comments comments [0,1] —> [0,n]
[1,1] —> any
[1,n] —> [0,n]
The following changes are not allowed:
[0,1] Ð> [1,1] or [1,n]
[0,n] —> any
[1,n] —> [0,1] or [1,1]
Multiplicity of association see see see Only the following multiplicity is allowed:
valuation comments comments comments [0,n]
Association valuation condition Yes Yes not Changing the conditions within a valuation
applicable expression is allowed.
● If an integration scenario
has been defined, this has to
be adapted.
8.3.3 Tasks
In the code editor of the studio, you define your business object by describing the namespace and by adding business
object elements. To describe the structure and interface of the business object, you use specific keywords and
functions.
For more information on the syntax of business objects, see Syntax for Business Object Definitions [page 170] .
Prerequisites
You have opened your solution.
Procedure
1. Select the document window of your business object.
In the code editor, the following information is displayed:
●
The import statement for the AP.Common.GDT SAP namespace that contains the standard data
types:
import AP.Common.GDT as apCommonGDT
You can import further namespaces so that you can use SAP business objects and data types when
you define elements and associations.
● The businessobject keyword and the name of your business object, for example, BonusRule.
.bo
The names of the file and of the business object must be identical. Do not change the name
of the business object in the coding.
2. Define the nodes of your business object and their features, such as elements, actions, and associations with
other nodes.
}
For more information about the keywords that you can use, see Syntax for Business Object Definitions
[page 170].
Result
You have defined your business object and can now activate it. For more information, see Activate a Business Object
[page 342] .
Overview
You can define a label and a tooltip for a business object field. If you then add the business object field to a screen:
the label is displayed on the screen instead of the field name
●
● the tooltip is displayed when you place the cursor on the field
Procedure
1. Create a business object element with a label and a tooltip using the following syntax:
[Label("<labelname>")][Tooltip("<tooltipname>")]element<elementname>:<datatype>;
For more information, see Business Objects Quick Guide [page 326] .
2. Generate screens for the business object. For more information, see here [page 350] .
Result
In the Solution Explorer in the studio, right-click your screen and select Preview Screen. You are prompted to log on
to the cloud solution.
The label is displayed for the business object field. The tooltip is displayed when you place the cursor on the field.
See Also
Label (Business Object) [page 182]
Tooltip (Business Object) [page 185]
Once you have entered the business object definition in the code editor and saved it, you need to activate the
business object. This ensures that the runtime objects are generated that are required for the business object to function.
Prerequisites
You have defined your business object in the code editor. For more information, see Enter a Business Object
Definition [page 340].
Procedure
In the Solution Explorer , right-click your business object and select Activate .
The content of your business object is activated.
In the studio, you can define queries that allow you to access and combine the fields defined in different nodes or
business objects in a single query and to combine data from different business object nodes. You can also use a
query to make a custom business object available in the enterprise search.
You can use these queries to include the query data in an object worklist (OWL) and to access information from
different nodes and business objects using the scripting language. You must create a query to implement
instance- based access control for the results displayed in the OWL.
Prerequisites
● You have created and opened a solution in the studio. For more information, see Create a Customer-Specific
Solution [page 162].
● You have created and activated at least one custom business object in your solution. For information, see
Business Objects Quick Guide [page 326].
For more information, see Generate Screens for a Business Object [page 350] .
Procedure
1. In the Solution Explorer , right-click your business object and select Create Query.
The Query Wizard opens.
2. In the Create a Query step, under Basic Information , define your query by doing the following:
a. Select a business object, if your solution has more than one business object.
b. Select a parent node to link to the query, if your business object has more than one node.
The parent node is the starting point for the field selection in the Select Query Fields step. If
a [1,n] association is defined for a field, you cannot use the field in the query result. Therefore,
we recommend that you select the most detailed node as the parent node. For more
information about associations, see Syntax of Business Object Definitions [page 170].
● Description Field
The field of the business object to be used in search queries to filter search results by
description. The text fields of the anchor node of the query or the subnodes of the anchor node of
the query can be used.
b. Under UI Navigation, define the screen you want to open when an end user selects this business object
in the search results:
In the Navigation Target UI field, select the quick In the Thing Type field, select the thing type floorplan
activity floorplan ( .QA.uicomponent) of your ( _TT) of your solution.
solution. Additionally, you can also select Enable Feed, if you
When you select the Operation , the Inport field is filled want to reference the business object in the Feed view.
automatically.
c. Click Next .
4. In the Select Query Fields step, select the fields you want to include in the query.
5. In the Define Query Parameters step, refine the properties of each query parameter.
a. Optional: Change the parameter field name.
b. Optional: Select the Selection checkbox if you want to include the parameter as a search parameter.
c. Optional: Select the Basic Find checkbox if you want the parameter to be used in a text search.
d. Optional: Select the Result checkbox if you want the parameter to be displayed in the query result.
e. Click Next .
6. In the Review step, check that the information you have entered is correct and then click Finish.
A new item with the file extension .qry appears in the Solution Explorer .
7. In the Solution Explorer , right-click the business object and select Activate .
Result
You have created a custom query in your solution. In the Solution Explorer , a [query name].qry file ( ) is
displayed. You can now use the scripting language to:
● Access your query
● Set the query parameters in order to be able to return a list of business object instances based on these
parameters
● Execute the query
For more information, see Execute a Query to Explore a Business Object [page 52] .
The custom business object is available in the enterprise search, once the target UI has been assigned to a user. For
information about assigning access rights, see the “Business Users Quick Guide” in the documentation of the SAP
cloud solution.
Overview
In the studio, you can implement instance-based access control for a business object you created by referencing an
SAP business object for which an access context is defined.
Access rights in the cloud solution are based on work center and work center views. For each view, an access
context is predefined that defines for which business data administrators can restrict user access rights, for example,
by company, site, sales, or employee. For example, if business users have access rights for a work center view but
should only see company-specific data, you can define your business object so that it inherits the access control list
(ACL) from an SAP business object that is assigned the company access context.
Prerequisites
● An SAP access context exists that you can use for your use case.
For more information about access contexts and access restrictions, see the relevant documentation of the
cloud solution.
● An SAP business object exists with the necessary access context and an access control list (ACL) is directly
assigned to this business object.
Procedure
1. In the studio, define a business object with an association that is marked as relevant for access control by
doing the following:
a. Create a business object, for example, with the name AccessControlByCompany, and enter your
business object definition.
For information about creating and defining a business object, see Business Objects Quick Guide
[page 326].
b. Add an element to the business object root node that you use to find the relevant business object
instance.
You want the access context to be controlled by company, so you define a Company element
of type ID:
element Company : ID;
c. Add an association to the business object that is used for access control and mark the association with
the annotation [RelevantForAccessControl].
d. Add a status element to the business object root node to handle errors, typically
ConsistencyStatusCode :
element Consistent :ConsistencyStatusCode;
2. In the studio, create a query using the Query Wizard to include the query data in an object worklist (OWL).
For information about creating a query, see Create a Query [page 342] .
For correct instance handling, a query based on Fast Search Infrastructure (FSI) is necessary. By
default, the query includes the ACL data even if you do not select this information.
3. Create an Event-BeforeSave.absl script file and define an association for access control.
For information about creating script files, see Define the Business Logic for a Business Object
[page 349] .
a. In the Event-BeforeSave.absl script file, add the query you created to get the instance for access
control.
In this example, access is controlled by company and the query uses the company at the
root node as the basis for selection.
b. Find the relevant instance in the query and set the association to this instance. foreach
(companycontrol in QueryResults) { this.For_Access_Control = companycontrol;
break;
}
c. For error handling, set a status on the business object root node.
In this example, the consistency status codes are “2” for consistent and “3” for
inconsistent.
b. In the Properties window, under RBAMData, check that the following entries exist:
● Access Check Mode is set to Privileged Except Access.
● Authorization Classification Code is set to Application .
c. Open the collection of the Access Controlled Business Object .
The Select Business Objects dialog box opens.
d. Check that the correct business object is selected and that the Unrestricted Access checkbox is not
selected.
e. Save and activate your changes; then close the UI designer.
Result
You have defined an association for access control, defined the access context for the work center view, and defined
access control for the screens for which you want to restrict access rights. You can now manage access rights for
business users in the cloud solution. For information, see Assign Access Rights [page 347] .
Overview
If you have implemented instance-based access control for a business object you created in the studio, you can
restrict read and write access in the SAP cloud solution on the basis of a work center view's access context.
Prerequisites
You have defined associations that are relevant for access control in your business object and assigned the SAP
business object that controls access to the work center views. For information, see Define Access Control
[page 345] .
Procedure
1. In the SAP cloud solution, disable the access rights of all users for the relevant work center views.
a. Open the Application and User Management work center User and Access Management Business
User subview.
b. Select the user whose access rights you want to assign using the access control settings you have
defined for your business object; then click Edit and choose the Access Rights option to open the
access rights editor.
c. On the Work Center and View Assignment tab, find your work center in the list of available work centers
and clear the Assigned to User checkbox.
d. Save your changes and log off from the system.
Your changes are applied the next time you log on.
2. In the studio, update the authorization and access rights by doing the following:
● In the Solution Explorer , right-click your solution and select Update Authorization and Access Rights .
You must disable the access rights of all users before you update authorization and access rights in
the studio.
For more information about assigning access rights to business users in the SAP cloud solution, see
Business Users Quick Guide under Assign Access Rights.
For more information about access contexts and access restrictions in the SAP cloud solution, see
User and Access Management under Access Restrictions .
Overview
To define the business logic for your business object in the studio, you use event, action and validation script files.
For more information, see Actions, Events, and Validations [page 329].
Prerequisites
● You have saved the relevant business object.
● In order to define actions, you must have added them to your business object definition before. For more
information, see the action [page 172] keyword in Syntax for Business Object Definitions [page 170] .
Procedure
1. In the Solution Explorer , right-click your business object and select Create Script Files .
2. In the Create Script Files dialog box, for each of the business object nodes, select the events and validations
that you want to implement.
The system selects actions by default.
3. Optional: If you want script files to be mass-enabled, select the Mass Enable checkbox for the relevant actions,
events or validations.
4. Click OK.
The studio generates script files in the Solution Explorer with the file extension .absl . The script files appear
for an
below the corresponding nodes of your business object. For example, Event-AfterModify.absl
event, Validation-OnSave.absl for a validation, or Action-Release.absl for an action. Each script file
opens in a separate document window.
5. In the code editor, select the script file you want to edit and enter the code for the event, validation, or action.
For more information about the methods and keywords you can use, see
Syntax for Implementation of
Business Logic [page 198] .
6. Save your script files.
Overview
In the studio, you can generate screens in the SAP cloud solution based on your business object definitions, for
example, work centers, floorplans, and fact sheets.
In the studio, you can generate screens in the SAP cloud solution based on your business object definitions. For
example, you can generate work centers, floorplans, and fact sheets. These screens then automatically contain an
initial set of the fields that you have defined for your business object. The screens behave according to the
business logic that you have implemented for your actions and events. You use the user interface designer to
enhance the screens and adapt them to your needs.
You can also use your generated screens for mobile solutions. For more information, see step 3 of
this document and Mobile Solutions
[page 639] .
Availability
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
Prerequisites
● If you generate screens based on an SAP business object, the business object must be released for the SAP
public solution model (PSM).
● If you generate screens based on your business object, the business object must be activated. For more
information, see Business Objects Quick Guide [page 326].
Procedure
1. In the Solution Explorer , do one of the following:
● If you generate screens based on an SAP business object, proceed as follows:
1. Right-click the project in your solution and select Add New Item .
2. Select the Business Object template, enter a name and click Add .
If you generate screens based on one of your business objects, right-click the business object and
●
select Create Screens.
2. In the Create Screens dialog box, enter a name for the new screen or set of screens.
The system uses this name together with the abbreviation of the screen type as a file name as follows:
[screen name]_OWL.OWL.uicomponent.
3. Under Devices Supported , you can select the devices on which a user can display the screens. The options
available are Desktop Only, Desktop and Tablet , and Mobile Only. The default option is Desktop Only .
4. Select either the screen types you want to create or a whole screen scenario with navigation paths.
You can select the following screen types:
For detailed information on the various screen types, see Screen Types [page 333] .
Screen Scenario with Thing-based Navigation (not available for SAP Business ByDesign)
If you select Screen Scenario with Thing-based Navigation (not available for SAP Business ByDesign) , the
system generates the following screens and the navigation paths that you need to be able to navigate from
one screen to the next:
Object Work List, Quick Create, Quick View, Thing Inspector, Thing Type, Work Center, and Work Center View.
Short ID
If you select Work Center View or a screen scenario containing a work center view, an additional field
appears where you must enter a Short ID of up to 13 characters. It is preceded by the technical name
of the solution and followed by _WCVIEW: [Technical name of solution]_[Short
ID]_WCVIEW. The short ID helps you identify the work center view in the UI designer and in the SAP
cloud solution. After you have entered the short ID, it is displayed in the following places:
● UI designer: in the Property Explorer under Component Info in the Short ID field
● SAP cloud solution: Application and User Management Work Center and View
Assignment
5. Click OK.
Result
In the Solution Explorer , the files for the screens are listed. The system also creates a port type package file (.ptp
file) that contains the navigation, for example, from the object work list to the quick activity floorplan.
Overview
Object Work Lists (OWL) generated for custom business objects allow you to export the OWL data to a Microsoft
Excel file. The file is based on a standard template, which you cannot change. However, you can format the
generated spreadsheet as required.
Prerequisites
● You have opened your solution containing an active custom business object.
You have created a floorplan scenario with navigation.
●
Procedure
1. Log on to the SAP cloud solution and select Application and User Management Business Users .
Select you user and select
2. Edit Access Rights .
3. In the Work Center and View Assignment view, select the work center you have created and assign it to your
user. Click Save and Close.
4. Log off from the SAP cloud solution. Log on again and navigate to the work center you have assigned to
your user.
The work center you have created is displayed. It contains an Export button.
5. Click New and create several instances of your business object. .
6. Complete the fields and select Save and then Close to get to the entry screen again.
7. On the OWL, click Go to view the data records you have created.
8. Click Export To Microsoft Excel .
Result
Microsoft Excel opens. The data records are displayed on a spreadsheet. You can save the data as it is or format it
to suit your requirements.
See Also
Example: Export OWL Data to Excel [page 353]
Overview
In this example, you create a solution with a custom business object. You generate a screen scenario with object-
based navigation and test the work center in the SAP cloud solution. After that, you create data records, which you
export to Microsoft Excel.
Procedure
1. Create a solution and generate the floorplan scenario.
Log on to the studio and create a new solution.
a.
b. In the Solution Explorer , click the Add New Item button.
The Add New Item dialog opens.
c. Select Business Object , enter a name (for example, OWL_EXPORT.bo) and click Add .
The Business Object Selection dialog opens.
d. Enter the following code:
import AP.Common.GDT;
businessobject OWL_EXPORT {
[Label("Identifier")] element ID:ID;
[Label("Name")] element name:LANGUAGEINDEPENDENT_MEDIUM_Name; [Label("Description")] elemen
}
Save and activate the business object.
e. Right-click your solution and select Create Screens.
The Create Screens dialog opens.
f. Select a screen scenario, enter a Short ID, and click OK.
The screens are generated and the corresponding files are displayed in the Solution Explorer .
2. Assign the work center and perform a test.
a. Log on to the SAP cloud solution and select Application and User Management Business
Users .
b. Select you user and select Edit Access Rights .
c. In the Work Center and View Assignment view, select the work center you have created and assign it
to your user. Click Save and Close.
d. Log off from the SAP cloud solution. Log on again and navigate to the work center you have
assigned to your user.
The work center is displayed. It contains an Export button.
Export Button
e. Click New.
f. Create several instances of your business object. Complete the fields and select Save and then
Close to get to the entry screen again.
Entry Screen
g. On the OWL, click Go to view the data records you have created.
Result
Microsoft Excel opens. The data records are displayed on a spreadsheet. You can save the data as it is or format it
to suit your requirements.
Download
Overview
You can use an embedded component to ensure that a change history is written for all changes made to your custom
business object. After adding the embedded component to your business object, you can display the change history
in the SAP cloud solution on the Changes tab of your work center. All changes such as add, create, and delete are
displayed in a list.
Prerequisites
● You have created users with the Developer and Business User roles. For more information, see User Setup
Quick Guide [page 30] .
● You have created and opened a solution in the studio. For more information, see Create a Customer-Specific
Solution [page 162].
● You have created a business object in your solution and entered a business object definition. For more
information, see Business Objects Quick Guide [page 326].
● You have created an object instance floorplan (OIF) for your business object. For more information, see
Generate Screens for a Business Object [page 350].
Procedure
1. Add an embedded component to the object instance floorplan (OIF) you created for your business object.
You can copy the name and namespace from the BO Browser/Data Model but copy and paste
does not work. You can also copy and paste the namespace from the Solution Properties in the
studio.
See Also
Create a BC Set Using an SAP BCO [page 312]
8.4 Extensibility
Business object extensions enable you to enhance business objects that are provided by SAP by adding extension
fields to them.
After you create and activate a business object extension, you can add the extension field to the corresponding
forms, screens, reports, and search categories.
Availability
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
Most business objects provided by SAP contain both extendable and non-extendable nodes. However, some
business objects do not contain any extendable nodes and cannot be used with business object extensions. You
can only create business object extensions for business objects that are provided by SAP. Other business objects
cannot be used with business object extensions.
For example, an administrator can add an extension field with the field type “Text” to the business context Account
- General Information and then add the extension field to the end-to-end sales process flow.
Tasks
For more information about this task, see here [page 361] .
For more information about this task, see here [page 362] .
For more information about this task, see here [page 364] .
For more information about this task, see here [page 366] .
For more information about this task, see here [page 368] .
For more information about this task, see here [page 369] .
● the tooltip is displayed when you place the cursor on the extension field
For more information about this task, see here [page 367] .
See Also
Process Extension Scenario Quick Guide [page 375]
Syntax for Business Object Extension Definitions [page 188]
Maintenance of Business Object Extensions [page 360]
Overview
A customer-specific solution is in maintenance mode, if it has been assembled and downloaded; the solution status
then is Assembled. You can make changes to the solution in a patch; however, you can only make restricted changes
to certain content types. These change and delete restrictions ensure that you do not make changes to a solution
that could lead to loss of data or create inconsistencies or errors on a customer's production tenant.
Decimal annotation No No No
See Also
Business Object Extensions Quick Guide [page 358]
8.4.1.3 Tasks
Overview
You can create an extension for an SAP business object (business object extension) and add new fields to the
extendable nodes of this business object. The extendable nodes are automatically provided in a template, to which
you can add additional fields.
Prerequisites
You know how to work with business objects and how to use the scripting language.
Procedure
1. In the Solution Explorer , expand your solution, right-click your project file, and select Add New Item .
The Add New Item dialog appears.
2. Select Business Object Extension .
3. Enter a Name for your business object extension and click Add .
You cannot use a name that is already used for a business object or business object extension in your
solution.
Example
This example shows an extension of the Lead business object provided by SAP. Two text elements, Test_Text1
and Test_Text2 , have been added to the business object extension – one at the root level and one at the item level.
import AP.Common.GDT;
import AP.CRM.Global;
[Extension] businessobject AP.CRM.Global:Lead {
element Test_Text1:LANGUAGEINDEPENDENT_EXTENDED_Text;
node Item {
element Test_Text2:LANGUAGEINDEPENDENT_EXTENDED_Text;
}
}
See Also
Syntax for Business Object Extension Definitions [page 188]
Business Object Extensions Quick Guide [page 358]
Overview
You use event script files and validation script files to define the business logic for your business object extension.
For more information about events and validations, see Actions, Events, and Validations [page 329].
Prerequisites
The extended business object must be activated if you want to access an extension field in your script file.
Procedure
1. In the Solution Explorer , right-click your business object extension and select Create Script Files .
The Create Script Files dialog box is displayed, listing all the nodes of the business object. You can only select
nodes that are released as part of the public solution model (PSM).
If you use the this keyword in the coding of a mass enabled script file, this represents a collection
of business object node references.
4. Click OK.
In the Solution Explorer , script files with the file extension .absl appear below the corresponding nodes of
your business object. Each script file is opened on a tab page in the code editor.
5. In the code editor, select the script file you want to edit and enter the coding.
For more information about the methods and keywords you can use, see
Syntax for Implementation of
Business Logic [page 198] .
6. In the File menu, click Save.
7. In the Solution Explorer , right-click the script file and select Activate .
This function is not available for solution templates. For more information, see Solution Templates
[page 159].
Prerequisite
You have created and activated a business object extension that contains at least one extension field.
Procedure
1. In the Solution Explorer , right-click the business object extension ( .xbo file) and select Enhance Screen.
The Enhance Screen dialog appears and lists the screens that can be modified for this business object
extension.
2. Select the screen to add the extension field to, and click OK.
The UI designer opens.
3. In the Extensibility Explorer , select the Section Group or List to which you want to add the extension field.
4. Depending on the type of entity selected, click either the Add Extension Field to Section Group button or the
Add Extension Field to List button.
If you want the field to be read-only, select the Display Only check box.
6. Click Apply .
7. Click the Save button.
8. Click the Activate button.
The Activate Worklist dialog appears.
9. Select the screen you have modified and click OK.
See Also
Create a Business Object Extension [page 361]
You can add an extension field to the business object’s corresponding forms. You can either add the extension field
to an original form, or you can create a copy of a form and add the extension field to the copy.
This function is not available for solution templates. For more information, see Solution Templates
[page 159].
Feature Matrix
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
Prerequisites
● You have created a solution.
● You have created and activated a business object extension in that solution.
Procedure
1. Switch on admin mode
In the studio, right-click your solution and, in the Administration menu, select Switch On/Off Admin Mode .
2. Create a Copy of a Form (optional)
This option is useful if you want to be able to print different versions of a form. Example: Depending on
the selection by the business user, the preview is to show the standard print form or the extended print
form.
a. Right-click your business object extension ( .xbo file) and click Enhance Form.
The Enhance Form dialog appears.
b. Click Copy Form .
The Form Template Maintenance screen appears.
If you are not already logged on to the SAP solution, you will be prompted to log on.
To speed up the search, click Advanced. Enter the template name or template group and click
Go.
If you are not already logged on to the SAP solution, you will be prompted to log on.
c. Select the form template to which you would like to add the extension field and click Add Field and
Edit
Easy Form Editor .
The Easy Form Editor screen appears.
d. In the Sections area, select the section to which you would like to add an extension field.
The Details area lists the fields that can be added to the section.
e. In the Details area, select the extension field to add to the form, and set the Show attribute to Show
always.
f. To preview the form with the extension field, in the Preview area, click the Refresh button.
g. To save your changes, click Save.
h. To make your change visible to other users, click Publish and Close.
Additional Activities
To view the form template in the SAP solution, business users must create a form template rule.
See Also
Create a Business Object Extension [page 361]
You can add an extension field to a data source that is based on the same business object as the extension field.
You can then add the field to any reports based on the data source.
This function is not available for solution templates. For more information, see Solution Templates
[page 159].
The following table shows whether an extension field can be used as a key figure or characteristic.
Date Characteristic
Indicator Characteristic
List Characteristic
Text Characteristic
Time Characteristic
Prerequisite
The business object extension has been activated.
Procedure
1. Open your solution and select Administration Switch On/Off Admin Mode in SAP Solution .
.xbo
2. Right-click on your business object extension ( file) and click Enhance Report.
The Enhance Report dialog box appears.
3. Select the extension field you want to add to the report and click OK.
The Further Usage of Extension Field screen appears.
4. On the Data Sources and Reports tab, you can view all data sources available for the business context in which
you created the field. When you select a data source, all reports based on that data source are displayed in
the lower table.
5. To add the field to a data source, select the data source and click Add Field.
6. To add the field to an existing report based on this data source, select the report from the lower table and
click Add Field.
The report opens in admin mode.
7. In the Add Fields dialog box, select the Display in Report checkbox next to the extension field.
Characteristics are added to the report under Not Currently Shown and key figures are available under
Columns .
8. Click OK and close the report without saving.
The field will be available to all business users when they next access the report.
See Also
Create a Business Object Extension [page 361]
Overview
You can define a label and a tooltip for an extension field. If you then add the extension field to a screen:
the label is displayed on the screen instead of the extension field name
●
● the tooltip is displayed when you place the cursor on the extension field
Procedure
1. Create an extension field with a label and a tooltip using the following syntax:
[Label("<labelname>")][Tooltip("<tooltipname>")]element<extensionfieldname>:<datatype>;
For more information, see Create a Business Object Extension [page 361] .
2. Add the extension field to a screen. For more information, see here [page 363] .
Result
In the Solution Explorer in the studio, right-click your extended screen ( .xuicomponent) and select Preview.
The label is displayed for the extension field. The tooltip is displayed when you place the cursor on the field.
You can add an extension field to an enterprise search category. This allows users to search for the contents of an
extension field within a particular category, such as sales orders or suppliers.
This function is not available for solution templates. For more information, see Solution Templates
[page 159].
The following table shows which type of search can be used for each extension field type:
Time No No No No
Prerequisite
The business object extension has been activated.
Procedure
1. Right-click your solution and select Administration Switch On/Off Admin Mode in SAP Solution .
Right-click your business object extension (
2. .xbo file) and click Enhance Enterprise Search.
The Enhance Enterprise Search dialog box appears.
3. Select the extension field you want to add to the search and click OK.
The Further Usage of Extension Field screen appears.
If you are not already logged on to the SAP cloud solution, you will be prompted to log on.
4. On the Enterprise Search tab, you can view all enterprise search categories to which you can add the field.
This is determined by the business context in which you created the field.
Overview
You can define a message in a business object extension and raise the message in an event. Messages can only be
raised in the business object extension where they are defined.
● Warning
● Error
● Success
Prerequisites
● You have an open solution in the studio.
● You have created a business object extension ( .xbo) as part of your solution. This extension contains at least
one element and is activated.
Procedure
1. In the Solution Explorer , double-click the business object extension to open the file in the editing pane.
2. Use the message and text keywords to specify the name and content of the message, respectively.
Use the
3. raises keyword to specify which messages are raised for the individual nodes of the business object
extension.
message Warning_Message text "This is a Warning message with two parameters &1 and
You can include up to four parameters. For each parameter, you must specify the data type.
4. In your action or event script file, raise the message using the raise keyword.
import ABSL;
raise Information_Message.Create("I");
raise Error_Message.Create("E", "Error");
raise Warning_Message.Create("W", "Warning", 25);
raise Success_Message.Create("S", this.Test_Extension_Field);
Result
Messages appear on the user interface based on the actions or events that you defined.
See Also
Scripting Language [page 169]
Business Object Extensions Quick Guide [page 358]
Customers can enhance their SAP cloud solution by creating extension fields in the adaptation mode. In the studio,
you can create references to these customer-specific fields. After that, you can implement the business logic for the
referenced fields in script files of your solution.
● You can only reference a customer-specific field in the extension of a business object that has been
released in the public solution model (PSM).
What you need to know about the lifecycle management of field references
Uploading Field References
If you upload your solution with references to customer-specific fields, these fields must also exist in the SAP cloud
solution. If this is not the case, you need to create these fields manually in the cloud solution. The technical name
and the type of the fields must always be identical in your solution and in the SAP cloud solution.
Prerequisites
● In the SAP cloud solution, your customer has created extension fields for a business context.
● In the studio, you have created a solution containing a business object extension and at least one script file.
In the business object extension, make sure that you have extended the business object corresponding to
the business context of the extension field.
Procedure
1. In the Solution Explorer , right-click your solution and select Add New Item .
The Add New Item dialog opens.
2. Select SAP Extension References to Customer-Specific Fields , enter a name and click Add .
A .ref file ( ) appears in the Solution Explorer .
3. A document window opens that displays the References to Customer-Specific Fields table. In the table, select
the fields that you want to use in your solution by clicking the Used field. You can sort the table by clicking the
column titles.
You can only create one .ref file per solution. It contains the references to all customer-specific fields. .ref
If you want to add further references, open the file and select additional fields you want to
reference.
Result
You can now define the business logic for the referenced fields in the relevant script files of your solution. The
referenced fields are shown in the code completion.
You can delete references to customer-specific fields when your solution is in maintenance mode. For more
information, see Maintenance Mode [page 166].
See Also
Example: Calculate the Duration of a Campaign (References to Customer-Specific Fields) [page 372]
Example
In SAP Cloud for Customer, your customer has created a Duration field in the Campaigns work center view. In the
studio, you create a reference to that field and use it in a script file to calculate the duration of a campaign.
7. Click Save and Publish and confirm the Publish Changes for Screen dialog.
The adaptation mode closes and you can see the field you have added on the screen.
See Also
Create References to Customer-Specific Fields [page 371]
A process extension scenario links the data from one business context to other related business contexts.
You create a process extension scenario from a list of predefined extension scenarios. For example, you can create
a process extension scenario that links the following business contexts:
Each process extension scenario contains one or more data flows. Each data flow consists of a source and target
business context. This reflects how the data is passed from one business context to the next as part of a business
process.
For a list of predefined extension scenarios, see Extension Scenarios [page 376] .
If you now extend any of the business objects involved in the scenario, you can use the annotation [Scenario] to
declare that the element is available to all the business contexts specified in the scenario.
For example, if you add an element to the Lead business object, you can use an extension scenario to make this
element available if you extend the Opportunity. When an Opportunity is created from the Lead, the data for your
extension field will be passed to the Opportunity.
When selecting the data flows to include in a process extension scenario, you can identify outbound and inbound
B2B messages by their individual icons.
Overview
Extension scenarios enable you to create an extension field in one business context and then add that extension
field to multiple other business contexts. The data stored in the extension field is then passed from one business
context to the next as part of a business process.
Overview
You can create a process extension scenario to link the data from one business context to other related business
contexts.
Prerequisites
You have an open solution in the studio.
Procedure
1. In the Solution Explorer , right-click your project and select Add New Item .
The Add New Item dialog box is displayed.
2. Under Installed Templates , click SAP Extension .
3. Select the Process Extension Scenario template, enter a Name for the process extension scenario, then click
Add .
The Extension Scenario Creation dialog box is displayed.
If the Create Extension Scenario window does not open completely, you can choose one of the
following two options:
● Enlarge the window by clicking and dragging the window frame.
● Switch to the default screen resolution. For example, in Microsoft Windows 7, select Control
Panel Display Smaller – 100% (default) .
See Also
Add an Extension Field to a Process Extension Scenario [page 378]
Overview
You can use the annotation [Scenario] to declare that an element should be available to all the business contexts
specified in a process extension scenario.
For example, if you have a process extension scenario that links the Lead, Opportunity and Sales Order business
contexts, you can add an element to the Lead business object, and this element will be available if you extended a
screen for an Opportunity, a Sales Quote, or a Sales Order.
Prerequisites
Procedure
1. In the Solution Explorer , right-click your project and select Add New Item .
The Add New Item dialog box is displayed.
2. Under Installed Templates , click SAP Extension .
3. Select the Business Object Extension template, enter a Name for your business object extension, then click
Add .
The Business Object Selection dialog box is displayed.
4. Select the Namespace of the business object that you want to extend.
5. Select the Business Object that you want to extend.
6. Click OK.
A business object extension item with the file extension .xbo is added to your project. This file contains a
template for the business object extension, including the extendable nodes.
7. In the Solution Explorer , double-click the business object extension to open the file in the editing pane.
8. To add extension fields, add elements to the extendable nodes with the scripting language.
9. To include an element in an extension scenario, use the following syntax:
[Scenario (Lead_to_Opportunity)] element ext_field_Opportunity_root:Text;
Process extension scenarios are specific to the node for which they were created. If an extension
scenario was created for the root node, then it can only be called at the root node within the .xbo.
Similarly, a process extension scenario created for the item node can only be called from the item
node within the .xbo.
See Also
Scripting Language [page 169]
SAP provides enhancement options based on SAP technology that allow you to enhance the standard behavior of
specific applications of the SAP cloud solution without modifying the standard solution. In the studio, you can
create enhancement implementations of SAP enhancement options. For example, you can implement a custom
variant of a calculation or override the default filter values to meet country-specific, industry-specific, or
customer-specific requirements. You can define your own business logic, for example, for determining, validating or mapping data.
The documentation of the enhancement options describes how you can use an enhancement option, when the
enhancement option is called, and what it does. Furthermore, it gives information about the business configuration
content you need to develop for an enhancement implementation, the scoping requirements in the customer
system, as well as information about the filters, the input parameters and output parameters, and testing activities.
You can explore SAP enhancement options and view the documentation of the enhancement options using the
Repository Explorer tool window. For more information, see Repository Explorer [page 49] .
Tasks
For more information, see Create a BC Set Using an SAP BCO [page 312] .
Overview
You can create an enhancement implementation of an SAP enhancement option to allow customers to apply
business rules that meet specific requirements, for example, country-specific requirements, without modifying the
standard functionality of the SAP cloud solution. An enhancement implementation consists of a message
definition, a filter, and a script file.
Prerequisites
● You have created and opened a solution in the studio. For more information, see Create a Customer-Specific
Solution [page 162].
● If the enhancement option for which you created an implementation is for single use only, you have defined
a business configuration set (BC set) using an SAP business configuration object (BCO) so that you can
enhance the filter with the value that you want to use in your filter definition. You must also assign the BC
set to a business option.
For information about which SAP BCO is related to which filter, see the public solution model (PSM)
documentation for the enhancement option. For information about creating a BC set, see Create a BC Set
Using an SAP BCO [page 312] .
Procedure
1. In the Solution Explorer , click the Add New Item button.
The Add New Item dialog box opens.
2. In the Add New Item dialog box, select the Enhancement Implementation template, enter a name for your
enhancement implementation, and then click Add .
The Create Enhancement Implementation dialog box opens.
You must specify a name that begins with an uppercase letter (A-Z) and only contains alphanumeric
characters (A-Z, a-z, 0–9) and underscore characters (_). The name must not exceed 120 characters.
3. In the Create Enhancement Implementation dialog box, select a namespace and an enhancement option.
Optionally, you can select a namespace and business object to filter the list of enhancement options.
A new item with the file extension .enht appears in the Solution Explorer . By default, the following items are
created under the
.enht file:
● Filter
An item with the same name as the enhancement implementation and the file extension .fltr
● Script file
An item with the file extension .absl, for example, CONVERT.absl
d. Save your changes; then, in the Solution Explorer , right-click the .enht file and select Check In
Content .
The item is locked for editing.
5. In the Solution Explorer , double-click the .fltr file.
The filter editor opens in a document window.
6. Under Filters , specify a value for each filter.
● By default, all filters are disabled except for mandatory filters.
● To enable a filter, you must select the filter checkbox.
● If you do not specify a value for a mandatory filter, the system reads the value as blank.
● If a code list is available for a filter, you can select a value from a dropdown list.
● If you hover over the filter name, the data type of the filter is displayed as a tooltip.
7. Save your changes; then, in the Solution Explorer , right-click the .fltr file and select Check In Content .
The item is locked for editing.
8. In the Solution Explorer , double-click the .absl file.
The script file opens in a document window. By default, the following code is displayed:
import ABSL;
var result : AEString;
return result;
9. In the code editor, define the business logic for your enhancement implementation.
10. Save your changes; then, in the Solution Explorer , right-click the .absl file and select Check In Content .
The item is locked for editing.
11.
In the Solution Explorer , right-click the .enht file and select Activate to activate the messages, the filters, and
the business logic you defined.
Result
You have created and defined messages, filters, and the business logic for your enhancement implementation. You
can now test your enhancement implementation in the SAP cloud solution.
There are two types of reuse libraries: custom reuse libraries that help you to organize the code in your solution or
to reuse code in your script files, and SAP reuse libraries, which offer a variety of predefined functions.
Business Background
For more information, see Basic SAP Reuse Libraries Reference [page 226] .
For more information, see SAP Reuse Libraries for Business Areas Reference [page 252] .
For more information, see SAP Built-In Functions Reference [page 257] .
Tasks
For more information, see Create Your Reuse Function [page 383] .
In this example, the SAP reuse function Date.ParseFromString and the custom reuse function
MyLibrary.CalculateAge are used. To call the SAP reuse function, you must import the ABSL
namespace.
import ABSL;
var birthday = Date.ParseFromString("1975-05-10");
var age = MyLib.CalculateAge( birthday );
To be able to select your reuse function in the UI designer, you must know the namespace of your solution.
In the studio, you can find this information if you select your solution in the Solution Explorer and then check
the Properties window to see the namespace.
In the studio, you can create a reuse function by adding it to an existing or new custom reuse library in your solution.
A reuse function is created in two main steps: First, you define the signature of the function by specifying the
Prerequisites
You have created a reuse library in your solution and you have opened this reuse library.
Procedure
1. In the document window of your reuse library, click Create Function .
The Library Functions tool window opens.
2. In the Create a Reuse Function step, enter a name for the reuse function. You can also select one of the
following options:
● Write-Enabled
The default setting for reuse functions is that they can be used only to read business object data.
However, you can change this setting and enable a reuse function to modify data of business objects
in a specific deployment unit.
Please note the following restrictions for the Can Be Used in UI Designeroption:
● If you select this option, you cannot use collections as a parameter type.
● You cannot select this option if the reuse function is write-enabled.
3. Click Next .
4. In the Define Parameters step, do the following to define an import parameter:
a. In the first line of the table, enter a name for the import parameter.
b. In the same line, under Type, select a data type or a business object node.
If you have selected a business object node, the ElementsOf option is selected automatically, which
means that the data structure of this node will be passed on by the reuse function.
In addition, you can specify the following:
c.
● You can make the parameter optional.
● You can specify that the data type or the business object type is a collection ( collectionof).
5. Repeat the last step for each import parameter. You can also define one return parameter.
You can click Move Up and Move Down to change the order of the parameters.
6. Click Next .
If some of your import parameters are optional, the system changes the order of your parameters so that the
mandatory parameters come first. If you have added an output parameter, the system places this parameter
at the end of the list.
7. In the Review step, check that the information you have entered is correct and then click Finish.
To hide or display the signature in the script file, press CTRL + E and then CTRL + S .
Result
You can call this reuse function in a script file. For more information, see Reuse Libraries Quick Guide [page 382] .
A static code list contains a list of values and descriptions and is used, for example, to provide dropdown lists on UIs.
In the studio, you can define a code list data type for your solution and use it when you create your custom business
object, a business object extension, or a business configuration object.
If a customer needs to be able to change the code list values, use configurable code list data types instead. For more
information, see Create a Business Configuration Object [page 314] .
You can delete the code list data type when your solution is in maintenance mode. For more information, see
Maintenance Mode [page 166].
Prerequisite
You have created the solution for which you want to create a code list data type. For more information, see Create
a Customer-Specific Solution [page 162] .
Procedure
1. In the Solution Explorer , select your solution and click Add Item .
2. In the Add New Item dialog, select Code List Data Type.
3. Enter a name and click Add .
The Code List Data Type Wizard opens.
4. In the Create Code List Data step, proceed as follows:
a. Enter a name and a description.
Code
The suffix is added automatically to the name you enter in the Name field.
b. Click Next .
You can use the tab key to navigate between the fields and rows.
b. Click Next .
6. In the Review step, review your entries and click Finish.
In the Solution Explorer , a file is added to your solution. It is called [name of your code
list].codelist.
7. Right-click the .codelist file and select Activate .
Result
A new data type is generated. You can use it when you create business objects, business object extensions, or
business configuration objects. The code list values can be exported for translation. For more information, see
Translation Quick Guide [page 553].
See Also
Data Types [page 85]
Example: Create a Code List Data Type (Purchase Order Request) [page 386]
Use Case
In a company, employees create purchase order requests to order goods and services. In the system, they need to
choose the purchase order type: standard purchase order or collective purchase order. If they choose a special
offer purchase order, they benefit from a price discount. For a special offer purchase order request, an additional
field needs to be maintained, which is checked in a script validation.
Prerequisites
● You have a studio developer user and a business user for the SAP cloud solution. For more information,
see User Setup Quick Guide [page 30].
● You have created a solution. For more information, see Create a Customer-Specific Solution [page 162].
Value Description
b. Click Next .
6. In the Review step, review your entries and click Finish.
7. In the Solution Explorer , a file is added to your solution. It is called PurchaseOrderType.codelist.
8. Right-click the PurchaseOrderType.codelist file and select Activate .
In the SAP cloud solution, test the code list data type.
Right-click the
1. .uicomponent file and select Preview Screen.
2. Log on to the SAP cloud solution with the business user.
3. The PurchaseOrderRequest:<ID and/or Description> screen opens.
4. Under Purchase Order Type, check that a dropdown list box is available with the defined codes and
descriptions.
5. Test the Validation: On Save check you have defined:
a. Enter a Purchase Order Request ID.
b. Select the Purchase Order Type SPECIALOFFER.
c. Save your entries.
The error message Please add special offer should be displayed.
See Also
Create a Code List Data Type [page 385]
You can use the Approval Wizard to create an approval process in the root node of your custom business object.
For more information, see Approval Process [page 394] .
Availability
For more information, see Approval Process Built-In Functions [page 393] .
Tasks
For more information, see Assign Approval Process Tasks to the UI [page 399] .
For more information, see Test the Approval Process [page 400] .
This example shows how to define a multistep approval process for a custom business object created in the studio.
Prerequisites
● You have a developer user for the studio and a business user in the SAP cloud solution. The Approval
Processes work center view is assigned to your business user.
For more information, see the User Setup Quick Guide [page 30] .
You have created a solution.
●
For more information, see Create a Solution [page 162] .
Subject Field Please approve price request Your &PRICEREQUEST& has Your &PRICEREQUEST& has
&PRICEREQUEST& been approved been rejected
4. In the Select Task and Notification Recipients step, enter the following values and click Next:
To select the business object element, click the ... button, select the business object element and
click OK.
5. In the Select Fields for Conditions step, select the business object elements Price:Amount and
Discount:Percent, then click Next .
6. In the Review step, click Finish.
7. In the Solution Explorer , right-click the ApprovalStatus.approvalprocess file and click Activate.
8. Right-click your solution and select Deploy Business Configuration .
Due to technical background processes, it takes some time until the default approval process appears in the
SAP cloud solution.
● The Valid To Date of the default approval process must be the same as the Valid From Date of
the copied approval process.
● The copied approval process must have an unlimited validity.
The approval process built-in functions are only used in action script files that are created when you define an
approval process for a business object. Each action script file initially contains the call of the relevant built-in
function. The built-in functions are used to set the status of the business object and to manage related approval
tasks. Availability
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
SendForApproval
Descriptio Requests an approval of a business object instance. If an approval is required, the system creates an approval
n task and sends it to the approver.
Approve
Reject
Example this.Function::Reject();
Result: Approval status “5” (Rejected).
SendBackForRevision
Example this.Function::SendBackForRevision();
Result: Approval status “6” (In Revision).
Withdraw
Example this.Function::Withdraw();
Result: Approval status “7” (Withdrawn).
Overview
The studio allows you to create a default approval process for a custom business object. You define at least one
approval step and, optionally, approval and rejection notifications as well as a revision task. Once the default
approval process has been activated, you assign the tasks to the UI. In the SAP cloud solution, an administrator
can then add multiple approval steps, define conditions, and change the validity of the approval process. The
participants of the process receive tasks and notifications informing them of required actions or the process status.
Availability
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
● Revision (optional)
Informs the employee who started the approval process that the person responsible for approval asks for
changes to the business document.
The following table shows the different status changes caused by the action script files listed above. The default
implementation of these actions uses built-in functions for changing the approval status and managing related
approval tasks. You can change the default implementation in the relevant script files, for example, by adding
messages or logic.
SendBackForRevision In Revision
Reject Rejected
Approve ● In Approval
● In Approval
Rejected — —
Approved — —
Built-In Functions
The approval process built-in functions are only used in action script files that are created when you define an
approval process for a business object.
For more information, see Approval Process Built-In Functions [page 393] .
Task Execution UIs
These screens are generated automatically when you activate the approval process. They are used to display tasks
and allow the execution of task-related actions. In a manual step, you assign the approval tasks to the UI to see the
tasks and notifications in a work center of the cloud solution. For more information, see
Assign Approval Process
Tasks to UI [page 399] .
Approval Process in the Cloud Solution
The default approval processes you create in the studio always have one approval step, no conditions, and an
unlimited validity. In the SAP cloud solution, administrators can copy and adjust the default approval process to
meet their specific process requirements, for example:
8.7.4 Tasks
In the studio, you define one approval process per business object in the root node. An approval process contains
at least one approval task and can have notifications and a revision task. For each task type, you define the task
recipients by selecting elements from the custom business object. Further, you can select business object
elements that an administrator can use to define approval step conditions in the SAP cloud solution.
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
Prerequisites
● You have activated the business object for which you want to create the approval process. For more
information, see Business Objects Quick Guide [page 326].
● For SAP Cloud for Customer, SAP Cloud for Financials, and SAP Cloud for Travel and Expense users,
you have created an enterprise query. For more information, see Step 3 under Procedure in Create a
Query [page 342].
Procedure
1. In the Solution Explorer , right-click the business object and select Create Approval Process .
You can only create one approval process for a custom business object.
a. Enter a free text in the Subject and Description fields and then place the cursor at the position you want
the parameter to appear.
The Approval Notifications , Rejection Notifications , and Revision tabs are only displayed, if you
have selected the Notification and Revision options in the previous step.
● The elements must be taken from the business object for which the approval process is
defined. You cannot refer to elements in another business object using an association.
c. Click Next .
5. In the Select Fields for Conditions step, proceed as follows:
a. Select the business object elements that can later be used by the customer's administrator to define
conditions.
b. Click Next .
6. Check the Review screen and click Finish.
In the Solution Explorer , a process definition with the file extension .approvalprocess appears. The system
also creates action script files ( .absl) and .uicomponent files.
The system creates one .uicomponent file per task type. If, by accident, one or
various .uicomponent files are deleted, you can recreate them. To do this, right-click
the .approvalprocess file and select Create Task Execution UIs.
7. To activate the approval process, right-click the .approvalprocess file and select Activate .
8. Right-click your solution and select Deploy Business Configuration .
You assign the approval process tasks to the UI to make the tasks and notifications visible in a work center of the
SAP cloud solution.
Availability
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
Prerequisites
You have created an approval process in the studio for the SAP cloud solutions. For more information, see Create
an Approval Process [page 396] .
Procedure
1. In the Solution Explorer , do the following:
The .uicomponent files are generated and displayed in the Solution Explorer .
a. Right-click the business object, select Create Screens and choose to create a screen scenario.
b. Enter a Short ID to identify your screen in the UI designer and in the SAP cloud solution.
The Short ID is generated as follows: [Technical name of solution]_[Short ID]_WCVIEW. If you have
also created a thing type floorplan, an additional Short ID is generated: [Technical name of
solution]_[Short ID]_TT.
Right-click the solution and, in the Property Explorer in the Project File field, look up the name of the
solution and note it down.
2. Right-click the work center view file ( .uiwocview) and select Open in UI Designer.
3. In the Property Explorer , under RBAMData, select AssignedObjects .
4. Click the ... button.
The Add AssignedObjects dialog opens, where you proceed as follows:
Result
You can now log on to the SAP cloud solution and see the default approval process you created in the Approval
Processes view.
For any user to be able to view the approval process tasks in the UI, you must give the user access rights to
the relevant work center to which the tasks are assigned. Once this is done, select Administration in the
Solution Explorer , and click on Update Authorizations and Access Rights to refresh the access right permissions.
See Also
Test the Approval Process [page 400]
After assigning the approval process tasks to the UI, you can test the approval process you have created in the SAP
cloud solution.
Availability
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
● You have a business user in the SAP cloud solution with access rights for the Application and User
Management work center.
Procedure
1. Log on to the SAP cloud solution using your business user and choose Application and User
Management
Approval Processes .
2. Select your default approval process, which has the same name as your custom business object, and click
Copy.
3. In the copied approval process, adjust the name in the Process Name field.
4. Enter a number in the Step field and a name in the Process Step Name field.
5. In the Work Distribution field, select the person responsible for this task.
6. Repeat the steps to create further approval steps. Click New and select Task, Notification , Alert , or Clarification
Request, as required.
The clarification request corresponds to the revision task selected in the studio.
7. Under Conditions , click Add Group, and in the Edit Conditions dialog, add one or more conditions.
8. Click Edit Validity to adjust the validity of the approval process and click Save and Close.
● The Valid To Date of the default approval process must be the same as the Valid From Date of
the copied approval process.
● The copied approval process must have an unlimited validity.
Example
Field Entry
Step 1
Step 2
For more information, see the approval process documentation in the SAP cloud solution.
In SAP’s cloud solutions, notification rules can be defined by customers to receive a notification in case a certain
situation occurs for a business object. Typical examples are status changes of business objects or the exceeding
of threshold values. The notifications only serve as information and do not trigger automatic actions or tasks.
If a customer wants to use notification rules with a custom business object, you as a partner need to enable the
business object for notification rules in the studio: In the Notification Rules Wizard , you select business object fields
that can be used as placeholders, conditions, and recipients.
After you have enabled the custom business object for notification rules, your customer can create notification rules
for the business object in the cloud solution.
For more information, see the "Notification Rules Quick Guide" in the documentation of the SAP cloud solution.
Availability
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
Prerequisites
● You have activated the custom business object for which you want to enable notification rules. For more
information, see Business Objects Quick Guide [page 326].
If you want to use thing-based navigation with your solution, the following prerequisites apply:
● You have created a thing-based screen scenario. For more information, see Generate Screens for a Business
Object [page 350] .
● You have created a query. In the Query Wizard, in the Create a Query step, you have selected the Include in
Enterprise Search option. For more information, see Create a Query [page 342] .
To be able to select the Include in Enterprise Search option, you need to define a Date/Date Time
field in your custom business object.
Procedure
1. In the studio, in the Solution Explorer , right-click the custom business object and select Enable Notification
Rules.
The Notification Rules Wizard opens.
2. In the wizard, in the Define Fields for Placeholders and Conditions step, do the following:
a. Select the business object elements to be used as fields for placeholders and conditions in notification
rules.
● For the placeholders, you can use business object elements defined in the root node or
in [1,1] associated nodes.
● For the conditions, you can use business object elements from the root node and from
[1,n] associated nodes.
● You can only use data types with the following representation terms:
To find out the representation term of a data type, call up the relevant data type in the
Repository Explorer . For more information, see Look Up the Representation Term of a
Data Type [page 89] .
b. Click Next .
3. In the Define Labels for Placeholders and Condition Fields step, you can adapt the field labels. Click OK.
Do not leave the field label blank or use identical labels for different fields; field labels must be unique.
● You can select business object elements of type UUID or EmployeeID, or fields generated
by associations.
● The elements must be taken from the business object for which the approval process is
defined. You cannot refer to elements in another business object using an association.
d. Click Next .
5. In the Review step, review your entries and click Finish.
6. In the Solution Explorer , a [business object name].notification file ( ) is created. Right-click the
file and select Activate .
7. Right-click your solution and click Deploy Business Configuration .
See Also
Example: Enable Notification Rules (Price Request) [page 404]
Use Case
A sales representative creates a price request to negotiate the contract pricing for an account. If the price request
amount exceeds USD 50,000, the responsible manager and account manager want to receive a notification.
Availability
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
Prerequisites
● You have a studio developer user and a business user for the SAP cloud solution. For more information,
see User Setup Quick Guide [page 30].
● In the SAP cloud solution, the Notification Rules work center view is assigned to your business user.
● You have created a solution. For more information, see Create a Customer-Specific Solution [page 162] .
In the studio, create a business object and enable it for notification rules.
1. To create a business object in the studio, in the My Solutions window, open your solution.
2. In the Solution Explorer , right-click your solution and select Add New Item .
3. In the Add New Item dialog box, select the Business Object template, enter a name for your business object
(for example, PriceRequest.bo), and click Add .
A new item with the file extension .bo appears in the Solution Explorer and the business object editor opens.
}
5. Save and activate the business object.
6. In the Solution Explorer , right-click your business object and select Enable Notification Rules .
The Notification Rules Wizard opens.
7. In the wizard, in the Define Fields for Placeholders and Conditions step, select the following business object
elements: Price Request, Product ID, Price Amount, and the Documentation node and click Next .
8. In the Define Labels for Placeholders and Condition Fields step, you can adapt the field labels. Click OK.
9. In the Define Recipients step, select the recipients to be used in the notification ( Account Manager and
Manager):
a. In the Description field, enter a description for the recipients.
b. In the Business Object Element field, click the ... button.
c. Select the business object elements and click OK, then click Next .
10. In the Review step, review your entries and click Finish.
11. In the Solution Explorer , a [business object name].notification file ( ) is created. Right-click the
file and select Activate .
12. Right-click your solution and select Deploy Business Configuration .
You have enabled the custom business object for notification rules. Now, you can define a notification rule in
the SAP cloud solution.
In the SAP cloud solution, define a notification rule for the business object.
1. Log on to the SAP cloud solution with a business user. In the Application and User Management work center,
choose Notification Rules and then New
The Notification Rules guided activity opens.
2. In the Enter Basic Data step, proceed as follows:
a. Enter a description (for example, Price Request) and select the business object you created. Price
Request &1 for Product &2 with Price
b. Enter a subject for the notification (for example,
&3).
c. Define your business object elements as placeholders ( &1 = Price Request ID, &2 = Product
ID, &3 = Price ) and click Next .
Field Price
Result
You have now created a notification rule including conditions and recipients. When the conditions are met, a
notification is sent to the recipients.
See Also
Enable Notification Rules [page 402]
You can create a print form to output the data from a business object that you created in your solution. You can
define the data to include on the form, design the layout of the form, and select a floorplan to link to the form. Print
forms are read-only portable document format (PDF) documents that are generated from data stored in the
system. In the SAP cloud solution, print forms can be printed, sent as an e-mail attachment, or faxed to business partners.
Availability
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
Business Objects
As part of your solution, you can create new business objects. For more information, see Business Objects Quick
Guide [page 326].
Tasks
For more information about creating a print form, see Create a Print Form [page 408] .
Procedure
1. In Windows, select Control Panel All Control Panel Items Default Programs .
2. Select Associate a file type or protocol with a program .
3. In the list, select the .xdp file type and select Change program... .
4. Select Browse and then the FormDesigner.exe file in the folder where you installed the Adobe LiveCycle
Designer program files. Click Open.
5. Make sure that the Adobe LiveCycle Designer ES entry and the Always use the selected program to open
this kind of file checkbox are selected. Click OK.
When you now double-click an .xdp file to open it, the file opens in Adobe LiveCycle Designer.
You can create a print form to output the data from a business object. You use Adobe LiveCycle Designer to define
the data you want to include on the form and design the layout of the form.
Prerequisites
● Your solution contains an activated business object with at least one element.
You have installed Adobe LiveCycle Designer.
●
● You have associated the .xdp file type with Adobe LiveCycle Designer.
For more information, see Associating an .xdp File with Adobe LiveCycle Designer [page 407] .
Procedure
1. In the Solution Explorer , right-click the business object and select Create Print Forms .
The Form Wizard opens.
2. In the Define Form Properties step, under Basic Information , you can select a different business object.
3. Under Form Template Header , do the following:
● Optional: Change the name of the form template header.
Enter a description for the form template header.
●
4. Under Form Template Group , select a form template group (if available) or click New to create a new group.
5. If you selected New, in the Form Template Editor window, accept the default name or change the name of the
group in the Name field, click Save, and then click Next .
6. In the Define Form Data Structure step, the data structure of the business object is displayed. Select the data
elements you want to include on the form, and then click Next .
7. In the Define Properties of Default Variant step, enter a Comment to describe this form and select a
Language.
You can select one of the languages in which the SAP cloud solution is available.
8. Click Next .
A summary of the settings you entered for the form is displayed.
9. In the Review Form Settings step, click Finish.
The form is opened in Adobe LiveCycle Designer.
If Adobe LiveCycle Designer does not open and an error message is displayed instead, make sure
that you have associated the .xdp file type with Adobe LiveCycle Designer. For more information,
see Associating an .xdp File with Adobe LiveCycle Designer [page 407].
10. To create your form, drag data elements from the Data View on the left to the Design View on the right.
You may need to enlarge the left pane to see the Data View tab.
11. Once you have designed the form, save your work and close Adobe LiveCycle Designer.
Results
● A print form is associated with the business object. You now need to make the form accessible to users from
a floorplan. For more information about how to enable a preview function that allows users to preview the
form as a PDF and provides options to save or print the form, see
Create a Preview Button for a Print Form
[page 601] .
● You can now test your print form. For more information, see Test a Print Form [page 409] .
See Also
Print Forms Quick Guide [page 406]
You can test the print form in the preview after deploying the business configuration content of your solution.
Prerequisites
You must be assigned the Business User role and have access rights for the Business Configuration work center.
For more information, see User Setup Quick Guide [page 30] .
Procedure
1. Perform Business Configuration Deployment
There are two ways to deploy your business configuration content: Either you scope the BAC elements defined
in your solution in the Business Configuration work center of the SAP cloud solution or you select the Deploy
Business Configuration function in the context menu of the your solution.
● If you have created BAC elements in your solution and assigned your solution content to a business
option, you can perform scoping manually in the Business Configuration work center of the SAP cloud
solution.
For more information, see "Configuring your SAP Solution" in the documentation in your SAP cloud
solution.
● Alternatively, you can trigger the deployment of business configuration in the Solution Explorer by
right-clicking the solution and selecting Deploy Business Configuration .
When you use the Deploy Business Configuration function, the studio deploys all business
configuration content of your solution. However, you cannot test partial activation of business
configuration content in the development environment because the Deploy Business
Configuration function deploys all business configuration content independently of any
business options you have created.
If this is the first time you have selected this option, you may be prompted to enter a user name
and password.
If more than one template exists, a list of available templates is displayed in the Preview window.
Select a template and click Open.
8.10 Analytics
Analytics in the cloud solution allows customers to support and monitor business processes and thus enables
them to make informed decisions. The standard system provides predefined analytics content that is presented in
reports. The data from key figures and characteristics in a data source or a key figure group serves as the basis of
these reports. Administrators can design reports that they can make available to other users. Users can then access these
reports from the Reports work center view of the corresponding work centers or from the Overview work center
views.
In the studio, you can add data sources to a solution that administrators for Analytics can use for reporting in the
cloud solution. You can also create browser-based reports in the studio and use the administrator tools for
Analytics in the cloud solution to define the report layout and content.
Data Sources
A data source is an object that provides a multidimensional, analytical view of business data. Data sources are the
basis of analytical report content and are associated with a specific access context or can be unrestricted.
Key Figures
Fields according to which values are selected. Key figures are numeric values that have a unit of measure or currency
assigned. Examples include Invoice Net Value and Purchase Order Quantity.
Transformation Rules
You can use transformation rules to calculate fields from business object fields, for example, for date and date/time
conversions. The transformed (calculated) fields are added to the data source and can be used in reports.
Aggregation
To enable the calculation of key figures, the system can aggregate key figure values from a data source based on
defined aggregation behavior. The system aggregates key figure values for multiple characteristics. The system
can also aggregate key figure values for a specified characteristic; this is referred to as exception aggregation.
Business Analytics
To learn about how analytics functions are integrated in the cloud solution, see Overview of Analytics.
Tasks
For information about the change and delete restrictions for data sources in a solution that is in maintenance
mode, see Maintenance of Analytics Content [page 423] .
For information about the change and delete restrictions for data sources in a solution that is in maintenance
mode, see Maintenance of Analytics Content [page 423] .
Create a Report
In the studio, you can create reports by using data sources that you have created. You can then define the report
and the report layout in the SAP cloud solution by using the administrator tools for Analytics.
Manage Reports
1. In the Solution Explorer , right-click your data source and select Manage Reports .
The logon screen of the cloud solution opens in your browser.
2. Enter the user name and password that you entered when logging on to the repository.
A report list opens and displays the reports assigned to your data source.
a. In the Solution Explorer , right-click the data source on which your report is based and select Manage
Reports .
The logon screen of the cloud solution opens in your browser.
b. Enter the user name and password that you entered when logging on to the repository with your
Developer user role.
The Design Reports view opens and displays the reports assigned to the data source including your
report.
c. Select your report, click Edit With and then select Report Wizard .
The Report Wizard opens and displays the Define Report and Select Data Source step.
d. At the top right of the screen, click Personalize and select This Screen.
The Personalize panel opens.
e. Under Sections , select Report and make sure that the Visible option is selected.
f. Under Fields, find the Technical ID field and select the Visible option.
g. Save your changes and close the Personalize panel.
The screen now displays the technical ID of the report. Make a note of the ID.
2. Open your report in the current release of your solution and repeat the steps described above to personalize
the screen of the Define Report and Select Data Source step.
3. Overwrite the ID displayed in the Technical ID field with the ID of the initial version of your report and save
your changes by clicking Finish .
The technical ID of the report is now the same in the initial release and in the current release of your solution.
Overview
In the studio, you can define analytics content for custom business objects, for SAP business objects, or for a
combination of both. In the SAP cloud solution, customers use this content for reporting. Reports show the data
and values derived from key figures and characteristics in data sources, key figure structures, and key figure grids.
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
Prerequisites
● You have created and opened a solution in the studio. For more information, see Create a Customer-Specific
Solution [page 162].
● You understand how administrators design reports in the SAP cloud solution. For more information, see
Overview of Analytics.
● You are assigned the Developer user role and have access rights for the Business Analytics work center. For
more information, see User Setup Quick Guide [page 30] .
Process Flow
1. You create a data source.
● In the studio, you add a data source to your solution and define the data source. For more information,
see Create a Data Source [page 425] .
You must activate the data source to make it available in the SAP cloud solution so that you can use it
for your report content.
● You use the administrator tools for Analytics in the SAP cloud solution to create a combined data source
or a joined data source.
For more information, see Create a Combined Data Source [page 427] and Create a Joined Data Source
[page 429] .
Only administrators for the SAP cloud solution working in a customer's production system can assign
a report that you have created to a work center view. To assign a report to a work center view, the
solution that contains the report must therefore be implemented in the customer's production system.
We recommend that you provide information about the work center views to which customers need
to assign reports in your Solution Documentation. For more information, see
Documentation Types in
Cloud Solutions from SAP [page 678] .
See Also
Analytics Quick Guide [page 410]
Overview
A data source is an object that provides a multidimensional, analytical view of business data. Data sources are the
basis of analytical report content and are associated with a specific access context or can be unrestricted.
For information about access contexts, see User and Access Management under Access Restrictions .
Data sources contain the following objects:
● Key figures
Fields according to which values are selected. Key figures are numeric values that have a unit of measure or
currency assigned. Examples include Invoice Net Value and Purchase Order Quantity.
● Characteristics
Fields according to which values are selected. Characteristics are alphanumeric, numeric, or text values.
Examples include Product ID, Supplier, and Purchase Order Status. Variables are often associated with
specified characteristics. Variables restrict characteristics to one or more specified value selections.
Availability
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
The studio supports read access across deployment units in data sources. You can use cross-deployment-unit
associations to access the data in business objects that are not assigned to the default deployment unit of your
solution. For more information, see Syntax for Business Object Definitions [page 170] under Deployment Unit .
Working with Data Sources Using the Administrator Tools of the SAP Solution
You can join or combine data from different data sources that share common characteristics and contain
semantically different key figures. For more information, see Combined Data Sources [page 416] and Joined Data
Sources [page 418] .
See Also
Analytics Quick Guide [page 410]
Create a Data Source [page 425]
Create a Combined Data Source [page 427]
Create a Joined Data Source [page 429]
Overview
A data source is an object that provides a multidimensional, analytical view of business data. Data sources are the
basis of analytical report content and are associated with a specific access context or can be unrestricted.
A combined data source combines data from two or more data sources that share common or similar characteristics.
Availability
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
Use
In the SAP cloud solution, you can use the administrator tools for Analytics to create a combined data source that
combines data from multiple data sources.
When you build a report using a combined data source, all characteristic values are displayed along with any key
figure values.
You usually combine data sources that have the semantically similar characteristics. However, you can also combine
data sources when the characteristics you require for a report are not available in one data source.
See Also
Analytics Quick Guide [page 410]
Create a Combined Data Source [page 427]
Overview
A data source is an object that provides a multidimensional, analytical view of business data. Data sources are the
basis of analytical report content and are associated with a specific access context or can be unrestricted.
A joined data source joins data from two or more data sources that share common characteristics.
Availability
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
When you build a report using a joined data source, the characteristic values that match in the joined characteristics in
the data sources are displayed along with the values that are in the same row.
Joined data sources can have more than one join. A join is created when a characteristic is available in a data
source that is an anchor. By default, the first data source you select is the anchor. The more joins there are in a
joined data source, the more restricted the data is that is available for reports.
Join Types
There are different types of joins between data sources. You select a join type depending on your business
requirements.
The anchor is displayed for both join types in the system but only affects the data in a joined data source that
uses a left outer join.
Inner Join
An inner join selects only those characteristic values from the data sources to be joined that match in the joined data
source field along with any key figure values. Characteristic values in the joined data source fields that do not appear
in both data sources are excluded from the joined result set.
The following example shows a result set of a joined data source that uses an inner join.
Setting the anchor to a different data source affects the values available because the joined data source fields
may also change.
The following example shows a result set of a joined data source that uses a left outer join.
See Also
Analytics Quick Guide [page 410]
Create a Joined Data Source [page 429]
Overview
You can use transformation rules to calculate fields from business object fields, for example, for date and date/time
conversions. The transformed (calculated) fields are added to the data source and can be used in reports.
Availability
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
Use
Business objects often contain date and date/time information, for example, for the release of an order. In reports,
you normally want to aggregate data in time buckets, for example, to view the orders per month. For this purpose,
you could define a
DateToMonth or DatetimeToMonth transformation rule. As a result, the system adds a new field
datetime
to the data source that contains only the month of the release field. In a report, you can then easily
aggregate the order data by using the month field.
You select transformation rules in the Data Source Wizard. For information about how to create a data source using
the Data Source Wizard, see Create a Data Source [page 425] .
Rule Description
DatetimeToTime Selects and retrieves only the time from a datetime field.
DatetimeToDay Selects and retrieves only the day from a datetime field.
DatetimeToDate Selects and retrieves only the date from a datetime field.
DatetimeToMonth Selects and retrieves only the month from a datetime field.
datetime
DatetimeToQuarter Calculates the quarter of a field.
DatetimeToYear Selects and retrieves only the year from a datetime field.
DatetimeToYearmonth Selects and retrieves only the year and month from a datetime field.
datetime
DatetimeToYearquarter Calculates the year and quarter of a field.
Rule Description
DateToMonth Selects and retrieves only the month from a date field.
DateToYearmonth Selects and retrieves only the year and month from a date field.
Rule Description
8.10.2.6 Aggregation
Overview
To enable the calculation of key figures, the system can aggregate key figure values from a data source based on
defined aggregation behavior. The system aggregates key figure values for multiple characteristics. The system
can also aggregate key figure values for a specified characteristic; this is referred to as exception aggregation.
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
Features
The studio supports the definition of standard aggregation. You can define exception aggregation behavior in the
SAP cloud solution using the administrator tools for Analytics.
Standard Aggregation
The standard aggregation behaviors you can define in the studio are summation, minimum, maximum, and count.
For example, you can define minimum and maximum aggregation for date key figures. You define aggregation
behavior in the studio using the Data Source Wizard. For information, see Create a Data Source [page 425] .
Exception Aggregation
You define exception aggregation behavior for values of a calculated key figure. The deviation to the standard
aggregation behavior is only valid in combination with a specified characteristic. You define exception aggregation
behavior in the SAP cloud solution using the Report Wizard. For information about different types of exception
aggregation behavior in the SAP cloud solution, see Exception Aggregation. For information about how to define
exception aggregation behavior for a key figure using the Report Wizard, see Create and Edit a Key Figure.
See Also
Data Sources [page 415]
Overview
A customer-specific solution is in maintenance mode, if it has been assembled and downloaded; the solution status
then is Assembled. You can make changes to the solution in a patch; however, you can only make restricted changes
to certain content types. These change and delete restrictions ensure that you do not make changes to a solution
that could lead to loss of data or create inconsistencies or errors on a customer's production tenant.
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
Action Allowed
Change the Display Name and Referenced Data Source fields of data source fields No
Delete a reference to a joined data source created by an administrator in the cloud solution Yes
Delete a reference to a combined data source created by an administrator in the cloud solution Yes
Delete a reference to a key figure created by an administrator in the cloud solution Yes
Maintenance of Reports
Action Allowed
See Also
Analytics Quick Guide [page 410]
Lifecycle Management of Customer-Specific Solutions [page 135]
Maintenance Mode [page 166]
In the studio, you can create a data source based on an SAP business object or a custom business object. A data
source includes specific data such as key figures and characteristics that administrators for Analytics can use for
reporting in the SAP cloud solution.
Prerequisites
● You have created and opened a solution in the studio. For more information, see Create a Customer-Specific
Solution [page 162].
● To create a data source based on a custom business object, you must create and activate your custom
business object.
For more information, see Business Objects Quick Guide [page 326] .
● If you want to allow referencing of your data source by another data source and enable navigation from a
report to another floorplan that is not a standard UI, you must define this UI. For information, see Generate
Screens for a Business Object [page 350] .
Procedure
1. In the Solution Explorer , do the following:
Right-click your business object and select a. Right-click your solution and select Add New Item
Create Data Source .
The Add New Item dialog opens.
The Data Source Wizard opens.
b. Select SAP Analytics Data Source and click Add .
The Data Source Wizard opens.
2. In the Create a Data Source step, define your data source by doing the following:
a. Select a namespace.
By default, the namespace for your solution is selected; however, to create a data source based on an
SAP business object, you can select an SAP namespace.
● If a [1,n] association is defined for a field, the field is not displayed in the business object
hierarchy. Therefore, we recommend that you select the most detailed node as the
anchor node. For more information about associations, see
Syntax for Business
Object Definitions [page 170] under Association .
● You can also select nodes of dependent objects, for example,
TextCollection.Root .
Not all fields and associations modeled in the business object are supported. Only supported fields and
associations are displayed.
Click Next .
4. Optional: In the Define Transformation Rules step, define transformation rules for fields of data type text (such
as name and description), date, or GLOBAL_DataTime by doing the following:
a. In the Business Object Element area, select a field and on the Transformation tab, select a
transformation rule.
b. Define a field name for the transformation field and then press ENTER .
c. If the transformation rule allows the selection of a second parameter, next to the Parameter field,
click ... .
The Select Additional Transformation Rule Parameter dialog box opens.
d. In the Select Additional Transformation Rule Parameter dialog box, select a second parameter by
selecting a row and clicking the first cell in the row.
For information about the available transformation rules, see Transformation Rules [page 421] .
e. Click Next .
5. Optional: In the Define Referenced Data Sources step, modify the parameters by doing the following:
a. Display and define the names for the selected fields that are characteristics.
b. Assign an existing data source to each parameter.
If necessary, you can change the display name for each parameter.
You can assign an existing data source if the fields of an SAP business object are already
included in an SAP data source.
c. Click Next .
6. Optional: In the Define Aggregation Behavior step, define the aggregation behavior for business object
elements that are key figures.
For more information about aggregation behavior, see Aggregation [page 422] .
7. In the Review step, check that the information you have entered is correct and then click Finish.
If you have defined aggregations, check that the selected aggregations are displayed correctly.
A new item with the file extension .ds ( ) appears in the Solution Explorer .
8. In the Solution Explorer , right-click the data source you have created and select Activate .
Result
The data source is available in SAP's cloud solution. You can check the result by logging on to SAP's cloud solution.
In the Business Analytics work center, navigate to the Design Data Source view and search for your data source.
In the studio, you can now create a report that uses your data source. For more information, see Create a Report
[page 430] .
You define the report and the report layout in SAP's cloud solution in the Design Reports view of the Business
Analytics work center. For more information, see the relevant documentation of SAP's cloud solution.
In the SAP cloud solution, you can use the administrator tools for Analytics to create a combined data source that
combines data from multiple data sources.
You start the process in the studio and then create the combined data source on the New Combined Data Source
screen of the Business Analytics work center. For information about combined data sources, see Combined Data
Sources [page 416] and the relevant documentation of the cloud solution.
Prerequisites
● You are assigned the Developer user role and have access rights for the Business Analytics work center. For
more information, see User Setup Quick Guide [page 30] .
● You have switched on the admin mode so that the system saves the analytics content you create in your
solution. To do this, select
Administration Switch On/Off Admin Mode in SAP Solution .
Procedure
1. In the Solution Explorer , right-click your solution and select Add New Item
The Add New Item dialog opens.
2. Select SAP Analytics Combined Data Source .
3. Enter a name and click Add .
4. The SAP cloud solution opens. If you are not logged in already, the logon screen opens. Log on with
your developer user.
You can only combine data sources that have compatible access contexts. For example, you can add
a data source if the data source and the combined data source have a common access context. You
can add any data source that has an unrestricted access context to a combined data source.
8. Select one or more additional data sources and add the data sources to the combined data source.
The system checks whether the characteristics and key figures in the additional data sources are also available
in the data source that you selected as a basis for the combined data source.
If a characteristic or key figure is available in the combined data source, the system positions the
characteristic or key figure in the same row of each data source.
If a characteristic or key figure is not available in the combined data source, the system adds the
characteristic or key figure to the combined data source.
Other Functions
● Remove Data Source
The Remove Data Source dialog screen opens and displays the data sources you have added. To
remove data sources, click the relevant checkboxes.
Add Row
●
Adds a row to which you can add a characteristic or key figure. The system then adds the characteristic
or key figure to the relevant field type group.
● Remove Row
Deletes the selected row.
The selected characteristic or key figure is only removed from the combined data source.
Result
The combined data source is available for reporting. You can create reports using data from the combined data
source. For information about creating reports, see Create a Report [page 430].
You can delete the combined data source when your solution is in maintenance mode. For more information, see
Maintenance Mode [page 166].
In the SAP cloud solution, you can use the administrator tools for Analytics to create a joined data source that joins
data from multiple data sources that share common characteristics.
You start the process in the studio and then create a joined data source on the New Joined Data Source screen of
the Business Analytics work center. For information about joined data sources, see Joined Data Sources
[page 418] and the relevant documentation of the cloud solution.
Prerequisites
● You are assigned the Developer user role and have access rights for the Business Analytics work center. For
more information, see User Setup Quick Guide [page 30] .
● You have switched on the admin mode so that the system saves the analytics content you create in your
solution. To do this, select
Administration Switch On/Off Admin Mode in SAP Solution .
Procedure
1. In the Solution Explorer , right-click your solution and select Add New Item
The Add New Item dialog opens.
2. Select SAP Analytics Joined Data Source .
3. Enter a name and click Add .
4. The SAP cloud solution opens. If you are not logged in already, the logon screen opens. Log on with
your developer user.
By default, the joined data source contains the Counter key figure. The Counter key figure counts the
number of instances of a specified object.
6. On the New Joined Data Source screen, click Add Data Source .
7. On the Add Data Source dialog screen, select a data source from the dropdown list.
The screen displays the characteristics and key figures available in the selected data source. The initial
selections serve as a basis for the joined data source. The characteristics and key figures are then displayed
in the Joined Data Source Fields column.
By default, the first data source you select is the anchor.
8. Select one or more additional data sources and add the data sources to the joined data source.
The system checks whether the characteristics and key figures in the additional data sources are also available
in the data source that you selected as a basis for the joined data source.
If a characteristic or key figure is not available in the joined data source, the system adds the
characteristic or key figure to the joined data source.
If a characteristic is available in a data source that is an anchor, the system creates a join. The more
joins there are in a joined data source, the more restricted the data is that is available for reports.
Other Functions
● Remove Data Source
The Remove Data Source dialog screen opens and displays the data sources you have added. To
remove data sources, click the relevant checkboxes.
Add Row
●
Adds a row to which you can add a characteristic or key figure. The system then adds the characteristic
or key figure to the relevant field type group.
● Remove Row
Deletes the selected row.
The selected characteristic or key figure is only removed from the joined data source.
● Check
Checks whether the joined data source is consistent.
● Set Anchor
Sets the anchor to the selected data source.
The data source that is the anchor is the basis for any joins. Depending on the type of join, changing
the anchor to a different data source can change the joined data source fields.
Result
The joined data source is available for reporting. You can create reports using data from the joined data source. For
information about creating reports, see Create a Report [page 430].
You can delete the joined data source when your solution is in maintenance mode. For more information, see
Maintenance Mode [page 166].
In the studio, you can create reports by using data sources that you have created. You can then define the report
and the report layout in the SAP cloud solution by using the administrator tools for Analytics.
You can open a report that you created in the studio in the Design Reports view in the development environment with
the Developer user role. You cannot open reports in the development environment with the Business User role.
Procedure
1. In the Solution Explorer , right-click your data source and select Create Report .
The logon screen of the cloud solution opens in your browser.
2. Enter the user name and password that you entered when logging on to the repository.
The Report Wizard opens.
3. Use the Report Wizard to define the report characteristics, key figures, variables, and properties; then define
the report layout.
For more information, see "Working with Reports Using the Report Wizard" in the documentation of the SAP
cloud solution.
The system displays the name of your solution. The report ID starts with the default namespace.
4. In the studio, in the Solution Explorer , update your solution by clicking Refresh Solution ( ).
A .report file ( ) appears under your solution.
Result
You have created a report in your solution and defined the report content using the data defined in your data source.
You can check which reports are defined for a particular data source. For more information, see Analytics Quick
Guide [page 410] under Manage Reports .
You can create a work center and a work center view to which you want your report to be assigned; then, in the UI
designer, you can:
1. Add the work center view to the work center.
2. Assign a stable anchor to the work center view to which you want your report to be assigned.
For more information, see Define an Anchor for a Floorplan [page 619] and Anchors [page 623] .
You must assign this anchor so that administrators of the SAP cloud solution can assign reports to this work
center view.
3. Add the List and Gallery standard reports list views to your work center. These views list all reports that are
assigned to the views of the work center.
For more information, see Add a Report List View to a Work Center [page 617].
We recommend that you provide information about the work center views to which customers need to assign
reports in your Solution Documentation. For more information, see Documentation Types in Cloud Solutions
from SAP [page 678] .
In the SAP cloud solution, you can use the administrator tools for Analytics to create a key figure based on an SAP
data source or based on a data source you have created (custom data source). This key figure can then be used in
a report. There are two types of key figures: A calculated key figure is determined using calculation rules or
formulas and a restricted key figure is restricted to a specified characteristic value.
Availability
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
Prerequisites
● You are assigned the Developer user role and have access rights for the Business Analytics work center. For
more information, see User Setup Quick Guide [page 30] .
● You have switched on the admin mode so that the system saves the analytics content you create in your
solution. To do this, select
Administration Switch On/Off Admin Mode in SAP Solution .
● You have created a data source, if you want to base your key figure on a custom data source. For
more information, see Create a Data Source [page 425].
Procedure
1. In the studio, open your solution and, in the Solution Explorer , click Add New Item .
The Add New Item dialog opens.
2. Select SAP Analytics Key Figure .
3. Enter a name and click Add .
The logon screen of the SAP cloud solution opens. Log on to the system.
4. In the New Key Figure view, in the Define Key Figure and Select Data Source step, if you want, change the
default name of your key figure ( AnalyticalKeyFigure1) and enter a description.
5. Choose an SAP data source or a data source you have created for your solution.
6. Choose which type of key figure you want to create: Calculated Key Figure or Restricted Key Figure .
Result
You have created a key figure that you can now use in a report. For more information, see Create a Report
[page 430].
You can delete the key figure when your solution is in maintenance mode. For more information, see Maintenance
Mode [page 166] .
In the studio, you can create a mass data run (MDR) for your custom business object, define selection parameters
for the mass data run, and create the relevant screens. In the SAP cloud solution, your customer uses the mass
data run to schedule an action for many instances of a custom business object.
Availability
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
Tasks
For more information, see Test the Mass Data Run [page 439] .
See Also
Example: Changing the Status of a Price Request (Mass Data Run) [page 440]
With a mass data run (MDR), you can execute an action for many instances of a custom business object without
user interaction. You can schedule the mass data run to be executed immediately, on a specific date and at a
specific time, or periodically. The node of the custom business object needs to have an action and a query.
● You cannot use QueryByElement queries. These are generated automatically for every node of a
custom business object.
● You cannot create a mass data run for the action of an SAP business object.
For more information, see the mass data run documentation in the SAP cloud solution.
Features
In the studio, you can create a mass data run for a custom business object, which your customer can then use in the
SAP cloud solution.
Process Overview
Process steps for you in the studio:
1. In the Mass Data Run Wizard: Define the mass data run
a. Select the custom business object, the node, and the action
b. Select the query and the selection parameters
Select the control parameters
c.
2. In the Solution Explorer : Generate the mass data run screens
3. In the UI designer: Assign the mass data run work center view to the UI
Greater
Than/
Less Than/ Greater
Multiple Contains Less Than Than Or
Data Type Values Equal To Between Pattern Or Equal To Equal To Format Example
Measure, Yes Yes Yes Yes Yes Yes Positive and 420.5
Quantity negative
entries are
possible
Parallel Processing
Parallel processing can shorten the processing time of a mass data run. If you select parallel processing, blocks of
50 business object instances are processed in parallel. The number of processes being executed in parallel
depends on the current system activities and cannot be influenced. If parallel processing of the business object
instances changes the same instance of another business object, locking problems can occur.
Only use parallel processing if you are sure that the business object instances are processed
independently of each other.
Application Log
For each execution of a mass data run, the system creates an application log. This shows the selection criteria used
for the mass data run and the messages that the system generated during the execution. In addition, the application
log details the number of instances processed and the number of instances changed. When you define the mass
data run, you can specify which messages (error, warning, or success) you want the application log to display.
Application logs are stored for the retention time you define (one day, one week, or one month). The next time the
mass data run is executed, the system deletes application logs for which the retention time has expired.
For more information, see the application log documentation in the SAP cloud solution.
Scheduling of Mass Data Runs in the SAP Cloud Solution
To execute a mass data run, business users have to create a new instance in the MDR work center view. They can
also add further selection criteria. After setting the mass data run instance to Active , the new mass data run can be
scheduled. Business users can choose from the following scheduling options:
● Start Immediately
Immediate execution of the mass data run. Depending on the current system activities, it may take some time
until the process starts.
● Single Run
Single execution on a specific date or at a specific time.
● Recurrence
Recurring execution of the mass data run (daily, weekly, or monthly).
For more information, see the "Background Jobs Quick Guide" in the SAP cloud solution.
Changing Mass Data Runs
If you change and activate a mass data run during development, the system deletes all existing instances and all
scheduled executions runs of that mass data run. This is not the case if a solution with a changed mass data run is
uploaded (for example, to a customer system). However, if you change delivered mass data runs, the runtime
behavior of scheduled mass data runs may be affected. For example, if you change one of the selection criteria, the
list of instances found by the query changes.
You can delete a mass data run when your solution is in maintenance mode. For more information, see Maintenance
Mode [page 166] .
Mass Data Run in Solution Templates
In the studio, you define one or more mass data runs (MDR) for your custom business object. First, in the Mass Data
Run Wizard, you select the relevant business object, node, and action. Then, you select the query and define the
selection parameters for the query. After that, you define the control parameters for the execution of the mass data
run. Finally, you generate the screens for the mass data run.
Prerequisites
● You have created a solution.
● The solution contains a custom business object with an action. For more information, see the Business Objects
Quick Guide [page 326] under Create a Business Object and Action (Business Object) [page 172] . You
have created a query for the business object in the node containing the action. For more information, see
●
Create a Query [page 342] .
● You have created a screen scenario. For more information, see Generate Screens for a Business Object
[page 350] .
Procedure
1. In the studio, in the Solution Explorer , right-click the custom business object and select Create Mass Data
Run.
The Mass Data Run Wizard opens.
If the Create Mass Data Run option is disabled (grayed out) in the context menu of the custom business
object, the prerequisites for creating a mass data run are not met. This is the case, for example, when
the business object does not contain an action or a query.
2. In the Create a Mass Data Run step, enter a name, select a business object, a node, and an action, and click
Next .
3. In the Define Selection Criteria for Mass Data Run step, do the following:
a. Select a query and then the restrictions None, User Selection, or Fixed Value for the query fields.
You must select User Selection or enter fixed values for at least one field.
Depending on the data type of the field, the ... button may not be available.
2. Click the Equal to button on the left and select one of the options.
3. Click Add to further restrict the values.
For more information on how to restrict the values, see Mass Data Run [page 434]
under Selection Criteria.
d. Click Next .
5. In the Review step, review your entries and click Finish.
In the Solution Explorer , a .run file ( ) appears.
6. To activate the mass data run, right-click the .run file and select Activate .
7. Right-click the mass data run and select Create Screens.
Three files ( .OWL.uicomponent, and .QA.uicomponent, .WCVIEW.uiwocview) are displayed in the
Solution Explorer under the .run file.
If you delete an element (field) with a label from your business object that is used in the mass data
run and query, you must do the following to be able to activate the business object again:
1. Open the query, deselect the field and save the query.
Then you can activate the business object.
2.
Result
You have defined one or more mass data runs for your custom business object and created the relevant screens. In
the UI designer, you can now assign the MDR work center view to the UI.
For more information, see Assign MDR Work Center View to UI [page 439] .
Overview
You have created a mass data run and its screens. Now you want to assign the mass data run work center view to
the work center of your custom business object.
Procedure
1. In the Solution Explorer , open the _WCF.WCF.uiwocfile of the custom business object. Right-click the file and
select Open UI Designer.
The UI designer opens.
2. On the Designer tab, select the TestView work center view.
3. In the Configuration Explorer , select [Your Solution]_MAIN SRC [your mass data run work center
view]_WCView and drag and drop it onto the empty space in the middle of the screen.
A warning message appears.
4. Click Yes and then Save and Activate and close the UI designer.
5. Reopen the UI designer by right-clicking the _WCF.WCF.uiwoc file of the custom business object.
On the Designer tab, the TestView work center view should now have changed its name to the name of your
mass data run.
If you want to change the texts on the screens, open the relevant screen in the UI designer and enter
a new text in the Property Explorer . For more information, see Change the Title of a Component
[page 606] .
Result
You have assigned the mass data run screens to the work center of the custom business object. Your customer can
now define and schedule mass data runs in the cloud solution.
For more information, see Test the Mass Data Run [page 439] .
Overview
You have assigned the mass data run work center view to the UI. Now you can test the mass data run in the SAP
cloud solution.
Prerequisites
In the UI designer, you have assigned the mass data run screens to the work center of the custom business object.
For more information, see Assign MDR Work Center View to UI [page 439].
Procedure
1. In the SAP cloud solution, choose the work center view of the custom business object and create some
instances of the business object.
2. Choose the work center view of the mass data run and click New.
3. Enter a Run ID and a Run Description .
4. To define selection criteria, proceed as follows:
a. Click one of the Selection Criteria tabs and click Add Row.
b. Click Inclusion/Exclusion to include or exclude values.
c. Select a search pattern and enter a range.
d. Save your entries and click Set to Active .
5. Click Schedule.
The Schedule Job view opens.
6. The following scheduling options are available:
● To start the mass data run immediately, select Start Immediately and enter a data and time.
● To start the mass data run after another job, select a job in the Scheduled Job Selection dialog or enter
a data and time.
● To schedule the mass data run as a single run, select Single Run and enter a date and time.
● To schedule a recurring mass data run, select Recurrence , enter date and time and the type of
recurrence.
7. Click Save and Close.
Result
You have scheduled the mass data run, which will be processed according to the selections you have made. In the
Mass Data Run OWL, under Execution Details, the status of your mass data run is displayed.
Once the mass data run has been completed, the process status changes. You can then access the application log
by clicking Application Log ID for more detailed information.
This example illustrates a use case for mass data runs for custom business objects. Assume the custom business
object PriceRequest has a validity period. Once the validity of the price request has expired, we want to change its
status to obsolete. This status change can be performed using a periodically scheduled mass data run.
Prerequisites
● You have installed the studio on your PC or laptop. For more information, Installing SAP Cloud Applications
see Studio [page 27] .
Tasks
(this.ValidityEndDate
if Context.GetCurrentSystemDate()
< this.Status
&& PriceRequestStatusCode.CO_OBSOLETE
!= )
{
this.Status = PriceRequestStatusCode.CO_OBSOLETE;
raise PriceRequestSetToObsolete.Create("S", this.PriceRequestID);
}
8. Save and activate the script file.
See Also
Mass Data Run [page 434]
Mass Data Run Quick Guide [page 433]
8.12 Mashups
Using the studio, you can create mashups for an SAP cloud solution, and add them to an SAP floorplan or a
floorplan that you have designed.
Creating Mashups
Using the studio, you can create mashups for an SAP cloud solution, and add them to an SAP floorplan or a
floorplan that you have designed.
Tasks
Overview
Mashups are used to integrate data from SAP's cloud solution with data provided by an online Web service or
application. Users can access the content provided by these Web services and applications, and use it in their daily
work. Mashups can include Web searches, company or industry business information, or online map searches.
Using the studio, you can create mashups for an SAP cloud solution, and add them to an SAP floorplan or a
floorplan that you have designed.
Prerequisites
The following prerequisites apply:
● You must enable the admin mode for the solution in which you create the mashup to ensure that the system
saves your content and any changes you make in the solution. To do this, open your solution and select
Administration
Switch On/Off Admin Mode in SAP Solution . For more information about the admin
mode, see Working in the Integrated Development Environment [page 36] .
If you create a Web service for a mashup, the following prerequisites apply concerning API keys and authentication:
API Keys
●
Some Web services require a unique API key to allow you to access their services. You can generate a
company-specific API key on the service provider's Web site and then use this key to authenticate access to
the service from SAP's cloud solution.
You can identify which mashups require an API key by the icon displayed in the API Keys column. The Enter
API Keys dialog box displays the API keys that are required by the selected mashup.
● Basic Authentication
Basic authentication allows you to enter a user name and password for authenticating access to a Web
service. This user name and password is then used to automatically authenticate all other users accessing the service.
● Secure Authentication
For Web services that support the OAuth authentication protocol, you can set up secure authentication. The
OAuth protocol enables secure, user-based access to Web services from SAP's cloud solution. Unlike other
authentication methods, OAuth gives the user full control of his or her own authentication details. To use a
mashup based on an OAuth authenticated Web service, users need to authenticate themselves on the
service provider's web site, where they are given a unique PIN code. This PIN code is then used to
authenticate access to the service from SAP's cloud solution.
Features
The following mashup types are available:
There are four different mashup types:
● URL Mashups
● HTML Mashups
A mashup that embeds an HTML or JavaScript based Web page directly on a screen.
● Data Mashups
A mashup combines and displays data from both internal and external sources. To create a data mashup, an
integrated authoring tool is used to transform or merge external Web services with internal business data
using industry-standard Web service protocols.
● Custom Mashups
A mashup that has been created as an add-on solution by SAP.
You can create new data, URL, and HTML mashups. Custom mashups can be created only by SAP.
In particular, mashups are distinguished by the following characteristics:
● Mashup Categories
Mashups are grouped together into categories according to the type of service or information that they
provide.
● Port Binding
Certain fields on screens are predefined as screen out-ports and in-ports. These screen out-ports and in-
ports are grouped together as a port binding.
The port binding defines the type of information that can be used in the mashup and defines on which screens
you can use the mashup. The mashup category specifies which port bindings are available.
Process Flow
The following process steps apply:
1. Create a Mashup
You can create the following mashup types:
Create
●
a URL Mashup [page 462]
If you want to integrate a mashup into a floorplan provided by SAP, this floorplan must have an existing
outport with a stable anchor and a referenced anchor. You cannot create your own outports for SAP
floorplans.
See Also
Mashups Quick Guide [page 445]
Overview
When you create a new mashup, you need to select a mashup category. Mashup categories are used to group
together mashups by the type of service or information that they provide. Depending on the mashup category
selected, you can then select a port binding. This defines the screen out-port parameters that can be used in a
mashup and the screens on which the mashup can then be made visible.
Features
The following table gives an overview of the different mashup categories available in SAP's cloud solutions, and the
type of information available for use in each mashup category. The out-port type corresponds to one or more
parameters that can be used when creating a mashup.
The mashup categories and port bindings that are available depend on the cloud solution that you have.
When you create a new mashup, you can see which mashup categories and port bindings are available in the
dropdown list.
Business & Finance Additional Account Show additional information Account name information
Information for a dedicated account
Company Financial and Search for business-related D-U-N-S number and name of
Business Information by information based on a company
Company Name or DUNS company name or D-U-N-S
number
Web Feed by Company Name Display web feeds filtered by a Name of company
company name
Location & Travel Business Locator Search for a local business Industry and address
address by address or information
industry
Route Planner Plan a business route based Start address, end address,
on a list of addresses and additional destinations
News & Reference Business Partner Web Search Search for a business partner Search term
by name
Productivity & Tools Reverse Lookup Look up a business address Name and address
using partial address information
information
Social & Communication Social Network Display people or business People or business partner
partner profiles that are listed profile information
in a social network
The following table shows on which screens a mashup can be made visible for each port binding.
Supplier editor
Business Partner Web Search Business Partners Partner Overview fact sheet
and
Contact Overview fact sheet
Search Provider
Contact editor
Accounts view
Supplier editor
Company Financial and Business Business Partners Account Overview fact sheet
Information by Company Name
and Accounts view
Partner editor
Partners view
My Bank editor
My Banks view
Competitor editor
Supplier editor
Company Financial and Business Business Partners Account Overview fact sheet
Information by DUNS Number
Accounts view
Suppliers view
Company Financial and Business Business Partners Account Overview fact sheet
Information by Industry
Accounts view
Supplier editor
Suppliers view
Contact editor
Contact editor
Contact editor
Contacts view
Employees view
Supplier editor
Suppliers view
Partners view
Contacts view
Contact editor
Accounts view
My Banks view
My Bank editor
Web Widget Web widgets can be added to any screens including the Home work center Overview
view as well as all other Overviews.
See Also
Creating Mashups [page 447]
Overview
Mashups are used to integrate data from SAP's cloud solution with data provided by an online Web service or
application. Users can access the content provided by these Web services and applications, and use it in their daily
work. Mashups can include Web searches, company or industry business information, or online map searches.
Prerequisites
Configuration settings are usually performed by an administrator. If you do not have the required
authorization, contact your administrator.
You have enabled Communities, Document Management and External Services in your system configuration. To find
this business option, go to the Business Configuration work center and choose the Implementation Projects view.
Select your implementation project and click Edit Project Scope . In the Scoping step of the project, ensure that
People Collaboration, Intranet and External Services is selected within Communication and Information Exchange .
In the Questions step, expand the Communication and Information Exchange scoping element and select People
Collaboration, Intranet and External Services . Select Communities, Document Management and External Services
and answer the question related to Mashups, Web Services, and External Search Providers Integration .
Before a mashup can be used, it must be activated by an administrator. This administrator must have authorization
for the Mashup Authoring and Mashup Web Services work center views.
Note that some mashups may not be applicable to your country. Your administrator should ensure that the
mashup is valid for your country before activating it for company-wide usage.
The administrator can create new URL, HTML, or data mashups based on a mashup category provided by SAP.
Depending on your solution, preconfigured mashup Web services are provided, which the administrator can use to
create mashups.
● The administrator does this centrally for all users in the Adapt menu. For more information, see Make a
Mashup Visible on a Screen.
● The user does this for himself or herself in the Personalize menu. For more information, see Personalize a
Mashup.
If a mashup has not yet been activated, the administrator can edit and activate it at a later date from
the Mashup Authoring view.
Features
There are four different mashup types:
URL Mashups
●
A mashup that sends data from SAP's cloud solution to the URL of an online service provider. The service
provider uses the data, for example, to perform a search, and the results are displayed in a new browser
window.
● HTML Mashups
A mashup that embeds an HTML or JavaScript based Web page directly on a screen.
Data Mashups
●
A mashup combines and displays data from both internal and external sources. To create a data mashup, an
integrated authoring tool is used to transform or merge external Web services with internal business data
using industry-standard Web service protocols.
● Custom Mashups
A mashup that has been created as an add-on solution by SAP.
Administrators can create new data, URL, and HTML mashups. Custom mashups can be created only by SAP.
In particular, mashups are distinguished by the following characteristics:
● Mashup Categories
Mashups are grouped together into categories according to the type of service or information that they
provide.
● Port Binding
Certain fields on screens are predefined as screen out-ports and in-ports. These screen out-ports and in-
ports are grouped together as a port binding.
You can identify which mashups require an API key by the icon displayed in the API Keys column. The Enter
API Keys dialog box displays the API keys that are required by the selected mashup.
● Basic Authentication
Basic authentication allows you to enter a user name and password for authenticating access to a Web
service. This user name and password is then used to automatically authenticate all other users accessing the
service. Secure Authentication
●
For Web services that support the OAuth authentication protocol, you can set up secure authentication. The
OAuth protocol enables secure, user-based access to Web services from SAP's cloud solution. Unlike other
authentication methods, OAuth gives the user full control of his or her own authentication details. To use a
mashup based on an OAuth authenticated Web service, users need to authenticate themselves on the
service provider's web site, where they are given a unique PIN code. This PIN code is then used to
authenticate access to the service from SAP's cloud solution.
Configuring Mashups
Administrators can configure mashups in the following ways:
Centrally
●
Depending on your solution, go to Application and User Management Business Flexibility Mashup
Authoring
or Administrator Business Flexibility Mashup Authoring
● On a particular screen
Use the Adapt function on any screen enabled for mashups to access the adaptation sidecar.
● Create new URL, HTML, or data mashups based on a mashup category provided by SAP
See Also
Mashup Authoring Quick Guide
Mashup Web Services Quick Guide
Overview
The SAP cloud solution provides port bindings that specify on which screens mashups can be used. However, you
can also create your own port bindings for your solutions, if required.
Prerequisites
You must have created a solution. The following prerequisites for creating solutions that use mashups apply:
● You must enable the admin mode for the solution in which you create the mashup to ensure that the system
saves your content and any changes you make in the solution. To do this, open your solution and
select Administration
Switch On/Off Admin Mode in SAP Solution . For more information about the admin
mode, see Working in the Integrated Development Environment [page 36] .
Before you can create a port binding, you need to create a port type package for the mashup inport. If the mashup
is going to return data that is entered automatically into the cloud solution, then you need to create a port type
package for the mashup outport as well. For information on creating port type packages, see
Create a Port Type
Package [page 584] .
Procedure
1. Open your solution.
2. In the Solution Explorer , under Mashup Configuration , right-click Port Binding and select Create Port
Binding .
3. Select the Mashup Port Binding template.
4. Enter a name for the port binding and click Add .
5. Right-click the port binding, and choose Open.
The UI designer opens, displaying a dialog box that contains the name of the port binding in the title.
6. In the Display Name field, enter the name of the port binding. In the Description field, enter a text that describes
what the port binding is used for.
This information is displayed in the dropdown list when you create a mashup and select a port binding.
7. In the Category field, select the mashup category to which the port binding should be assigned.
8. Select an inport type package from the dropdown list.
Only your own inport type packages are displayed in the dropdown list.
Only inport type references that have been defined for the port type package that you have selected
are displayed.
Result
You can now use the port binding when you create a mashup. For more information on creating mashups, see
Creating Mashups [page 447].
See Also
Mashups Quick Guide [page 445]
In the studio, you can create URL mashups to send data from the SAP cloud solution to a URL of a Web service
provider. The results are displayed on the Web service provider’s Web site, which is opened in a new browser window.
Some Web services may pass your business data to a third-party organization, for example, account data is
passed to a search engine when performing a reverse lookup in an online address book. We recommend
that you check whether the mashup conforms to your company’s data privacy policies before activating the
mashup.
Prerequisites
You know the end-point URL of the Web site providing the service. This could be, for example, the search results
page of an online search provider.
● You must enable the admin mode for the solution in which you create the mashup to ensure that the system
saves your content and any changes you make in the solution. To do this, open your solution and select
Administration
Switch On/Off Admin Mode in SAP Solution . For more information about the admin
mode, see Working in the Integrated Development Environment [page 36] .
Procedure
Open your solution. In the Solution Explorer , do one of the following steps:
● If you are creating a mashup for the first time for this solution, right-click Add-on Solution (In Development) ,
then select Add New Item Create URL Mashup .
● If you have already created a mashup for this solution, you can simply right-click MashupAuthoring and select
Create URL Mashup.
The SAP cloud solution opens. If required, enter your user and password, then do the following steps:
1. Select a mashup category.
The mashup category is used to group mashups by the type of information they provide. It is shown to
business users when they personalize mashups in the side panel.
By default, the mashup has the status Active . This means it will be available for use when saved. If you
want to prevent users from accessing the mashup immediately, change the status to Inactive .
4. Under URL Information , enter the URL of the Web service and click Extract Parameters .
The URL can be taken directly, for example, from the search results Web page of an online search provider.
Copy and paste this URL directly into the field. The system then extracts all parameters from the URL and
displays them in the table.
Note that for URLs that do not use queries you can manually add curly brackets around terms that
should act as placeholders. For example, in the URL https://mail.google.com/mail/#search/
SAP, you can replace the word SAP with a search term in curly brackets, for example, {term}.
If you then enter https://mail.google.com/mail/#search/{term} in the URL field and click
Extract Parameters , the word in brackets is extracted as a parameter.
5. For any parameters that require a fixed value, check and adjust the value in the Constant column.
6. For dynamic parameters, in the Parameter Binding column, map the dynamic parameters to screen out-ports
by selecting an out-port from the value help.
The Parameter Binding dialog box displays a list of screen out-ports that have been configured for the selected
mashup category and screen. Select the parameter you want to bind to the URL parameter.
Note that If you are creating a mashup for the category route planner, you can also define the following
optional settings:
● Code Format Conversion : For parameters that contain a code, you can change how code formats are
converted.
● Start Index for List : You can define whether the array parameter starts with 0 or 1.
● Prefix for First Value/ Prefix for Next Value : You can only define prefixes for URLs that have the index
pattern $I and for which the start index has been set to zero.
7. Click the Preview link to display the end result of the mashup.
8. Save your changes.
Result
When you return to the studio, click Refresh to display the mashup in the Solution Explorer .
You can now do the following tasks:
● Add a Mashup to an SAP Floorplan [page 474]
Add a Mashup to Your Floorplan
● [page 483]
The document Add a URL Mashup [page 106] provides an example of how you can add a URL mashup to a quick
activity floorplan.
See Also
Mashups Quick Guide [page 445]
In the studio, you can create data mashups for integrating data provided by third-party Web services with business
data from the SAP cloud solution.
Note that some Web services may pass your business data to a third-party organization, for example,
account data is passed to a search engine when performing a reverse lookup in an online address book. It is
recommended that you check whether the mashup conforms to your company’s data privacy policies before
activating the mashup.
Prerequisites
You have either integrated a new Web service or have decided to base your mashup on one or more of
the preconfigured Web services provided by SAP or partners.
Web services that you have integrated for use in data mashups must use the XML service protocol.
For more information about adding a new RSS/Atom, REST, or SOAP Web service, see Create a Mashup Web Service
[page 471] .
● You must enable the admin mode for the solution in which you create the mashup to ensure that the system
saves your content and any changes you make in the solution. To do this, open your solution and select
Administration
Switch On/Off Admin Mode in SAP Solution . For more information about the admin
mode, see Working in the Integrated Development Environment [page 36] .
Procedure
Open your solution. In the Solution Explorer , do one of the following steps:
● If you are creating a mashup for the first time for this solution, right-click Add-on Solution (In Development) ,
then select Add New Item Create Data Mashup .
● If you have already created a mashup for this solution, you can simply right-click MashupAuthoring and select
Create Data Mashup .
The SAP cloud solution opens. If required, enter your user and password, then do the following steps:
1. Select a mashup category.
The mashup category is used to group mashups by the type of information they provide. It is shown to
business users when they personalize mashups in the side panel.
2. For the mashup category, you then select the port binding that you want to use in the mashup. This information
is not shown to business users.
The port binding defines which screen out-ports or in-ports can be used in the mashup and on which screens
the mashup can be used.
4. On the Define Mashup Details step, create the mashup by adding building blocks to the authoring canvas and
adjusting the properties. First of all, define the source of input for the mashup. You have the following options:
Mashup In-Ports
If mashup in-ports exist for the selected mashup category, the Mashup In-Port building block is added
automatically to the authoring canvas. Click on the Mashup In-Port building block to view and adjust its
parameters.
User Inputs
User inputs allow you to define a field in which a user can enter or select a value. This value is then used as
input for the mashup. To add a user input to the mashup, select it from the pane on the left of the screen and
drag and drop it onto the authoring canvas.
User Inputs
Text Input Allows users to enter a string of characters as input for the mashup.
Number Input Allows users to enter a number as input for the mashup.
Select Option Input Allows users to select an option from a dropdown list as input for the mashup.
After adding a building block to the authoring canvas, click on the building block to view and adjust its
properties. You can enter a name in the Input Name field. This can then be mapped to an input parameter,
for example, in a search service. In the Input Label field, enter the field label that should be shown to users for
this input field. For text and number inputs you can also define a default value, which can then be overwritten
by other users. If you have selected a Selection Option Input building block, click the button next to Options
to define the list of options that the user can choose from.
Data Sources
Data sources allow you to use data stored in a separate file as input for the mashup. This could be, for
example, an XML file provided by an online service provider.
Data Sources
CSV Data Source Use a CSV file as input for the mashup. You can choose to either upload a file or reference
an online CSV file.
XML Data Source Use an XML file as input for the mashup.
7. Add actions to the mashup by dragging and dropping them onto the authoring canvas and drawing a
connecting line between them and the service. Actions allow you to transform the content retrieved by the
Web services. You have the following options:
Filter Data Filter the items returned by the service. You can create rules based on the parameters provided
by the service.
Sort Data Sort the display order of items in the results based on the parameters provided by the service.
Truncate Data Truncate the number of items displayed in a feed after a given number.
Merge Data Merge multiple feeds to display in a common results list. You can use this action to combine
data from two sources that have the same format into a single results list.
Join Data Join two data sources based on conditional rules to form a new data source. You can use
this action to combine data from two sources that do not have the same format.
Add Field Add one or more fields available in the parameters returned by the service to the results.
Extract Field Extract a specific piece of information from the results, for example to use as input for another
service within the same mashup.
Replace Text Replace a specific piece of text in the results with a different text.
Convert Text Convert text based on conditional rules. For example, by applying formatting to the text.
Concatenate Text Concatenate text in the results. For example, you can use this action to concatenate two
parameters in the search results to display in the same field.
Arithmetic Operation Perform an arithmetic operation with the results based on operation rules.
8. For mashup categories that allow the results data returned by the service to be integrated back into the screen,
you can add a Mashup Out-Port building block to the mashup using drag and drop.
9. Click Preview Result .
To preview the mashup results you may have to manually add a value to the input field of the mashup in-port
or user input. To do this select the building block and under properties, enter a value. In the runtime version,
these values will be replaced automatically by either the parameter taken from the screen out-port or by the
user entering their own value.
If you are using a service that uses the authentication method OAuth, then you will need to log on to
the service and generate a PIN code in order to preview the service results. Afterwards when users
are accessing the mashup, they will be prompted to create their own PIN code.
11. If required, you can also change the default refresh settings that are used to determine when the Web service
used in the mashup is called. You have the following options:
● Refresh on Mashup Loaded: Deselect this checkbox if you do not want the Web service to be called when
the mashup is loaded for the first time.
● Refresh on In-Port Data Changed: Deselect this checkbox if you do not want the Web service to be called
when the user changes the in-port value.
12. On the Review step, you can view how the mashup will be displayed to users. Review your settings and click
Finish to create the mashup.
Result
When you return to the studio, click Refresh to display the mashup in the Solution Explorer .
You can now do the following tasks:
● Add a Mashup to an SAP Floorplan [page 474]
Add a Mashup to Your Floorplan
● [page 483]
See Also
Mashups Quick Guide [page 445]
Overview
In the studio, you can create HTML mashups to embed an HTML or JavaScript based Web page into a screen.
Some Web services may pass your business data to a third-party organization, for example, account data is
passed to a search engine when performing a reverse lookup in an online address book. We recommend
that you check whether the mashup conforms to your company’s data privacy policies before activating the
mashup.
Prerequisites
You know the URL of the Web site that you want to embed.
● You must enable the admin mode for the solution in which you create the mashup to ensure that the system
saves your content and any changes you make in the solution. To do this, open your solution and
select Administration
Switch On/Off Admin Mode in SAP Solution . For more information about the admin
mode, see Working in the Integrated Development Environment [page 36] .
Procedure
Open your solution. In the Solution Explorer , do one of the following steps:
● If you are creating a mashup for the first time for this solution, right-click Add-on Solution (In Development) ,
then select Add New Item Create HTML Mashup .
● If you have already created a mashup for this solution, you can simply right-click MashupAuthoring and select
Create HTML Mashup .
The SAP cloud solution opens. If required, enter your user and password, then do the following steps:
Select a mashup category.
1.
2. For the mashup category, you then select the port binding that you want to use in the mashup. This information
is not shown to business users.
The port binding defines which screen out-ports or in-ports can be used in the mashup and on which screens
the mashup can be used.
By default, the mashup has the status Active . This means it will be available for use when saved. If you
want to prevent users from accessing the mashup immediately, change the status to Inactive .
4. Under Configuration Information , adjust the display height, as required. The default height is 327 pixels.
5. Specify the type of mashup you want to create. That is, select whether you want to enter HTML code or a
URL.
6. Depending on what you have selected, do one of the following:
● Enter a URL
1. Enter a URL in the URL field and click Extract Parameters .
The system extracts the parameters from the URL and adds them to the table below, where you
can edit constants and bind parameters to the screen out-ports available for the selected port
binding.
For URLs that do not use queries you can manually add curly brackets around terms that
should act as placeholders. For example, in the URL https://mail.google.com/mail/
#search/SAP, you can replace the word SAP with a search term in curly brackets, for
example, {term}. If you then enter https://mail.google.com/mail/#search/
{term} in the URL field and click Extract Parameters , the word in brackets is extracted as a
parameter.
To assist you in coding HTML Mashups, some example APIs are documented here: Example
APIs for HTML Mashups [page 469] .
2. Under Input Parameters and Output Parameters , the parameters are listed depending on the port
binding that you have chosen. If required, you can copy the string code for a parameter to the HTML
code editor by selecting the parameter and clicking Copy . The string code of the parameter is
copied to the first row of the editor. You can then move this code string to the required location in
the code.
3. Click Preview to display the end result of the mashup.
4. To test the mashup, you can enter sample values for the parameters, and click
Update Parameter Values to the right of the HTML code editor.
Result
When you return to the studio, click Refresh to display the mashup in the Solution Explorer .
You can now do the following tasks:
● Add a Mashup to an SAP Floorplan [page 474]
Add a Mashup to Your Floorplan
● [page 483]
See Also
Mashups Quick Guide [page 445]
Overview
This document provides some example APIs to help you to code HTML mashups.
Any software coding or code lines/strings (“Code”) provided in this documentation are only examples
and are not intended for use in a productive system environment. The Code is only intended to better
explain and visualize the syntax and phrasing rules for certain SAP coding. SAP does not warrant the
correctness or completeness of the Code provided herein and SAP shall not be liable for errors or
damages cause by use of the Code, except where such damages were caused by SAP with intent or
with gross negligence.
When you click Add REST Service in the toolbar of the editor, the code template of this API is inserted automatically.
Parameters
serviceOptions is a JSON object with the following parameters:
Example
sap.byd.ui.mashup.callService({
serviceId: 'CW00001'
parameter: {'query': 'SAP',}, onComplete: 'serviceCallback_CW00001', onError: 'exceptionHandl
});
● System
Mashup system parameters
Parameter Description
Example
sap.byd.ui.mashup.onContextUpdate = function() {
var ctx = sap.byd.ui.mashup.context;
// context parameters
console.log('Logon language:' + ctx.system.LogonLanguage);
// whole list of parameters for Port Binding Reverse Lookup console.log('Company name:' + ctx
};
});
See Also
Create an HTML Mashup
Overview
In the studio, you can create mashup Web services that can then be integrated into a data or HTML mashup. RSS/
Atom, REST, SOAP, and OData Web services are supported.
Prerequisites
● For RSS or Atom feeds, you know the end-point URL of the Web service or the WSDL location.
Typically, you can find this information on the Web site of the service provider.
You can also integrate an external SOAP or REST Web service into your solution. To do this, you use the
External Web Service Integration Wizard .
For more information, see Integrate an External Web Service Using SOAP [page 521] and Integrate an
External Web Service Using REST [page 522] .
Procedure
Open your solution. In the Solution Explorer do one of the following steps:
● If you are creating a mashup Web service for the first time for this solution, right-click Add-on Solution (In
Development) , then select Add New Item Create .... Mashup Web Service (for example, Create REST
Mashup Web Service).
● If you have already created a mashup Web service for this solution, you can simply right-click
MashupAuthoring and select Create .... Mashup Web Service (for example, Create REST Mashup Web
Service).
The SAP cloud solution opens. If required, enter your user and password, then do the following steps:
Enter a name and description for the Web service.
1.
2. Select whether you want the Web service to have the status Active or Inactive .
a. On the New RSS/Atom Service screen, under Service Information , select an authentication method, if
required.
You can only use the OAuth standard to authenticate users accessing the service if OAuth is
supported by the provider. You can find all of the information required on the provider's Web site.
b. Enter the URL of the RSS or Atom feed and click Extract Parameters .
The system extracts any parameters and displays them under Input Parameters . You can adjust these
as required. Note that only those parameters that have empty constants can later be mapped to a
mashup in-port or user input with default or dynamic values when creating a data mashup.
For URLs that do not use queries you can manually add curly brackets around terms that should act
as placeholders. For example, in the URL https://mail.google.com/mail/#search/SAP, you
can replace the word SAP with a search term in curly brackets, for example, {term}. If you then enter
https://mail.google.com/mail/#search/{term} in the URL field and click
Extract Parameters , the word in brackets is extracted as a parameter.
REST
a. On the New REST Servicescreen, under Service Information , select an authentication method, if required.
1. Enter the URL of the Web service and click Extract Parameters .
2. The system extracts any parameters and displays them under Input Parameters . You can adjust
these as required.
For URLs that do not use queries you can manually add curly brackets around terms that
should act as placeholders. For more information, see the related note in the RSS or Atom
Feed section above.
You can also use curly brackets to define parameters in POST XML bodies. For example,
you can replace a value returned by the REST service with a placeholder, for example
{placeholder}, which can then be mapped to a screen out port in a mashup.
d. Under Output Parameters , click Simulate to preview the information that is returned by the Web service.
SOAP
a. On the New SOAP Service screen, under Service Information , enter the WSDL URL and click Import .
The system extracts the WSDL content.
b. Select a service operation.
c. If required, click Copy Description to copy the service operation description into the mashup’s Service
Description under General Information .
d. Enter constants, if required.
Only those parameters that have empty constants can later be mapped to a mashup in-port or user input
with default or dynamic values when creating a data mashup.
The following restrictions apply when creating SOAP-based Web services: the XSD extensions
union, list, and restriction are not supported; it is not possible to use header messages, imports
in WSDLs, and maximum or minimum occurrence indicators; the XSD complex type structure is
always handled as a sequence; for WSDLs containing more than one service, multiple ports with
the same name are not supported; and SOAP 2.0 is not supported.
e. Under Output Parameters , click Simulate to preview what information will be returned by the Web
service.
4. Save your changes.
See Also
Using a Mashup Web Service in a Script File [page 477]
Mashups Quick Guide [page 445]
Overview
When you add a mashup to an SAP floorplan, you can specify how it should appear on the screen. The
following options are available:
● As an embedded pane
This pane displays the mashup content directly in a section on the screen.
● As a new tab
● As a menu button
The mashup can be accessed from Web Services located at the top of a screen.
● As a link in a section of a screen
The link opens the mashup in a separate browser window.
The options that are available depend on the mashup itself and the anchors that the floorplan has. The following
table lists the anchors and the possible appearances on the screen.
You can also choose an extension field to allow the user to toggle the display of the mashup on the screen by
selecting and deselecting this extension field.
● You must enable the admin mode for the solution in which you create the mashup to ensure that the system
saves your content and any changes you make in the solution. To do this, open your solution and
select Administration
Switch On/Off Admin Mode in SAP Solution . For more information about the admin
mode, see Working in the Integrated Development Environment [page 36] .
● The SAP floorplan must have an existing outport with a stable anchor and a referenced anchor. You cannot
create your own outports for SAP floorplans.
Procedure
1. Open the SAP floorplan.
a. In the studio, right-click one of your floorplans in your solution, and select Open in UI Designer.
The UI designer opens.
b. In the UI designer, go to Configuration Explorer , and navigate to the SAP floorplan in which you want
to add the mashup.
c. Right-click the SAP floorplan, and click Open.
The SAP floorplan opens in the Designer tab.
2. Add the mashup to the SAP floorplan.
You can do this in the following ways:
Add Mashup Through a Floorplan Anchor
a. In the Configuration Explorer , open an SAP floorplan that has a floorplan anchor.
b. Right-click the floorplan in the Designer tab, and choose Select Floorplan .
c. In the Extensibility Explorer , under Operations , click Widget Mashups Management .
A dialog box opens, and a list of available mashups is displayed.
d. Select the required mashup.
The configuration details are displayed below.
e. Select the checkbox in the Visible column. This allows the mashup to be displayed on the screen.
f. Select the required appearance in the Appearance field.
g. If a mashup should be displayed using the entire width of the screen, select Full Screen Width.
h. If there are extension fields of the type boolean, you can select an extension field in the Visibility
Binding field, to allow the user to toggle the visibility of the mashup on the screen
i. Click Apply .
The system creates a change transaction.
Save and activate your changes.
j.
If the Visible column for a mashup is disabled, it means that the mashup is already available on
the floorplan. To remove the mashup, you need to delete the corresponding change transaction
in Extensibility Explorer .
i. Click Apply .
The system creates a change transaction.
Save and activate your changes.
j.
If the Visible column for a mashup is disabled, it means that the mashup is already available on
the floorplan. To remove the mashup, you need to delete the corresponding change transaction
in Extensibility Explorer .
If the Visible column for a mashup is disabled, it means that the mashup is already available on
the floorplan. To remove the mashup, you need to delete the corresponding change transaction
in Extensibility Explorer .
i. Under Parameter Binding, select the required extension fields to be bound to the parameters.
j. If the mashup has an output parameter, select an extension field for output binding.
k. Click Apply .
The system creates a change transaction.
Save and activate your changes.
l.
If the selected mashup is already part of the view, the Apply button is disabled.
e. If the mashup should be displayed using the entire width of the screen, select Full Screen Width.
f. Save and activate your changes.
Result
The mashup is now visible on the floorplan.
To remove a mashup from an SAP floorplan, you need to delete the corresponding change transaction in the
Extensibility Explorer of the UI designer, under Operations .
See Also
Mashups Quick Guide [page 445]
Overview
If you have configured a REST or RSS/Atom mashup Web service, you can implement the call of this Web service in
a script file of your solution.
● You have created a solution with at least one business object. In the example below, an action has been
added to the business object definition.
Process Flow
1. Create a REST or RSS/Atom mashup Web service in your solution.
For more information, see Create a Mashup Web Service [page 471] .
After you have created the mashup Web service, choose Simulate in the Mashup Web Services view to test
it.
2. Create a script file for your business object, for example, an action.
3. Define the business logic to call the mashup Web service. The following is an example of an action.
import AP.Common.GDT;
Overview
In this example you are going to add a URL mashup to the quick activity (QA) floorplan. This mashup will display the
car park location on a map, based on the location information entered.
Prerequisites
● You have completed the example: Building a Solution [page 91]
● The mashup has been created in the SAP cloud solution. For more information, see Mashups Quick Guide
[page 445] .
Procedure
1. Add an element on the root level of the Car Park business object to record location information.
element CarParkLocation : LANGUAGEINDEPENDENT_Text;
Result
The mashup is available from the Web Services menu on the QA. When you click the mashup, the URL is opened with
the value entered into the Car Park Location field as an input parameter.
Overview
When you add a mashup to a floorplan that you have designed, you can specify how it should appear on the
screen. The following options are available:
The options that are available depend on the mashup type. The following table lists the mashups and the possible
appearances on the screen.
Data mashups that write data back into the SAP cloud Embedded pane on a section of a screen, with or without a port
solution Menu button to a function bar
URL mashups Menu button to a list toolbar
Link in a section of a screen
Data mashups that do not write data back into the SAP Embedded pane on a section of a screen
cloud solution
HTML mashups
Prerequisites
● You have created the mashup. For more information, see:
Create
○
a URL Mashup [page 462]
● You must enable the admin mode for the solution in which you create the mashup to ensure that the system
saves your content and any changes you make in the solution. To do this, open your solution and
select Administration
Switch On/Off Admin Mode in SAP Solution . For more information about the admin
mode, see Working in the Integrated Development Environment [page 36] .
Procedure
1. Open your floorplan.
a. In the studio, in the Solution Explorer , right-click your floorplan and select Open in UI Designer.
The UI designer opens.
2. Add the mashup to your floorplan.
Choose one of the following options to add a mashup to your floorplan:
Add a Mashup as a Link / Button in a Function Bar or a List Toolbar / Section of a Screen
a. In the Controller , right-click Mashup Components , and select Add Mashup Component .
A dialog box opens.
b. In the dialog box, go to the main folder of your solution and the folder where the mashups are stored.
Select a URL mashup or a data mashup that writes data back into the SAP cloud solution, and click
c.
OK.
d. Go to the Toolbox tab to add a navigation item for a function bar or a list toolbar, or as a link to a section
group.
If the Toolbox tab is not visible, make it visible by going to View Toolbox
e. In the Controls section, drag and drop the required element ( Link / Button / SectionGroup ) to the
floorplan.
f. Add an event argument with argument name $MashupPipeID, and a constant the target mashup
component ID, for example,
TM00020.
g. Create a new event handler, and add two operations: SyncDataContainer and FireOutport .
The outport that you select here should be the same outport that you selected for FireOutport
a few steps previously.
If you do not bind the parameters, you will not be able to pass the values from the floorplan
to the mashup.
6. In the dialog box, choose the required element of the business object and click OK.
h. Bind the outport and inport parameters.
Save and activate your changes.
i.
Result
You can now test the mashup in your floorplan by clicking the Run the Component button (green triangle) in the
toolbar.
See Also
Example: Add a URL Mashup to Your [page 486]
Floorplan Mashups Quick Guide [page 445]
Overview
This example shows how to add a URL mashup as a link in a floorplan that you have designed.
Prerequisites
● You have created the mashup. For more information, see:
Create
○
a URL Mashup [page 462]
● You must enable the admin mode for the solution in which you create the mashup to ensure that the system
saves your content and any changes you make in the solution. To do this, open your solution and
select Administration
Switch On/Off Admin Mode in SAP Solution . For more information about the admin
mode, see Working in the Integrated Development Environment [page 36] .
Procedure
1. Add a link to your floorplan.
a. In the studio, in the Solution Explorer , right–click your floorplan and select Open in UI Designer.
The UI designer opens.
b. Go to the Toolbox tab.
If the Toolbox tab is not visible, make it visible by going to View Toolbox
This name starts with MAIN_<Solution Name> SRC Mashups Pipes <Pipe ID>
We recommend that you copy the name $MashupPipeID from this document and paste it
in the ArgumentName field.
If you do not bind the parameters, you will not be able to pass the values from the floorplan to
the mashup.
c. In the dialog box, choose the required element of the business object and click OK.
7. Create an event handler.
a. On the Controller tab, right-click Event Handlers and select Add EventHandler. .
The new event handler is displayed under Event Handlers.
b. Right-click the new event handler and select Rename; then enter a new name for the event handler,
for example, MashupHandler.
c. Under EventHandler Operations , click the Add Operation button twice to add two new operations.
d. For each operation, under Type, click in the field and select the following operation types:
● SyncDataContainer
● FireOutport
e. Under Name , you can change the names of these operation types
f. For FireOutport , under Configure the operation , choose the outport that you created previously.
g. Save and activate your changes.
8. Specify the navigation for the mashup.
a. On the Controller tab, under Mashup Components , select the mashup.
b. Go to the Simple Navigation tab.
c. In the Navigations folder, right-click and select Add Navigation from the context menu.
The Navigation Details tab opens.
d. Select the outport and the inport from the dropdown lists.
The source is the outport of your floorplan; the target is the inport of the mashup category.
e. To map the outport and inport parameters from the floorplan to the mashup, select these, and click
Bind .
The results are displayed in the table below.
Save and activate your changes.
f.
9. Assign the event handler to the mashup in your floorplan
a. Go to the Designer tab.
b. Select the Link element in the floorplan.
c. On the Properties tab, under Events, select OnClick, and select the event handler that you created
previously from the dropdown list.
10. Add a data field to your business object.
a. Go to the Data Model tab.
b. Right-click on your business object, and select Add Data Field from the context menu.
The data field is added to your business object.
c. Select DataField.
d. On the Properties tab, under Design, enter a text for Initial Value .
This text is used for the hyperlink that is displayed on the floorplan.
Result
You can now test the mashup in your floorplan by clicking the Run the Component button (green triangle) in the
toolbar.
See Also
Add a Mashup to Your Floorplan [page 483]
Mashups Quick Guide [page 445]
In the studio, you can create synchronous or asynchronous message-based communication between a business
object and another communication partner, such as a different system, by means of Web-service technology.
Availability
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
For more information about this tool, see the relevant documentation for the SAP cloud solution.
For more information, see Condition Evaluation for Internal Communication [page 491] .
Tasks
For more information about this task, see Configure Internal Communication [page 493] .
For more information about this task, see Create XML File Input [page 494] .
For more information about this task, see Define Service Integration Error Handling [page 496] .
For more information about this task, see Implement the Condition Evaluation Logic for Internal Communication
[page 498].
Overview
Condition evaluation is used to determine when a business object needs to send a message to the target business
object, for example, a message to create or change a business object instance. For each business object identified
as relevant for the subsequent service integration process, the system can evaluate a start condition, change
condition and a cancel condition. By default, the system sends a message every time a business object is changed
or deleted. To reduce the amount of messages, you can define that a message is raised only, for example, when
the source business object has a specific status.
Features
If you implement the evaluation logic for a condition, the system returns a Boolean value to express if the condition
is true or false, for example, based on the status of the source business object.
Condition evaluation checks the condition of the root node of a business object.
Condition Types
You can define the following conditions:
●
Relevance Condition
Based on the data of the source business object, the system checks whether the business object instance is
relevant for service integration. The system evaluates the relevance condition first. If the result is true, the
message is sent to the business object and the system evaluates the start condition. If the result is false, the
message is not sent and the service integration process is not started.
● Start Condition
This condition starts the service integration process, if the business object instance was not yet involved in
the service integration process or if the process was canceled. If the result is true, the system starts the
service integration process, that is, it compiles and sends the message to the business object.
● Change Condition
If the service integration process for the business object instance has already started, the system evaluates
the change condition. If the result is true, that is, the business object instance has changed, the system
sends a change message. If the result of the change condition is false, the system evaluates the cancel
condition. Cancel Condition
●
The system evaluates the cancel condition, if the result of the change condition is false.
The following methods are available for service integration script files:
Return Statement
●
The return statement is mandatory for each condition because it returns the result of the evaluation. The
argument is a variable or a literal of Boolean type, for example, return true;. For more information, see
Return Values (Business Logic) [page 222] .
GetProcessContext
● Method
The GetProcessContext method is called for business object nodes. The following change notification fields
are available for this method:
○ IsActiveInProcess
The business object node was already sent and not canceled.
○ IsCreated
The business object node has been created.
IsUpdated
○
The business object node has been updated.
IsDeleted
○
The business object node has been deleted.
For more information, see Process Context (Business Logic) [page 216] .
InReconciliation
● Parameter
The InReconciliation parameter specifies that the service integration process is in reconciliation mode.
For more information, see Script File Parameter (Business Logic) [page 222] .
The following example shows the code for the implementation of a relevance condition, a start condition
and a change condition:
● Relevance Condition
return true;
● Start Condition
return(this.SalesProcessingStatusCode == "2" ||
this.SalesProcessingStatusCode == "3");
● Change Condition
return true;
The scenario for this implementation is as follows: Service integration is relevant if the sales process is
started or finished. A start message will be sent if no message has been sent yet and the sales
processing status is “In Process” (code value: 2) or “Finished” (code value: 3). A change message will be
sent if the business object is changed and saved and the sales process is still in process or is finished. It
is not necessary to implement a cancel condition because the change condition is always true.
You can use internal communication to exchange data between business objects that are located in different
deployment units. To communicate, the business objects exchange XML messages in an asynchronous way, which
means that the source business object sends a request message to the target business object without expecting a
response.
You have defined the Bonus Entitlement business object in the Customer Invoicing deployment unit. The
Employee Compensation Agreement business object is located in the Human Capital Management
deployment unit. To transfer the bonus to the employees, you need to define an internal communication
configuration between both business objects.
Prerequisite
You have created and activated your business object.
Procedure
1. Open your solution and, in the Solution Explorer , open the Service Integration Wizard either via the context
menu of your business object or via the Add New Item dialog:
Solution Explorer: Business Object Context Menu Solution Explorer: Add New Item Dialog
1. In the Solution Explorer , right-click a business 1. In the Solution Explorer , click Add New Item ( ).
object in your solution and select Create Service The Add New Item dialog opens.
Integration... . 2. Select SAP Service Integration Internal
The Service Integration Wizard opens.
Communication , enter a name and click Add .
2. In the Select Service Integration Type step, select
The Service Integration Wizard opens.
Internal Communication and click Next .
3. In the Create an Internal Communication step,
3. In the Create an Internal Communication step,
specify the sender and recipient of the
specify the sender and recipient of the communication by doing the following:
communication by doing the following:
a. Optionally, change the name. Select a
a. Optionally, change the name and the sending sending business object, a receiving
business object . business object, and a receiving business
object node.
b. Select a receiving business object and a
receiving business object node.
One of the business objects must be a
One of the business objects must be a custom business object.
custom business object.
b. Click Next .
c. Click Next
b. Optionally, change the interaction message name. The default name is Maintain.
c. Optionally, select a Readable ID and click Next .
3. In the Map Message Structure to Sending Business Object step, map the sending business object elements
to the receiving business object elements. For example, map the EmployeeID element of the source business
object Bonus Entitlement to the EmployeeID element of the Item node of the target business object
Employee Compensation Agreement .
To map an element, click a cell in the Receiving Business Object column. A dialog box appears in which you
select the elements of the sending business object by double-clicking them. Only compatible fields are
displayed.
Click Next .
4. In the Instance Identification for Update step, define how node instances of the receiving business object are
identified for update by doing the following:
a. Under Instance Identification , select an alternative key or query.
● If you select Alternative Key , select the alternative key field.
● If you choose a query, for example, QueryByElements, choose the query parameters for the
query mapping. Map each query parameter to a message field. Click the Query Parameter field
twice and select a parameter, then click the Message Field field twice and select a field.
b. Under Identification of Subnode Instance , do the following:
● To prevent data that is not part of the message from being deleted in the receiving business object,
select Prevent Data Deletion .
● Choose a subnode and the corresponding key field(s). If needed, you can choose additional
subnodes and key fields.
c. Click Next .
5. In the Review step, check that the information you have entered is correct and click Finish.
A new service integration definition with the file extension .pid ( ) appears in the Solution Explorer .
6. To activate your service integration settings, in the Solution Explorer , right-click the service integration
definition and select Activate .
See Also
Define Service Integration Error Handling [page 496]
Implement the Condition Evaluation Logic for Internal Communication [page 498]
In the SAP cloud solution, administrators can use an XML file to import third-party data from other systems into a
business object.
For more information, see the relevant documentation of the SAP cloud solution.
Prerequisite
You have created a solution.
Procedure
1. Open your solution and, in the Solution Explorer , open the Service Integration Wizard as follows:
1. In the Solution Explorer , right-click a 1. In the Solution Explorer , click Add New Item ( ).
business object in your solution and The Add New Item dialog opens.
select Create Service Integration . 2. Select SAP Service Integration XML File Input , enter
The Service Integration Wizard opens.
a name and click Add .
2. In the Select Service Integration Type The Service Integration Wizard opens.
step, select XML File Input and click
Next .
To download the XML schema definition to your local PC, proceed as follows:
7. In the Solution Explorer , double-click your service integration definition.
The service integration definition opens in a document window and the information you have defined is
displayed on different tabs. On the Schema Definition tab, you can review the XML schema definition.
8. Select the General tab. Click the schema definition link and save the XML schema definition to your local PC.
You can now predefine the business tasks that an administrator can then monitor in the SAP cloud solution
if errors or conflicts occur during the upload of third-party data. For more information, see Define Service
Integration Error Handling [page 496] .
If errors occur during the upload of third-party data to the SAP cloud solution, for example, when invalid
data violates the XML schema definition, the error messages are displayed in the system in the
Application Log . When error messages are raised by the business object itself they are displayed in the
Process Communication Errors view for administrators, or tasks are created and assigned to the users
responsible for the processing. The task are also displayed in the administrator's Work view within the
Application and User Management work center.
In cases of errors during the upload due to currency or alternate key inconsistencies in the XML file,
the system displays the upload status under Execution Details with a red light. This indicates that the
upload has failed. You can view the details of the error by clicking on the corresponding Application Log
ID.
Additionally, you can view the document under Unprocessed Files in the Application and User
Management work center, File Input view. You can delete the file and upload the XML again after the
required corrections have been made.
Result
Based on this XML schema definition, customers can create an XML file, for example, in Microsoft Office Excel. The
XML file is to be stored in the WevDAV folder that was created by the studio.
Overview
You can predefine the business tasks that an administrator can monitor in the cloud solution if errors or conflicts
occur during asynchronous communication. To do this, you define the tasks and assign them to the appropriate
messages of the target business object.
In the cloud solution, the tasks will be assigned to the administrator who is responsible for the support area that the
target business object belongs to. To display the tasks, administrators navigate as follow:
Application and User
Prerequisites
In the studio, you have created a service integration definition by creating an internal communication or xml file input
using the Service Integration Wizard . For more information, see Configure Internal Communication [page 493] or
Create XML File Input [page 494] .
Procedure
1. In the studio, open the solution that contains the service integration definition for which you want to configure
the error handling.
4. In the Error Situations Solved by Task area, enter a short text for a task, for example, StartDateInvalid.
5. Assign the appropriate target business object messages to your task. To do this, select a message in the
message structure on the left and then click Assign. You can assign one or more messages to each task. The
messages then appear in the Assigned Messages area.
6. In the Error Situations Solved by Task area, click Long Text.
A text editor opens.
7. Enter the details about the error situation and how to solve it and then click OK.
The text editor closes and your text is displayed in the Long Text field.
8. Save your service integration definition.
9. In the Solution Explorer , right-click the *.pid file and select Activate .
During activation, a task list view with the name of the service integration definition and the
*.tasklistview file extension is created. You can only display the task list view in the user interface designer (UI
designer).
10. In the Solution Explorer , right-click a screen file and select Open in UI Designer.
11. In the UI designer, in the Configuration Explorer , open the Process Communication Errors work center view.
The view is located in the following folder: SAP_BYD_APPLICATION_UI/itsam/appmngt/pie/. The file
name of the view is
PCE_WCView.
12. In the Extensibility Explorer , add the task list view to the Process Communication Errors work center view as
follows:
1. Select the PCE_WCView.ao.uianchor anchor and choose Assign Component To View .
2. In the Add Assigned Object dialog box, select the TaskListView type.
3. In the Component field, click ... and select your task list view. The view is located in the SRC subfolder
of your project folder. For example, if the name of your project is A2BCD300, the folder name is
MAIN_A2BCD300/SRC/.
4. Click Apply .
13. Save and activate the PCE_WCView file.
For internal communication, you can implement the business logic for condition evaluation to specify when a
business object needs to send a message to the target business object, for example, a message to create or
change a business object instance.
For more information, see Condition Evaluation for Internal Communication [page 491] .
Prerequisites
In the studio, you have created a service integration definition by using the Service Integration Wizard . For more
information, see Configure Internal Communication [page 493] .
Procedure
1. In the studio, open the solution that contains the service integration definition for which you want to implement
the condition evaluation.
2. In the Solution Explorer , open the service integration definition by double-clicking the *.pid file.
The service integration definition opens in a document window.
3. On the Conditions tab, select a condition, for which you want to implement the evaluation logic, for example,
Relevance Condition, and click Add .
The studio generates a script file that opens in a separate document window.
In the code editor, define the evaluation logic for the condition.
4.
The condition must contain at least a return statement that returns the result of the condition evaluation with
a Boolean return value. For more information, see Service Integration Methods [page 223] .
5. Optional: Add further conditions and define the respective evaluation logic.
6. Save the service integration definition. Then right-click the service integration definition and select Activate
Script Files .
The script files for the implementation of the condition evaluation logic are activated.
The script files do not appear in the Solution Explorer . However, you can only select Activate Script
Files if script files exist.
See Also
Service Integration Quick Guide [page 489]
The studio allows you to create a Web service on an SAP business object or on any of your business objects, which
can then be consumed by a client application. This enables remote access to the business object data. You can
integrate an external Web service into your solution and address it in your business logic to enable access from the
SAP cloud solution to a remote application. You can also select a set of inbound and outbound services to create a
communication scenario. This allows customers to create communication arrangements in the SAP cloud solution to
exchange business documents electronically. Communication for Web services is based on SOAP or REST.
Web Services
A Web service is a set of programming standards that enables interoperation between different software
applications, running on a variety of platforms or frameworks. Web services use Extensible Markup Language
(XML), Simple Object Access Protocol (SOAP), Representational State Transfer (REST), and Web Services
Description Language (WSDL) to integrate software applications over the internet. XML is used to tag the data,
SOAP and REST are used to transfer the data, and WSDL is used to describe the Web service. Web service
discovery mechanisms such as Universal Description, Discovery and Integration (UDDI), and Web Services
Inspection Language (WSIL) can locate the Web services provided by a Web site.
For more information, see External Web Service Integration [page 514] .
Communication Systems
A communication system represents an external system which is used for application integration. Communication
systems can be, for example, external time recording applications or master data systems. You define a
communication system in the SAP cloud solution and use it when you create the communication arrangement.
For more information, see the “Communication Systems Quick Guide” in the documentation of the SAP cloud
solution.
Communication Arrangements
A communication arrangement helps you configure the electronic data exchange between your solution and the
communication partner. It can be set up for multiple business documents and communication types. In the case of
the communication type
B2B, the communication partner is another company, for example a customer or supplier;
Application
in the case of the communication type Integration , the communication partner is another system.
When you create a communication arrangement, you can specify an authentication method to authorize a user to
call a Web service that you have created. You can create a communication arrangement for inbound and outbound
services. An inbound service is a Web service that is based on a business object. An outbound service is a Web
service that you have integrated into your solution.
For more information, see the "Communication Arrangements Quick Guide” in the documentation of the SAP cloud
solution.
Tasks
● Add or remove business object elements for the service operations already defined in the Web service.
Add or remove service operations.
●
● Adjust the derived names for the message data types used in the WSDL file.
For more information, see Integrate an External Web Service Using SOAP [page 521] .
For more information, see Integrate an External Web Service Using REST [page 522] .
For more information, see Example: Consume a REST Service [page 524] .
For more information, see Modify an External Web Service Integration (SOAP) [page 529] .
If you use REST-based communication, you can define or delete API keys used for authentication.
For more information, see Modify an External Web Service Integration (REST) [page 530].
The system displays the list of deprecated Web services in the release you specified.
Further Information
Maintenance Mode
A customer-specific solution is in maintenance mode, if it has been assembled and downloaded; the solution status
then is Assembled. You can make changes to the solution in a patch; however, you can only make restricted changes
to certain content types. These change and delete restrictions ensure that you do not make changes to a solution
that could lead to loss of data or create inconsistencies or errors on a customer's production tenant.
When your solution is in maintenance mode, please consider the following:
● You can add new fields to a service operation and delete them.
In solution templates, you can also add new fields but you cannot delete them.
● You cannot delete delivered service operation fields.
● You can delete delivered service operation fields that have been deprecated.
Overview
A Web service is a set of programming standards that enables interoperation between different software
applications, running on a variety of platforms or frameworks. Web services use Extensible Markup Language
(XML), Simple Object Access Protocol (SOAP), Representational State Transfer (REST), and Web Services
Description Language (WSDL) to integrate software applications over the internet. XML is used to tag the data,
SOAP and REST are used to transfer the data, and WSDL is used to describe the Web service. Web service
discovery mechanisms such as Universal Description, Discovery and Integration (UDDI), and Web Services
Inspection Language (WSIL) can locate the Web services provided by a Web site.
In the cloud solution, internal communication between business objects is implemented as service integration. For
more information, see the Service Integration Quick Guide [page 489] .
Features
Authorization Concept
You can authorize users to call a Web service that you have created as follows:
Web Service Authorization Object
●
You can define a Web service authorization object for the service operations in the Web service. The
authorization concept is illustrated in the following diagram:
The Web service authorization object is assigned to work center views. For every assigned work center view,
an external application containing the selected Web service operations is created. All users who have these
work center views assigned to them are subsequently authorized to call the Web service operations. Any
restrictions, such as read-only access to data, that have been defined for the assigned work center view are
also taken into account when accessing business objects using the service operation.
For more information about communication arrangements, see the “Communication Arrangements Quick
Guide” in the SAP cloud solution.
If you use a communication arrangement to authorize a Web service that has a Web service authorization
object, you can delete the Web service authorization object.
The following list is intended to help you test the Web service:
Checking Endpoint Activation
●
Every studio tenant supports the WSIL standard. The WSIL service is a web site with the URL https://[host
name]//sap/bc/srt/wsil that lists the active Web services and endpoints provided by SAP. Enter the URL for
the WSIL service in your browser to check whether the endpoint is active and accessible.
● XML Validation
As for all inbound service interfaces, the Web service runtime only performs a minimal set of checks (for
example, checking maximum string lengths) and not general or strict validation of the inbound message.
Superfluous tags are simply ignored.
● Fault Messages
If an error occurs within a Web service, the Log element contains the details of the error in the response
message. For more information about Logelement, see Web Service Operations [page 507].
In a WSDL file the following elements are used for the definition of Web services:
● Types
A container for data type definitions such as XML Schema Definition (XSD).
● Message
An abstract, typed definition of the data being communicated.
● Operation
An abstract description of an action supported by the service.
● Port Type
An abstract set of operations supported by one or more endpoints.
● Binding
● Port
A single endpoint defined as a combination of a binding and a network address.
Service
●
A collection of related endpoints.
A WSDL file defines Web services as collections of network endpoints, or ports. A port is defined by associating a
network address with a reusable binding. In WSDL, the abstract definition of endpoints and messages is separated
from their concrete network deployment or data format bindings. This allows the reuse of abstract definitions:
messages and port types.
The following is an example of a basic WSDL file that refers to an XML Schema document:
<?xml version=º1.0º encoding=ºUTF-8º?>
<definitions targetNamespace="http://example.com/control/ws”>
<types>
<xsd:schema elementFormDefault="qualified" targetNamespace="http://
example.com/control" xmlns:ps="http://example.com/control">
<xsd:import namespace="http://example.com/schema/control" schemaLocation="PayrollCo
</xsd:schema>
</types>
<message name="GetAnnualPayrollSchedule">
</message>
<portType name="RequestPayrollControlServicesPortType"> <operation name="ProcessPayrollControl
</portType>
<binding name="RequestPayrollControlServicesBinding"
type="psws:RequestPayrollControlServicesPortType">
<operation name="ProcessPayrollControl">
</operation>
</binding>
<service name="PayrollControlServices">
<port binding="psws:RequestPayrollControlServicesBinding"
name="RequestPayrollControlServicesPortType">
</port> </service> </definitions>
XML elements and attributes are usually placed inside a container called a namespace. Inside the <types> element,
the targetNamespace attribute is used if you want to place elements and attributes from the default namespace
that is defined using the
xmlns attribute into a different namespace. The value of the schemaLocation attribute
is the location of the XML schema document to use for the target namespace. Usually this value can be a URL or the
location of the XML schema document relative to the location of the WSDL file on your local computer. In the
above example, the WSDL file refers an XML schema document PayrollControlSchema.xsd that is located in the same
folder as the WSDL file.
Some of the data types used in a WSDL file are embedded in the file in the form of an XML schema document. This
modular schema design maximizes the potential for reusability, flexibility, and maintainability of Web services
components. As an XML schema document is written in XML, there is no need for a parser. An XML schema
document defines a rich set of data types, for example, numeric data types, string data types, and date data types,
and also makes it easier to validate documents based on namespaces.
<xsd:import namespace="http://example.com/schema/common"
schemaLocation="PayrollCommonSchema.xsd"/>
<xsd:element name="PayrollGroupAnnualSchedule" nillable="false" type="pcns:PayrollGrou
<xsd:documentation>Denotes
payroll
list
the
of schedules
calendar
the
for year
payroll
the
for group</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="PayrollGroupCode" nillable="false"
type="cns:PayrollGroupCode"/>
<xsd:element maxOccurs="unbounded" name="PayrollSchedule"
nillable="false" type="pcns:PayrollScheduleType"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
In the above example, the XML schema document refers another XML schema document
PayrollCommonSchema.xsd .
See Also
Web Services Quick Guide [page 499]
Overview
Web services contain multiple service operations, which are stateless synchronous inbound operations. The service
operations are assigned to service interfaces which specify how to perform service requests and serve as collectors
for specific operation types. There is one endpoint per service interface. The following service operations are
available:
Read, Create, Update, Query, and Action.
Core Concepts
Statelessness
By definition and design, Web service operations are stateless synchronous inbound operations. This means that
no resources such as enqueue locks or buffers are shared or maintained across subsequent calls. To ensure
reasonable transaction sizes for mass operations, it is recommended that you avoid excessively large transactions
because the time required to transfer huge amounts of data across the network may cause communication time-
outs.
Action Code
The action code is a coded representation of an instruction to the recipient of a message telling the recipient how to
process it.
01 Create The element is to be created at the recipient. The element must not exist at the recipient. The element ID
and all data must be transferred.
02 Change The element is to be changed at the recipient. The element must exist at the recipient. The element ID and
all data must be transferred.
03 Delete The element is to be deleted at the recipient. The element must exist at the recipient. The element ID must
be transferred. No data should be transferred, with the exception of elements that are mandatory due to
their cardinality.
04 Save The element is to be saved at the recipient. The element can exist at the recipient.
If, at the recipient, the element:
● Already exists, it is changed
05 Remove The element is to be deleted at the recipient. The element can exist at the recipient. If,
at the recipient, the element:
● Already exists, it is changed
06 No action No action is to be carried out for the element at the recipient. The element must exist at the recipient. The
element ID and all data must be transferred.
● For creations or deletions, the indicator is assumed to be true or you can set it yourself explicitly to true.
Log
The Log element represents the result of an operation as a series of requests and responses.
Log
The most important parts of the element are:
Element Details
MaximumLogItemSeverityCode, These elements provide you with information on the degree of success of a given
operation. The possible values are:
LogItemSeverity
● 1 Information
● 2 Warning
● 3 Error
LogItem The aggregated data type for the LogItem contains the following elements:
In a response, the
● ReferenceObjectNodeSenderTechnicalId
references the ObjectNodeSenderTechnicalId used in the request
message. For more information, see the Object Node Sender Technical ID
section below.
● ReferenceMessageElementName
This value denotes the element in the request that the log item refers to. It
enables you to relate error messages to lines and columns in the query or
request message, irrespective of the
ObjectNodeSenderTechnicalId.
Update Operations
If the ChangeStateId is provided when calling an update operation, the system does not perform the operation if
the state of the businessChangeStateId
object instance in the database has changed since the was computed.
Create Operations
For create operations, there is no previous state of the underlying business object instance. Therefore the change
state identifier is not modeled in single instance create operations and is optional in mass instance operations that
support the corresponding action codes for creation.
If the change state identifier is specified and the specified value for a business object instance is different from the
actual value computed from the database, an error message with the value "SBM.SBM.CSM" (change state
mismatch ) in the element LogItem.LogItemCategoryCode is returned for that business object instance in the
Log element of the response.
Operations which create or update data, return the new IDs and the ChangeStateId only for those business
object instances for which the operation succeeded.
Read Operation
The read operation returns detailed information of one or more instances of a business object. The part of the
business object returned can be limited by the defined business object view. In general, the read operation always
forms a pair with the corresponding create or update operation. Therefore, if a full or partial update operation for a
business object exists, a full or partial read operation must also exist in order to retrieve the change state identifier
for the update. A response message is always sent.
Result
The following is an example of a response message:
<BusinessObject1ByIDResponse_sync xmlns:nm="http://sap.com/xi/SAPGlobal20/
Global">
<BusinessObject1>
<SAP_UUID>00163e01-27e0-1ed0-a6f9-129eeb25f05e</SAP_UUID>
<id>1</id>
<item>Washing Powder</item>
</BusinessObject1>
<Log />
</BusinessObject1ByIDResponse_sync>
Note that response and confirmation messages may contain an XML namespace definition for
xmlns:prx="urn:sap.com:proxy¼" . This is only used for support purposes and should ignored at runtime.
<BusinessObject1viewCreateConfirmation_sync xmlns:nm="http://sap.com/xi/
SAPGlobal20/Global">
<BusinessObject1>
<SAP_UUID>00163e01-27e0-1ed0-a6f9-a08d04afd1f8</SAP_UUID>
<id>3</id> </BusinessObject1> <Log>
<MaximumLogItemSeverityCode>1</MaximumLogItemSeverityCode>
<Item>
<TypeId>007(/CSG_RUNTIME/)</TypeId>
<SeverityCode>1</SeverityCode>
<Note>Create operation was successful</Note>
</Item>
</Log>
</BusinessObject1viewCreateConfirmation_sync>
Update Operation
The update operation updates a single instance of an object with checks for concurrent updates. The part of the
business object susceptible to the update can be limited by the defined business object view. The update operation
may add and/or remove parts of the business object but it is not meant to be used for status changes. A
confirmation message is always sent.
<nm:BusinessObject1viewUpdateConfirmation_sync xmlns:nm="http://sap.com/xi/
SAPGlobal20/Global">
<Log>
<MaximumLogItemSeverityCode>1</MaximumLogItemSeverityCode>
<Item>
<TypeId>013(/CSG_RUNTIME/)</TypeId>
<SeverityCode>1</SeverityCode>
<Note>Update operation was successful</Note>
</Item>
</Log>
</nm:BusinessObject1viewUpdateConfirmation_sync>
Find[View]SimpleBy[Selection criteria]
Where:
● The business object view defines the response structure.
● The selection criteria view splits the operation so that each operation offers a semantically meaningful set of
selection criteria typically needed for a given purpose. It is determined from the name of the underlying
business object query.
● QueryHitsUnlimitedIndicator
● QueryHitsMaximumNumberValue
If the QueryHitsUnlimitedIndicator is not set and the QueryHitsMaximumNumberValue is zero, the default
of 100 rows is assumed.
The caller of the Web service is responsible for creating a reasonable package size. Therefore, we do not
recommend that you set the unlimited indicator to true or that you return more than 1000 rows.
Note that the LastReturnedObjectID element is not supported in query response messages. Queries return a
filtered result and may offer sorting criteria. Therefore, choosing a key or ID will depend on the query parameters,
the returned fields, and the sorting order used in the query results. Also, not all business object nodes will have a key
or the key will not have a linear order, for example if it is a UUID. The caller has to decide which fields can be used in
each specific case. In simple cases the ID element of the node for which the query is defined is sufficient. In complex
cases, all elements of the response have to be treated as part of the key.
Comparisons Permitted
You can use the following types of comparisons in Web service query operations:
● Equals
If an Equals string contains an asterisk (*), the system implicitly interprets this as a wildcard query and
thus as a CONTAINS pattern. You cannot therefore query items that have the asterisk in their name.
For example,
QUERY PRODUCT WHERE PRODUCT ID=A* returns all products beginning
with the letter A. It does not return the details of the product name A*
● Between
● Less than
● Less than or equal to
● Greater than
● Greater than or equal to
Each query parameter includes a SelectionBy[Name], where the name determines the query parameter, and has
the following structure:
IntervalBoundaryTypeCode 1 Equal to
Single Value; = X
3 Between
Interval with open lower and open upper boundary; (X, Y)
6 Less than
Interval with unlimited lower and open upper boundary; < X
8 Greater Than
Interval with open lower and unlimited upper boundary; > X
Result
The following is an example of a response message:
<ReturnedQueryHitsNumberValue>1</ReturnedQueryHitsNumberValue>
<MoreHitsAvailableIndicator>false</MoreHitsAvailableIndicator>
</ProcessingConditions>
<Log>
<MaximumLogItemSeverityCode>1</MaximumLogItemSeverityCode>
<Item>
<TypeID>009(/CSG_RUNTIME/)</TypeID>
<SeverityCode>1</SeverityCode>
<Note>Query returned 1 records</Note>
</Item>
</Log>
</nm:BusinessObject1QueryByElementsSimpleByConfirmation_sync>
Action Operation
When defining an action operation in the Web Service Creation Wizard, you can only use actions that already exist
for the business object. The action operation changes the state of a business object instance. It is not intended to
be used to modify data. The request message types are typically very short; they often contain just the business
object ID. A response message is always sent.
Result
The following example shows an action response message:
<nm:BusinessObject1ResetStateResetStateConfirmation_sync xmlns:nm="http://
sap.com/xi/SAPGlobal20/Global"">
<Log>
<MaximumLogItemSeverityCode>1</MaximumLogItemSeverityCode>
<Item>
<TypeId>017(/CSG_RUNTIME/)</TypeId>
<SeverityCode>1</SeverityCode>
<Note>Action RESETSTATE992EBFB4F6ADFACD executed</Note>
</Item>
</Log>
</nm:BusinessObject1ResetStateResetStateConfirmation_sync>
See Also
Web Services Quick Guide [page 499]
You can integrate an external Web service into your solution to access an external application using the SOAP or
REST protocol.
What is SOAP?
SOAP (Simple Object Access Protocol) is an xml-based protocol specification for exchanging structured information
via Web services. The integrated Web service is described by a WSDL file. With SOAP, you can use different
transport protocols, for example, HTTP or SMTP. SOAP uses named operations, each implementing business logic
through different interfaces. WS-Security and Reliable Messaging are supported.
For more information, see Integrate an External Web Service Using SOAP [page 521] .
What is REST?
REST (Representational State Transfer) is an architectural style for designing networked applications. REST
services provide a uniform interface using standard HTTP operations (such as GET, POST, PUT...) and exchange
representations of resources. JSON and XML are frequently used formats in REST services.
For more information, see Integrate an External Web Service Using REST [page 522] .
To integrate REST Web services, you can also use a mashup. For more information, see Create a Mashup Web Service
[page 471].
The procedures for integrating SOAP and REST Web Services are very similar. However, the steps you need to take
in the External Web Service Wizard are quite different as you can see in the following table:
1. Upload a WSDL file. 1. Enter URL of Web service that you want to use.
Optional: Allow non-secure communication or define
2. Optional: Select XML schema document. 2. API keys.
3. Decide if you want to use stateful communication. For
more information, see Integrate an External Web Service
Using SOAP [page 521] . For more information, see Integrate an External Web Service
Using REST [page 522].
See Also
Example: Consume a REST Service [page 524]
8.14.5 Tasks
You can create a Web service based on an SAP business object or one of your business objects. You select the
business object elements and define the service operations that carry out tasks on the business object, for
example, creating or updating the business object data.
The Web service can then be consumed by a client application to access the business object data remotely.
Prerequisites
● If you create a Web service based on an SAP business object, the business object must be released for the
SAP public solution model (PSM).
● If you create a Web service based on your business object, the business object must be activated.
Procedure
1. In the Solution Explorer , do one of the following:
● If you create a Web service based on an SAP business object or any of your business objects, proceed
as follows:
a. Right-click the project in your solution and select Add New Item .
b. Select SAP Service Integration Web Service , enter a name and click Add .
The Web Service Creation Wizard opens.
● If you create a Web service based on one of your business objects, right-click the business object and
select Create Service Integration... .
a. The Service Integration Wizard opens.
b. Select Web Service and click Next .
2. In the Enter Web Service Name step, proceed as follows:
If you have included a dependent object in your business object definition, you can only select the
dependent object node and not the elements. The elements of the dependent object, however, are
included. For more information on dependent objects, see Dependent Object (Business Object)
[page 179].
Click Next .
4. In the following steps, define the service operations for the Web service. For each service operation that you
define, select the checkbox, enter a name, and select on which business object elements you want to perform
the service operation.
If you define a query service operation with query parameters that are not released for the PSM,
you cannot activate the Web service.
For more information about service operations, see Web Service Operations [page 507] .
Click Next .
5. In the Define Web Service Authorization step, assign your service operations to work center views. This will
authorize business users who are assigned to the views to use the service operations in the Web service.
Proceed as follows:
a. Click Add .
b. In the Add Work Center View dialog, do one of the following:
● Click Use Existing View to select a view.
● Click Create New View and enter a name.
The view will be created when you have completed all steps in the wizard.
c. Click Next .
d. For each work center view, select the service operations that you want to assign.
For more information about the authorization concept, see Web Services [page 503] under Authorization
Concept .
6. Review your settings and click Finish.
Result
● WSDL File
The Web service and the Web service authorization object are activated. You can now download the WSDL
file, which can be consumed by a client application. To download the file, right-click the Web service and select
Download WSDL File.
● Adjust Derived Names
You need to adjust the derived names in the WSDL file if you are prompted to do so. You can also
optionally choose to adjust the names for ease of use. For more information, seea Web Service [page 518] .
Modify
● Work Center View
If you entered a name for a new work center view while defining the Web service authorization settings, the
view appears in the Solution Explorer with the file extension .uiwocview ( ). To edit the work center view,
right-click the file and select Open in UI Designer. For more information, see Model a Work Center View
[page 581] .
● Maintenance Mode
You can create a Web service when your solution is in maintenance mode. For more information, see
Maintenance Mode [page 166].
See Also
Test a Web Service [page 517]
Overview
Before you can use your Web service in a client application, you must test it in a separate testing tool.
Prerequisites
● You have created and activated the Web service and have defined the Web service authorizations.
For more information, see Create a Web Service [page 515].
If you have defined BAC elements for your solution, a dialog box opens when you use the Deploy
Business Configuration function. You have to select one of the following options:
● Deploy all business configuration content for your solution
● Deploy only the business configuration content for your solution that is assigned to the business
options you have selected in the business adaptation catalog
This allows you to test both partial and complete activation of your business configuration content in
the development environment.
Procedure
1. In the studio, in the Solution Explorer , right-click the Web service that you want to test and select Download
WSDL File.
If an error occurs when you download the WSDL file, check that your user has been created according
to the procedure described in the User Setup Quick Guide [page 30] .
This step needs to be repeated when your customers go live with your final solution. You have to
ensure that any users who should have access to the Web service are assigned to the relevant
work center views in the customer's productive system.
You can modify a Web service that you have created based on an SAP business object or one of your business
objects. To modify a Web service, you can do the following:
● Add or remove business object elements for the service operations already defined in the Web service.
Add or remove service operations.
●
● Adjust the derived names for the message data types used in the WSDL file.
Prerequisite
You have created a Web service based on an SAP business object or one of your business objects. For
more information, see Create a Web Service [page 515].
If you have included a dependent object in your business object definition, you can only select
the dependent object node and not the elements. The elements of the dependent object,
however, are included. For more information on dependent objects, see
Dependent Object
(Business Object) [page 179] .
● To add or remove a business object element from a specific service operation, select the Service
Operations tab. Proceed as follows:
a. From the dropdown list, select the service operation from which you want to add or remove a
business object element.
b. Select a line in the structure and enter an alternative name in the Abbreviated Name field.
c. Click Apply .
The new name is displayed in the message structure. If you renamed a line in the structure that
has subitems, then the subitems are renamed accordingly.
If you want to reset a derived name of a message type to its initial name, select the service operation
and choose the request or response message type. Click Reset Tree to Initial Names .
3. Click Save.
4. In the Solution Explorer , right-click the Web service and select Activate .
Result
The modified Web service is activated. The system updates the Web service authorization object with the changes
you made to existing service operations. However, if you have added new service operations, you must edit the
authorizations manually. For more information, see Web Services Quick Guide [page 499] under Edit Web Service
Authorizations .
You can now download the updated WSDL file, which then can be consumed by a client application to access the
business object data remotely.
You can edit the authorization of the business users assigned to work center views to use the Web service operations.
Prerequisites
You have opened a solution that contains a Web service. For more information, see Create a Web Service
[page 515].
Procedure
1. In the Solution Explorer , double-click the .wsauth file to open it for editing.
2. You have the following options:
● To add a new work center view, click Add , select Create New View, and enter a technical name for a
new view.
● To remove authorization from a work center view, select the line in the table and click Remove. Note
that this does not delete any work center views created specifically for the Web service.
● If you have removed authorization from a work center view, you can add it as follows: Click Add, select
Use Existing View, select the view, and click Add .
● To assign the Web service operations to work center views, select a view and then select or deselect
the checkboxes in the lower table.
● To find out where a work center view is stored in the UI designer, view the Repository Path column.
3. Save your changes and activate the Web service.
If you delete a Web service authorization object in the Solution Explorer , any work center views that
you created during Web service creation are not deleted. You can delete these manually. You can
recreate a deleted Web service authorization by right-clicking the Web service and selecting Create
Web Service Authorization .
To enable access from the SAP cloud solution to a remote application, you can create an external Web service
integration scenario using SOAP.
SOAP (Simple Object Access Protocol) is an xml-based protocol specification for exchanging structured information
via Web services. The integrated Web service is described by a WSDL file. With SOAP, you can use different
transport protocols, for example, HTTP or SMTP. SOAP uses named operations, each implementing business logic
through different interfaces. WS-Security and Reliable Messaging are supported.
For more information, see External Web Service Integration [page 514] .
Prerequisites
● You have opened a solution in the studio.
● You have saved the WSDL file of the Web service that you want to integrate into your solution on your local
computer.
● If the WSDL file refers to one or more XML schema documents, you have saved the schema documents on
your local computer.
● If the WSDL file refers to XML schema documents and the value of the schemaLocation attribute in the
WSDL file is a URL, you have replaced the URL with the location of the XML schema document on
your computer. Note that the document’s location must be relative to the location of the WSDL file.
For more information about WSDL and XML schema document, see Web Services [page 503] .
Save the WSDL file and the XML schema documents in the same location on your computer. In this case, the
values of the schemaLocation attribute are the XML schema document names only.
Procedure
1. In the Solution Explorer , right-click your solution and select Add New Item .
The Add New Item dialog opens.
2. Select SAP Service Integration External Web Service Integration and click Add .
The External Web Service Integration Wizard opens.
3. In the Enter Web Service Name and Type step, enter a name for the Web service and select SOAP. Click
Next .
4. In the Import WSDL File Documents step, do the following:
a. Select the WSDL file of the Web service that you want to integrate into your solution.
b. Select the Use Session ID checkbox, if you want the external Web service to allow stateful
communication, that is, return a session ID/cookie when it is called.
c. Optional: If the WSDL file refers to one or more XML schema documents, click Add , select the XML
schema document and click Open.
Change the port name, if required.
d. Click Next .
5. In the Define Communication Scenario step, do the following:
c. Optional: Select the Allow Non-Secure URLs (HTTP) checkbox to allow non-secure communication.
d. Click Next .
6. On the Review page, review your entries and click Finish.
In the Solution Explorer , an external Web service integration file with the extension .wsid ( ) together with
the .wsdl file ( ) appears. If you have created a communication scenario, the corresponding .csd file
( ) is also displayed.
7. In the Solution Explorer , right-click the .wsid file and click Activate .
If you have created a communication scenario, right-click the .csd file and click Activate .
Result
You have created an external Web service integration and can now do the following:
Edit your external Web service integration.
●
To do so, right-click the .wsdl file. The document window opens where you can edit the Web service
integration definition
For more information, see Modify an External Web Service Integration (SOAP) [page 529] .
Test the service operations .
●
Right-click the .wsid file and select Test Service Operations .
For more information, see Test a Service Operation [page 534] .
● Create a communication scenario
If you have not created a communication scenario yet, right-click the .wsid file and select Create
Communication Scenario Definition .
For more information, see Define a Communication Scenario [page 527] .
● Create a communication system
If you have created a communication scenario, right-click the
.csd file and select Manage Communication
System . Afterwards, you can use the communication system to create a communication arrangement.
For more information, see Create a Communication System [page 532] and Create a Communication
Arrangement [page 533].
To enable access from the SAP cloud solution to an external application, you can create an external Web service
integration scenario using REST.
REST (Representational State Transfer) is an architectural style for designing networked applications. REST
services provide a uniform interface using standard HTTP operations (such as GET, POST, PUT...) and exchange
representations of resources. JSON and XML are frequently used formats in REST services.
For more information, see External Web Service Integration [page 514] .
Prerequisites
You have opened a solution in the studio.
Procedure
1. In the Solution Explorer , right-click your solution and select Add New Item .
The Add New Item dialog opens.
2. Select SAP Service Integration External Web Service Integration and click Add .
The External Web Service Integration Wizard opens.
3. In the Enter Web Service Name and Type step, enter a name for the Web service and select REST. Click
Next .
4. In the Enter End Point of REST Service step, do the following:
a. Enter the URL of the service.
The Host Address , Port , and Path fields are filled automatically.
b. Click Next .
5. In the Define Communication Scenario step, do the following:
a. Optional: Select the Create Communication Scenario checkbox to create a communication scenario
that includes the Web service integration that you have defined.
If you choose not to select this option, you must assign the Web service integration to a communication
scenario later. For more information, see Define a Communication Scenario [page 527]. Enter
a name for the communication scenario. It must start with a capital letter and can have 25
b.
characters (letters, digits, and underscores).
c. Optional: Select the Allow Non-Secure URLs (HTTP) checkbox to allow non-secure communication.
d. If the service you are calling requires authentication, you can define the required identifiers as API
keys. The values of the API keys are maintained in the communication arrangement. You cannot use
API keys with non-secure URLs (HTTP). To define an API key, do the following:
Result
You have created an external Web service integration and a communication scenario and can now do the following:
○ WebServiceUtilities.EncryptWithHashBasedMessageAuthenticationCode
Overview
This example illustrates the consumption of a REST Web service in the business logic of a custom business object
in the studio.
Use case
In a Web application, users enter their country and postal code on a screen. The REST service
automatically fills the city field.
To test this example, please use a REST Web service that displays the city when you enter the corresponding postal
code. You can find such REST Web services free of charge on the Internet.
Prerequisites
● You have a partner developer user in the studio and a business user in the SAP cloud solution. For more
information, see User Setup Quick Guide [page 30].
● You have created a solution in the studio. For more information, see Create a Solution [page 162] .
businessobject Address {
[Label ("Country")] element CountryCode: CountryCode;
In a communication scenario, you can define a set of inbound and outbound services for a business process. Inbound
services are Web services that you have created based on an SAP or custom business object, or Web services
provided by SAP. Outbound services are external Web services that you have integrated into your solution. Based on a
communication scenario, a customer can create a communication arrangement in SAP’s cloud solution to exchange
business documents electronically.
For more information about communication arrangements, see the "Communication Arrangements Quick Guide" in
the documentation of the SAP cloud solution.
Prerequisites
● You have opened a solution in the studio.
● You have checked the available inbound services in the Service Explorer of the SAP cloud solution. The Service
Explorer lists all released inbound services available for the solution, along with service documentation and
technical data. For more information, see the "Service Explorer Quick Guide" in the documentation of the
SAP cloud solution.
An inbound service is a Web service that is based on a business object. An outbound service is a Web
service that you have integrated into your solution.
Procedure
1. Right-click your solution and select Add New Item .
2. Select the Communication Scenario template, enter a name, and click Add .
The Communication Scenario Definition Wizard opens.
3. In the Enter Communication Scenario Name step, do the following:
a. Enter a name for the communication scenario and select the Web service type SOAP or REST.
For more information, see Integrate an External Web Service Using SOAP [page 521] and Integrate
an External Web Service Using REST [page 522] .
SOAP only: Select the communication type:
b.
● Business-to Business (B2B) to define the electronic exchange of business documents with a
business partner.
● Application Integration (A2X) to define the electronic exchange of business documents with a
communication system, for example, an external time recording system.
For more information about communication types, see the “Communication Arrangements Quick
Guide” in the documentation of the SAP cloud solution.
b. Click the Placeholder for API Key in Script File field to the right of the API Key field.
The placeholder is generated, which you can use in the script file.
c. Click Next .
6. Review your settings and click Finish.
A communication scenario definition with the file extension .csd ( ) appears in the Solution Explorer .
7. In the Solution Explorer , right-click the communication scenario definition and select Activate .
You can modify an external Web service integration that you have created to access a remote application.
If you use SOAP-based communication, you can make the following changes:
Prerequisites
● You have created an external Web service integration.
For more information, see Integrate an External Web Service Using SOAP [page 521] .
● If you want to replace the current WSDL file with a new file, you have saved the new WSDL file on your local
computer.
● If the WSDL file refers to one or more XML schema documents, you have saved the schema documents on
your local computer.
Procedure
1. In the Solution Explorer , double-click the .wsid file ( ) of the external Web service integration that you want
to modify.
2. To modify your external Web service integration, select the General tab. Do one of the following:
● To import a new WSDL file, click Upload WSDL Fileand select the file from the location on your computer
where you have saved it.
● If the WSDL file refers to one or more XML schema documents, select the schema document from
your local computer and click Add .
● If you want to remove one or more XML schema documents that you have already added, select the
schema document from the list and click Remove Document .
3. To view the service operations provided by the external Web service, select the Service Operations tab.
4. Click Save.
5. In the Solution Explorer , right-click the external Web service integration file, and select Activate .
Result
● To test the execution of the service operations provided by the external Web service, right-click the .wsid
file and click Test Service Operations .
For more information, see Test a Service Operation [page 534] .
● The external Web service integration is re-activated. You can add it as an outbound service in a communication
scenario and create a communication arrangement based on the communication scenario. For more
information, see Define a Communication Scenario [page 527] and Create a Communication Arrangement
[page 533].
See Also
Modify an External Web Service Integration (REST) [page 530]
You can modify an external Web service integration that you have created to access a remote application.
If you use REST-based communication, you can define or delete API keys used for authentication.
Prerequisites
You have created an external Web service integration. For more information, see Integrate an External Web Service
Using REST [page 522].
Procedure
1. In the Solution Explorer , double-click the .wsid file ( ) of the external Web service integration that you want
to modify.
2. To modify your external Web service integration, do one of the following:
● On the General tab, select the Allow Non-Secure URLs (HTTP) checkbox.
If you select this checkbox, you cannot use API keys any longer.
See Also
Modify an External Web Service Integration (SOAP) [page 529]
You can modify a communication scenario that you have created based on a business-to-business or application
integration communication type. You can modify a communication scenario as follows:
Prerequisites
You have defined a communication scenario. For more information, see Define a Communication Scenario
[page 527].
Procedure
1. In the Solution Explorer , double-click the .csd file of the communication scenario that you want to modify.
2. To modify your communication scenario, do one of the following:
● Change the communication type on which the communication scenario is based.
Select or deselect the inbound and outbound services that you want to add or remove.
●
3. Click Save.
4. In the Solution Explorer , right-click the communication scenario and select Activate .
Result
The communication scenario definition is re-activated. You can now use the modified communication scenario to
create a communication arrangement in the SAP cloud solution. For more information, see Create a Communication
Arrangement [page 533] .
To test the application integration scenario, you can create a communication system, which you can then use when
you create the communication arrangement. When your customers use the solution in their production system, they
create the communication system in the SAP cloud solution.
A communication system represents an external system which is used for application integration. Communication
systems can be, for example, external time recording applications or master data systems. You define a
communication system in the SAP cloud solution and use it when you create the communication arrangement.
For more information, see the “Communication Systems Quick Guide” in the documentation of the SAP cloud
solution.
Prerequisites
● You have defined an external Web service integration using SOAP or REST as described in the following table:
You have defined an external Web service You have defined an external Web service integration scenario
integration scenario using SOAP using REST
In the External Web Service Integration The communication system is created automatically.
Wizard , in the Enter Web Service Name and However, you can follow the procedure described below to change
Type step, you have chosen to define an the communication system or its properties.
Application Integration scenario.
For more information, see Integrate an For more information, see Integrate an External Web Service Using
External Web Service Using SOAP REST [page 522].
[page 521].
● You have created a communication scenario. For more information, see Define a Communication Scenario
[page 527].
Procedure
1. In the studio, in the Solution Explorer , right-click the communication scenario definition ( .csd) file and select
Manage Communication System .
2. The SAP cloud solution opens. Log on to the system.
The Communication Systems view opens.
3. Click New.
The New Communication System screen opens.
4. Under Basic Information , enter an ID for the communication system, the Host Name, and the System Access
Type.
Result
You have created a communication system. You can now use it to create a communication arrangement to test the
application integration scenario. For more information, see Create a Communication Arrangement [page 533] .
To test the communication scenario you have created, you need to create a communication arrangement in the SAP
cloud solution.
Usually, your customer sets up the communication arrangement for your solution in the SAP cloud solution.
However, to test the communication scenario you have created, you need to create a communication arrangement
as well.
For more information on communication arrangements, see the “Communication Arrangements Quick Guide” in
the documentation of the SAP cloud solution.
Prerequisites
You have created a communication scenario in your solution.
Procedure
1.
In the studio, in the Solution Explorer , right-click the communication scenario definition ( .csd, ) file and
click Manage Communication Arrangement .
When you hover over the name of the communication scenario, its key is displayed. It contains the
namespace of your solution.
When there is a solution with a communication scenario, and a patch solution is also created for the
solution, you will see two communication scenarios with the same name in the system. In such cases,
if you wish to create a communication arrangement to test the communication scenario within the
patch solution, then you must select the communication scenario with the word
patch in brackets.
6. In the Define Business Data step, select the business partner and click Next .
7. In the Define Technical Data step, do the following:
a. Select the Application Protocol and Authentication Method . You can select one of the following options:
Result
Your communication arrangement is created. You can now test your web service.
For more information, see Test a Web Service [page 517].
You can use the Test Tool to test the execution of the service operations provided by an external Web service.
Prerequisites
● You have integrated an external Web service using SOAP and activated the .wsid file.
For more information, see Integrate an External Web Service Using SOAP [page 521] .
● You have created a communication scenario.
For more information, see Define a Communication Scenario [page 527] .
● A communication arrangement exists for the communication scenario.
For more information, see Create a Communication Arrangement [page 533] .
Procedure
1. In the Solution Explorer , right-click the .wsid file of the external Web service integration for which you want
to test the execution of service operations and select Test Service Operations .
The Test Tool opens.
Result
You have tested the integrated Web service. If you are not satisfied with the result, you can edit the external Web
service integration. For more information, see Modify an External Web Service Integration (SOAP) [page 529].
If you encounter a problem during development, you can report an incident to request help in solving the problem.
the SAP cloud solution collects context data, such as system information and relevant business data, and attaches
it to the incident. This gives information about the system at the time at which the incident occurred and helps SAP
Support to better understand the problem. Note that the context data is only useful if you report the incident from
the screen on which the problem occurred, as it includes information that is specific to that screen. This means it is
important that you always report your solution-related incidents from the screen on which they occur in your
system. You report a problem that is not related to your UI components in the
You cannot create an incident from the studio or the user interface designer.
Prerequisites
If you create the incident for SAP Support from the SAP cloud solution, you must be logged on to that system with
your development user. Development users have administrator rights in the SAP cloud solution and are assigned to
the Incidents view. This view is available in the SAP cloud solution as follows:
● In the SAP Cloud for Customer solution: Administrator Incidents
● In all other SAP cloud solutions: Application and User Management Incidents
Note that you can also create an incident with a standard business user. However if that business user is not an
administrator in the SAP cloud solution, the system forwards the incident to the responsible development user
with administrator rights, who in turn forwards it to SAP Support.
Procedure
1. In the SAP cloud solution, click Help Report Incident .
Enter the required details.
2.
You can use debugging to observe the runtime behavior of your solution and to locate logic
errors. For information about how to access the debug functions, see
Debugging User Interface [page 540] .
Each time you start the debugger, tracing is also started automatically. For more information about tracing,
see here [page 545].
Tasks
Debugging a Solution
This simple process explains how you can easily debug your solution. For more information, see here
[page 543] .
Set a Breakpoint
1. In the Solution Explorer , open a script file.
The script file opens in the code editor.
2. You can set a breakpoint in the code editor by doing one of the following:
In the left grey margin of the code editor, click a line of executable code.
●
● Click a line of executable code and press F9 .
Delete a Breakpoint
To delete breakpoints in your current script file, proceed as follows:
To delete a particular breakpoint, click
● or press F9 in the code line, where the breakpoint has been set.
The margin is cleared and the red glyph is deleted.
● To delete all breakpoints in your script file, in the toolbar of the Breakpoints tool window, click Delete all
breakpoints
● To disable breakpoints that are set in the current script file, proceed as follows:
You are inside a script file and want to return to the calling SHIFT + F11
script file
If you have inspected another script file and want to return to the script file, where the running process has
stopped, in the Debug toolbar, click .
Debugging is an important process during the development of a solution which enables you to observe the runtime
behavior of your solution and to locate logic errors. The main tool that you use for debugging is the debugger,
which works with your script files and allows you to break the execution of your solution at specified breakpoints to
examine your code and to display values of variables defined in your solution.
Debugging Basics
Debug Modes
During design mode, which is the mode when you are implementing the business logic for your solution, you cannot
use the debugger. However, you can manage breakpoints, for example, set or delete them.
After you have started debugging, you cannot edit or change your code anymore. The following debug modes are
available:
● Run Mode
This mode is divided into the following phases:
○
The debugger is waiting to attach to a process that is represented, for example, by the actions that you
perform on a screen in your solution. In this mode, you can manage breakpoints, for example, set or
delete breakpoints.
○ The debugger is already attached to a process and is executing the business logic. This phase ends when
execution is completed or when the debugger hits a breakpoint.
During this phase you can set breakpoints, but the breakpoints are only enabled after execution is
completed.
● Break Mode
You have opened a screen in your solution, for example, by using the preview function in the studio. When
you perform actions on this screen and a break occurs, your solution and the debugger are in break mode.
During break mode, you can use all debugging functions and inspect the information provided by the
debugger.
Breakpoints
Breakpoints enable you to suspend execution where and when you need to. You can allow your solution to run
until it hits a breakpoint, and then you can start to debug your code.
For information about how to set and manage breakpoints, see Debugging Quick Guide [page 536] .
Stepping
One of the common debugging procedures is stepping, which means, executing code one statement at a time.
Execution stops if the debugger reaches one of the following:
● An enabled breakpoint.
● The end of the script file.
If the debugger reaches the end of a script file, it steps out of the current script file and stops at the next executable
statement in the calling script file. Execution continues if there is no call from another script file.
● Did you open the screen before you have activated the script file or the solution?
If yes, close the screen and open it again, for example, by using the preview function.
Did the debugger already hit a breakpoint in the other session?
●
Please keep in mind that the debugger evaluates only one session at a time. A session typically corresponds
to the actions performed on one screen. Although you are able to perform actions in parallel on another
screen during the debug run, you can't debug the code of these actions.
When I am stepping through the code, why can't I see some variable values?
The value of a variable doesn't show in the Locals window, when the following applies:
Why doesn't the Output window update the tracing information after a certain period of time?
If you have opened your screen, for example, by using the preview function, and you haven't performed any actions
on this screen for 10 minutes, tracing will stop automatically.
If you want to enable tracing again, restart debugging and perform the actions on the screen again.
Yes, you can. For more information, see Debug User Interface [page 540] under Debug Settings Debugging
and tracing: Enable for business user
.
The debugger can stop either in the script files of the source BO or in the script files of the target BO. If you want to
debug the script files of the target BO, please make sure that the breakpoints in the script files of the source BO are
disabled.
The studio's debugging user interface is composed of several elements, which enable you, for example, to select
debugging functions, to view information provided by the debugger, and to specify debug settings.
Debug Toolbar
The Debug toolbar provides buttons that allow you to start and stop debugging together with tracing and also to
start and stop tracing separately. If you have already started debugging, the tracing buttons are inactive. The
Debug toolbar is automatically enabled when you start debugging. To enable the Debug toolbar separately, choose
View Toolbars Debug .
Debug Windows
The debug windows display information the debugger provides and support you in analyzing this information. The
following windows are provided:
● Locals
● Breakpoints
● Call Stack
● Output
To enable a debug window, choose Debug Windows and select the appropriate window.
You can only enable the Locals window and the Call Stack window if debugging has started.
Locals Window
This window displays variables local to the current script file. You can view the name, the value, and the type of the
variable. If the variable type is a structure, a business object node or a collection, you can expand or collapse the
information provided. You cannot edit this information.
Breakpoints Window
This window lists all breakpoints that are set in your solution. The Breakpoints window also contains a set of functions,
which allow you, for example, to disable and to enable breakpoints and to export breakpoints to an XML file. For more
information about breakpoints, see About Debugging [page 537] .
Output Window
In the Debug view of the Output window you can view tracing information that the system is collecting during the
debug run. Each script file is listed in the order it was called and can be nested if it was called from another script fie.
The information displayed in the Debug view is the same information that you can find in the Trace Explorer window.
However, the information in the Debug view is displayed during the debugging process whereas the information in
the Trace Explorer window is displayed after debugging or tracing has been stopped. The format in the Debug view
is also quite different, that is, each line starts with a time stamp and the session number and severity, for example,
[1:E] for session 1, containing an error message in the specified script file.
DataTips
A DataTip is a box in the code editor that displays the value of a variable in your solution similar to the Locals window.
When the debugger is in break mode, you can enable a DataTip in the current script file by placing the mouse pointer
over a variable in the code editor.
You can pin a DataTip to a specific location in the script file or you can leave it floating on top of all studio
windows. For more information about DataTips, see the Microsoft Visual Studio documentation at
http://www.microsoft.com
.
DataTips are not supported if the path to the element includes an association or a function call.
Debug Settings
You can set debug settings in the Options dialog box as a default. To change the debug settings, choose
Administration Options and Settings . In the navigation pane of the Options dialog box, click SAP and then click
the Debugging and Tracing tab on the right. The following settings are provided:
● Debugging and tracing: Enable for business user
Usually, you examine actions performed on a screen when you are logged on to the cloud solution with your
development user. However, you can also enable debugging and tracing to examine actions that are
performed by a specific business user.
If you enable this option the breakpoints that you set in your script file are only relevant for this specific
business user. This means that the debugger only stops at a breakpoint when the script file is executed by
this specific user. The debugger does not stop at a breakpoint when the script file is executed by another user.
Change the setting of this option only when you are in design mode.
The other debug settings in the Options dialog box are default Microsoft Visual Studio settings, which do not
have any impact on the studio's debugger.
This simple process explains how you can easily debug your solution. For information about the functions that you
can use for debugging, see Debugging Quick Guide [page 536].
Prerequisites
● You have created a solution, defined a business object, and implemented the business logic in a script file.
You have created a screen for your business object.
●
Process Flow
1. You open the script file in the code editor and set breakpoints.
2. You start debugging.
3. You open your screen, for example, by using the preview function, to observe the runtime behavior of your
solution.
You can also debug your solution when you log on to the SAP cloud solution and select the relevant
screen. On the screen, you perform the actions that are implemented in your script file.
4.
When the debugger hits a breakpoint, it breaks the execution of your solution and the system brings the code
editor with the corresponding script file to the front.
You can now step through the code, display variable values, and analyze the tracing information.
5. When you have found an error, you stop debugging and correct the error.
6. You start debugging again. Make sure that you have reactivated the solution and preview your screen again.
8.17 Tracing
You can use tracing to record information about your code as it is being executed. From the Trace Explorer , you can
run a local trace, run a trace for an end user, use incident traces for troubleshooting purposes, and view the results
of a recorded trace.
If you have started the debugger tracing is turned on by default. You can start tracing separately when the
debugger is not started.
Tracing
You can use tracing to record information about your code as it is being executed, including variable values,
informational messages, and error messages. By inspecting the information recorded by a trace, you can obtain a
better understanding about how your code works and troubleshoot problems.
Tasks
For more information about this task, see here [page 548] .
For more information about this process, see here [page 550] .
Overview
You can use tracing to record information about your code as it is being executed, including variable values,
informational messages, and error messages. By inspecting the information recorded by a trace, you can obtain a
better understanding about how your code works and troubleshoot problems.
When you have started tracing, some information is traced automatically, including the identity of each script file
that is executed. You can enhance the information that is recorded during a trace by adding methods from the
Trace class to your script files. This way, you can record informational and error messages, and output variable
values.
Prerequisites
You are familiar with creating business objects and working with the scripting language.
Features
Local Traces
Local traces are the traces that are created when you start tracing on the system that you are logged on with your
developer user account. You can use local traces to evaluate code that is in development, or to investigate issues
that have been reproduced on a local system.
For more information, see Run a Trace for a Business User [page 549] .
Incident Traces
When business users encounter errors in a production system, they can use the incident reporting process to
report the error and request assistance. Business users can attach trace information to incidents, and you can use
this information to help troubleshoot the cause of the incident.
You work with incident traces the same way as you work with local traces. However, incident traces are tied to the
life span of an incident. Incident traces are created when the incident is submitted and are deleted when the
incident is closed. When you use the trace information that is attached to an incident, it is important to compare it
to code from the same version of the system that was used to report the incident. Otherwise, the code paths may
have changed and trace statements may be different.
For more information, see Working with Incident Traces [page 550] .
Tracing can record a potentially large amount of information; therefore it is recommended to start tracing
for limited periods of time. Otherwise, the amount of data recorded by the trace may become
unmanageable. Tracing is automatically stopped if it is left running.
Tracing can record several sessions in parallel at a time. A session typically corresponds to the actions
performed on one screen. In contrast to this, the debugger can evaluate only one session in parallel at a time.
As each session, sequence, and script file is called, a trace message is recorded in a tree structure in the trace details
pane. The trace messages are numbered in the order that they were called, and are nested under the calling parent
session, series or script file as follows:
● Session
Each session is displayed in order.
Sequence
●
Each sequence is displayed in order.
Script file
●
Each script file is displayed in the order it was called, and may be nested if it was called from another script
file. This view displays a summary of all of the trace messages for this script file. If any of the trace messages
for the script file are error messages, then an error icon is displayed. This enables you to quickly identify
which script files contain error messages without having to manually view the details about each script file.
You can view details about the trace messages recorded for each script file by double-clicking the script file entry in
the Trace Explorer window. This displays the script file in the Trace Details pane. The Trace Details pane contains a
list of the trace messages that were recorded for the script file. The first item in this list is a message that identifies
the script file. The rest of the list contains the results of calling methods from the Trace class, and errors that may
have occurred. The details for the trace messages are as follows:
Status
●
This defines whether the message is an error or for information purposes.
Type
●
This defines the type of message. For example, every script file is identified by a message whose type is
"this" object ID . Messages that were generated by method calls from the Trace class are identified by
a message of type user-defined trace command.
● Number
The order that this trace message was processed for this script file.
Name
●
The name of the message. For messages recorded by the Trace class, this displays the first parameter passed
to the Trace.Info and Trace.Error method calls.
● Value
See Also
Trace Class and Methods [page 547]
Tracing Quick Guide [page 543]
Overview
You can use the methods defined by the Trace class in the ABSL namespace to record information about the state
of your code. Method calls from the Trace class are evaluated and recorded when a trace is active in the system.
The Trace class provides methods to record informational messages ( Trace.Info) and error messages
).
( Trace.Error
Trace Class
The Trace class provides methods that you can use to record information about the state of your code.
import ABSL;
Trace.Error Method
You use the Error method to record information about errors. There are two overloads of the Error method, taking
one or two String parameters. The results of evaluating these methods are displayed in the Trace Details pane and
are marked by an error icon.
Syntax Trace.Error(String);
Trace.Error(String, String);
Example Trace.Error(“Creation failed”);
Trace.Error(“Creation failed”, this.Identifier.Content);
Trace.Info Method
You use the Info method to record information that is not an error case. There are two overloads of the Info method,
taking one or two String parameters. The results of evaluating these methods are displayed in the Trace Details
pane and are marked by an information icon.
Example
import ABSL;
Trace.Info(“Start Test”, this.Identifier.Content); Trace.Error(“Invalid parameter”, this.Identi
See Also
Tracing [page 545]
Tracing Quick Guide [page 543]
8.17.4 Tasks
Overview
You can activate tracing on any system that you can log on to with your developer user account. When a trace is
active, script files are logged as they are executed, and methods from the Trace class are evaluated and recorded.
Prerequisites
You must know how to run your script files, and you may want to add methods from the Trace class to your script
files to record custom information.
Procedure
1. To begin recording trace information, in the Trace Explorer window, click the Start Tracing button.
2. Run the script files that you want to trace.
3. To stop recording trace information, in the Trace Explorer window, click the Stop Tracing button.
4. To view traces, in the Trace Explorer window, click the Local Traces tab.
5. To update the list of traces, click the Refresh Traces button.
The completed trace appears in this list, identified by the time that trace was started, and the ID of the user
executing the code.
Overview
You may want to trace a workflow that can be run by a business user but cannot be run by a developer user. For
example, you must be logged on to the SAP cloud solution as a business user to access some workflows. Since
business users cannot activate and deactivate tracing, developer users can run a trace on their behalf through the
Trace Explorer. When a developer user activates a trace for a business user, the code that is executed by the business
user is traced.
Prerequisites
To record custom information, you have to add methods from the Trace class to your script files.
Procedure
1. To open the trace settings dialog, click Administration Options and Settings . In the navigation pane of
the Options dialog box, click SAP and then click the Debugging and Tracing tab on the right.
2. Select Enable for business user.
3. In the text box, enter the ID of the business user to enable tracing, and click OK.
For example, enter PGREENE to enable tracing for the business user Peter Greene.
4. In the Trace Explorer window, click the Start Tracing button.
A dialog is displayed that confirms that the trace has been activated for the business user.
5. Log on to the system as the business user and run the workflow you want to trace.
6. In the Trace Explorer window, click the Stop Tracing button.
A dialog is displayed that confirms that the trace has been deactivated for the business user.
7. In the Trace Explorer window, click the Local Traces tab.
8. To update the list of traces, click the Refresh Traces button. The trace appears with the time stamp of when
the trace was started and the ID of the business user.
To view a trace, see View Trace Results [page 550] .
To delete a trace, select one or more from the list and click Delete Selected Traces.
See Also
Run a Local Trace [page 548]
Trace Class and Methods [page 547]
Overview
When a user reports an incident in a productive system, you can ask them to reproduce the incident and include
trace information. This information can help you track down the source of the issue that the user is experiencing.
Incident traces contain the same information as local traces, but are tied to the lifecycle of the incident.
Prerequisites
You use the same version of the system that was used to report the incident.
Process Flow
1. A user encounters an error in the cloud solution and reports an incident to an administrator.
The administrator returns the incident and requests trace information.
2.
3. In the Incident editor, the user clicks Start Trace and repeats the steps that caused the incident.
4. In the studio, the incident trace appears in the Incident Trace tab of the Trace Explorer .
5. Developer users with the relevant authorization can view the incident trace in the Trace Explorer .
6. The incident trace remains accessible until the incident is closed.
See Also
Working with Incidents
Tracing [page 545]
Overview
When a trace has been completed, you can view the recorded information in the Trace Explorer .
Prerequisites
A completed local trace or open incident trace exists.
Procedure
1. In the Trace Selection area of the Trace Explorer , select the type of trace to view:
● To view local traces, click the Local Traces tab.
● To view traces for open incidents, click the Incident Traces tab
2. To display the current list of completed traces, click the Refresh button.
If the script file contains any error messages, it is marked by an error icon. This enables you to easily identify
the script files that contain errors. If the script file contains no errors, it is marked by an information icon.
5. Double-click a script file trace message to see detailed trace information for that script file in the Trace
Details pane.
See Also
Tracing [page 545]
Run a Local Trace [page 548]
Run a Trace for a Business User [page 549]
Working with Incident Traces [page 550]
You can use the Dump Analysis tool window to list the runtime errors that have occurred in the tenant to which you
have logged on. The tool window presents the dump information in a reader friendly format and supports you in
finding the root cause of a dump.
If the Dump Analysis tool window is not visible in the studio, you can access it by clicking View Dump
Analysis .
Business Background
What is a dump?
If a severe error occurs during execution of a solution, the runtime cannot continue to execute the solution and the
solution is terminated. In such a case a dump is written, which is a data record about the solution's state when it
had been terminated. Severe runtime errors occur, for example, when an unassigned reference or a division by
zero is used or the generated code contains syntax errors. Typically, the runtime error messages that are
displayed on the screen do not contain detailed information about the root cause of the dump. Runtime errors that
occur in background programs or asynchronous processes are even harder to detect, since there is no immediate
feedback to the user.
Tasks
● Advanced
In the corresponding dialog box, you can specify a date, a date range, a user name or a solution name.
The tool window will then list all dumps that meet these criteria.
The dump list is not updated automatically. To update the list, click Refresh or any of the other
buttons in the tool window. If you click Reset, the filter is cleared and the list shows the dump entries
of the current day.
Dumps caused by the following runtime errors are not listed in the Dump Analysis tool window:
● The business object element has been deleted or renamed but the element is still used on the
user interface (UI).
● The data string in the business object element is too long for the database.
2. Double-click the dump entry to open the script file in the editor.
The cursor is positioned in the line of the script file where the error occurred.
You can navigate from a line in the tool window to the corresponding script file, if the following conditions are
met:
● The current user is assigned to the customer ID for which the solution has been created..
The solution or script file has not been deleted.
●
8.19 Translation
The studio provides functions that enable the translation of business configuration content texts and on-screen texts
into one of the languages supported by the cloud solution. The translation functions enable you to adapt a solution
created using the studio for a specific country or region. You can export the text of specific project items to a file in
XML Localization Interchange File Format (XLIFF). After the XLIFF file is translated, you can then import the
translated file into the studio and check the result. You can also monitor the translation status of project items.
Availability
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
The following table gives an overview of the project items from which you can extract text for translation and the
specific text elements that can be translated.
● Other on-screen texts such as button text, link text, list item text,
explanation text, general text, tab strip text, quick info text, tree
node text, bullet list item text, technical text
The system does not support the extraction of message texts to an XLIFF
file.
The system does not support the extraction of message texts to an XLIFF
file.
The system does not support the extraction of message texts to an XLIFF
file.
For more information, see XML Localization Interchange File Format (XLIFF) [page 555] .
Managing Translation
When you create a solution in the studio, you can translate business configuration content and other solution
content into another language. To translate business configuration content and on-screen texts, you must export the
translatable content to an XLIFF file on your local computer. Once the XLIFF file is translated, you can import the
translated file into the studio and check the translation status and the result.
Tasks
2. In your action or event script file, raise the language-dependent message using the var expression by using
the following syntax:
var userLanguageCode;
...
userLanguage = Context.GetCurrentUserLanguage().ToString();
if ( userLanguage == "DE" ) { raise NoValidSite_DE.Create("E"); } else if ( userLanguage == "ZH" )
Overview
XML Localization Interchange File Format (XLIFF) is a standard XML-based file format for localization, specifically
designed for exchanging bilingual content between systems. This format enables translators to concentrate on the
text to be translated by extracting translatable text and separating it from non-translatable text. XLIFF is beneficial
as a single format which can be used for translating different kinds of files. With all the advantages of XML-based
processing, this format aims to standardize localization and is supported by a wide variety of translators.
XLIFF File
As XLIFF is an XML-based file format, it begins with an XML declaration. After the XML declaration comes the XLIFF
document itself, enclosed within the <xliff> element. An XLIFF document is composed of one or more
sections, each enclosed within aelement. Each
<file> <file> element corresponds to a file which has to be translated and
contains information about the source language and the target language. It could be a project, a business
<group>
<trans-unit>
</trans-unit>
</group>
</body>
</file>
</xliff>
The <header> element contains metadata about the file which has to be translated. This information depends on
the level at which you want to translate.
The following is an example of a <header> element in an XLIFF file exported at UI component level:
<header>
<phase-group>
<phase company-name="SAP AG" date="2011-12-02T06:22:58Z" phase- name="file-creatio
</phase-group>
<note from="SAP">In order to provide additional context/meta data for translators, The
The <body> element contains the extracted translatable data from the file in the form of translation units represented
elements. The translatable data within
by <trans-unit> <trans-unit> elements is organized into source and
target paired elements. A <source> element stores the source text, and a <target> element stores the translated
text. The <target> elements are not mandatory. These <trans-unit>elements can be grouped recursively in
<group> elements. For example, If you translate at the project level, the <header> element contains information
about the project and each <group> element contains information about an individual UI component.
<trans-unit>
The following is an example of a element translated from English to German:
<source>Save</source>
<target >Speichern</target>
</trans-unit>
XLIFF is bilingual as each translation unit offers one <source> element and one <target> element. This
makes the overall model simple and easy to handle.
All translatable texts and non-translatable texts are extracted from the original file. The parts that are non-
translatable are preserved in a temporary file. The translatable parts are stored separately and translated. After
translating the translatable texts, both the parts are merged, resulting in the translated file.
See Also
Translation Quick Guide [page 553]
Overview
When you create a solution in the studio, you can translate business configuration content and other solution
content into another language. To translate business configuration content and on-screen texts, you must export the
translatable content to an XLIFF file on your local computer. Once the XLIFF file is translated, you can import the
translated file into the studio and check the translation status and the result.
Process Flow
1. You extract the translatable text strings of all translatable project items in a solution or a specific project item
and export the text to an XLIFF file that you save on your local computer.
For more information, see Export Text for Translation [page 559] .
2. The XLIFF file is translated into the target language using a translation tool that supports XLIFF or an XML
editor.
For more information about XLIFF, see XML Localization Interchange File Format (XLIFF) [page 555] .
3. You import the translated XLIFF file into the studio.
For more information, see Import Translated Text [page 560] .
You activate the translated project items.
4.
If you have translated .uicomponent files, you need to update the metadata in the UI designer. To do this,
proceed as follows:
8. You request a test deployment. For more information, see Administration Quick Guide [page 149] .
See Also
Translation Quick Guide [page 553]
Overview
In the studio, you can extract translatable texts from specific project items in a solution. You export this text to a file in
XML Localization Interchange File Format (XLIFF) to your local computer for translation into one of the languages
supported by the SAP cloud solution. You specify the target language when you export the text.
Prerequisites
You have opened a solution in the studio that contains content that needs to be translated.
Procedure
1. Extract the translatable text strings of all translatable project items in a solution or a specific project item by
doing the following:
● Floorplan (* .uicomponent)
Target
Item Technical Name Language XLIFF File Name
5. Select the location on your computer where you want to save the exported XLIFF file.
You can save the file in the default location or specify a new location.
6. Click OK.
The file is saved in the specified folder on your local computer.
Result
You have exported the solution content to an XLIFF file on your local computer. You can now translate the XLIFF
file into the target language using a translation tool that supports XLIFF or an XML editor. For more information
about XLIFF, see XML Localization Interchange File Format (XLIFF)
[page 555]. You can also open the XLIFF file in the
and navigate to the location of the XLIFF file you exported. The
studio: from the File menu, select Open File
file opens in a document window in the code editor.
See Also
Translation Quick Guide [page 553]
Overview
After you have exported text of the translatable project items in a solution to a file in XML Localization Interchange
File Format (XLIFF) and it has been translated into the target language, you can import the translated XLIFF file
from your local computer to the solution and test the results of the translation in the target language in the SAP
cloud solution.
Prerequisites
7. Test the translated text in the SAP cloud solution by viewing the relevant screens and checking that all texts
appear and are displayed correctly.
See Also
Translation Quick Guide [page 553]
Overview
You can check the translation status of a project, business configuration content and a UI component by viewing the
total number of translatable text strings and translated text strings.
Prerequisites
You have opened the solution in the studio for which you want to check the translation status.
Procedure
1. In the Solution Explorer , right-click the project, floorplan, business configuration set, or other project item for
which you want to check the translation status and select Translation Check Status .
The Check Translation Status dialog box opens.
2. Review the total number of translatable text strings and translated text strings, as well as the language to
which the text strings have been translated.
If you check the translation status at project level, the Check Translation Status dialog box displays the
translation status of all project items in the solution for which translation is supported.
3. Do one of the following:
If you check the translation status at project level, you can only export text at the project level and not
for individual project items.
See Also
Translation Quick Guide [page 553]
The user interface designer (UI designer) is integrated into the studio. You use it to design the user interface of your
solution by modifying the screens that you have created in the studio, for example, quick activity floorplan, object
work list, or work center view. You can also change or enhance SAP floorplans. Further, you can also use the UI
designer to design screens for mobile devices.
The UI designer contains a number of different tools and functions that you can access from the menu or on tabs at
the bottom of the UI designer screen. For more information, see Features of the User Interface Designer
[page 564] .
Availability
This documentation covers the SAP Cloud Applications Studio (“studio”) as a whole; therefore it describes
all features that are available within the studio. Not all of these features are available for every cloud
solution from SAP. Before using a particular feature, please consult the Feature Matrix to determine
whether the feature is available for the cloud solution from SAP for which you are creating your solution.
For details, see Feature Matrix [page 24] .
Prerequisite
You have created a solution and created one or more screens in the studio. For more information, see Generate
Screens for a Business Object [page 350] .
For more information, see Floorplan Modification Quick Guide [page 590] .
Modify SAP floorplans
2.
You can modify SAP floorplans, for example, add a view to a work center or an embedded component to
a floorplan. For information on which changes you are allowed to make, seeChange Transactions Quick Guide
[page 620] .
You need to use anchors to make sure that the changes are included in every upgrade of the SAP cloud
solution. You can use existing anchors or create a new anchor. For more information, see Anchors
[page 623] .
3. Adapt floorplans for mobile devices
You can also modify floorplans for use on a mobile device. For more information, see Mobile Floorplans Quick
Guide [page 637] .
Overview
This document provides a brief overview of the common features available in the user interface designer (UI designer)
to design the user interface.
File Menu
Import Allows you to import user interface component from a file in the local disk. File can be of type .User
Interfacecomponent file or a .xml file.
Save Saves a user interface component in the repository.
Save All Saves all the user interface components that are being edited.
Activate Activates a user interface component, so that the model is available to all users who are accessing the repository.
View Menu
The View menu allows you to display or close the following tool windows:
● Configuration Explorer
The Configuration Explorer displays the repository content in the UI designer. You can filter the content by a
selected component type.
The last level in the hierarchy is the user interface component. You can double-click to open the component.
The tool tip for the component shows the component type and the complete path which acts as a unique
identifier.
● BO Browser/Data Model
The BO Browser appears in different places in the UI designer:
○ As part of the BOBrowser / DataModel tool
In the BO Browser tab, the assigned business object (BO) or enhanced controller object (ECO) is displayed
as a tree structure with all available nodes and fields. You can:
○ Choose to display only the elements, queries, actions or everything
○ Add elements and attributes, create associations, queries, actions and their parameters
○ Reset the client side cached metadata from the backend (in case the ECO/BO has been updated)
Filter for specific categories (if allowed)
○
In the DataModel tab the data structure is displayed together with various data model elements. The binding
status of each of these elements is represented using specific colors. You can also determine the binding
status for each element in the Properties Explorer .
Blue Indicates an internal data model element. These are used internally for different purposes. Binding Status in
the Properties Explorer has been set to Internal .
Yellow Indicates an unbound data model element. Data binding has not yet been specified for this element. Binding
Status in the Properties Explorer has been set to ToBind .
Green Indicates a bound data model element. Valid data binding has been specified for this element, or Binding
Status in the Properties Explorer has been set to OK.
Red Indicates a data model element for which the data binding has to be corrected. Binding Status in the Properties
Explorer has been set to ToCorrect .
● Property Explorer
It allows you to view and change properties for each element in the user interface model.
As soon as you select an element in the Designer tab, the DataModel tab or the Controller tab, the
corresponding properties of the selected element are displayed in the Property Explorer .
You can edit a few properties, and some are read-only.
Note the function of the dropdown list above the Properties window. You use this list to switch between
different components of the floorplan, depending on the item currently selected on the Designer tab.
Toolbox
●
The Toolbox provides the panes and controls that can be used to design the layout of a user interface
component in the Designer tab.
The controls and panes available depend on the floorplan. You can drag the panes and controls from the
toolbox to the Designer tab.
For more information, see Toolbox.
● Document Outline
The Document Outline provides an overview of all the controls used in the user interface of the selected
component.
● Project Context
The Project Context provides an overview of the users involved in the creation and use of a particular floorplan.
● Extensibility Explorer
The Extensibility Explorer is used to modify floorplans that come from layer lower than the layer the user is
working on. It displays the anchors assigned for a particular area, such as the toolbar, section group or pane
container and the change transactions associated with these anchors.
All the change transactions that have been made can be viewed in the Extensibility Explorer . Change
transactions once created, are displayed in the Unsaved Change Transaction section, once they are saved
they are displayed in the Saved Change Transaction section.
After activation, the change transaction are displayed in the Published Change Transaction section.
Tools Menu
Update Metadata Updates the backend meta data information in the active component.
Options… Allows the user to personalize the debug and warning message settings.
Cleanup UI Component Allows the user to delete any unused data structures created by default along with Action
Parameters.
Content Area
The content area has the following tabs:
● Designer: To design the user interface of an application with the available panes and controls from the
Toolbox .
● Data Model : To bind the user interface elements to a business object element.
● Controller : To define the interaction between user interface components by creating event handlers,
interfaces, navigation, and queries.
● Preview: To preview the changes made to an user interface component, for example, a floorplan.
This document gives you an overview of the steps involved in modeling different types of floorplans in the studio
using the user interface designer.
In the studio, you can generate screens for the business objects in your solution.
For more information, see Generate Screens for a Business Object [page 350].
Tasks
An OVS helps you select one item from a table of business object instances.
You can only create a BC view for a business configuration set (BC set) that was created using a custom
business configuration object (BCO). You cannot create a BC view for an SAP BCO.
9.3.2 Tasks
Overview
You can create a fact sheet to display a read only overview of an object. It displays the object properties, can have
different views, and can contain links for navigating to related objects.
For example, an Account Overview fact sheet can have the sections Accounts , Sales Data and Relationships
If you create an Employee fact sheet, employees can view their data but cannot change any information.
If you want to allow users to edit the screen, you must create a quick activity floorplan or an object instance floorplan.
Here is a sample fact sheet
Fact Sheet
Prerequisites
● You have created a solution in the studio.
Procedure
1. Create a Fact Sheet
1. In the Solution Explorer , expand the solution to display the business object.
2. Right-click on the business object and select Create Screens.
3. In the Create New Screen dialog box, do the following:
a. In the Screen Name field, enter a name for the fact sheet. For example, Account Overview
b. Under FloorplanType , select Fact Sheet (FS).
c. Click OK.
The Account Overview fact sheet is created and displayed in the Solution Explorer under the
business object.
2. Add the required UI elements and change field names
1. Double-click the fact sheet that you just created.
The fact sheet opens in the user interface designer with the default UI elements.
Fact Sheet (FS)
If required, you can change the component type from to Quick Activity
(QA) in the Properties Explorer , under Component Info-Component Type .
3. Model Elements
1. In the Data Model tab, all the elements of the selected business object are displayed. Bind each of the
data model elements to a business object element.
For more information, see Bind Data Elements to Business Object Elements [page 599] .
2. Create and configure the required event handlers in the Controller tab. For example, create and
configure event handlers for each of the buttons available on the fact sheet.
For more information, see Create an Event Handler [page 613] .
3. If you want to provide value help for any of the fields, see Configure an Object Value Selector
[page 615] .
4. To enable the fact sheet to be opened using object-based navigation, configure the fact sheet so that
it can receive parameters from any floorplan.
For more information, see Configure an Object-Based Navigation in a Target Floorplan [page 609] .
5. Save and activate your changes.
Overview
You can create a Quick Activity Floorplan (QAF) to display an overview of a business object. You can further view all
the details of the business object in the associated object instance floorplan.
Prerequisites
● You have created the required business object.
Procedure
1. Create a quick activity
Let's create a QAF called New Corporate Account :
1. In the Solution Explorer , expand the solution to display the business object.
2. Right-click on the business object and select Create Screens.
3. In the Create New Screen dialog box, do the following:
a. In the Screen Name field, enter New Corporate Account as the name for the quick activity.
b. Under FloorplanType select Quick Activity floorplan (QAF) .
c. Click OK.
The quick activity is created and displayed in the Solution Explorer under the business object.
4. Double-click the new QAF.
5. The QAF opens in the user interface designer. It has the following attributes:
An
●
identification region with the title of the quick activity
● A contextual navigation region with default buttons such as Close, Save and Close, and View All
● An event handler with the operation type WindowAction named Close associated with the
Close button
2. Edit the quick activity
1. Enter a title for the quick activity in the Properties Explorer , under Misc – FloorplanTitle .
If this floorplan allows you to either create or edit details, use a calculation script to dynamically
render the title.
For more information, see Define Dynamic Behavior of a Field [page 599] and Write a Script
[page 612].
2. If required, add additional buttons and assign an event handler to the OnClick event.
For more information, see Configure a Button [page 600] and Create an Event Handler
[page 613] .
For BO actions, use the operation type BOAction and bind the action to the BO action. The
fields Action Type and Instance Binding will be automatically updated as per the BO action
property.
3. Drag the required controls from the Toolbox to the quick activity.
4. In the Data Model tab, bind each of the data model elements to a business object element.
For more information, see Bind Data Elements to Business Object Elements [page 599] .
Create an OBN inport to receive the navigation key from the source floorplan, in order to
5.
retrieve data from the target floorplan:
Overview
An object instance floorplan (OIF) is used to create and edit business object data or trigger actions on a business
object. It is opened using object-based navigation. It can be used to create new business object data. OIFs are
similar to quick activities except that an OIF has a set of tabs such as General and Line Items.
Procedure
1. Create an OIF
1. In the Solution Explorer , expand the solution to display the business object.
2. Right-click on the business object and select Create Screens.
3. In the Create New Screen dialog box, do the following:
a. In the Screen Name field, enter a name for the object instance floorplan.
b. Under FloorplanType select Object Instance Floorplan (OIF) .
c. Click OK
A new object instance floorplan is created and displayed in the Solution Explorer under the
business object.
2. Model the OIF
1. Double-click the new OIF.
The OIF opens in the user interface designer.
2. In the Designer tab, select an OIF tab, for example, General Data tab.
3. In the Properties Explorer , select ViewSwitchNavigation from the drop-down list and under Misc-
NavigationItems , click ....
In the OIF View Collection Editor, remove any unwanted tabs.
Edit the properties of each of the tabs. For example, the title of the tab, its behavior, and visibility.
The name of the tab is stored in run time in the data model field /Root/UIState/
ViewSwitchSelectedItem. You can use it in dynamic data or property handling for a calculation
rule.
Overview
You can create a list pane that is always embedded in a work center view. The OWL contains business objects such
as purchase orders or opportunities. You can, for example, search for, display, and edit business objects as well as
trigger follow-on processes.
Prerequisites
You have created an object instance floorplan (OIF), or a fact sheet.
For more information, see Model an Object Instance Floorplan
[page 574] or Model a Fact Sheet [page 570] .
Steps
a. In the Solution Explorer , expand the solution to display the business object.
b. Right-click on the business object and select Create Screens.
c. In the Create New Screen dialog box, do the following:
● In the Screen Name field, enter a name for the object work list.
● Under FloorplanType select Object Work List (OWL) .
● Click OK.
A new object work list is created and displayed in the Solution Explorer under the business object.
d. Double-click the new OWL.
The OWL opens in the user interface designer.
a. Add columns in the OWL by dragging and dropping Controls from the Toolbox .
b. Bind each of the fields to the required business object element.
For more information, see Bind Data Elements to Business Object Elements [page 599] .
On the Designer tab, you can see that the following fields are available by default:
● List or advanced list pane with columns
● Show drop-down list, basic Find field, Go button in the Search area
If you add the query parameters like this, then you do not need to add the query parameters and do the binding
in the Controller tab.
e. To configure a button to open target floor plan from the OWL, for example, an OIF or a GAF do the following:
1. Add an Edit button to the tool bar
For more information, see Configure a Button [page 600] .
2. Select the Navigation property and open the editor.
3. Select the namespace, OIF/FS controller, and its inport operation Open and click OK.
4. An OBN, an outport, and an event handler are created automatically in the Controller tab.
a. In the Controller tab there is a default query. You can add more queries and default sets using the context
menu.
b. In the Designer tab, assign a title to the default set that is displayed in the Show drop down list .
c. In the Controller tab, bind the query to the controller’s query using the elements structure.
d. Add and bind the query parameters from the controller to Search Parameter Structure fields.
e. Find the eventhandler, outport, and OBN that were created while configuring the Edit button.
f. To configure the outport, add the parameters Key List and Key and bind the parameter to an unbound data
list and data field that acts as a placeholder for the key.
g. Save and activate your changes.
See Also
Create an OWL Excel Export [page 352]
Overview
You can create an object value selector (OVS) dialog box as a reusable component for a custom business object
and for an SAP business object. It can be called from any OVS control.
An OVS helps you select one item from a table of business object instances. This is an example of an object value
selector dialog box in SAP Business ByDesign:
Prerequisite
You have opened a solution. If you want to add the object value selector dialog box to a custom floorplan, you
need to have created a business object.
Procedure
1. In the Solution Explorer , do the following:
a. Right-click the business object and select Create a. Right-click the solution and select Add New
Screens. Item .
b. In the Create Screens dialog box, do the following: The Add New Item dialog opens.
1. In the Screen Name field, enter a name for the OVS b. SAP Screens Object Value
dialog box. Select
and click Add .
Selector (OVS)
2. Select the required option from the Supported The Select Business Object dialog opens.
Devices value help. c. Select an SAP business object or a custom
3. Under Screen Type, select Object Value Selector business object or search for a business
(OVS) . object.
c. In the Select Business Object Elements for OVS dialog d. Optional: Change the default name.
box, select the business object element(s) and click OK. e. Click OK.
A new OVS dialog box is created and displayed in the A new OVS dialog box is created and
Solution Explorer under the business object ( [Name of displayed in the Solution Explorer under the
the business business object ( [Name of the
object]_OVS.OVS.uicomponent, ). OVS].OVS.uicomponent, ).
For more information, see Bind Data Elements to Business Object Elements [page 599] .
7. In the Controller tab do the following:
● Select the event handlers GetValueHelpHandler and SetValueHelpHandler and define the appropriate
business object model.
● Select the query of the data model and bind it to the business object.
● Select the outport OVSValueSelectorOutPort to define the correct parameter binding from the
parameter Object ID and Object Name to the attributes of the data model.
8. Save and activate your changes.
Overview
You can create a guided activity floorplan to simplify complex tasks. This floorplan helps you navigate step by step
through a given process.
Prerequisites
● The required OWL has been created.
● If you want to create a list of common tasks, then the corresponding target floor plans, which implement the
OBN operations used in this view, have to be declared as assigned objects.
● If there are common tasks and related links that cannot be specifically assigned to one view and belong to
every view of a work center, an Include View with these links is created.
Procedure
1. Create a work center view.
a. In the Solution Explorer , right-click your project and select Add New Item .
The Add New Item dialog box opens.
b. Select Work Center View.
c. In the Name field, enter a name for the work center view and click Add .
The work center view is added to your project.
d. Double-click the work center view.
The work center view opens in the user interface designer.
e. Check the following properties of the work center view in the Properties Explorer :
Property Description
Configuration — Support Used in ITSAM, for example to propose a CSN component for an incident
Area Code
RBAM Data — Classifies the RBAM start authorization behavior. For normal views, the entry
Authorization should always be .
ApplicationContainer
Classification Code
2. Embed an OWL.
a. Drag and drop the OWL from the Configuration Explorer to the Designer tab.
b. Click Bind .
c. In the Embedded component binding dialog box, bind the OWL to the work center view.
For more information, see Model an Embedded Component [page 587] .
3. Define the assigned objects.
All the assigned objects together define the complete authorization granted to a user assigned to the view.
Assigned object also specify the collection of valid navigation targets for a view and the elements that should
appear in the Reports view of a work center.
a. In the Properties Explorer , select WorkCenterView .
b. Under RBAM Data — Assigned Objects, click ....
c. In the Add Assigned Objects dialog box, click Add and then click … to select the required Component
Id.
d. Select the required Assigned Object Type:
● Navigation Target : To specify the UI components that should be reachable from this view.
● WocViewInclude : To include views of type Include View.
● TaskList View : A collection of BTM task types that should be supported by the view.
● Reports view: To allow the view to show a list of reports in the work center.
e. If you want to define the dependency of the assigned objects, define the scope rules.
f. If there are a set of navigation targets that belong to many views of a work center, create an Include
View and assign the Include View as an assigned object to this view.
An Include View is built like any other view with a few exceptions like:
1. You cannot include Embedded Components.
2. The View sub-type has to be Include View.
3. An Include View cannot have another Include View.
4. Access context cannot be maintained for Include View.
5. An assigned object of type Include View does not have scope rules.
g. Click OK.
4. Specify the common tasks and related links specific to this view.
a. In the Properties Explorer , select WorkCenterView .
b. Under Links — CommonTasks, click ....
c. In the NavigationListItem Collection Editor , click Add .
d. Under Data — Link, click ... .
g. If you want a list of related links in the work center view, repeat the above steps under Links — Related
Links .
5. Define the enterprise search objects.
a. In the Properties Explorer , select WorkCenterView .
b. Under RBAM Data — Enterprise Search Objects, click ....
c. In the Enterprise Search Objects Editor , assign the required enterprise search controller objects to the
view and click OK.
The users assigned to this view are authorized to use Enterprise Search and the assigned objects are
available in the drop down list of available enterprise searches.
Overview
You can model a work center floorplan to display the various work center views.
Prerequisites
You have created the required work center views.
Procedure
1. Create a work center with default views.
a. In the Solution Explorer , right-click your project and select Add New Item .
The Add New Item dialog box opens.
b. Select Work Center .
c. In the Name field, enter a name for the work center and click Add .
The work center is added to your project.
d. Double-click the work center.
The work center opens in the user interface designer.
e. Check the following properties of the work center in the Properties Explorer :
RBAM Data-Authorization This indicates how the component is handled for startup authorization. If there is an
Classification Code embedded work center view the entry should always be Application Container .
Overview
You can create a port type package in the studio and modify its attributes in the user interface designer.
A port type package is a component that hosts one or more port types. A port type is a blueprint for an inport or an
outport. Navigation between components that have inports and outports within the same port type package can be
facilitated without any mapping effort.
Procedure
1. In the Solution Explorer , right-click your project and select Add New Item .
2. The Add New Item dialog box opens.
3. Select Port Type Package.
4. In the Name field, enter a name for the port type package.
5. Click Add .
The port type package is added to your project.
6. Double-click the port type package.
The port type package opens in the user interface designer.
Create the required structure, as follows:
7.
● To add a port type, select the root node and then click + .
● To add a parameter, right click on the port type and choose Add Parameter .
● To add a List Parameter, right click on the port type and choose Add List Parameter .
You can add parameters under a list parameter.
● To set a parameter as a key parameter, right click on the parameter and choose Set as Key.
8. To rename any entity in the port type package, right click on the entity and choose Rename. Type the required
name and press Enter .
9. Save and activate your changes.
Overview
You can model a modal dialog to create a dialog box that is triggered by an event action. You can model a
reusable modal dialog and then bind it to a floorplan, or you can model a modal dialog that is specific to a floorplan
and that can be called by an event handler.
Prerequisites
You have created a solution in the studio.
Procedure
1. In the Solution Explorer , right-click your solution and select Add New Item .
Procedure
1. In the Solution Explorer , double-click the floorplan where you want to add a new modal dialog.
The floorplan opens in the user interface designer.
2. From the Toolbox – Panes, drag and drop a ModalDialog onto the Designer tab.
3. In the new modal dialog, do the following:
a. In the Properties Explorer , under Text Information – Title , click the arrow button.
b. In the Dependent Property Editor dialog box enter the required title in the Overridden text field.
You can delete the embedded component when your solution is in maintenance mode. For more information, see
Maintenance Mode [page 166].
Procedure
1. Create an Embedded Component .
a. In the Solution Explorer , right-click your project and select Add New Item .
The Add New Item dialog box opens.
b. Select Embedded Component .
c. In the Name field, enter a name for the embedded component and click Add .
The embedded component is added to your project.
d. Double-click the embedded component.
The embedded component opens in the user interface designer.
You can model an embedded component just like any other UI component. The main difference is in the
controller interface binding, controller configuration and node reference binding.
A data model entity is created for each configuration parameter, structure and parameter
list. You can configure their properties in the Properties Explorer .
Alternatives
You can also loosely couple an embedded component to a parent
component. Create an embedded component.
1.
2. In the Controller tab, model the inports, in the followings manner:
a. Right-click on Inports and add a new inport.
b. Add a new parameter and bind this to a data field in the data structure.
Model the outports to pass back values in a similar manner as the inports.
3.
Open the parent component.
4.
5. In the Controller tab, model the outports, to access the embedded component.
6. Model the inports to pass back values.
7. In the Configuration Explorer , drag the embedded component to the Designer tab and click Bind .
8. In the Embedded component binding dialog, in the Simple Navigation tab, right-click on Navigation and select
Add Navigation .
9. Map the parent component outport with the embedded component inport and bind the parameters.
10. Right-click on Navigation and select Add Navigation .
11. Check Reverse Navigation.
Result
You should note that once an embedded component is used in a parent component, any interface changes may be
incompatible.
This document gives you an idea about the various modifications and enhancements you can make to the
floorplans created by you using the user interface designer.
For more information about creating floorplans, see the Floorplan Modeling Quick Guide [page 568] .
Transformations
A business object (BO) is modeled generically, and not for a specific user. The BO structure and node attributes,
therefore do not always fit the needs of a specific user interface.
A transformation allows the conversion of a BO node attribute into a form that can be used on the user interface.
For more information, see here [page 593].
Tasks
Fields
Configure a Button
You can add any required button on the application toolbar. The Cancel and Close buttons are configured in the
system. If you add these buttons, the system automatically associates the event handler, to close the floorplan. If
you want to any other button, you need to write the required event handler. You can also configure a button to open
a floorplan by configuring an object based navigation between floorplans.
Tables
External Navigation
Transformations
Additional Tasks
Write a Script
You can write front-end scripts while creating an event handler and while defining a calculation rule.
For more information, see here [page 269].
9.4.2.1 Transformations
Overview
A business object (BO) is modeled generically, and not for a specific user. The BO structure and node attributes,
therefore do not always fit the needs of a specific user interface.
For example, in the Purchasing contracts BO , a specific value needs to be entered to ensure the unlimited validity
of contracts. So a date like 31/12/9999 is used for this purpose. On the user interface however, a checkbox to
indicate unlimited validity is needed and not a set date.
● Code-to-Indicator
● Concatenation of attribute values
● Time-to-Duration
● Age from date
A transformation has one or many inbound parameters. The input for a transformation can either be a constant
value, a binding against a field of a BO node structure, or an already existing data field from the user interface. The
resulting outbound value is assigned to a target field or a parameter inside the user interface data model.
The type of transformation rule used depends on whether the value being generated is for use in a dedicated field
or in a default set parameter.
See Also
Configure a Dedicated Field [page 616]
Configure a Default Set Parameter using Transformations [page 616]
Overview
Operation types in the user interface designer allow you to assign an activity to an event handler.
When creating an event handler [page 613], you can select from one or more operation types.
Following are the various operation types:
BOAction
The BOAction can be used to invoke a special function exposed by an ESR action.
BOAction parameters can be bound to data fields in the data model to pass values to parameters. To enter values
for the action parameters, you can configure an action form in the BOAction. Add the controls to the action form
and bind the action parameters to the data fields bound to controls. On executing the event handler, the action
form is displayed. Enter the action parameter values and click OK to execute the BOAction.
● Special Reference Action supports copy and paste for lists. The list operation CutCopy stores the selected
instances in the buffer. To use this selection for the next reference action, pasting in this case, you can
model a special reference BOAction by checking this flag. Then, the selected instances in the first
operation, CutCopy in this case, are passed as parameters for this second reference action.
BOOperation
The BOOperation is an implicit ESI-Action. This operation is supported by all business objects even though it is not
explicitly modeled in ESR as an action. It is used to perform Read, Create, DelayedCreate and ValueHelp.
You can configure the following additional parameters for the BOOperation:
● Set Suppress Messages to true to suppress all messages invoked by triggering this operation in the backend.
Otherwise, all ESI and backend messages will be displayed.
● Select Namespace and Select BO describe the BO on which the operation is performed.
● BO Operation parameters are defined by the user and not derived from ESR metadata.
For example, for a read operation, you need to pass the ID value to indicate with which ID you want to
invoke the read.
There are the following parameter types:
○
the keyNavigation parameter is passed with special metadata, here the key flag and GDT metadata.
With nodeID, the value of the node id is passed
○
○ The alternativeKey is modeled for some BOs as number ranges, for example. In the backend, they need
special treatment before a read/retrieve can be done.
The value of the alternative key node is converted to node ID. The type of alternative key is indicated by
the data field bound to the path attribute. This value is used at runtime to identify the type.
CheckAndDetermine
The CheckAndDetermine offers a generic function for checking BOs, without the need for an explicit, modeled BO
action. A check carried out with this operation triggers the validation of a whole BO instance, or a specific node with
subnode tree. Error or warning messages are sent to the client if there are any inconsistencies.
This operation is generally used for Guided Activity floorplans, but may also be used in other applications where you
want to implement a check button.
Condition
Condition is used as a branch control to call different operations based on a data model value or constant. You can
specify a default option, as well as configure multiple select options with different compare types and values; and
nested condition operations.
ContainerExit
ContainerExit is an action defined on the exitClass and should only be used in special situations, namely, wherever
a data structure has an exit class assigned.
You can configure any one of the actions in the action field, or create new ones manually. If you use an existing
action, the system automatically sets the exit class property of the structure you have selected as path.
DocumentOutput
DocumentOutput configures Microsoft Excel and Microsoft Word downloads. The group ID is used by the Excel/
Word export to identify the assigned template group.
ExecuteDefaultSet
ExecuteDefaultSet executes an ESI query. Set Blocking to block access to the UI during query execution.
FireEventHandler
FireEventHandler allows you to invoke other event handlers.
FireOutport
FireOutport is used to fire and pass data to the outport. Set TakeOverMessagesToNewWindow to carry forward
messages from the previous save to a new window in Save and New scenarios.
List
List triggers operations related to the data list such as Add Row and Remove Row. Set Blocking to block access to
the UI during the operation.
MessageBox
MessageBox configures decision pop-ups, for example Are you sure you want to delete? A deletion template
is available, as well as other parameters to customize your configuration.
Use List Binding to enable plural text and list count for multi-selection.
OpenLink
OpenLink opens a link in an external browser. The link value can be bound to a data field and URL.
Set the browser target features as follows:
● Default = empty
● Status = yes
● Toolbar = yes
● Menubar = yes
● Resizable = yes
Set Process Protocol to explicitly switch off the protocol handling for the OpenLink operation. In this way, you
ensure that file:// or https:// remains in the URL.
Script allows you to define front-end script for dynamic expressions. Set Blocking to block access to the UI during
script execution.
In the Scope Fields section, you can configure data fields that trigger script execution. When a field value changes,
the script is executed.
SynchDataContainer
SynchDataContainer forces a backend round trip and flushs the data container at runtime. You can use this operation
instead of, for example, provoking a round trip by flagging a dummy field with requiresRoundTrip and setting a value
in this field.
When the Finalize flag is set, DoPostProcessing is invoked which results in the evaluation and sending of messages.
ValueHelp
ValueHelp should be configured if an object value selector (OVS) component is involved.
Set the Use Query flag to trigger the query configured as query attribute. ●
● Query Name is the query in the OVS to be called.
● For Operation Type, Get is for retrieving DefaultSets, and Set for passing to the parent component.
● Use Suppress Messages to suppress messages coming in the value help round trip.
● Parent Component Id and Parent Path are the parent component node information for the RetrieveValueSet
call.
Select Namespace and Select BO Model describe the OVS controller name.
●
WindowAction
In WindowAction , set TakeOverMessageInCallingWindow to Yes to show messages of the current operation in the
calling window.
For Success Notification Port, configure the outport to be fired on save. The outport and inport at the source should
be configured with the same local event name. In this way, when a quick activity is opened from a work list, then
saved and closed, the system informs the port that the save is successful and the work list is refreshed.
Set Continue on Reject to continue with the execution even if the window action fails.
Controller
Controller should be used to create Actions on BO in case of new Controller Infrastructure. From a functional
perspective a controller acts like a BO Action in a new controller infrastructure.
RestartClient
RestartClient clears details from the DataModel and reloads the screen from the backend. In this way, if you open a
screen, make a change, then cancel the operation, the screen reverts to its state before the edit operation was
performed. There is no configuration for this operation.
QCAfterSaveAction
QCAfterSaveAction is configured in the Quick Create (QC) component after a WindowAction operation. You can
configure the action type to open the Thing Inspector after the save operation, or open a new Quick Create screen.
Overview
A message is the text shown at the bottom of the user interface (UI) during runtime. It presents the user with a piece
of information, an instruction, or a warning in a given situation. In SAP cloud solutions messages are sent to the UI
from the business object (BO) that the UI is based on. The messages are part of the infrastructure delivered by SAP
or can be part of a custom BO.
In some cases, the original messages of the BO that are shown during runtime do not fit the context of the UI. For
example, they have the wrong terminology or the terms used are not specific enough. In those cases, you can
exchange messages or change the behavior of messages on the UI by using the message mapping offered by the
UI designer. If the original message contains parameters you can also display a different message for each
individual parameter value.
You map messages only within the context of a specified UI and not across the system. This means, if a message is
shown in the context of two different UI models, you can map it for one UI model and this mapping does not affect
the message in any other UI model.
Prerequisites
Message mapping in the UI designer is only available for BOs that contain messages.
Structure
In the UI designer, message mapping is located on the Controller tab of those UI components that directly
communicate with the BO or the backend. On the Controller tab, the following sections deal with the messages of a
BO:
● Messages
In this section, the UI designer displays all messages associated with the BO that the currently selected UI
component is based on.
● Message Mappings
In this section, you can see the original messages associated with the BO and you can do the actual mapping.
For more information, see Map a Message [page 619] .
In the UI designer, you can use the following rules to deal with messages:
Replace
●
The original message is replaced by a new message. During runtime, the system displays the new message
on the UI instead of the original message.
● Ignore
The system ignores the original message and does not show it during runtime on the UI.
● Original
The system displays the original message during runtime.
● Aggregate
9.4.3 Tasks
Overview
You can bind the data elements you have added to your floorplans, with the business object (BO) elements in the
backend, so that data can be derived from the backend when a particular data element is used at runtime.
Procedure
1. In the studio, double-click the required floorplan in the Solution Explorer .
The floorplan opens in the user interface designer.
2. In the Data Model tab, under the Root structure, add the necessary data fields, data structures, and data lists.
3. Bind the data structures and the data fields under the Root structure to the BO structure nodes and the BO
elements.
To bind a data element, select the required data element from the left list and select the required business
object element from the right list and click Bind .
4. In the dialog box that opens, click Yes if you want the system to automatically use the text maintained for the
BO element as the field label.
5. If you want to manually enter a field label in the user interface designer, in the Designer tab do the following:
a. Double-click the user interface control.
The Dependent Property Editor dialog box opens.
b. Enter the field label in the Overridden Text field.
6. Save and activate your changes.
Overview
A dynamic expression is used to define the behavior of a field within a specific context. You can for example, define
the visibility of a field or a group of fields depending on the content of another field on the screen.
Procedure
1. In the studio, double-click the required floorplan in the Solution Explorer .
The floorplan opens in the user interface designer.
2. Select the required field.
3. In the Properties Explorer , under Behavior – Visible , select Advanced.
To define the formula, you can use every field that is defined in the DataModel . The fields available in
the DataModel are listed under the collection pattern Invalidation Trigger .
Example
There are many discount types available in the system. If the user selects the Discount Type Christmas, you want
the Minimum Bill Amount field to be visible on the screen. This field is otherwise not visible if the user selects any
other discount type. In such a case, you can define a dynamic expression for the Minimum Bill Amount field.
Overview
You can add any required button to the application toolbar of your floorplan. The Cancel and Close buttons are
configured in the system. If you add these buttons, the system automatically associates the event handler to close
the floorplan. If you want to add any other button, you need to create the required event handler. You can also
configure a button to open a floorplan by configuring an object-based navigation between floorplans.
Prerequisites
You have created a floorplan.
Procedure
1. In the studio, double-click the floorplan in the Solution Explorer .
The floorplan opens in the user interface designer.
2. Open the Configure Toolbar as follows:
a. In the Properties Explorer , select the AdvancedListPaneVariant to which you want to add a button.
b. Under Toolbar Information - Use Toolbar , select True.
Task Action
To add a Under Available list, select Close or Cancel button and click the right arrow button. The button is now
configured available in the Current list.
button
To add an 1. Under Available list, select the required button or the Application Specific button and then click
application-
specific the right arrow button.
button and 2. Under Events - OnClick, select New Event Handler.
configure it
For more information, see Create an Event Handler [page 613] .
manually
To add a 1. Under Available list, select the required button or the Application Specific button, and then
button and
configure an click the right arrow button.
object-based 2. Configure OBN navigation in the source and target floorplans.
navigation
For more information, see Configure an Object-Based Navigation in a Source Floorplan
(OBN)
[page 610] and Configure an Object-Based Navigation in a Target Floorplan [page 609] .
4. Click OK.
5. Save and activate your changes.
See Also
Translate a Mandatory Button
You can create a Preview button and link it to a print form. Clicking the Preview button allows you to preview the form
as a PDF file and provides options to either save or print the form.
Prerequisites
● An activated floorplan exists for the business object.
For more information, see Model an Object Instance Floorplan [page 574] , steps 1–3.
● An activated print form is associated with the business object.
For more information, see Create a Print Form [page 408].
Procedure
1. Open the floorplan in the user interface designer (UI designer) and create an outport.
a. In the studio, double-click the floorplan in the Solution Explorer .
The floorplan opens in the UI designer.
b. On the DataModel tab, right-click on Root and select Add Data Field.
● Type: Boolean
● Name : bool_true
d. On the Controller tab, right-click on Outports and then select Add Outport .
e. To rename the outport, right-click the outport and select Rename. Enter a name, for example,
PreviewOutport.
2. Add the outport parameters.
a. In the Outport Configuration: OutPort view, click the Add Parameter button.
b. In the ParameterName field, enter GroupCode.
c. In the Constant field, enter the group code.
You can find the group code in the studio. In the Solution Explorer, double-click the .ftgd file.
The group code is displayed as shown in the figure below.
c. Click Preview.
The Preview window opens.
See Also
Print Forms Quick Guide [page 406]
Overview
You can create a pane to display different types of controls on a screen.
Prerequisites
You have created the floorplan to which you want to add the pane.
Procedure
1. In the studio, double-click the required floorplan in the Solution Explorer .
The floorplan opens in the user interface designer.
2. Select the pane, for example, the pane above which you want to add new fields.
The pane is highlighted with a red border.
4. Drag and drop the required controls from the Toolbox into the new pane.
5. Bind each of the fields to the required business object element.
For more information, see Bind Data Elements to Business Object Elements [page 599] .
Save and activate your changes.
6.
Overview
You can create a preview pane to preview information about a business object listed in a table.
Procedure
1. In the studio, double-click the required floorplan in the Solution Explorer .
The floorplan opens in the user interface designer.
2. On the Designer tab, select the advanced list pane.
3. In the Properties Explorer , under Misc – List Pane Variants , click the arrow button.
The List Pane Variant Collection Editor opens.
4. Under Appearance, set Use Preview Pane to True.
The list pane selected, is now expanded with two rows. The system also allows you to add controls in
those rows.
5. Drag the required controls from the Toolbox Controls to the preview panes.
When you drag and drop a control, a Section Group is automatically created. You can add multiple controls
to a section group and give a name to the section group. For example, the name of the section group can
be Invoice Address.
6. In the Properties Explorer , under Text Information – Field Group Header , enter the required section group
name.
7. Bind each of the fields to the required business object element.
For more information, see Bind Data Elements to Business Object Elements [page 599] .
Save and activate your changes.
8.
Example
You have created an Object Work List (OWL) which shows a list of customers. You now want to create a preview
pane, to view the following invoice address details of a selected customer, without leaving the OWL:
● Number
● Street
● City
● Pin Code
● Phone Number
You also want to view the number of orders that have not been shipped or delivered yet.
For each customer, you can configure a preview pane and add various fields to display the above information.
Overview
You can change the text of any component visible on the user interface. For example, you can change the following:
Field label or tab text
●
● Explanation Text: A sentence or two that is displayed on the user interface with details such as how to
perform a task.
Procedure
1. In the studio, double-click the required floorplan in the Solution Explorer .
The floorplan opens in the user interface designer.
2. Double-click the text that you want to change.
The Dependent Property Editor dialog box opens.
You can also change the text in the Properties Explorer , For example:
● You can change the explanation text visible on the user interface under Text Information –
Explanation Area Text .
● You can provide a rollover explanation text under Text Information – Explanation .
All text options that can be changed for a particular component are displayed at the bottom of the
Dependent Property Editor dialog box.
4. Click OK.
5. Save and activate your changes.
Procedure
1. In the studio, double-click the required floorplan in the Solution Explorer .
The floorplan opens in the user interface designer.
2. Select the UI component you want to hide, for example, a section group, or a field.
3. In the Properties Explorer , under Behavior — Visible, set the value to False.
4. Save and activate your changes.
Overview
You can create text pools in order to collect all texts that you want to use for a particular user interface component,
such as a floorplan.
The system-generated and the user-specific text are visible in the TextPool option in the Controller tab. The system-
generated text is created by the tool. It is associated with a particular component, is marked in red and cannot be
edited in the textpool.
The user- specific texts can be entered by the user and are mostly used in scripts. They are marked in black. You
can reuse these texts when you are selecting a label for a control using the Reuse Text option. Based on the
context, the texts with the correct text category are displayed on the user interface.
Prerequisites
You have created the floorplan for which you want to create the text pool entry.
Procedure
1. In the studio, double-click the required floorplan in the Solution Explorer .
The floorplan opens in the user interface designer.
2. On the Controller tab, click TextPool .
3. Select the required language.
4. To add a new text to the text pool:
a. Click Add Text .
The UUID is automatically generated.
b. Select a Text Category based on where you would like to reuse this text.
X indicates short text that is less than 120 characters and Y indicates long text.
5. To enter the reusable text click … .
The Text Block Entry Editor dialog opens.
6. In the Text Block Entry Editor , you can do the following:
● Edit the static text: Change the text and click OK.
● Reuse the static text: Click on Reuse Text and select one of the texts shown in the list and click OK.
● Add an advanced concatenation of static and dynamic text parts. Dynamic parts inside the text are
bound to data fields and are calculated during runtime.
a. Click Advanced .
b. To add a dynamic part to the text to the static text, click ... in a new row.
c. In the Select Data Field dialog, select the required data field and click OK.
7. Save and activate your changes.
Overview
You can create and configure a query to view specific instances of a business object in a floorplan.
For example, in the Contracts OWL, the Show drop down list has entries such as Contracts in Preparation,
and Released Contracts. These are the default sets under a query and are used to display a filtered set of
contracts. You can create a query and default sets under that query. These default sets are then added to the drop
down list.
Procedure
1. In the studio, double-click the required floorplan in the Solution Explorer .
The floorplan opens in the user interface designer.
2. Add a data field to create a reference to your data type, as follows:
a. On the Data Model tab, right-click on root and then add a data structure.
b. Right-click on the structure and then add a data field.
Configure the query, as follows:
3.
a. On the Controller tab, right-click on Queries and then choose Add Query.
b. In the Query Configuration , select the required Namespace and BO.
c. The queries modeled under the BO are displayed in a hierarchical manner.
Expanding the query node in the tree will show all the query parameters.
Procedure
1. In the studio, double-click the required floorplan in the Solution Explorer .
The floorplan is opened in the user interface designer.
2. Select the list.
3. In the Properties Explorer , under Child Elements – List Columns , click ....
4. In the Column Collection Editor , select the column you want to move.
5. Use the up and down arrows to move the column to the required position.
Save and activate your changes.
6.
Overview
You can use object-based navigation (OBN) to navigate between floorplans and pass parameters between floorplans.
The following instructions are to be performed in the floorplan that you would like to display on the click of a button.
For example, the target floorplan can be the Product floorplan that is displayed when you click the Product ID link.
Procedure
1. In the studio, double-click the required floorplan in the Solution Explorer .
The floorplan opens in the user interface designer.
2. On the Data Model tab, add a data field.
3. If required, rename the data field.
4. On the Controller tab, right click Inports and select Add Inport .
5. Check the OBN Inport check box.
6. Select the required namespace and business object (BO) model.
7. Under the BO, select the node for which the inport is being configured. If no node is selected, by default the
root node will be chosen by the system.
8. Create an operation.
9. Select a PortTypepackage and PortTypeReference .
The combination of business object, business object node, and the operation identifies the navigation target.
10. You can select one of the following port type references:
● OpenByKey: Used at instance when you want to open the target floorplan for more information about
an object in a read only mode. For example, the target floorplan is a customer fact sheet to view
information about a customer.
● CreateWithRef : Used at instance when you want to create an object with reference to the source
floorplan. For example, the target floorplan is a Purchase Order OIF that is called from a Contract
floorplan, to create a purchase order with reference to a contract.
11. Bind the data field you just created as the parameter for Key.
Example
You are on the Products object work list (OWL) that displays a list of products, and you want to view the details of
a selected product in the Edit Product OIF.
In the Products OWL, when a user does one of the following, you want to open the Edit Product OIF:
● Select a Product ID
● Selects a row and click View or Edit
To do this, you should configure an OBN in the source (OWL) and the target (OIF) floorplan.
Overview
You can use object-based navigation (OBN) to navigate between floorplans and pass parameters between floorplans.
Perform the following steps in the floorplan where you click a UI control to open the target floorplan.
Procedure
1. In the studio, double-click the required floorplan in the Solution Explorer .
The floorplan opens in the user interface designer.
2. Right-click the user interface control that should open the target floorplan and choose Add OBN using
Wizard .
3. The Configure OBN dialog box opens.
4. Under Select BO details , do the following:
a. You can enter the name of the OBN being configured or the default name will be used.
b. Select the namespace.
c. Select the BO model.
d. Select the node under the BO for which you want to configure the OBN. If no node is selected, the
root node is chosen by default.
e. Click Next .
c. Define the parameters you want to pass on to the target floorplan. The event handler is automatically
created and bound to the outport.
You can also rename the event handler which is being created.
d. Click Finish.
7. To edit a already configured OBN, right-click on the User Interface control for which the OBN was previously
configured and choose Edit OBN Using Wizard.
8. Save and activate your changes.
Alternatives
1. In the studio, double-click the required floorplan in the Solution Explorer .
The floorplan is opened in the user interface designer.
2. Select the button that should open the target floorplan.
3. In the Properties Explorer , under Menu Information – Navigation , click ... .
4. In the Model Navigation dialog box, do the following:
a. Select the target business object.
b. Select the BO node defined in the target floorplan.
c. Select the Operation defined in the target floorplan.
d. Click OK.
5. On the Controller tab, select the outport that was automatically created.
6. Define the parameter you want to hand over to the target floorplan.
The event handler is automatically created and bound to the outport. To
open the target floorplan on click of a link in a table, do the following:
7.
Select a column.
a.
b. In the Properties Explorer , select the Display Type as Link.
c. Under Events – OnClick, define an event handler that is configured with FireOutport, to open the target
floorplan.
8. Save and activate your changes.
Overview
You can add a link that opens an external URL in your floorplans.
Procedure
1. In the studio, double-click the required floorplan in the Solution Explorer .
The floorplan opens in the user interface designer.
2. Drag the Link control from the Toolbox to the Designer tab.
3. On the Designer tab, select the Link user interface control.
4. In the Properties Explorer , under Events - onClick, select New Event Handler.
5. In the Configure Event Handler dialog box, select the Operation Type OpenLink.
6. Enter the required URL in the Uri field.
7. Click OK.
8. Save and activate your changes.
Overview
You can write front-end scripts while creating an event handler and while defining a calculation rule.
Procedure
1. In the studio, double-click the required floorplan in the Solution Explorer .
The floorplan opens in the user interface designer.
2. In the Designer tab, select the user interface control to which you want to associate this script.
3. To write a script in an event handler, for example, to trigger an action on the click of a button, do the following:
a. In the Properties Explorer , under Events - onClick, select New Event Handler.
b. In the Configure Event Handler dialog, select the Operation Type as Script.
4. To write a script in a calculation rule, for example to control the visibility of a user interface control, do the
following:
● Use the IntelliSense feature. For example you can select the data elements that are defined in the
floorplan as you type the script.
● Click ZoomOut to expand the editor for a bigger view.
● Click Check Syntax to check if the script is syntactically correct.
Overview
You can create an event handler to respond to user actions on the screen. For example, if you want to close the
window when the user clicks on the Close button, you can create an event handler for the Close button. You can do
either of the following:
● Create the user interface control, for example, a button, and then create an event handler.
● Create the event handlers first and then associate the event handler to the required user interface control.
Procedure
1. In the studio, double-click the required floorplan in the Solution Explorer .
The floorplan opens in the user interface designer.
2. Select the control for which you want to add an event handler.
3. In the Properties Explorer , under Events – OnClick select New Event Handler.
4. Enter a name for the event handler.
5. Select the type of operation.
You can add more than one operation, for example, ListOperation for an AddRow button, a BOAction
a for a Save button and a
WindowAction for a Close button.
For more information, see Operation Types [page 594] .
6. Click OK.
7. Save and activate your changes.
Alternatives
You can also create an event handler first and then associate it with the required user interface control.
1. In the studio, double-click the required floorplan in the Solution Explorer .
The floorplan is opened in the user interface designer.
2. On the Controller tab, under the Tree view, right-click on EventHandlers and then choose Add EventHandler.
3. Enter a name for the event handler.
Select the type of operation.
4.
5. On the Designer tab, select the UI control with which you want to associate the event handler.
6. In the Properties Explorer , under Events – OnClick, select the event handler you have created.
Overview
You can create action forms to use the action parameters of a business object (BO) node or an enhanced controller
object (ECO) node. Action forms are always bound to a BO/ECO node’s ESI action that has parameters. The
binding is done within the BO Action operation of an event handler. Action forms belong to a user interface
component and cannot be reused in other user interface components.
You can either create an action form and then configure an event handler for it, or you can create an action form for
an existing event handler.
Procedure
1. In the studio, double-click the required floorplan in the Solution Explorer .
The floorplan opens in the user interface designer.
2. In the Toolbox, under Panes, drag ActionForm to the Designer tab.
3. Double-click the action form.
4. Set the following properties:
● Events – onCancelActionForm : Create an event handler to handle the Cancel action in the action form.
For more information, see Create An Event Handler [page 613] .
● Misc– Title : Enter a title for the action form.
● Misc – PreventDisplay : It is usually set to False . You can display the action form, even if all the required
True
parameters are not available at run time. In such a case, set it to .
5. Drag the controls from the Toolbox to the action form.
6. Bind the controls to the fields which are bound to the action parameters.
Save and activate your changes.
7.
Alternatives
You can also create an action form while configuring the event handler, which calls the corresponding ESI action.
1. In the studio, double-click the required floorplan in the Solution Explorer .
The floorplan is opened in the user interface designer.
2. In the Controller tab, select the event handler that triggers the ESI action.
If there is no operation that calls an ESI action, create a new operation of type BO Action and map the
operation to the corresponding ECO/BO action.
3. If the action parameters are not yet bound to data model attributes, bind these attributes in the Selected
Action Parameters section.
4. Under Action Form , select the new action form.
The action form with all the ESI action parameters will be created.
5. In the Designer tab, double-click on the action form.
6. If you want to display additional information, add the required fields.
Overview
You can configure an Object Value Selector (OVS) control to open an OVS dialog box.
Prerequisites
You have created the required OVS dialog box.
For more information, see Create an Object Value Selector Dialog Box [page 577] .
Procedure
1. In the studio, double-click the required floorplan in the Solution Explorer .
The floorplan opens in the user interface designer.
2. Do one of the following:
● To add a new field, insert an ObjectValueSelector from the Toolbox controls.
● To modify an existing field, select the required field, for example Employee. In the Properties
Explorer under Appearance , set DisplayType to ObjectValueSelector .
3. In the Properties Explorer , under Value Help - OVSComponent, click ... .
The Select OVS Component dialog is displayed.
4. Click Browse to display the Repository Browser .
5. Select the Target Component from the tree.
6. If you want to reuse the SAP delivered OVS, click Public OVS and select an OVS component from the list.
7. Click OK.
8. Bind the ID attribute to the value.
The CCTS type must be the same as defined in the outport of the OVS dialog box
The CCTS type must be the same as defined in the outport of the OVS dialog box
The value for the text is not passed on automatically from the OVS box. You use the
AfterModify
script files to ensure that the texts are retrieved.
Example
You are creating a sales order and want to assign an employee responsible for that order. In the Sales Order floorplan,
there is an Employee field, which is an OVS control. If you click this control, the OVS dialog appears where you can
search for the required employee. The selected employee is displayed in the Sales Order floorplan.
Overview
You can add a dedicated field to a data model and use a field transformation to calculate the value of this dedicated
field from existing business object (BO) node attributes.
Procedure
1. In the studio, double-click the required floorplan in the Solution Explorer .
The floorplan opens in the user interface designer.
2. On the DataModel tab, right-click on Root and add a dedicated field.
3. On the Controller tab, right-click on Field Transformations and add a new Field Transformation .
4. For the Field Transformation , under Target Field , select the dedicated field that you created.
5. Select the Namespace .
6. Under Transformation , select the type of transformation rule you want to use.
The parameters for that transformation rule are displayed. Each parameter section displays the parameter
name and an indication if it is a mandatory field.
7. Each parameter can be configured by creating a data binding to the BO model or by assigning a constant
value to it.
Overview
You can use a transformation to calculate the value of a default set parameter.
Different default sets are listed under a query.
For example, in the Contracts OWL, the Show drop down list has entries such as Contracts in Preparation, and
Released Contracts. These are the default sets under a query and are used to display a filtered set of contracts.
You can create a query and default sets under that query. These default sets are then added to the drop down list.
Procedure
1. In the studio, double-click the required floorplan in the Solution Explorer .
The floorplan opens in the user interface designer.
2. Add a data field, as follows:
a. On the Data Model tab, right-click on Root and then add a data structure.
b. Right-click on the structure and then add a data field.
Configure a query, as follows:
3.
a. On the Controller tab, right-click on Queries and then choose Add Query.
b. In the Query Configuration , select the required Namespace and BO.
The queries modeled under the BO are displayed in a hierarchical manner. Expand the query node in
the tree to show all the query parameters.
Overview
You need to assign standard report list views, for example the List and Gallery standard reports list views, to a work
center in the user interface designer.
In the customer's production system (SAP cloud solution), an Analytics administrator assigns the report to the work
center view to make it available for business users.
We recommend that you provide information about the work center views to which customers need to assign
reports in your Solution Documentation. For more information, see Documentation Types in Cloud Solutions
from SAP [page 678] .
Procedure
1. In the studio, double-click the required work center in the Solution Explorer .
The work center opens in the user interface designer.
2. On the Designer tab, right-click on BusinessObject and select WorkCenterItem .
3. In the Properties Explorer , under Misc-ViewSwitches click ….
4. In the ViewSwitch Collection Editor dialog box, do the following:
a. Click Add to add a new view.
b. Select the newly added view.
c. In the Properties Explorer , under Misc-SubViewSwitches , click ….
The SubViewSwitch Collection Editor dialog box opens.
5. In the SubViewSwitch Collection Editor dialog box do the following:
a. Click Add twice to add two new subviews.
b. Click OK.
6. In the ViewSwitch Collection Editor dialog box, click OK.
7. On the Designer tab, select WorkCenterView .
8. Under WorkCenterView Views , select the first WorkCenterSubView that you added.
9. In the Configuration Explorer, navigate to SAP_BYD_TF Analytics AnalysisPattern
ana_reports_view_wc.WCVIEW.uiwocview .
10. Drag and drop this work center view onto the Designer tab.
11. In the dialog box that opens, click Yes to overwrite the work center view floorplan title with the view switch
name.
12. Under WorkCenterView Views , select the second WorkCenterSubView that you added.
13. In the Configuration Explorer , navigate to SAP_BYD_TF Analytics AnalysisPattern
ana_reports_carousel_view.WCVIEW.uiwocview .
14. Drag and drop this work center view onto the Designer tab.
15. In the dialog box that opens, click Yes to overwrite the work center view floorplan title with the view switch
name.
16. On the Designer tab, select WorkCenterView .
17. In the Properties Explorer , under Misc-Text click the arrow button.
18. In the Dependent Property Editor dialog box, do the following:
a. Change the text in the Overridden Text field to Reports.
b. Click OK.
19. Save and activate your changes.
Overview
You can define anchors for your floorplans to allow end users to make changes to the floorplans provided by you.
Procedure
1. In the studio, double-click the required floorplan in the Solution Explorer .
The floorplan opens in the user interface designer.
2. Select the region in floorplan for which you want to define the anchor.
For example, you can define the anchor for the floorplan as a whole or for a section group, pane
container, outport, and so on.
You can view the anchors you have added only in the display mode.
Overview
You can map a message in order to change the terminology in messages appearing on the UI or to change their
behavior on the UI. For more information see Message Mapping [page 619].
Procedure
1. In the Solution Explorer , click on the UI component and choose Open in UI Designer.
The UI Designer opens with the selected UI component in a new window.
2. On the Controller tab, select Messages –> System Messages.
The Messages Editor opens.
3. Select Add Messages.
A new line in the Message Mappings Editor is displayed.
4. For the new message text that you want to be displayed on the UI instead of the original text do the following:
To show different mapped messages based on parameter values in one original message, proceed as
follows:
In the Details section of the Message Mappings Editor , in the field Message Parameter, select the
parameter and in the field Parameter Value , enter the parameter value that you want the mapping to
be based on.
10. On the Details screen in the field New Message Text, select the message text that you want to appear instead
of the original message text.
If you want to aggregate two or more original messages, make sure that always select the same new
message for those original messages.
This document gives you an overview of the changes you can make to SAP floorplans in the studio. These
changes are termed as change transactions and need anchors to be executed.
Change Transactions
Change transactions allow you to make changes to SAP delivered floorplans in the studio. You can create, save, and
publish the change transactions using the Extensibility Explorer of the user interface designer, which is integrated
into the studio.
Change transactions can only be made to SAP floorplans that contain stable anchors. For more information, see
Anchors [page 623].
Anchors
Anchors are stable extension points to which any user interface modifications that you make to SAP floorplans are
attached. This prevents life-cycle issues during updates or upgrades to the user interface. You can also add
anchors to your own floorplans.
Tasks
Remove a Button
You can remove a button or navigational item from an SAP floorplan.
For more information, see here [page 630].
Overview
Change transactions allow you to make changes to SAP delivered floorplans in the studio. You can create, save, and
publish the change transactions using the Extensibility Explorer of the user interface designer, which is integrated
into the studio.
Change transactions can only be made to SAP floorplans that contain stable anchors. For more information, see
Anchors [page 623].
When you create change transactions they are stored in the associated solutions created by you.
You can use a change transaction to add a view to a work center delivered by SAP. For example, you can add a
new view to the Liquidity Management work center (CashLiquidityManagement_WCF).
9.5.2.2 Anchors
Overview
Anchors are stable extension points to which any user interface modifications that you make to SAP floorplans are
attached. This prevents life-cycle issues during updates or upgrades to the user interface. You can also add
anchors to your own floorplans.
Any user interface adaptations made by you, as an SAP partner, to SAP floorplans, are retained unchanged in future
releases even after the upgrades provided by SAP due to the presence of anchors.
Features
A stable anchor has a system-wide unique ID and a reference entity. All stable anchors created during a particular
release will also exist in later releases.
Anchors are essential when making changes to a floorplan that is from a layer lower than the layer you are working
on. You can only view the anchors added in a lower layer. For example, when you are working on a SAP floorplan
you can view the anchors provided by SAP. You can view the anchors added by you only when a floorplan is opened
in the display mode.
Stable anchors in the floorplans are defined for a logical set of fields placed on the user interface, for example a
section group or a list.
Use
All change transactions can only be applied if there is a stable anchor defined on the SAP floorplan.
Hide a View From a WoCViewSwitchAnchor Hide a View from a Work Center [page 625]
Work Center
Add an Embedded OutportAnchor and Add an Embedded Component to a Floorplan [page 628]
Component to a PaneContainerAnchor
Floorplan
Add an Embedded PaneContainer Anchor or Add an Embedded Component to a New Tab in a Floorplan
Component to a ViewSwitchNavigationAnchor or [page 629]
New Tab in a TabStripAnchor
Floorplan
Modify the Order Of WorkCenterListAnchor Modify the Order of Work Centers [page 630]
Work Centers
See Also
Define an Anchor for a Floorplan [page 619]
9.5.2.3 Flexible UI
Overview
In the SAP cloud solutions, a UI is modeled generically and not for a specific user or specific user groups, therefore
it looks the same for all users of a solution. Sometimes it might be necessary to simplify or reduce the appearance
of a view at runtime so that it shows, for example, fewer fields or sections depending on which user or user group is
working with a UI. UI switches in the UI designer allow to hide or restrict the usage of fields on one or more UIs.
Note that you can use UI switches only to restrict the usage or appearance of fields on a UI that has been
developed by SAP. You cannot use UI switches, for example, to change read-only fields into fields that can be edited.
For more information see Create a Role-Based Flexible UI Using a UI Switch [page 635] .
It is also possible to change the behavior of fields depending on the status of other fields.
9.5.3 Tasks
Overview
You can add a view to an SAP work center.
Prerequisites
The SAP work center to which you want to add a view has a WoCViewSwitchAnchor . For more information, see
Anchors [page 623] .
Procedure
1. In the studio, open the user interface designer.
2. In the Configuration Explorer , navigate to the work center where you want to add the view.
3. Double-click the work center.
4. In the Extensibility Explorer , select WoCViewSwitchAnchor .
5. Click Add and then choose AddWoCView.
6. In the Add Work Center View dialog box, click Target Component to select the required view. You can only
select components of type uiwocview (work center view) and subtype Application.
Select the required position:
7. ●
Top places the new view as the first view in the work center. If an Overview view exists in the work
center, then the new view is positioned after the Overview view.
● Bottom places the new view as the last view in the work center. If a Reports view exists, then the new
view is positioned before the Reports view.
8. If you want to control the scope dependency of the view in the work center, click Add Scoping Rules.
9. In the Scope Rules Editor dialog box, choose the scoping rule from the list on the left and use the arrow buttons
to move it to the list on the right.
10.
Click OK, to apply your changes to the view.
11. Click Apply .
12. Save and activate your changes.
Overview
You can hide a view that is no longer required from an SAP work center.
Procedure
1. In the studio, open the user interface designer.
2. In the Configuration Explorer , navigate to the work center in which you want to hide a view.
3. Double-click the work center.
4. In the Extensibility Explorer , select WoCViewSwitchAnchor .
5. Click Add and then choose HideWoCView.
6. In the Hide Work Center View dialog box, select the title of the view you want to hide.
7. Click Apply .
8. Save and activate your changes.
Overview
You can assign an object, for example, a navigation target or user interface component, to an SAP work center view.
Prerequisites
The SAP work center view, to which you want to assign an object, has an AssignedObjectAnchor .
For more information see, Anchors [page 623] .
Procedure
1. In the studio, open the user interface designer.
2. In the Configuration Explorer , navigate to the work center view where you want to assign the object.
3. Double-click the work center view.
4. In the Extensibility Explorer , select AssignedObjectAnchor .
5. Click Add and then choose AddAssignedObjectToView .
6. In the Add Assigned Object dialog box, select the type of object you want to assign.
7. Click Target Component to select the object.
8. Depending on the type of assigned object, you have the following options:
● If the assigned object is of type Navigation Target, you can add scoping rules:
1. Click Add Scoping Rules.
2. In the Scope Rules Editor dialog box, choose the scoping rule from the list on the left.
Overview
You can remove unwanted objects from an SAP work center view.
Prerequisites
The work center view has an AssignedObjectAnchor .
For more information, see Anchors [page 623] .
Procedure
1. In the studio, open the user interface designer.
2. In the Configuration Explorer , navigate to the work center view in which you want to remove an assigned object.
3. Double-click the work center view.
4. In the Extensibility Explorer , select AssignedObjectAnchor .
5. Click Add and then choose RemoveAssignedObjectToView .
6. In the Remove Assigned Object dialog box, select the object you want to remove.
7. Click Apply .
8. Save and activate your changes.
Overview
You can add an embedded component such as an embedded report (ICP) to an SAP work center view of type
"Overview".
Procedure
1. In the studio, open the user interface designer.
2. In the Configuration Explorer , navigate to the Overview view where you want to add an embedded component.
3. Double-click the floorplan.
4. In the Extensibility Explorer , select the OverviewPageAnchor .
5. Click Add and then choose AddContenttoOverview .
If you select the floorplan type as ICP, select the required report.
c. Select the required Title, Position and Alignment of the embedded component.
7. If the embedded component is of the generic type ICP, you have to select the parameters associated with the
ICP under the option View.
8. Click Add .
9. Save and activate your changes.
Overview
You can add an embedded component to an SAP floorplan. You can add the embedded component to either an
OutportAnchor or a PaneContainerAnchor .
Prerequisites
● The floorplan has an OutportAnchor .
For more information, see Anchors [page 623] .
● The floorplan has a PaneContainerAnchor .
The embedded component (EC) will be placed behind the pane container.
● The embedded component has an inport.
The RequestAutoRefire and RequestFireOnInitialization properties of the embedded component are set to
True.
Procedure
1. In the studio, open the user interface designer.
2. In the Configuration Explorer , navigate to the floorplan in which you want to add an embedded component.
3. Double-click the floorplan.
4. In the Extensibility Explorer , do one of the following:
● To add the embedded component to an OutportAnchor :
a. Select the OutportAnchor , click Add and then choose Add Embedded Component .
The outport selected has an OutportAnchor and the PaneContainerAnchor set as the
referenced anchor.
b. In the Add Embedded Component dialog box, click Select Embedded Component and select the
required embedded component.
2. If the referenced pane container does not contain a tab strip, the embedded component
appears in a new row below the referenced pane container.
d. Click Define Mapping and select the inport of the embedded component.
e. If the inport has any parameters, map the parameters.
f. If the embedded component is of the generic type ICP, you are prompted to provide a title for the
ICP.
2. If the referenced pane container does not contain a tab strip, the embedded component
appears in a new row below the referenced pane container.
c. Click Select Embedded Component and select the required embedded component.
d. If you want to bind the embedded component to the floorplan, click Bind .
e. In the dialog box that opens, select the outport and inport for the embedded component. The
outport selected has an OutportAnchor .
5. Click Apply .
6. Save and activate your changes.
Overview
You can add an embedded component to a new tab in an SAP floorplan.
Prerequisites
● The floorplan has either the ViewSwitchNavigationAnchor or the TabStripAnchor .
For more information, see Anchors [page 623] .
● The embedded component has an inport.
Procedure
1. In the studio, open the user interface designer.
2. In the Configuration Explorer , navigate to the floorplan in which you want to add an embedded component.
3. Double-click the floorplan.
4. In the Extensibility Explorer , select the ViewSwitchNavigationAnchor or the TabStripAnchor .
5. Click Add and then choose Add Embedded Component .
Overview
You can remove a button or navigational item from an SAP floorplan.
Prerequisites
The SAP floorplan from which you want to remove a button or navigational item has a ButtonGroupAnchor .
For more information, see Anchors [page 623].
Procedure
1. In the studio, open the user interface designer.
2. In the Configuration Explorer navigate to the required floorplan.
3. Double-click the floorplan.
4. Select a button group in the floorplan.
5. In the Extensibility Explorer , select the ButtonGroupAnchor .
6. Click Add and then choose RemoveButton .
7. In the Remove Button dialog box, select a button or navigational item that you want to remove from the
floorplan.
If the button or navigational item cannot be removed, the Apply button is disabled.
The removal of mandatory buttons like Cancel, Close, and Print is restricted.
8. Click Apply .
9. Save and activate your changes.
Overview
You can modify the order in which the work centers are displayed in the UI Settings XML file, the path to which is
given below.
Procedure
1. In the studio, open the user interface designer.
2. In the Configuration Explorer , go to SAP_BYD_UI_CCOW Main root uisetting .
3. Double-click the file.
4. In the Extensibility Explorer , select the WorkCenterListAnchor .
5. Click Add and then choose WorkCenterReordering .
6. You can do the following in the Work Center Reordering dialog box:
● Add work centers to the list of Ordered WorkCenters .
○ Select the required work center from the list of Unordered WorkCenters and use the right arrow
button to add the work center to the list of Ordered WorkCenters .
The required work center is added to the list of Ordered WorkCenters , below a work center
selected in the list.
● Remove work centers from the list of Ordered WorkCenters .
○ Select the required work center from the list of Ordered WorkCenters and use the left arrow button
to move the work center to the list of Unordered WorkCenters .
● Change the position of the work center.
Select a work center and use the up and down arrow buttons to change its position in the list of
○
Ordered WorkCenters .
○ To place the selected work center at the top of the list of Ordered WorkCenters click Top .
○ To place the selected work center at the bottom of the list of Ordered WorkCenters click
Bottom .
7. Click Apply .
8. Save and activate your changes.
Overview
User interface (UI) dependencies govern the assignment of views to a user. Three types of dependencies between
views can be maintained.
Types of Dependencies
Dependency Description
Prerequisite Ensures that if one work center view is assigned to a user, then the other work center
view in the dependency is automatically assigned to the user.
SoD Conflict (Segregation of Duty) Ensures that the user is not assigned two views (chosen while defining the dependency)
that conflict with each other from a best practice point of view. For example, if the user
has two views assigned that enable the user to both place an order and to approve the
order. These functions should be performed by different users. When a user assignment
generates a SoD conflict, a warning message is displayed .
These user interface dependencies will govern the assignment of views in the User and Access management view.
For more information, see the relevant documentation in the SAP cloud solution.
The existing dependencies are listed in the UIDependency XML file, the path to which is given below.
Prerequisites
The UIDependency XML file has a UIDependencyAnchor .
For more information, see Anchors [page 623] .
Procedure
1. In the studio, open the user interface designer.
2. In the Configuration Explorer , go to SAP_BYD_UI_CCOW Main root uidependency .
3. Double-click the UIDependency XML file.
4. In the Extensibility Explorer , select the UIDependencyAnchor .
5. Click Add and then choose UI Dependency.
6. You can add three kinds of UI dependencies: Prerequisite , Technical Conflict , and SoD Conflict .
● If you want to add a prerequisite dependency:
a. In the UI Dependency dialog box, click the Prerequisites tab.
b. Click + to add a new prerequisite.
c. Select the desired views for Target Partner WoC View and Prerequisite WoC View.
● If you want to add a technical conflict dependency:
a. In the UI Dependency dialog box, click the Technical Conflict tab.
b. Click + to add a new technical conflict.
c. Select the desired views for Target Partner WoC View and Technical Conflicting WoC View .
d. In the Reason field, enter the reason why a user should not be assigned both views at the same
time.
● If you want to add a SoD conflict dependency :
a. In the UI Dependency dialog box, click the SoD Conflict tab.
b. Click + to add a new SoD conflict.
c. Select the desired views for Target Partner WoC View and SoD Conflicting WoC View .
Overview
The following section provides a detailed example of how to create a business object extension of the business
object Opportunity and the corresponding UI that shows an additional field depending on the status of the field value.
In the example, the business object extension contains the additional field Reason Text, which is shown on the UI
when an opportunity exceeds a certain value. The user must enter a text in the field Reason in order to be
Text
able to save the opportunity. If the user does not enter anything in the field and tries to save the opportunity, the UI
displays an error message and the user cannot save the opportunity. If the value of the opportunity is below the
stated threshold, the field Reason Text is not displayed on the UI.
Prerequisites
You have created a solution.
Procedure
1. In the Solution Explorer , expand your solution, right-click your project file, and select Add New Item .
The Add New Item dialog appears.
2. Select Business Object Extension .
3. Enter a Name for your business object extension, in our example it is OpportunityExtension and click
Add .
You cannot use a name that is already used for a business object or business object extension in your
solution.
import AP.Common.GDT;
import AP.CRM.Global;
[Extension] businessobject AP.CRM.Global:Opportunity
// You must activate this business object before you can access the extension fields
message MessageEnterReason text "Enter reason for 'big' opportunity"; [Label("Reason tex
node Item {
}
node Party {
}
}
7. Save and activate the business object extension.
8. In the Solution Explorer , right-click the business object extension and select Create Script Files .
The Create Script Files dialog window opens.
9. Scroll to the SalesForecast node, in the Create column, set the checkbox for Event:AfterModify, and
click OK.
The Event-AfterModify.absl object is created and listed in the Solution Explorer .
10. Enter the necessary ABSL coding. In our example, the threshold for the opportunity value is 100000.
import ABSL;
if (this.ExpectedRevenueAmount.content > 100000) {
this.ToRoot.IsBig = true;
}
else { this.ToRoot.IsBig = false; }
11. In the Solution Explorer , double-click the Event-AfterModify.absl to open the file in the editing pane.
12. Enter the necessary ABSL coding. In our example, the threshold for the opportunity value is 100000.
import ABSL;
if (this.ExpectedRevenueAmount.content > 100000) {
this.ToRoot.IsBig = true;
}
else {
this.ToRoot.IsBig = false;
}
13. Save and activate your changes.
14. In the Solution Explorer , right-click the business object extension and select Enhance Screen.
The Enhance Screen dialog window opens.
15. Select the required floorplan, in our example, the COD_Opportunity_TI and select OK.
The .xuicomponent file is created and added to your solution.
16. In the Solution Explorer , right click the .xuicomponent and select Open in UI Designer.
17. Select the header, in this example the second header, and in the Extensibility Explorer , select Add Extension
Field to Section Group .
The Add Extension Field dialog window opens.
}
else {
return true;
Save and activate your changes.
Overview
In the UI designer it is possible to hide or display extension or standard fields on the UI. It is also possible to make
them read-only or mandatory depending on your requirements. To do this, you can create an UI switch in the studio.
With an UI switch you can make the fields on the UIs provided by SAP more restrictive, but you cannot make
them less restrictive.
Prerequisites
You have created a solution.
Procedure
1. In the Solution Explorer , expand your solution, right-click your project file, and select Add New Item .
The Add New Item dialog appears.
2. Select UI Switch .
3. Enter a Name for the UI switch and click Add .
You cannot use a name that is already used for a UI switch in your solution.
To apply the UI switch to the UI, you have to assign it to a business role and assign this business role
to the users.
To read out the UI switches of a user, you can use the function
Context.GetCurrentUserUISwitches() in the script coding.
This document gives you an overview of how you can adapt floorplans for use on mobile devices and the
steps involved in configuring navigation between floorplans.
For more information on creating the floorplans, see Generate Screens for a Business Object [page 350] .
Mobile Solutions
You can create solutions in the studio and make them available on mobile devices, such as the iPhone and Blackberry.
For more information, see Mobile Solutions
[page 639] .
Tasks
Configure Navigation Between a Mobile Fact Sheet and a Mobile Quick Activity
You can configure navigation between a fact sheet and a quick activity so that it is possible to transfer of data between
them.
Overview
You can create solutions in the studio and make them available on mobile devices, such as the iPhone and
BlackBerry. The mobile solution is built using the same tools (the studio and UI designer) that you use for the browser
application of the SAP cloud solution. You just have to make sure that you build your mobile application according to
the user interface (UI) guidelines for mobile applications (for example, tables should not have more than three columns).
Supported Platforms
The mobile application is currently available for:
Android
●
● Apple iPhone
● Apple iPad
● BlackBerry
● Windows Mobile
● Windows Phone 7
Device Tag
You can use the Device tag in the UI designer to specify on which devices a UI component can run. Possible values
are:
● Desktop
● Handheld - (Windows Mobile)
● Mobile - (iPhone, BlackBerry, Windows Phone 7)
● Tablet - (iPad and Android)
● All Devices
If no device tag is specified, the component is treated as having a Desktop device tag.
The following components can be tagged:
work center views
●
● flooplans
reusable components (such as an Object Value Selector)
●
You must consider the dependencies between floorplans when setting the Device tag. For example, you cannot set
a work center view ( WCV) to Mobile if it has an embedded object work list ( OWL) that is set to Desktop. In this case,
you would first have to set the OWL to Mobile, then set the WCV to Mobile .
Floorplan with Device tag Can use floorplan with Device tag
The leading work center view ( WCV) has to have a ViewSubType of Application , InvisibleApplication , MyTasks or
Reports . You then create a Device Cluster and set the value to the Short Id of the WCV. To associate a mobile view,
you give it a ViewSubType of DeviceView and assign it to the same Device Cluster.
Mobile Scenarios
There are a number of scenarios to consider when developing a mobile solution.
Mobile Only — SAP Business Objects
●
You can create a mobile solution, without a desktop variant, that displays a view of information that exists in
the SAP business objects (BOs). In this case, you could either create the screens individually from
Solution
Explorer Add New Item Screens and then configure the navigation in the UI designer, or you could
create a blank BO, generate screens, and then edit the screens in the UI designer. If there is no desktop variant,
the ViewSubType of the WCV must be set to Application or InvisibleApplication (based on the use-case).
1. Develop your solution in the studio and make the work center view available to a mobile device.
2. In the SAP cloud solution, assign access rights to your business user so that they can access the new work
center.
3. Download and install the SAP cloud solution on your mobile device.
4. On the mobile device, enter the URL of the development system.
5. Log on to the SAP cloud solution on your mobile device and test your solution.
9.6.3 Tasks
Overview
You can modify an object work list created for use on a mobile device, using the user interface designer, in the studio.
Prerequisites
● You have created and activated the business object (BO) and other components in the studio.
For more information, see Business Objects Quick Guide [page 326].
Procedure
1. In the studio, double-click the object work list in the Solution Explorer .
The object work list opens in the user interface designer.
2. In the Properties Explorer , under Configuration-Tags click ….
3. In the Tags Editor dialog box, do the following:
a. Click Add Operation .
b. In the new row that appears:
● Under Attributes , select Device.
● Under Value, select Mobile .
c. Click OK.
The New button is linked to the + of the object work list on the mobile screen.
Note that, for the use on mobile devices, you have to activate the user interface elements in the following
order:
1. Work center
Work center view
2.
Floorplans
3.
Overview
You can modify a quick activity floorplan created for use on a mobile device, using the user interface designer, in the
studio.
Prerequisites
● You have created and activated the business object (BO) and other components in the studio.
For more information, see Business Objects Quick Guide [page 326].
Modify a Quick Activity of a Business Object without Actions for Use on a Mobile Device
1. In the studio, double-click the quick activity floorplan in the Solution Explorer .
The quick activity floorplan opens in the user interface designer.
2. In the Properties Explorer , under Configuration-Tags click ….
3. In the Tags Editor dialog box , do the following:
Modify a Quick Activity of a Business Object with Actions for Use on a Mobile Device
1. In the studio, double-click the quick activity floorplan in the Solution Explorer .
The quick activity floorplan opens in the user interface designer.
2. In the Properties Explorer , under Configuration-Tags click ….
3. In the Tags Editor dialog box , do the following:
a. Click Add Operation .
b. In the new row that appears:
● Under Attributes , select Device.
● Under Value, select Mobile .
c. Click OK.
4. On the Designer tab, in the toolbar, delete all the buttons except the Close button.
5. Select the Close button, and in the Properties Explorer do the following:
a. Under Behavior-Enabled , select False.
b. Under Behavior-Visible , select False.
6. Select the contextual navigation region.
7. In the Properties Explorer , under Toolbar-Configure click ….
8. In the Configure Toolbar dialog box, do the following:
a. In the Available list of buttons, under ApplicationSpecific buttons select My Button .
b. Add My Button to the list of Current list of buttons using the right arrow button.
9. In the Properties Explorer , under MenuInformation-HasMenu select True.
10. In the Properties Explorer , under MenuInformation-SubMenu click ... .
11. The Button SubMenu Collection Editor dialog box opens.
12. To add a new navigational item to the button sub menu, click Add .
13. For each action that you want to be displayed on the mobile device, add one navigational item.
14.
Select the first navigational item and in the Properties Explorer do the following:
a. Under Events-OnClick select SaveHandler.
b. Under Design-Title enter the title of the button as Save.
15. Select the second navigational item and in the Properties Explorer do the following:
a. Under Events-OnClick select Action<Name of Action in BO>Handler .
b. Under Design-Title enter the title of the button as <Name of Action> .
16. Repeat steps 15 and 16 for all other actions of the business object that you want to use.
17. Click OK.
Note that, for the use on mobile devices, you have to activate the user interface elements in the following
order:
1. Work center
Work center view
2.
Floorplans
3.
Overview
You can modify a fact sheet created for use on a mobile device using the user interface designer in the studio.
Prerequisites
● You have created and activated the business object (BO) and other components in the studio.
For more information, see Business Objects Quick Guide [page 326].
Procedure
1. In the studio, double-click the fact sheet in the Solution Explorer .
The fact sheet opens in the user interface designer.
2. In the Properties Explorer , under Configuration-Tags click ….
3. In the Tags Editor dialog box, do the following:
a. Click Add Operation .
b. In the new row that appears:
● Under Attributes , select Device.
● Under Value, select Mobile .
c. Click OK.
4. On the Designer tab, delete the View All button.
5. Select the Close button, and in the Properties Explorer do the following:
a. Under Behavior-Enabled , select False.
b. Under Behavior-Visible , select False.
6. Select the fields present in the pane container of the fact sheet, and for each, in the Properties Explorer ,
under Appearance-DisplayType select Static text.
7. Delete the other pane containers in the fact sheet.
Select the section group and do the following:
8.
Double-click the section group name.
a.
Note that, for the use on mobile devices, you have to activate the user interface elements in the following
order:
1. Work center
Work center view
2.
Floorplans
3.
Overview
You can configure a fact sheet for use on a mobile device. For example, you can configure a fact sheet so that you
can navigate from an object work list to a fact sheet rather than navigating to a quick activity and then to a fact sheet .
Prerequisites
● You have created and activated the business object (BO) and other components in the studio.
For more information, see Business Objects Quick Guide [page 326].
For more information, see Generate Screens for a Business Object [page 350] .
● You have modified the fact sheet created for use on a mobile device, using the user interface designer, in the
studio.
For more information, see Modify a Fact Sheet for Use on a Mobile Device [page 645] .
Process Flow
1. Assign the fact sheet to a work center view.
For more information, see Assign a Mobile Fact Sheet to a Work Center View [page 647] .
2. Create a port to allow the transfer of data between the fact sheet and other floorplans.
For more information, see Create a Port to Navigate to a Mobile Fact Sheet [page 647] .
3. Configure navigation in the mobile fact sheet to allow the transfer of data between the fact sheet and the
object work list.
Overview
You can assign a fact sheet that has been modified for use on a mobile device to a work center view.
Procedure
1. In the studio, double-click the work center view in the Solution Explorer .
The work center view opens in the user interface designer.
2. In the Properties Explorer , under RBAM Data-AssignedObjects click … .
3. In the Add Assigned Objects dialog box, do the following:
a. Click Add to add a new assigned object.
b. In the new row, click … and select the fact sheet you have created from the list of repository items.
c. Click OK.
4. Save and activate your changes.
You can create a new port to facilitate navigation to a fact sheet for use on a mobile device.
Procedure
1. In the studio, double-click the port type package in the Solution Explorer .
The port type package opens in the UI designer.
2. Right-click the port type package and add a new port .
Rename the port as
3. To_FS.
4. Save and activate your changes.
Overview
You can configure navigation in a fact sheet to facilitate the transfer of data between the fact sheet and a object work
list.
Procedure
1. In the studio, double-click the mobile fact sheet in the Solution Explorer .
The fact sheet opens in the user interface designer.
2. On the DataModel tab, right-click on Root and add a new data field.
3. Rename the data field as Node ID.
4. On the Controller tab, right-click on Inports and add a new inport.
5. Under Inport Configuration do the following:
a. Select the port type package that you have created.
Set the port type reference to the port
b. To_FS.
c. Add a parameter and bind it to the data field Node ID that you have created.
Save and activate your changes.
6.
Overview
You can configure navigation in a object work list to facilitate data exchange to a fact sheet.
Procedure
1. In the studio, double-click the object work list in the Solution Explorer .
The object work list opens in the user interface designer.
2. On the Controller tab , right-click on Outports and add a new outport.
3. Rename it as OutportToFS.
4. Under Outport Configuration do the following:
a. Select the port type package that you have created.
Set the port type reference to the port
b. To_FS.
c. Add a parameter and bind it to the data field Node ID.
The parameter name should be the same in the fact sheet and the object work list.
5. On the Designer tab, select the column in the advanced list pane.
6. In the Properties Explorer , under Appearance-DisplayType select Link.
Overview
You can configure an event handler in a fact sheet to display data from a quick activity.
Procedure
1. In the studio, double-click the fact sheet in the Solution Explorer .
The fact sheet opens in the user interface designer.
2. On the Controller tab, right-click on EventHandlers and add a new event handler.
3. Rename the event handler as ReadHandler.
4. For the ReadHandler, under ReadHandler : Operations, select the operation type BO Operation.
5. Set the BO Operation as Read.
6. Add a parameter, select nodeId as parameter type and bind it to the data field NodeId.
NodeId
7. Bind the path of the parameter to the data field .
Select the inport you have created in the fact sheet.
8.
9. In the Properties Explorer , under Events-OnFire select Readhandler.
10. Save and activate your changes.
Overview
You can configure navigation between a fact sheet and a quick activity so that it is possible to transfer data between
them.
Procedure
1. In the studio, double-click the fact sheet in the Solution Explorer .
The fact sheet opens in the user interface designer.
2. On the Designer tab, select the Edit button.
Check Out the Style Guides Check Out the Reference Guides
Style Guide for Writing System Message Texts [page 651] Reference Guide for Documentation of Cloud Solutions from
This style guide provides you with the standards and SAP [page 677]
guidelines for writing system messages to be displayed on
This reference guide provides an overview of the main
the user interface (UI) of your solution. It also provides the
reference documentation types specific to the SAP cloud
standards and guidelines for writing system messages that
solution.
are relevant for SAP Support; these messages are not
displayed on the UI.
This style guide provides you with the standards and guidelines for writing system messages to be displayed on the
user interface (UI) of your solution. It also provides the standards and guidelines for writing system messages that
are relevant for SAP Support; these are not displayed on the UI.
In addition, this style guide provides guidance on writing long-text documents providing additional information to a
system message that helps the user to solve very complex error situations. These long-text documents can be
incorporated into the Solution Documentation.
Target Group
This style guide is aimed at solution partners and reseller partners, who develop solutions in the studio for SAP cloud
solutions.
Overview
This section of the style guide provides you with the general standards and guidelines for writing message short
texts.
Standard formulations for different categories of message short texts are contained in Standard Formulations for
Message Short Texts [page 655].
Content
1. Diagnose and describe the error.
For technical reasons, system messages are restricted to 73 characters. If there is not enough space,
for very complex error situations, where the user needs to be provided with detailed background
information about the error, a long text can be written and provided as part of the solution
documentation. For more information, see the section on
General Standards and Guidelines for
Message Long Texts [page 670] .
Some of the messages that appear in application logs deviate from this standard. They are used as
headings (title case). For more information, see the section on Standards for Application Log
Messages [page 665] .
4. Do not use a period or exclamation mark at the end of a message short text.
5. If the message text consists of two parts, separate them using a semicolon (;)
Word Choice
1. Use terminology from the Public Solution Model for system messages that do not appear on the UI.
2. Do not use quotation marks (“...”) to set off placeholders, statuses, or similar.
3. Do not use special characters such as angle brackets (<...>), dollar signs ($), or asterisks (*).
4. Use ampersands (&) only for variables. If you use more than one variable, number your variables (&1, &2, &3,
&4).
5. Do not write a message text that only consists of variables (for example,
&1 &2 &3). Bear in mind that different
languages have different word order. A message short text that reads correctly in the source language may
be nonsensical in another language.
6. If a noun is preceded by a variable that is a placeholder for a cardinal number, do not set off the plural form
or the plural ending of noun and verb with parentheses (( … )) or a slash (/). Use only the plural form.
Adding the plural endings in parentheses or with a slash does not work with irregular plural forms and
with every language. Using the plural form may sometimes result in incorrect sentences, such as 1
documents not available, but in the majority of cases the variable will be replaced with a number
higher than .
1
7. In general, avoid using formulations that cause problems in translation, especially in texts containing
placeholders and ordinal numbers.
Overview
This section of the Style Guide and its subsections provides standard formulations for the most common message
short texts. They are listed and structured according to the error category to which they belong. Whenever you write
a message, analyze the error situation and decide to which category it belongs. If none of the categories listed here
fits the error situation of your message, follow the General Standards for Message Short Texts [page 652] to write
the message.
Error Categories
Inability to Perform Action, Status and ● Inability to Perform Action [page 657]
Authorization Problems
● Inability to Perform Action Because Object is Locked [page 658]
You use this standard formulation in cases where the execution of an action fails completely or where a general
failure occurs.
... failed; <instruction or reason> Printing failed; install printer Error during printing
Printing failed means that a document has not been printed at all.
You use these standard formulations in cases where the execution of an action has not failed completely, but can
only be completed with errors.
Error while <operation>; <instruction or Error while processing incoming e-mail; Errors were found
reason> check e-mail settings
Error during <operation>; <instruction or Error during RFQ creation; RFQ ID Error occurred during RFQ creation
reason> missing
Error while printing means that a document has been printed, but some pages are missing, for example.
You use these standard formulations in cases where an error occurs due to wrong or missing business configuration.
If possible, provide detailed information about what is wrong in the business configuration in a message long
text. For more information, see General Standards and Guidelines for Message Long Texts [page 670] .
Error in business configuration for ... Error in business configuration for Business configuration error: Maintain
purchasing contract purchasing contract
You use these standard formulations in cases where an action cannot be performed or is not permitted.
If the action is not followed by an object, use the technical action name, for example,
,
DeleteActivate , and so on).
<Action name> not permitted; Delete not permitted for user status; Function prohibited for user status
<instruction or reason> user not authorized to delete objects
<Action name> not possible; <instruction Create not possible; source object does Creation not possible, because source
or reason> not exist object does not exist
If the action is followed by an object, you may use the gerund or another verbal noun, for example, Deleting the
document, and so on.
... <object> not permitted; <instruction or Deletion of quantities not permitted; Delete quantities not allowed; user not
reason> user not authorized to delete quantities authorized to delete quantities
... <object> not possible; <instruction or Creating the document not possible; Create document not possible; source
reason> source object does not exist object does not exist
You use these standard formulations in cases where an action cannot be performed because the object is being used
by another user..
Operation not possible; <object> locked Operation not possible; hierarchy The operation cannot be performed
by <user> locked by user &1 because the hierarchy is locked by user
&1
You use this standard formulation in cases where the system cannot provide certain data to be displayed.
Cannot display <object>; <instruction or Cannot display revision status; period You cannot display the revision status
reason> already completed here
You use this standard formulation in cases where a party or a user does not have the authorization to perform a
certain step.
... not authorized to ... Buyer not authorized to display master No authorization to display master data
data
User &1 not authorized to delete The user does not have change
purchase order authorization to delete the purchase
order
You use these standard formulations in cases where an object does not have the appropriate status. As a
consequence, the user cannot change the object or use it in a transaction, for example.
<Object> not <status> Business partner &1 not active Business partner &1 has not been
activated
<Object> <status> Bidder &1 not released Release of bidder &1 missing.
Note: The correct status name is not
released.
You use this standard formulation in cases where a certain step must be performed.
... required for ... Mandatory step &1 required for phase Perform step &1 before you proceed
&2 with phase &2
You use this standard formulation in cases where an object already exists in the system.
<Object> already exists Hierarchy &1 already exists There is already a hierarchy &1
Open customer quote &1 already exists An open customer quote &1 exists for
for buyer &2 buyer &2
You use this standard formulation in cases where an object exists in the system more than once, which means it is
not unique.
<Object> exists more than once Party &1 exists more than once Party &1 is not unique
You use this standard formulation in cases where an object does not exist at all in the system, which means it has
never been created or it has been deleted.
<Object> does not exist Number range &1 does not exist Number range &1 not found
Note: Number range does not exist Note: This message is only correct if it is
means that the number range has never displayed after a user-initiated search.
been created.
You use this standard formulation in cases where an object exists in the system but is not available for a certain
action.
<Object> not available Seller &1 not available for purchasing Seller &1 is not defined for purchasing
unit &2 unit &2
Note: Seller &1 not
available means that the seller
exists in the system, but it is not
available for a certain action, for
example, because it has not been
assigned for that action.
You use this standard formulation in cases where a mandatory field has not been filled or a required value has not
been transferred in an XML message.
Unit of measure for the quantity in item Enter a unit of measure for the quantity
&1 missing in item &1
You use these standard formulations in cases where, during a user-initiated search, a specific object was found,
could not be found, or no object was found at all.
<Object> not found Specified material &1 not found Specified material &1 could not be found
You use this standard formulation in cases where the system cannot determine a certain object or value.
<Object> not determined; <instruction or Product type for product &1 not The system could not determine the
reason> determined; add product type to product type for product &1
product
You use these standard formulations in cases where a certain value is not valid in the current context or if a certain
value is not valid at all..
... not valid Inventory valuation level &1 not valid Inventory valuation level &1 is invalid
... not valid for ... Number &1 not valid for external interval Number &1 is invalid for external interval
&2 &2
You use these standard formulations in cases where a certain value is not permitted or wrong in a specific context.
<Value> not permitted Unit of measure &1 not permitted Unit of measure &1 not allowed
Note: &1 is a valid unit of measure, but it
is not permitted in the context of the Unit of measure &1 not valid
error message.
Only one <object> permitted Only one buyer permitted Enter exactly one party of role buyer
Only one quantity permitted as valuation Only one quantity can be the valuation
quantity quantity
<Value> greater than <value> Item value greater than limit &1 of Item value is higher than limit &1 of
purchase order &2 purchase order &2
Note: This indicates that the item value
is greater than allowed. Item value exceeds limit &1 of purchase
order &2
<Value> less than <value> Purchase order net amount less than Purchase order net amount is lower
minimum order value than minimum order value
Note: This indicates that the item value
is less than allowed
<Value> must not be greater than Invoiced quantity must not be greater Invoiced quantity must be less than or
<value> than delivered quantity for item &1 equal to the delivered quantity for item
Note: This indicates that the invoiced
&1
quantity must be smaller than or equal
You use this standard formulation in cases where a user or business partner has not been assigned.
... not assigned to ... Contact person &1 not assigned to Assignment missing for contact person
bidder &2
You use this standard formulation in cases where a user or business partner does not have the appropriate role.
... does not have ... role; <instruction or &1 with ID &2 does not have &3 role; Bus partner role cat &3 not maintained
reason> role must be assigned in master data for party &1 ID &2
You use these standard formulations in cases where there are problems with a date used in a business transaction.
<... date> must be before <... date> Start date must be before end date Enter a start date that is before the end
date
<... date> must be after <... date> Submission deadline must be after end Enter a submission deadline that is after
date the start date
<... date> must be the same as <... date> Posting date must be the same as run Enter a posting date that is the same as
date the run date
<... date> must not be after <... date> Source of supply date must not be after Date/Time From of SourceOfSupply is
supply quota arrangement date later than that of SQA
Note: This indicates that the source of
supply date must be before or the same
as the supply quota arrangement date.
<... date> must not be in the future Receipt date must not be in the future Enter a receipt date that is not in the
future
<... date> must not be before <... date> Source of supply date must not be Date/Time To of SourceOfSupply is
before supply quota arrangement date earlier than that of SQA
Note: This indicates that the source of
supply date must be after or the same
as the supply quota arrangement date.
<... date> must not be in the past Start date must not be in the past Enter a start date that is not in the past
<... period> must not start before <... Binding period must not start before Enter a binding period that starts after
date> submission deadline the submission deadline
Note: This indicates that the binding
period must start on or after the date of
the submission deadline
You use this standard formulation in cases where the counterpart of a certain object cannot be found for a
comparison.
You use these standard formulations in cases where the following applies:
... differs from ... Currency &1 in confirmation differs from Currency &1 in confirmation
currency &2 in purchase order mismatches currency &2 in purchase
order
... and ... do not match Identified stock &1 and material &2 do Identified stock &1 and material &2 differ
not match
You use these standard formulations for error situations where the end user has to select an object.
Select <object> Select the document to be deleted Choose the document to be deleted
Additional <objects> not selected Additional status profiles not selected Additional status profiles not
highlighted
Overview
This section of the style guide and its subsections provides standards and guidelines for application log messages.
Application logs belong to mass data run objects (MDROs) and support mass data runs. When a run is started, it
takes place in the background. At the end of the run, the application log is displayed on the user interface (UI) to
retrace the results.
Most of the message texts that are used in application logs are not really error messages. They are used to provide
texts for the different sections of the application log, such as headings or selection data.
2. Settings
This section contains information on the parameters and settings that have been selected for the mass data
run.
3. Results
This section contains detailed information about the decisions taken and about the errors and warnings that
occurred during the mass data run in chronological order.
You use these standard formulations for messages used in application logs to display the number of objects that
were or were not processed correctly during an application log run.
Number of ...: <number> Number of procurement planning &1 procurement planning orders have
orders changed: &1 been changed
Number of ... not ...: <number> Number of procurement planning &1 procurement planning orders were
orders not changed: &1 not changed
Number of production planning orders &1 production planning orders could not
not changed: &1 be changed
You use this standard formulation to specify the selection category that defines the elements to be included in or
excluded from an application log run.
<Name of SelectionBy node with spaces> Selection by Purchase Order Selection by purchase order
If the node name includes the word party, leave it out in the message.
You use these standard formulations for messages used in application logs to specify the elements excluded from
or included in an application log run.
Exclude all matches (with) <lower Exclude all matches with &1 &2 Exclusion code: &
boundary type code>; <lower boundary
ID>
Include all matches from <lower Include all matches from &1 to &2 Inclusion code: &1 &2
boundary> to <lower boundary>
You use this standard formulation for messages used in application logs to display the settings that are used for a
control parameter.
<Name of parameter element>: <Value of Employee time valuation period closure The employee time valuation period
parameter element> date: &1 closure date is &1
You use these standard formulations for messages used in application logs to specify when an application log run
has started or ended.
... started Adjustment run started Adjustment run has been started
1. For messages that describe the result of an application log run, use sentence style.
Do not use the words
2. successfully and unsuccessfully.
3. Do not put a period at the end of the message text
&1 new period closure dates not created & new period closure dates created unsuccessfully
&1 of &2 orders created &1 of &2 order have been created successfully.
You use these standard formulations for messages used in application logs to display the ID of an object that has
been processed during an application log run.
... ID: <ID> Business transaction document ID: &1 The business transaction document ID
is &1
Overview
This section of the Style Guide provides you with the general standards and guidelines for writing message long texts.
General
1. Add a section to the Solution Documentation for long texts that contain additional information on complex
system messages. These are messages in which you cannot explain within 73 characters what the user has
to do to resolve an error.
2. Name the section in the Solution Documentation Additional Information on System Messages.
3. Use the structure below for each message long text.
Separate the different message long texts by sub-sections.
4.
Invoice may be a duplicate of another invoice Invoice may be a duplicate of invoice &1
Keyblock: What Happened? The system was unable to post the supplier invoice or credit memo and created an
exception.
Keyblock: What Can I Do? Check your entry and proceed as follows:
1. Open the Supplier Invoice editor and go to the Exceptions tab.
Before resolving the exception, if you require further information from another
person, click Forward for Clarification .
2. Compare the invoice details with the similar invoice already posted in the
system.
a. If the invoice is not a duplicate, under Exception Details, click Treat as New
Invoice .
b. If the invoice is a duplicate, under Exception Details, click Treat as Duplicate
Invoice .
10.2.1.11.2 Standards for Message Long Texts for PAF BTM Tasks
Overview
Process Agent Framework Business Task Management (PAF BTM) tasks are used to inform a user about a manual
cleanup activity that has to be done to solve a process communication error that occurred in inbound error conflict
handling.
Each PAF BTM task has a task description, which provides detailed information on a fatal error that occurred and
instructions on how to solve the error.
The message short text is used to briefly describe the fatal error that occurred. For this text (called PAF BTM error
message short text in this document), the General Standards for Message Short Texts [page 652] and the
Standard [page 655] apply.
Formulations for Message Short Texts
The message long text provides detailed information and instructions on how to solve the error. For this text (called
PAF BTM error message long text in this document), follow the standards and guidelines listed below.
General Standards
1. Include these message long texts in the section of the Solution Documentation named Additional
Information on System Messages.
Create this section if it does not already exist.
The status of the &v1& project and the &v2& task is On Hold, Stopped, or Closed. Therefore, no further
postings are permitted. As a result, a time confirmation related to the &v1& project and the &v2& task
could not be processed
Keyblock: Solution
General Standards
1. This keyblock is mandatory.
2. Answer the question: What can the user do to solve the error?
Use one of the following standard formulations:
3.
If there is only one solution, use the following:
●
To solve the error, proceed as follows:
● If there is more than one solution, use the following:
You have the following options to solve the error:
4. Describe the solution using a numbered list.
Use the standard formulations in the sub-section below, If the message refers to one of the following:
●
Errors that refer to handling lock issues
● Errors that occur when an inbound XML message that has been sent via a third party interface cannot
be processed
5. In the second last step, describe how the system responds to the user action.
6. In the last step, describe what the user needs do on the Process Communication Error screen to finalize the
task. The user has the following options:
● Restart process
● Reject process
6. Restart the process by clicking Restart Process on the Process Communication Error screen.
Example of More than One Solution:
●
You have the following options to solve the error:
Solution 1:
Use this solution if the quantity sent by the service confirmation appears to be incorrect.
1. Clarify with the responsible person for the service confirmation, whether incorrect data was
entered during service confirmation.
2. Ensure that the responsible person for the service confirmation corrects the data in the
service confirmation.
Result: The system synchronizes the documents using the updated data of the service
confirmation.
Solution 2:
Use this solution if the stock update given for the outbound delivery is incorrect.
1. Find the corresponding outbound delivery.
2. Make adjustment confirmation on the outbound delivery.
3. The system accepts the reported quantity of the service confirmation.
4. Restart the process by clicking Restart Process on the Process Communication Error screen.
The message short text that belongs to this long text is “Negative stock not permitted in
custodian party”. This task is created if the quantity reported in a service confirmation
exceeds the allocated quantity of the material in the identified stock.
The standard formulation of short texts for messages referring to handling lock issues is one of the
following:
● Operation not possible; <business document locked>
● <Operation> not possible, <business document> <business document ID> locked by <user
name>
1. Check the details of the error message on the Process Communication Error screen.
2. Contact the person responsible on sender side of the message to inform him or her about the issue:
Party: &v1&
Contact Person: &V2&
Phone Number: &v3&
Sender System: &v4&
3. Ask the person on sender side to perform the relevant changes (so that the message can be processed
in your system) and to send the business document again.
4. Abort the process by clicking Abort Process on the Process Communication Error screen.
5. Restart the process by clicking Restart Process.
Result: The system does not process the message, and the sender needs to resend a corrected message.
Solution 2:
Use this solution if you have to make changes to your system to enable the processing of a business document
that you have received via a third party interface.
1. Check the details of the error message on the Process Communication Error screen.
2. Adjust the data in your system, for example, master data or business configuration data, or edit the
payload, if allowed, on the Process Communication Error screen as required.
For messages referring to errors that occur when an XML message that has been sent via a third party
interface could not be processed, he standard formulation of the message short text is:
Error while processing inbound third party communication
Step: Result
1. This step is mandatory.
2. Describe the result of the steps performed to solve the error:
3. Depending on the user's options, use one of the following standard formulations:
● The standard formulation of the Result step for messages referring to handling
lock issues is:
Result: The system updates the business document
● For messages referring to errors that occur when an inbound XML message
that has been sent via a third party interface cannot be processed, the standard
formulation of the Result step is:
○ For Solution 1:
Result: The system does not process the message, and the sender needs
to send a corrected message.
Restart the process by clicking Restart Process.
○ For Solution 2:
Result: The system updates the business documents.
Reject Process Result: The system does not update <object, including &v1&>, and cancels the process
communication.
Synchronize Result: The system synchronizes the documents using the updated data of the <object,
Documents including &v1&>.
Mass Restart Process Result: The system updates <object, including &v1&> by restarting all related process
communication.
Abort Process Result: The system does not update <object, including &v1&>, and the process communication
is aborted.
Result: The system updates the &v1& project and the &v2& task with the time confirmation.
4. If there is more than one solution to solve the error, do one of the following:
If the result of each is different, add a Results keyblock after each solution.
●
● If the result of all of them is always the same, only add one Results keyblock (after the last solution).
Note: Check if it should be permitted to add further postings to the &v1& project and the &v2& task: If
further postings are to be permitted, no further actions are required
●
● If further postings are not to be permitted, change the task data back to the previous project status
or set it to On Hold
This reference guide provides an overview of the main reference documentation types specific to SAP cloud
solutions. It covers the following:
○ Reports
○ Key performance indicators
○ Dashboards
○ Business Task Management
○ Business Background Documentation
○ Concept Documents
○ Process Documents
○ Task-Based Documentation (How-To Documents)
○ Org Functions
○ Quick Guides
○ Work Categories
● Health Checks and Support Case Library [page 683]
○ Health Checks
○ Case Documents (Troubleshooting
● Release Information [page 690]
○ Business Configuration Delta Documentation
○ What's New Documentation
Overview
This document provides a brief overview of the main reference documentation types specific to the SAP cloud
solutions.
○ Scoping Visible
○ Hidden with option type Blueprint Only
● Activity List
This reference documentation provides information about configuring the system before and after go live. In
the activity list, reference documentation covers fine-tuning activities and basic data activities.
○ Fine-Tuning
These documentation types provide users with the information they require to perform activities in the
Fine-Tune phase of the Activity List . These documents can also include information relevant to before
and after the completion of a fine-tuning activity. Depending on the complexity of the activities and the
activity type, there are three types of documents that can be written for these activities:
Fine-Tuning
○
Business Background
This documentation type describes the activity and guides the user through the activity by listing the
required steps and settings. This documentation type can be used for simple activities that lead
directly to a configuration screen.
○ Configuration Guides
This documentation type is suited to activities that are fact sheets. Fact sheets are a collection of
related links and texts for further navigation, for example to configuration screens.
○ Basic Data
This documentation type provides information about activities during the Integrate and Extend phase of
the Activity List in business configuration. These activities involve migrating or maintaining core master
data as a prerequisite for other fine-tuning, migration, or testing activities. The purpose of this
documentation type is to advise a user how to perform an activity and why an activity must be carried
out during the configuration phase. Detailed instructions for actually carrying out the steps within the
activity can come in the form of links to other existing documents.
For information on how this documentation is structured, see Structure of Reference Documentation for Business
Configuration [page 681].
○ Reports
Report documentation provides information about a compilation of data for evaluation that can be
presented in the form of a table, list, text, graph, or combination of these. It is used in detailed scoping
and fine-tuning, as well as by users in the application. In scoping, the Overview keyblock of the
documentation is displayed. In application Reports work center views, the full report documentation is
displayed.
Overview of reports documentation provides information about the reports that are available in an area,
such as Customer Relationship Management by report category. It also contains information about
relevant variables in the area. The embedded reports available in the super area are also listed.
Overview of Reports documentation is available in the Reports View of work centers.
○ Process
Processes cover a sequence of logically related events or steps that have a specific outcome or result
in the SAP cloud solution. A process can be specific to one particular view or can span several views,
business areas, or even application areas.
● Org Functions
An org function is a predefined entity in the SAP cloud solution that denotes functional responsibility for
aspects of one or more business processes. In Organizational Management (OM), the solution
administrator assigns org functions to org units in order to define the role of each org unit within the context
of the organization’s overall business operation. The org function assignment for a given org unit influences
work center proposals for users assigned to this org unit. Each org function document describes a specific
org function in terms of the associated business processes, business documents, and work centers. The purpose
○ Business background
○ Tasks that can be performed
● Work Categories
A work category (also known as responsibility) represents a type of work related to an org function. It contains
rules that determine which set of work items is distributed to which org unit or employee. This is known as the
process of work distribution, where a work item can be any business document or a task in Business Task
Management (BTM).
The distribution of work items is usually defined by the access rights that are given to a user. However, using
work categories, work items can be directly assigned to a specific org unit or employee. Each work category
provides a set of parameters that can be used to define work distribution rules for the related work items.
The SAP cloud solution provides specific work categories for organizational work distribution and employee
work distribution.
Each work category document describes a specific work category in terms of the associated business
process, business documents, tasks, parameters, and work distribution rules. The primary purpose of work
category content is to support solution administrators who are responsible for effective distribution of work
in the system.
For more information on how this documentation is structured, see Structure of Reference Documentation for Work
Centers [page 685] .
Case documents provide a practical, searchable medium for quickly identifying solutions to system issues
and answers to questions raised by customers. Their purpose is to reduce the number of reported incidents
by making solutions readily available.
For more information on how this documentation is structured, see Structure of Reference Documentation for Health
Checks and Support Case Library [page 683] .
For more information on how this documentation is structured, see Structure of Release Information [page 690] .
Overview
The reference documentation for business configuration covers Business Adaptation Catalog (BAC) documentation
and Activity List documentation:
● Always
● Scoping Visible
● Hidden with option type Blueprint Only
The documentation for business options for reports matches that of the related report documentation. For
more information, see Structure of Reference Documentation for Work Centers [page 685] .
Fine-Tuning Documentation
These documentation types provide users with the information they require to perform activities in the Fine-Tune
phase of the Activity List . These documents can also include information relevant to before and after the completion
of a fine-tuning activity. Depending on the complexity of the activities and the activity type, the following types of
documents can be written for these activities:
Activity Documentation
●
This documentation type describes the activity and guides the user through the activity by listing the
required steps and settings. This documentation type can be used for simple activities that lead directly to a
configuration screen.
Prerequisites What other configuration activities have to be performed before this activity?
Steps What are the steps that the user must carry out to perform the activity?
Follow-On What other configuration activities have to be performed after this activity?
Activities
Title What is the name of the configuration activity, followed by “- Configuration Guide”? For example, “Suppliers
— Configuration Guide”.
Overview What are the purpose and result of this configuration activity?
Where is this activity located in the system?
Follow-Up What other configuration activities have to be performed after this activity, if any, and where do they take
Activities place?
Steps What are the steps the user has to perform in this activity?
Overview
This document provides a brief overview of the reference documentation types specific to Health Checks and the
Support Case Library (troubleshooting documentation).
Case documents provide a practical, searchable medium for quickly identifying solutions to system issues and
answers to questions raised by customers. Their purpose is to reduce the number of reported incidents by making
solutions readily available.
Reproducing the Can you outline the events or actions that led to the issue?
Issue How can the issue be reproduced?
See Also Where can the user find more information? (cross-reference)
Overview
The reference documentation covers documentation for the following:
Analytics
●
Analytics Documentation
This reference documentation provides information about analytic content that is displayed on the user interface.
This includes the following types of objects:
● Data sources: multidimensional analytical views (MDAVs), key figure structures, and key figure grids.
Overview of data sources documentation provides information about the multidimensional analytical view
(MDAV), key figure structures, and key figure grids that make data available for reports in a particular area,
such as Customer Relationship Management. This type of documentation is available in the guided quick
activity for creating reports and is linked in documentation related to reports.
Title For which super area is the overview of data sources? For example, Overview of Data Sources
for Customer Relationship Management
Available Data Sources What MDAVs are available in the super area?
Selected Data Sources Do any MDAVs, key figure structures, and key figure grids require detailed documentation?
Available Key Figure What key figure structures and key figure grids are available in the area?
Groups
Common Which basic characteristics and key figures are available that are used in multiple reports?
Characteristics and
Key Figures
● Reports
Report documentation provides information about a compilation of data for evaluation that can be presented
in the form of a table, list, text, graph, or combination of these. It is used in detailed scoping and fine-tuning,
as well as by users in the application. In scoping in the business options for reports, the Overview keyblock of
the documentation is displayed. In the Reports views, the full report documentation is displayed.
Features Are all of the following document subheadings relevant for the report?
Running
●
the Report: Which variables are most important?
● Analyzing the Report: What can the user see in the (initial state of the) report? Is the data
filtered? Which characteristics can the user use to filter and analyze the content of this
report further? Which elements of the report provide the possibility of opening or
navigating to other related reports or business object interfaces, such as Overviews (fact sheets)?
● Overview of Reports
Overview of reports documentation provides information about the reports that are available in a particular
area, such as Customer Relationship Management by report category. It also contains information about
relevant variables in the area. The embedded reports available in the super area are also listed. Overview of
Reports documentation is available in the Reports view.
Title For which area is the overview of reports? For example, Overview of Reports for Customer
Relationship Management
Common Variables What are the basic variables relevant for reports?
Overview What kind of task type is this and why was it created?
Relevance Why has this task type appeared in the user's worklist(s)?
To which areas of business is it relevant?
Response What are the possible actions I can take in responding to this task?
What is the result of each possible action, and what are the business and workflow implications?
See Also Where can the user find more information? (cross-reference)
● Concept Documents
Concept documents cover a general business concept or technical concept that has a particular
implementation in the SAP cloud solution. A concept can be specific to one or more views or can span
several business areas or even application areas.
Overview When and why is the concept relevant for the target group?
What is the business context?
Is the concept country or industry-specific?
What does the target group need to know about the concept?
Prerequisites Are there any steps or settings (for example, business configuration activities) that need to be carried
out before execution of this concept is possible?
Freestyle Subheadings Which keyblock header(s) are needed to structure the document in a meaningful way?
See Also Where can the user find more information? (cross-reference)
● Process Documents
Process documents cover a sequence of logically related events or steps that have a specific outcome or
result in the SAP cloud solution. A process can be specific to one or more views, or can span several
business areas or even application areas.
Overview When and why is the process relevant for the target group?
What is the business context?
Is the process country or industry-specific?
What does the target group need to know about the process?
Is the process mainly user-driven or system-driven?
Prerequisites Are there any steps or settings (for example, business configuration activities) that need to be carried
out before this process can be executed?
See Also Where can the user find more information? (cross-reference)
How-To Documentation
This reference documentation provides a user with the step-by-step information they require to be able to perform
a task in the system. Typically, it also includes information that the user needs to know before and after the
completion of a task.
Title What is the name of the task? Precede the activity name by a verb, for example Create Opportunity.
Prerequisites What does the user need to do before performing this task?
Which basic settings need to be in place before the user can perform this task?
What are the preceding processes or tasks, and where do they take place?
Steps What specific action does the user need to take to perform this task?
In which sequence should the user perform these steps? (If applicable, also explain what the result
of each successive action is.)
Result Does the completion of this task trigger further processes or tasks, or does it have an impact on
other processes or tasks?
If so, what are these follow-on processes or tasks?
See Also Where can the user find more information related to this task? (cross-reference)
Org Functions
An org function is a predefined entity in the system that denotes functional responsibility for aspects of one or more
business processes. In Organizational Management (OM), the administrator in the SAP cloud solution assigns org
functions to org units in order to define the role of each org unit within the context of the organization’s overall
business operation. The org function assignment for a given org unit influences work center/tab proposals for users
assigned to this org unit. Each org function document describes a specific org function in terms of the associated
business processes, business documents, and work centers. The purpose of org function documentation is to
support the OM administrator who is responsible for modeling the org structure and assigning org functions to the
org units.
Relevance From an organizational and operational point of view, when or why should the customer use this
org function?
What are the implications of not using it? What are the benefits?
Are there any unusual use cases?
Configuration What are the business configuration prerequisites for using this org function?
Constraints What constraints apply to the use of this org function within the context of the org structure?
Work Distribution Which work category or work categories are associated with this org function?
Example Is there an example that shows how this org function can be used?
See Also Where can the user find more information related to this org function? (cross-reference)
Title What is the name of the view followed by “Quick Guide”? For example, “Opportunities Quick Guide”.
The system provides specific work categories for organizational work distribution and employee work distribution.
Overview Is the work category relevant to organizational work distribution or employee work distribution?
What are the associated business processes and business documents?
What are the related work centers/view/tabs?
Prerequisites What are the prerequisites for using this work category?
Are there any configuration (fine-tuning) activities that are relevant for this work category?
Which org function must be assigned?
Work Distribution How does this work category support the distribution of work in the system?
Example Is there an example that shows how this work category can be used?
See Also Where can the user find more information related to this work category? (cross-reference)
Overview
This document provides a brief overview of documenting release information covering changes to the system
between releases.
The changes usually refer to settings that the customer performed during scoping and to settings made from the
activity list. These scope selections and activities are reflected in elements in the business adaptation catalog
(BAC). The BAC elements are known as business configuration elements.
Relevance What elements did the customer select in order to include this element in their scope?
Required What are the activities that are required from the customer?
Actions
Overview To which version and area of the solution does this information apply?
Which topics are covered?
What is the impact of this change on other areas of the solution (for example, on business processes or
scenarios)?
Which relevant terms have been changed?
What actions must the customer take to use the new or changed function (for example, in business
configuration)?
How does the new development or changed function affect existing data such as master data, or
transactional data?
What is the impact of this change on other areas of the solution (for example, on business processes or
scenarios)?
Which relevant terms have been changed?
See Also Where can I find further information about related topics (for example, related BC Delta documents)?
This glossary defines terms that you will encounter while working in the studio and with the product documentation.
access control
A method of allowing and restricting user access rights for a work center view based on the access control list of a
business object. For example, instance-based access control can be used to allow access to company-specific data
only.
action
A script file that executes business logic at a particular point in time within the business object’s lifecycle. Actions
can be triggered from the user interface or from events or other actions.
action code
A coded representation of an instruction to the recipient of an XML message. For example, 01 is the action code for
Create, 02 for Change, and so on.
activity list
A structured collection of mandatory and critical tasks, generated from the customer's scoping, that must be
completed either before the solution can go live for the first time or before changes can be implemented later in
the solution life cycle. The activity list may also include optional activities that can be completed at any stage.
add-on solution
A solution that enables the implementation of additional business logic in an SAP solution and the development of
enhanced functions for business users.
Administration toolbar
A set of functions that allows administrators to manage solutions.
administrator
A system user who has administrator rights in an SAP cloud solution. You use this user in the studio if you want to
define analytics content or create a mashup. To use the administrator user, you enable admin mode for a solution
in the studio.
alert
A task with the highest available priority that requires immediate user action.
alternative key
An annotation with which you define a unique key of a business object node. You can it in an association and it
is stored as an additional key field in data searches and queries.
Analytics
Analytics provides you with the necessary infrastructure for the analysis of your enterprise. A set of predefined
reports from all business areas is available that cover the most important reporting needs.
anchor
A stable point to which any user interface modifications to SAP floorplans are attached.
application log
A support mechanism for mass data runs. Mass data runs run in the background. No direct feedback is provided to
the user on what exactly has happened is given, so the application log allows users to retrace the results.
application-to-application communication
A process by which messages containing information about updates to business documents are sent between
process components within the system. For example, when creating a sales order, the system updates related
business documents within the system.
approval notification
An electronic message sent to the requester to indicate that approval has been granted or rejected by the authorized
approver.
Approval Processes
A work center view in which you can display, edit, copy, and delete versions of approval processes related to business
documents.
approval status
An indicator of the step reached in the approval workflow of an object, for example, an invoice that has to be
reviewed by an authorized approver could be listed as "waiting for approval".
approval task
A part of an approval process. Approval tasks are approval, approval/rejection notifications, and revision.
Approval Wizard
A guided activity for creating a default approval process for a custom business object in the studio.
association
A relationship between two business object nodes.
asynchronous communication
A form of electronic communication that does not take place in real time. E-mail is an example of electronic
asynchronous communication.
availability
The capacity of a service or a component to fulfill its required function at a specific moment or over a set time period.
Usually, this is measured using an availability ratio, which compares the length of time that the service has been
available with the duration agreed with the customer.
BO Browser
Tab of the BO Browser/Data Model tool window in the UI designer. It displays a business object as a tree structure
with all available nodes and fields.
browser-based report
A type of report that can be viewed in a Web browser.
build
The version of a studio installation.
Business Analytics
A work center that enables key users to create and assign reports, and to create and edit key performance indicator
evaluations.
business area
The first and highest level in the hierarchy of the business adaptation catalog. It represents the collective group of
functions that the solution supports in a specific part of the company. Examples are sales and human resources.
Each business area contains a number of business packages.
business configuration
The process of adapting the solution to the day-to-day business requirements of the customer at any time in the life
cycle of the solution without the need for technical skills.
business document
A representation of a business object that has a definite format and contains structured information necessary for
business transactions. Examples include invoices, quotes, proposals, requests, purchase orders, and production
orders.
business option
The fourth level in the hierarchy of the business adaptation catalog. Business options can be hidden or can appear
in scoping, fine-tuning, and/or the solution proposal. It represents the most detailed decision level involved in
defining or adapting a solution capability. Each business option specifies a particular way to perform a function. It is
based on predefined content. Examples are General Ledger Accounting and Customers. Each business option
belongs to a business topic.
business package
The second level in the hierarchy of the business adaptation catalog. It covers the organization, processes,
management support and master data of a given application area. Each business package belongs to a business
area and contains a number of business topics.
business topic
The third level in the hierarchy of the business adaptation catalog. It relates to specific functions within an
application area. Examples are Account Management and Time Administration. Each business topic belongs to a
business package and contains a number of business options.
business user
A user that can log on to the system. You grant access rights to users by assigning work centers or work center views
to their business user.
change transaction
An action that allows you to modify an SAP floorplan. For example, you can use a change transaction to add a
view to a standard work center.
characteristic
A field according to which values are selected. Characteristics are alphanumeric, numeric, or text values. Examples
include Product ID, Supplier, and Purchase Order Status.
chart of accounts
A systematic listing of all general ledger accounts used by an organization of one or more companies, normally in
alphanumeric order.
clarification request
A manually created task used for asking another user for more information on an item.
cloud solution
Software hosted by SAP, for example, SAP Business ByDesign.
code list
A field with a set of predefined values that is of data type Code.
collection
A table that is defined on the basis of business object nodes or node elements, for example, a collection of sales
order items.
common task
A task that you perform frequently, such as creating a sales order.
communication arrangement
An agreement between an organization and a customer, supplier, or partner to exchange business documents
electronically.
communication scenario
A set of predefined services for a business process that can be used to create a communication arrangement.
communication system
A system that is used for application integration between the solution and an internal or external system.
Communication systems can be, for example, external time recording or master data systems.
compliance
The process of conforming to a specification, standard or law, for example a law relating to data protection.
composition
A navigational relationship from a superordinate to a subordinate node and vice versa: Composition associations
point from the parent to a child node and from the child to the parent node. They are automatically part of the
business object model when a node is created.
condition
A predefined filter to restrict the data displayed to a specified characteristic and key figure. There are two types of
conditions: simple and ranked.
Configuration Explorer
A tool window in the UI designer that displays the SAP repository content.
content area
The area of the application window for performing user tasks. The content area is visible on every page and changes
when the user navigates from one page to another.
continuous improvement
A commitment by SAP to regularly analyze all aspects of a customer system configuration and then identify
improvement potential and recommend actions. The analysis covers a range of issues including KPIs and
bottlenecks. Actions SAP can recommend include changing system settings and installing delivery patches.
control
A component of a floorplan such as an input field or a button.
Controller
A tab in the content area of the user interface designer. On the Controller tab, you define the interaction between
user interface components by creating event handlers, interfaces, navigations, and queries.
custom control
A user interface control created in Microsoft Visual Studio using Microsoft Silverlight. The control can be used in the
studio to enhance screens in the SAP solution.
custom pane
A user interface pane created in Microsoft Visual Studio using Microsoft Silverlight. The control can be used in the
studio to enhance screens in SAP solutions.
custom query
A query created as part of a solution in the software development kit.
customer-specific field
An extension field in a cloud solution.
customer-specific solution
A partner solution that the partner designs and develops for a specific customer.
Data Model
Part of the BO Browser/Data Model tool window and tab in the content area of the user interface designer. The Data
Model displays the data structure of the business object. You can edit the structure and bind the data model elements
to the business object elements.
data source
An object containing key figures and characteristics, which provides a multidimensional view of business data for
reporting.
dependent object
A reusable part of a business object that cannot stand alone but can only be used in the context of the business
object.
deploy a solution
Upload a solution to a customer system or to a test system.
deployment unit
A piece of software that can be operated on a separate system isolated from other pieces of software. All deployment
units can communicate directly with the Foundation deployment unit.
derived name
The default naming convention provided by the software development kit to name a message data type in a Web
service operation. A derived name is based on the names of the service operation and the business object element
on which the service operation is allowed to be performed.
Designer
A tab in the content area of the user interface designer. On the Designer tab, you design the user interface of an
application with the controls available in the Toolbox.
details area
An area of the screen providing details about a user selection. For example, if a user selects a row in a work list, the
details area provides details about that row.
developer desktop
The user interface of the studio that presents and provides access to development tools in an integrated development
environment (IDE).
dialog box
A box on the screen that a user must respond to before resuming work. Sometimes the user prompts the dialog box
to display and sometimes it displays without prompting.
dimension
A criterion by which characteristics are categorized.
dropdown list
A list of entries that a user can display by clicking a down-facing arrow to the right of the first entry in the list.
element
A component of the business adaptation catalog. An element is a general term that can refer to any level of the
catalog hierarchy, for example, a business package, topic, or option.
element
Part of a business object. Elements are displayed as fields on the UI.
embedded component
A reuseable user interface component that can be added to other floorplans.
embedded report
A report that is embedded in a specific context, such as in an overview document.
endpoint
A location for accessing a Web service using a specific protocol and data format.
enhancement implementation
An extension of an enhancement option that allows customers to apply business rules that meet specific
requirements such as country-specific requirements.
enhancement option
An entity provided by SAP to allow the standard behavior of a specific application, such as Financials, to be enhanced
without modifying the standard solution.
enterprise search
An application that allows you to locate and view data stored in your system. You can search for structured, for
example purchase orders, and unstructured data, for example Microsoft Word documents. This data is organized
into the following categories: Files, People, Reports, and Business Objects.
error message
A message informing a user about an error. The message typically explains what went wrong, why it went wrong,
and what the user can do about it. Most error messages display in the message area of the screen. However, if the
system requires that the user must respond to an error, the error message displays in a dialog box.
event
A script file that executes business logic at a particular point in time within the business object’s lifecycle, for example,
before save or after modify.
exception aggregation
Aggregation behavior, which deviates from standard aggregation (such as summation), for values of a calculated
key figure. The deviation is only valid for a specified characteristic.
extendable node
A node of an SAP business object that can be enhanced with additional fields, the so-called extension fields.
Extensibility Explorer
A tool window that displays the anchors attached to a floorplan.
extension field
A field that has been added to an SAP business object. Extension fields can be used, for example, in screens, forms,
reports, and search categories.
extension scenario
A representation of all business contexts that are part of a process flow in which an extension field may be involved.
fact sheet
A fact sheet is a one-page read-only overview of an object. It displays the object properties, can have different views,
and can contain links for navigating to related objects. You can model this overview in the UI designer.
favorites
A location where hyperlinks to commonly viewed content (for example, reports and business documents) or Web
pages can be stored and easily accessed.
file input
A general method for uploading external data files on specific interfaces into an SAP solution.
filter
To retrieve data that matches user-defined filter criteria.
filter
A project item that belongs to an enhancement implementation that allows users to work with a specific set of data.
fine-tuning
The configuration of the solution to meet customer requirements that exceed the level of predefined content in the
software. It is based on input and selections made during scoping and occurs before the solution goes live.
flag
The marking of a business document for later reference, using a flag icon.
front-end script
A programming language used in the User Interface Designer to define rules and logic that determine the behavior
of user interface (UI) controls. For example, you can write a front-end script that enables an Edit button only when
a user selects a field on the UI.
full-text search
Search on an index that contains all words that occur in the indexed documents instead of only abstracts or other
metadata.
Gallery
A work center view that allows you to browse reports.
Gantt chart
A graphical display of schedule-related information. Project elements are listed on the left of the chart, the timescale is
across the top, and activity durations are shown as date-based horizontal bars.
guided activity
A secondary window consisting of a series of interactive screens that guides you through each step of a particular
activity. For example, the New Invoice guided activity guides the user through the steps involved in creating a new
invoice.
HTML mashup
A mashup that integrates HyperText Markup Language (HTML) or JavaScript content as embedded content.
Examples include an online map, a widget, or social networking information.
icon
A small pictorial or graphical image that represents an object, action, or status.
incident trace
A trace that is attached to a support request.
Incidents
A work center view in which a key user resolves incidents or forwards them to the provider for resolution.
information icon
A symbol on the user interface that can be found next to entry fields. When you click on the icon, the system displays
useful text.
inport
A port configured to receive a navigation key from the source user interface. This key is used by the target user
interface to fill business data.
input field
Element of the user interface. An input field consists of a field name and an input area. You can enter and edit texts
in the input area.
installation key
A series of numbers generated by the partner for a multi-customer solution. The installation key enables the partner to
upload the solution to a customer tenant.
integrated solution
A solution that enables the integration of applications with SAP's cloud solution. An example is an external Web shop
application that creates sales orders in SAP's cloud solution.
IP address
A unique address used to identify a node in an IP network.
item
A business object, record, or piece of information in the system. Examples are Account, Contact, Lead, and feed
update.
key figure
A field according to which values are selected. Key figures are numeric values that have a unit of measure or currency
assigned. Examples include Invoice Net Value and Purchase Order Quantity.
local help
Context-sensitive studio documentation that is displayed in the MS Help Viewer where you can use a full-text search.
local trace
A trace that is run in the system in which it was created.
localization
The process of adapting a product to meet the needs and expectations of a specific country or region, with respect
to language, laws, business practices, or culture.
log out
To end a previously authenticated session of the application. When you log out, you can no longer use the application.
To use the application again, you must log in again.
maintenance mode
The status of a solution after it has been assembled. You can make changes to the solution in a patch but only
restricted changes to certain content types. With these change and delete restrictions, SAP wants to avoid loss of
data as well as inconsistencies and errors in the productive customer's solution.
Mashup Authoring
A work center view in which key users or administrators can create and edit mashups.
mashup in-port
The incoming data connection between a screen and a mashup. The mashup in-port is used to input business data
from the system into the mashup. This data comes from the screen out-port and can contain multiple parameters.
mashup out-port
The outgoing data connection from a mashup to a screen. The mashup out-port is used to pass the result of the
mashup to the system. This is then mapped to the screen in-port.
mashup solution
A solution that enables the integration of Web-based applications or services into the user interface of SAP's cloud
solution. An example is the integration of a Web application for maps and route planning into a user interface
displaying the address of a business contact.
mashup type
The categorization of mashups by the technology on which they are based. Examples include a URL mashup or
HTML mashup.
message definition
A system notification and its attributes defined to assist customers who work with an enhancement implementation.
method tooltip
An on-screen explanation of a method and its parameter definition.
modal dialog
A small window that helps the user to perform a task. It is triggered from a calling application and has to be completed
before the user can continue to work in the calling application.
multi-customer solution
A partner solution that the partner can sell to multiple customers.
My Solutions
A tool window in the studio in which you can create and access solutions in the repository of SAP's cloud solution.
navigation
The means by which a user can move around, within and between, screens. Navigation elements include menus,
links, and standard buttons such as Back, Forward, and Exit.
non-extendable node
A node of an SAP business object that cannot be enhanced with additional fields, the so-called extension fields.
notification
Defined as part of the default approval process. Notifications are sent to the participants of an approval process to
inform them of a task to be carried out. In the studio, you can define an approval notification and a rejection
notification.
object-based navigation
A type of user interface interaction. When you create an object-based screen scenario, you create a work center with
an object work list, a quick activity floorplan and an object instance floorplan.
online help
Built-in documentation for the studio that is displayed in the Web browser.
operand
A numeric value upon which an operation is performed.
operator
A symbol that describes an operation to take place between two or more values.
outport
A port configured to pass the navigation key from the source user interface to the target user interface.
pane
A section of a floorplan.
parameter binding
Mapping of a URL parameter to a screen out-port.
partner solution
A business solution that is designed and developed by an SAP partner to enhance an SAP cloud solution.
password
A combination of alphanumeric characters used by a user to gain access to the system.
patch
Changes or corrections to a customer-specific solution after it has been assembled.
permissions
A set of policies describing whether an identity is allowed to access a certain program or piece of information. The
permissions, also called access rights, are grouped into work centers. The work centers can then be assigned to
identities, for example, to a user.
personalize
To change or customize something to suit your needs. For example, change the way that your desktop is configured
so that you have easy access to the applications you work with.
port binding
A grouping of predefined screen out-ports and in-ports that can be used to create a mashup. The port binding defines
the type of information that can be used in the mashup and defines on which screens you can use the mashup.
production environment
A reserved space that is used by an individual prospect or customer to store all information needed to operate its
live solution and run its business. Since any changes that are made here have a direct affect on the running
system, the customer typically performs changes and any related testing activities in a separate environment before
doing so in the live production environment.
production system
A system used by the customer to work with the solution after it has gone live. This system contains all of the elements
required to run the customer's business processes using the SAP cloud solution and can be adapted in the Business
Configuration work center using immediate changes and change projects.
project
A container that is used to organize all items of a solution, for example, business objects, screens, and business
configuration content.
Property Explorer
The Properties tool window of the user interface designer. You can view and change properties for each element in
the user interface model.
provider
The party responsible for providing IT services or a product to a customer. This can be performed by an in-house
provider or a third party.
Query Wizard
A guided activity for creating a query, selecting query fields, and defining query parameters.
quick activity
A secondary window consisting of a single interactive screen that allows you to complete a particular activity. For
example, the Create Incident quick activity allows you to request support from a key user.
radio button
Element of the graphical user interface. A radio button consists of a round element and a descriptive text. You can
use a radio button to select one item only from a list of items.
refresh
To update a screen, or part of a screen, so that it displays the most current information.
report
A compilation of data for evaluation where online analysis and drill-down is supported in every possible direction and
on a very detailed level. Analytical reports are ideal for detailed root cause analysis.
report category
A category by which reports are grouped from a business perspective.
report incident
A function that allows the user to report an incident from any screen within the application.
report wizard
A guided activity with which you can create or change your own reports.
Repository Explorer
A tool window that displays SAP content, such as business objects and data types, which is released with the public
solution model (PSM). It also displays the documentation for the different entities.
requester
A person who creates an approval process in SAP's cloud solution.
reset
A function that enables you to return to the original state of a document or application.
resolution
The action taken to solve an incident. Examples of resolutions include patches and work-arounds.
revision
Task that is part of the approval process. It is sent to the person who created the approval process and informs him
or her that the approver has requested changes to the request.
revision task
The task created by the system requiring a user to change data entered because it contains errors or because a
change is necessary.
rollover explanation
A brief text that provides instructions or other explanatory information about UI elements, such as fields, buttons,
column headers, tab titles, radio buttons, and check boxes, in cases where the label is not self-explanatory. A
rollover explanation is displayed when the user points the mouse cursor on the UI.
RSS
A method for publishing content such as news headlines, blogs, or podcasts on the Web using an XML (Extensible
Markup Language) file format. The content is automatically updated on a regular basis, and alerts users to new
information.
RSS Feed
A document that is either the entire text or the summary of the content of an associated Web site.
scoping
The process of matching business requirements to the capabilities of the solution, using the business adaptation
catalog.
scoping question
An important question the customer answers during scoping to select or deselect a business option from the
business adaptation catalog. An example of a scoping question for the Data Migration business topic is “Do you
want to migrate data using the built-in migration tool?”
screen out-port
The outgoing data connection from a screen to a mashup. This allows the data from the screen to be passed to a
mashup in-port.
script file
A project item that contains business logic for a solution.
scripting language
The programming language used in the studio to define business objects and business object extensions and to
implement the business logic.
search
To look for specific data in business documents, worklists, or the system.
search category
A group of objects with a similar theme that allows users to limit the scope of a search. Categories include Files,
Reports, Business Objects, and People, for example employees.
search result
A list generated after the user specifies the search criteria and executes a search.
section group
An area on the UI that contains information such as fields, links, or lists that belong together semantically.
segregation of duties
A measure used in the prevention of fraud by separating business processes so that more than one person is
responsible for completing a task. This is done by assigning access rights and distributing responsibility between
several users in the aim of reducing errors and preventing fraud.
service integration
Synchronous or asynchronous message-based communication between a business object and another
communication partner, such as a different system, by means of Web-service technology.
service operation
A specification of a function with a set of message types assigned as signature exposed as a web service. It is grouped
by interfaces.
Session Administrator
A tool window that displays active user sessions and provides functions for deleting sessions and item locks.
shortcut
Quick access to a screen without using the common navigation path.
short ID
An identifier used to identify custom work center views in the UI designer and in the SAP cloud solution. You create
the short ID in the "Create Screens" dialog in the studio.
solution
A container that is used to organize all items of a solution, for example, business objects, screens, and business
configuration content.
Solution Explorer
A tool window in which you can add, edit, and delete project items.
solution proposal
A document attached to an incident that describes a possible solution to the issue. The processor attaches one or
more solution proposals to an incident to provide the requester with information about how to solve the issue.
solution template
A container that is used to organize items that can be reused in customer-specific solutions.
source language
The language from which text is translated. The source language supported by the studio is English.
step
A stage in a guided activity towards the completion of a task.
structure element
A characteristic, formula, or restriction in a characteristic structure.
Subject
A short description of an item, such as a task or notification.
subnode
A lower-level node in a hierarchical structure.
subview
A view that a user can open within a view.
system message
A short text that provides information about system feedback to the user. System message texts are displayed in
the message region as error messages, warnings, success, or information messages.
tab
A label that the user clicks to access content. Tabs display horizontally in a tab strip and are positioned above the
content that they describe.
tag
A non-hierarchical keyword or term that is attached to an item. Tags are used to categorize or index items.
target language
The language to which text is translated. The target languages supported by the studio are German (DE), Spanish
(ES), French (FR), Portuguese (PT), and Chinese (ZH).
task
A unit of work that has to be performed by a user. Examples include Business Task Management tasks, IT Service
and Application Management tasks, and Activity tasks.
task description
Text that provides a brief explanation about a task.
task type
A predefined content type in the system. It has a set of properties such as task category and related business
document type which characterize the task. Each task type is related to one task category.
technical user
A back-end process or service that is used to automate technical tasks in the system.
thing
The fundamental component of the current UI design concept and the conceptual entity with which end users work.
Things are smart and portable work objects such as a Material or a Business Partner. They embed attributes (data or
images), related objects, analytical data, and actions generated from metadata.
thing-based navigation
A type of user interface interaction based on business objects defined as "things". This type of navigation is used in
SAP's cloud solutions (except for SAP Business ByDesign).
tooltip
A very short text that displays the name of a UI element when the label of the UI element cannot be seen or is only
partly displayed to the end user. A tooltip is displayed when the user points the mouse cursor on the UI element.
Toolbox
Tool window in the user interface designer. It provides the panes and controls that can be used to design the layout
of a user interface component on the Designer tab.
trace
A trace that is attached to an incident. Incident traces are tied to the life span of the incident.
Trace Explorer
A tool for gathering and analyzing diagnostic information.
trace sequence
The series of recorded method calls and evaluated trace messages that are created as a result of running a trace.
tracing
The process of creating and storing detailed information about runtime events in the system.
troubleshooting
A set of documents that provide solutions for typical problems or user errors. These documents are available in the
advanced search and in the search for incident reporting.
UI Designer
A tool that is part of the studio and that is used to design or enhance the user interface of the solution. You open the
UI Designer via the studio.
UI switch
A control in SAP's cloud solution that is used to restrict the visibility of UI changes.
unicode
A 16-bit character set that represents commonly used characters, for example letters and digits, in digital form.
Unicode has a distinct advantage over the 8-bit character set ASCII, in that it can render a much larger set of
characters. For example, Unicode can represent over 30,000 distinct coded characters, whereas ASCII can only
represent 128.
URL mashup
A mashup that sends data from the system to SAP's cloud solution to the Uniform Resource Locator (URL) of an
online service provider. The service provider uses the data, for example, to perform a search, and the results are
displayed in a new browser window.
user
A business object created for an employee or a service again who needs to log onto the system. It contains technical
information such as a password and access rights. Internal components also have user IDs assigned to them.
user ID
A unique identifier for an individual who interacts with the services supplied by a system.
user management
The process of managing all users on the system. This involves applying basic settings such as user names and
passwords, assigning users to work centers, and placing restrictions on user access.
validation
A script file that returns either true or false based on a specified condition. Validations are triggered on the execution of
events or actions. A validation can raise a message or stop further processing of an event or action.
value selection
The value selected to which a characteristic is restricted. The data shown in a report is restricted to the values
selected so that not all data is displayed.
variable
A parameter of a report that restricts a characteristic to one or more specified value selections.
Web service
A Web-based application programming interface (API) that can be used to access external data provided by online
service providers. Using mashups, key users, and partners can integrate data provided by Web services with internal
data from SAP's cloud solution.
work center
An area where a user can perform tasks or functions that they are responsible for within a company. Examples of
work centers are Purchase Requests and Orders and Personnel Administration.
worklist
A list of items which may require user action.
This document is for informational purposes only. Its content is subject to change without notice, and SAP does not
warrant that it is error-free. SAP MAKES NO WARRANTIES, EXPRESS OR IMPLIED, OR OF MERCHANTABILITY,
OR FITNESS FOR A PARTICULAR PURPOSE.
Coding Samples
Any software coding or code lines/strings (“Code”) provided in this documentation are only examples and are not
intended for use in a productive system environment. The Code is only intended to better explain and visualize the
syntax and phrasing rules for certain SAP coding. SAP does not warrant the correctness or completeness of the
Code provided herein and SAP shall not be liable for errors or damages cause by use of the Code, except where
such damages were caused by SAP with intent or with gross negligence.
Internet Hyperlinks
The SAP documentation may contain hyperlinks to the Internet. These hyperlinks are intended to serve as a hint
where to find supplementary documentation. SAP does not warrant the availability and correctness of such
supplementary documentation or the ability to serve for a particular purpose. SAP shall not be liable for any
damages caused by the use of such documentation unless such damages have been caused by SAP's gross
negligence or willful misconduct.
Gender-Neutral Language
As far as possible, SAP documentation is gender neutral. Depending on the context, the reader is addressed directly
with "you", or a gender-neutral noun (such as “sales person” or “working days”) is used. If when referring to members
of both sexes, however, the third person singular cannot be avoided or a gender-neutral noun does not exist, SAP
reserves the right to use the masculine form of the noun and pronoun. This is to ensure that the documentation
remains comprehensible.