Development Information Document Version: CUSTOMER. ABAP for Key Users

Similar documents
SAP Workforce Performance Builder 9.5

Configuring Client Keystore for Web Services

Non-SAP Backend System Readiness Check

Creating RFC Destinations

ATTP Settings for ATTP to ATTP Connection

Configuring the SAP Cryptolibrary on the ABAP Application Server

SAP Enable Now. Desktop Components (Cloud Edition)

Configuring the Web Service Runtime for ATTP

SAP Workforce Performance Builder

SAP Workforce Performance Builder 9.5

Afaria Document Version: Windows Phone Enterprise Client Signing

SAP Enable Now. System Requirements

System Requirements and Technical Prerequisites for SAP SuccessFactors HCM Suite

Master Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data Quality

Deleting SAP HANA Delivery Units and Products

SAP Workforce Performance Builder 9.5

SAP Enable Now. Desktop Assistant

PUBLIC DQM Microservices Blueprints User's Guide

Advanced Reporting in the Online Report Designer Administration Guide

SAP IoT Application Enablement Reuse Components and Templates

Manual 1704 Document Version: SAP SE or an SAP affiliate company. All rights reserved. PUBLIC. SAP Enable Now.

Visual Business Configuration with SAP TM

PUBLIC Rapid Deployment Guide

Standalone Retrofit. Required Steps when Upgrading to SAP Solution Manager 7.2, SP03

Feature Scope Description Document Version: CUSTOMER. SAP Analytics Hub. Software version 17.09

VERSION 1.0, FEATURE PACK What s New SAP Enable Now

What's New in SAP HANA Smart Data Streaming (Release Notes)

SAP Business One Upgrade Strategy Overview

Business Add-Ins (BAdIs) for SD Jam Integration Document Version:

SAP Business One Upgrade Strategy Overview

CUSTOMER Upgrade: SAP Mobile Platform SDK for Mac OS

1704 SP2 CUSTOMER. What s New SAP Enable Now

PUBLIC SAP Vora Sizing Guide

Installing and Updating SAP HANA Products and Software Components

SAP Vora - AWS Marketplace Production Edition Reference Guide

SAP Enable Now What s New. WHAT S NEW PUBLIC Version 1.0, Feature Pack SAP Enable Now What s New. Introduction PUBLIC 1

What's New in SAP Landscape Transformation Replication Server 2.0 SP13

ADDITIONAL GUIDES Customer SAP Enable Now System Requirements Customer

Software and Delivery Requirements

What's New in SAP Landscape Transformation Replication Server 2.0 SP15

SAP Mobile Secure Rapiddeployment. Software Requirements

SAP Policy Management, group insurance add-on 1.1

Demand Management. Job Processing Guide for SAP DM. Release 6.4

Strategic Dashboard 7.2

How To...Use a Debugging Script to Easily Create a Test Environment for a SQL-Script Planning Function in PAK

Security Information for SAP Asset Strategy and Performance Management

Onboarding Guide THE BEST RUN. IMPLEMENTATION GUIDE PUBLIC Document Version:

Security Guide SAP Supplier InfoNet

S4H410. SAP S/4HANA Embedded Analytics and Modeling with Core Data Services (CDS) Views COURSE OUTLINE. Course Version: 05 Course Duration: 2 Day(s)

SAP Business One, version for SAP HANA Platform Support Matrix

SAP Business One Hardware Requirements Guide

How To Protect your Intellectual Property

Service Level Report Dashboard 7.2

SAP Business One Hardware Requirements Guide

How To... Master Data Governance for Material: BADI USMD_SSW_SYSTEM_METHOD_CALLER to create successor change request

SAP Landscape Transformation Replication Server

Starting Guide for Data Warehousing Foundation Components on XSA

How To... Promote Reports and Input Schedules Through Your System Landscape

Simplified Configuration of Single System Update in Maintenance Optimizer

edocument for Hungary Invoice Registration - SAP Cloud Platform Integration Guide (SAP S/ 4HANA Cloud)

HA215 SAP HANA Monitoring and Performance Analysis

Operations Dashboard 7.2

How to Use Function Keys in Mobile Applications for Handhelds

How To... Configure Integrated Configurations in the Advanced Adapter Engine

SAP Composite Application Framework. Creating a Callable Object in Group: Miscellaneous

How To... Master Data Governance for Material: BADI USMD_SSW_PARA_RESULT_HANDLER to merge result of parallel workflow tasks

SAP NetWeaver How-To Guide

How To Set up NWDI for Creating Handheld Applications in SAP NetWeaver Mobile 7.1

UX402 SAP SAPUI5 Development

Automated Java System Post-Copy Configuration Using SAP Landscape Management 3.0, Enterprise Edition

How To Recover Login Module Stack when login to NWA or Visual Administrator is impossible

Server Extension User s Guide SAP BusinessObjects Planning and Consolidation 10.0, version for the Microsoft platform

Certification Suite BC-ILM 3.0

Managing Business Rules THE BEST RUN. PLANNING AND DESIGN PUBLIC SAP Global Track and Trace Document Version: Cloud 2018.

Setting Up an Environment for Testing Applications in a Federated Portal Network

How To...Configure Integration of CUP with SPM

How To... Reuse Business Objects and Override Operations of a Business Object

SAP NetWeaver How-To Guide

Integration between Digital Compliance Service User Interface and esign Application Service Provider User Interface

SAP Composite Application Framework. Creating a Content Package Object

SAP Jam for Microsoft Office integration Reference Guide THE BEST RUN

SAP - How-To Guide MDG Custom Object Data Replication How to Configure Data Replication for MDG Custom Objects (Flex Option)

SAP Composite Application Framework. Creating an External Service type Callable Object in Guided Procedures

How-To... Add Sensitive Content into an Area

How To...Custom BADI for rounding off values in SAP BUSINESSOBJECTS Planning and Consolidation, version for SAP NetWeaver.

S4H01. Introduction to SAP S/4HANA COURSE OUTLINE. Course Version: 04 Course Duration: 2 Day(s)

edocument for Italy - SAP Cloud Platform Integration Guide

SAP Branch Agreement Origination V3.703: Software and Delivery Requirements

How To Generate XSD Schemas from Existing MDM Repositories

SAP Business One Hardware Requirements Guide

How to Set Up Data Sources for Crystal Reports Layouts in SAP Business One, Version for SAP HANA

Partition Wizard User s Guide SAP BusinessObjects Planning and Consolidation 10.0, version for the Microsoft platform

UX300 SAP Screen Personas 3.0 Development

ADM110. Installing and Patching SAP S/4HANA and SAP Business Suite Systems COURSE OUTLINE. Course Version: 17 Course Duration: 4 Day(s)

SAP NetWeaver How-To Guide. SAP NetWeaver Gateway Virtualization Guide

ADM110. Installing and Patching SAP S/4HANA and SAP Business Suite Systems COURSE OUTLINE. Course Version: 18 Course Duration: 4 Day(s)

JCo 3.0 in Web Channel 7.54

Integrating a Web Service in a Composite Application. SAP Composite Application Framework

How To... Master Data Governance for Material: File Down- and Upload

S4D430 Building Views in Core Data Services ABAP (CDS ABAP)

Transcription:

Development Information Document Version: 1.0 2015-11-30

Typographic Conventions Type Style Example Description Words or characters quoted from the screen. These include field names, screen titles, pushbuttons labels, menu names, menu paths, and menu options. Textual cross-references to other documents. Example EXAMPLE Example Example <Example> EXAMPLE Emphasized words or expressions. Technical names of system objects. These include report names, program names, transaction codes, table names, and key concepts of a programming language when they are surrounded by body text, for example, SELECT and INCLUDE. Output on the screen. This includes file and directory names and their paths, messages, names of variables and parameters, source text, and names of installation, upgrade and database tools. Exact user entry. These are words or characters that you enter in the system exactly as they appear in the documentation. Variable user entry. Angle brackets indicate that you replace these words and characters with appropriate entries to make entries in the system. Keys on the keyboard, for example, F2 or ENTER. 2 2015 SAP SE or an SAP affiliate company. All rights reserved. Typographic Conventions

Document History Version Date Change 1.0 2015-11-30 First publication Document History 2015 SAP SE or an SAP affiliate company. All rights reserved. 3

Contents 1 Introduction... 5 2 IF, ELSEIF, ELSE, ENDIF... 6 3 References... 8 Important Disclaimers and Legal Information... 9 4 2015 SAP SE or an SAP affiliate company. All rights reserved. Contents

1 Introduction This document gives you an overview and explanations of basic ABAP statements that are available for key users in the web-based editor that is included in the Custom Fields and Logic app. Note This document is being updated regularly. The purpose of this document is to provide key users with additional information on ABAP development. Changes to the document are documented in section Document History. Target Group Business experts working with the SAP Fiori app Custom Fields and Logic Implementation consultants working with the SAP Fiori app Custom Fields and Logic Prerequisites You can use the web-based ABAP Editor for key users in the Custom Fields and Logic application with the following releases: SAP S/4HANA, cloud edition 1506 and higher SAP S/4HANA, on-premise edition 1511 Authorizations Cloud environment Your user is assigned to the SAP Fiori business catalog SAP_BCR_CORE_EXT. On-premise environment Your user is assigned to a role that contains the authorizations taken from the following template roles: o SAP_NW_APS_EXT_CFD o SAP_NW_APS_EXT_CFL_APP Knowledge Basic knowledge of ABAP statements Introduction 2015 SAP SE or an SAP affiliate company. All rights reserved. 5

2 Basics The sections of this chapter make you familiar with the basic ABAP statements that you can use in the web-based editor of the SAP Fiori app Custom Fields and Logic. 2.1 IF, ELSEIF, ELSE, ENDIF Syntax Syntax IF log_exp1. [statement_block1] [ELSEIF log_exp2. [statement_block2]]... [ELSE. [statement_blockn]] ENDIF. These statements define a control structure which can contain multiple statement blocks statement_block of which a maximum of one is executed in conjunction with logical expressions log_exp. After IF and ELSEIF, any logical expression log_exp can be executed while the expressions statement_block represent any statement block. The logical expressions, beginning with the IF statement, are checked from top to bottom and the statement block is executed after the first true logical expression. If none of the logical expressions are true, the statement block after the ELSE statement is executed. Example Sample Code " Example: Retrieving and formatting the current time " " We need to resort to GET TIME STAMP FIELD var and " extract the time from the timestamp. DATA current_time TYPE timestamp. DATA timezone TYPE timezone. DATA time TYPE t. DATA result TYPE string. " Get the current date and time as a timestamp (with seconds accuracy) 6 2015 SAP SE or an SAP affiliate company. All rights reserved. Basics

GET TIME STAMP FIELD current_time. " Extract the time part from the timestamp. " timezone is initial (empty), which means the time will be returned in the default timezone, UTC. CONVERT TIME STAMP current_time TIME ZONE timezone INTO TIME time. " Convert time to the 12-hour format IF time < '120000'. result = { time TIME = ISO } AM. ELSEIF time > '120000' AND time < '240000'. result = { CONV t( time - 12 * 3600 ) TIME = ISO } PM. ELSE. result = High Noon. ENDIF. " result => 10:35:08 AM Basics 2015 SAP SE or an SAP affiliate company. All rights reserved. 7

3 References Information about extensibility for key users S/4HANA, on-premise edition 1511: http://help.sap.com/s4hana_op_1511 SAP NetWeaver for SAP S/4HANA, on-premise edition General Functions for Key Users SAP Fiori Applications Extensibility. S/4HANA, cloud edition 1511: Extensibility for Key Users 8 2015 SAP SE or an SAP affiliate company. All rights reserved. References

Important Disclaimers and Legal Information Coding Samples Any software coding and/or code lines / strings ("Code") included in this documentation are only examples and are not intended to be used in a productive system environment. The Code is only intended to better explain and visualize the syntax and phrasing rules of certain coding. SAP does not warrant the correctness and completeness of the Code given herein, and SAP shall not be liable for errors or damages caused by the usage of the Code, unless damages were caused by SAP intentionally or by SAP's gross negligence. Accessibility The information contained in the SAP documentation represents SAP's current view of accessibility criteria as of the date of publication; it is in no way intended to be a binding guideline on how to ensure accessibility of software products. SAP in particular disclaims any liability in relation to this document. This disclaimer, however, does not apply in cases of wilful misconduct or gross negligence of SAP. Furthermore, this document does not result in any direct or indirect contractual obligations of SAP. 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. Internet Hyperlinks The SAP documentation may contain hyperlinks to the Internet. These hyperlinks are intended to serve as a hint about where to find related information. SAP does not warrant the availability and correctness of this related information or the ability of this information to serve a particular purpose. SAP shall not be liable for any damages caused by the use of related information unless damages have been caused by SAP's gross negligence or willful misconduct. All links are categorized for transparency (see: http://help.sap.com/disclaimer). Important Disclaimers and Legal Information 2015 SAP SE or an SAP affiliate company. All rights reserved. 9

www.sap.com/contactsap 2015 SAP SE or an SAP affiliate company. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP SE or an SAP affiliate company. SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or an SAP affiliate company) in Germany and other countries. All other product and service names mentioned are the trademarks of their respective companies. Please see http://www. sap.com/corporate-en/legal/copyright/index.epx#trademark for additional trademark information and notices. Material Number: