SAP H[y]bris V6 Certified Development Professional

Similar documents
COURSE LISTING. Courses Listed. with SAP Hybris Commerce Functional Analyst. 26 February 2018 (10:57 GMT)

SAP EDUCATION SAMPLE QUESTIONS: E_HYCPS_60. Questions. Note: There are 2 correct answers to this question. tenant overview page.

This study guide is continually being revised and improved. When preparing for the exam, remember to check the website for the latest version.

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

Worldpay SAP Hybris AddOn Guide

Text Data Processing Entity Extraction Dictionary File Generator User's Guide SAP Data Services 4.2 (14.2.0)

The Magento Certified Developer Exam (Beta) Self-Assessment Checklist

hybris-as-a-service A microservices architecture in action

SAP Hybris Billing, pricing simulation Application Operations Guide Release 2.0, SP03

EST151: Maintain Parts

JBOSS OPERATIONS NETWORK FAQ Answers to frequently asked questions

Information Design Tool User Guide SAP BusinessObjects Business Intelligence platform 4.0 Support Package 4

Adobe Campaign Business Practitioner Adobe Certified Expert Exam Guide. Exam number: 9A0-395

Best Practice for Creation and Maintenance of a SAS Infrastructure

Pricing Guide PHONE WEBSITE www,purpleicondesigns.com.

SQL Studio (BC) HELP.BCDBADASQL_72. Release 4.6C

SAP Jam Communities What's New 1808 THE BEST RUN. PUBLIC Document Version: August

CA IdentityMinder. Glossary

Event Scheduling System 4.0 User Guide

Smart Bulk SMS & Voice SMS Marketing Script with 2-Way Messaging. Quick-Start Manual

Sage Estimating (SQL) v17.12

Aprimo Marketing Studio Configuration Mover Guide

Customize. Building a Customer Portal Using Business Portal. Microsoft Dynamics GP. White Paper

EPiStore Configuration

VMware vcenter Configuration Manager and VMware vcenter Application Discovery Manager Integration Guide

BusinessObjects LifeCycle Manager User's Guide

SAP HANA Authorization (HA2)

MCITP Windows Server 2008 Server Administrator Study Guide

Integration Service. Admin Console User Guide. On-Premises

AN INTRODUCTION TO QUICKBOOKS ONLINE. Getting Started Guide

iparts, iparts, & More iparts

COURSE LISTING. Courses Listed. Training for Database & Technology with Modeling in SAP HANA. Last updated on: 30 Nov 2018.

Steps A. Identify version number B. Access configuration page C. Basic settings D. Advance settings E. Front end experience settings F.

Technical Overview. Elastic Path Commerce

CORE JAVA. Saying Hello to Java: A primer on Java Programming language

"Web Age Speaks!" Webinar Series

Product Blueprints User's Guide SAP Data Services 4.2 (14.2.0)

Sage Estimating (SQL) v17.13

ACS 5.x: LDAP Server Configuration Example

Custom Functions User's Guide SAP Data Services 4.2 (14.2.0)

FAQs Data Sources SAP Hybris Cloud for Customer PUBLIC

Value of managing and running automated functional tests with Rational Quality Manager

Extra Fee for Magento 2

Full Stack Web Developer

What s New in Jedox

Adobe Experience Manager 6 Lead Developer Adobe Certified Expert Exam Guide. Exam number: 9A0-396

Full Stack Web Developer

Release Information Document Version: CUSTOMER. SAP Event Ticketing

Sage 300. Sage CRM 7.3 Integration Upgrade Guide

BusinessObjects LifeCycle Manager Release Notes

Oracle Fusion Middleware 11g: Build Applications with ADF Accel

T-SQL Training: T-SQL for SQL Server for Developers

Julia Levedag, Vera Gutbrod RIG and Product Management SAP AG

Strategic Dashboard 7.2

Sage 300. Sage CRM 2018 Integration Upgrade Guide. October 2017

IBM TPF Toolkit VisualAge TPF

ORACLE CERTIFIED ASSOCIATE ORACLE DATABASE 11g ADMINISTRATOR

Search Autocomplete Magento Extension

store.belvg US: UK:

Allison Transmission Publications Web Store User Guide

Your Cart User Manual v3.6

Partial Backup Interview Questions And Answers In Oracle 10g Pl Sql

Integration Service. Admin Console User Guide. On-Premises

Design Gallery User Guide

BC414. Programming Database Updates COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

This tutorial explains how you can use Gradle as a build automation tool for Java as well as Groovy projects.

SP2010 and Internet. Thierry Gasser Microsoft Switzerland. SharePoint de Contact. 3 novembre 2011

ActiveSpaces Transactions. Quick Start Guide. Software Release Published May 25, 2015

SAP C_TS4FI_1610 Exam

administrative control

Oracle Financial Services Governance, Risk, and Compliance Workflow Manager User Guide. Release February 2016 E

Elastic Suite for Magento 2 User Guide

Administration guide. PRISMAdirect Configuration

BOID10. SAP BusinessObjects Information Design Tool COURSE OUTLINE. Course Version: 17 Course Duration: 5 Day(s)

SAP Hybris Billing, Pricing Simulation Extended Functions Release 2.0, SP03

SAP Workforce Performance Builder 9.5

Checkout Success Page v2.x Configuration for Magento 2

All-In-One-Designer Promotion Handbook. Promotion

HA300 SAP HANA Modeling

Operations Dashboard 7.2

Oracle SQL. murach s. and PL/SQL TRAINING & REFERENCE. (Chapter 2)

Policy Manager for IBM WebSphere DataPower 8.0: Installation Guide

Sage Estimating (SQL) v18.12

Improve and Expand JavaServer Faces Technology with JBoss Seam

easypurchase Magellan User Reference Guide

DB2 for z/os: Programmer Essentials for Designing, Building and Tuning

Hybris Marketing Web Tracking

ApacheCon NA How to Avoid Common Mistakes in OFBiz Development Presented by Adrian Crum

ADM506. Database Administration Oracle II COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

All company and brand products and service names are trademarks or registered trademarks of their respective holders.

Ferguson estore Guide

IBM TRIRIGA Application Platform Version 3 Release 4.2. Object Migration User Guide

Partial Backup Interview Questions And Answers In Oracle 10g Database Architecture

Why switch exist-db from Ant to Maven?

Advance Search With Solr

Microsoft Dynamics GP. Extender User s Guide

Welcome to QuickBooks Online Accountant

esales Boost for EPiServer Partner Proposition

20486 Developing ASP.NET MVC 5 Web Applications

All-In-One-Designer SEO Handbook

Transcription:

SAP H[y]bris V6 Certified Development Professional Study Guide wcms, backoffice, cockpit, accelerator, data model, order, search, platform, pcm, price, user 170 questions to prepare the final exam! Benoit Vanalderweireldt

SAP Hybris V6 Certiied Development Professional Study Guide Benoit Vanalderweireldt 2016-10-25

2017 Hybhub 2014 hybris AG or an SAP ailiate company. All rights reserved. Hybris and other Hybris products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of hybris AG (or an SAP ailiate company) in Switzerland, Germany and other countries. All other product and service names mentioned are the trademarks of their respective companies. learn more

Contents 1 Introduction 6 About the author.............................. 6 Requirements................................ 6 Groovy console............................... 7 Example Groovy console....................... 8 Assessment test............................... 8 Questions............................... 8 Solutions............................... 12 2 WCMS 16 CMS Items hierarchy............................ 16 CMSItem CMSRelation....................... 17 CMSItem types............................ 17 CMS Components............................. 18 Example how to create a cms component............. 18 Personalization............................... 21 Segmentation rules.......................... 21 Segmentation actions......................... 22 Create a CMS restriction...................... 22 WCMS cockpit............................... 23 Warehouse & point of service....................... 23 Warehouse............................... 23 Point of services........................... 24 3 Backoice & Cockpits modiications 25 Create a new Backoice application................... 25 Create & connect a new widget...................... 26 Legacy Cockpit modiication....................... 29 4 Commerce and Accelerator 30 Create New Addon............................. 30 OCC Webservices.............................. 37 Install OCC.............................. 40 OAUTH................................ 40 2

Create / customize webservices................... 42 CMS navigation bar............................ 47 Order splitting............................... 49 Promotion.................................. 49 Payment................................... 50 Internationalization............................ 50 Request handling.............................. 51 Request ilters............................. 52 Hot folders................................. 55 Create a new import coniguration................. 55 Data Modeling............................... 57 Create new types........................... 57 5 Order management 88 Business process.............................. 88 Fulillment process............................. 93 Shopping cart handling.......................... 95 Checkout low................................ 97 ASM..................................... 104 CS Cocpkit................................. 106 6 Search & navigation 107 Solr index.................................. 107 Solr Indexed Property........................ 109 Solr Indexed Query.......................... 112 Solr Search Field........................... 113 Indexing listeners........................... 113 Solr Facet............................... 115 Solr Facet Range........................... 116 Auto suggestion & keywords & stopwords & synonyms...... 116 Hero products & boost rules..................... 118 7 Platform basics 124 Initialization................................ 124 Update................................... 125 Update and Initialization lock....................... 125 Update and Initialization hooks...................... 126 Essential & project data.......................... 128 Import by convention........................ 128 Import by coniguration....................... 128 Control the order of import..................... 129 Sessions handling.............................. 129 Extensions structures........................... 130 extensioninfo.xml........................... 130 localextensions.xml.......................... 131 Create a new extension........................ 132

Maven................................. 133 Coniguration................................ 134 Coniguration Service......................... 134 Environment variables........................ 134 Runtime optional coniguration................... 135 Build..................................... 135 Callbacks............................... 136 Tenant.................................... 136 Cache.................................... 137 Region cache............................. 137 Interceptors................................. 139 Transactions................................ 141 Tasks.................................... 142 8 Platform core 143 Events.................................... 143 Impex.................................... 146 Header................................. 147 Comment............................... 149 Macro................................. 149 Abbreviations............................. 149 Document ID............................. 150 Translators.............................. 150 Alternative pattern.......................... 150 Distributed Impex.......................... 151 Access properties from Impex.................... 151 Spring context............................... 152 Cronjobs................................... 153 Cluster................................... 156 Cache invalidation.......................... 156 Coniguration............................. 156 9 PCM & price 158 Price calculation.............................. 158 Taxes.................................... 159 Discounts.................................. 160 Media object................................ 160 Media formats and Media container................ 161 Media contexts............................ 162 Secured media............................ 162 Synchronization jobs............................ 162 Worklow.................................. 163 10 User Management 165 User rights................................. 165 Access rights............................. 165

Search restrictions............................. 167 Service layer example......................... 167 Impex example............................ 168 B2B hierarchy............................... 168 11 Study tips 169 Study plan................................. 169 Play with SAP Hybris........................... 170 Identify your weakest point........................ 170 Understand the Questions......................... 170 Checking the answer............................ 170 12 Mock exam 1 171 Questions.................................. 171 Solutions.................................. 199 13 Mock exam 2 216 Questions.................................. 216 Solutions.................................. 243

Chapter 1 Introduction Dear Reader, Thank you for choosing SAP Hybris V6 Certiied Development Professional Study Guide to prepare for your SAP certiication. I d be very interested to hear your feedback on how you are doing after using this e-book. Feel free to let me know what you think about this study guide by sending an email to benoit.v@hybhub.com. If you disagree or think there are technical errors, feel free to share it with me. About the author Benoit Vanalderweireldt has worked as an SAP Hybris developer for the last 4 years for diferent companies in Asia, US and Europe. Besides being an enthusiastic SAP Hybris developer, Benoit loves building software and infrastructures using automation. You can learn more about him by visiting his proile on Linkedin : https://www. linkedin.com/in/benoitvanalderweireldt Requirements In order to use this study guide you need : 1. SAP H[y]bris V6.x 2. access to http://help.hybris.com 3. access to http://experts.hybris.com 4. a working IDE compatible with SAP Hybris (Eclipse, IntelliJ, Netbeans ) 5. a JDK 8 installed 6

Groovy console SAP Hybris commerce has the ability of running a Groovy script on a running system, from your script you are able to access all services, facades and therefore items. It makes the groovy console the best place to run any sort of quick tests or validate a piece of code on SAP Hybris (http://groovy-lang.org). To run a groovy script open http://localhost:9001/console/scripting/ and select groovy as script type. If rollback mode is on, no data would be persisted, so if you want to manipulate data remember to switch the mode to commit Example loading a product: 1 import de.hybris.platform.servicelayer.search.flexiblesearchservice 2 import de.hybris.platform.catalog.catalogversionservice 3 import de.hybris.platform.catalog.model.catalogversionmodel 4 import de.hybris.platform.core.model.product.productmodel 5 6 FlexibleSearchService fss = spring.getbean("flexiblesearchservice") 7 CatalogVersionService cvs = spring.getbean("catalogversionservice") 8 CatalogVersionModel cvm = cvs.getcatalogversion(" electronicsproductcatalog","online") 9 10 ProductModel pm = new ProductModel() 11 pm.setcode("1099413") 12 pm.setcatalogversion(cvm) 13 14 pm = fss.getmodelbyexample(pm) 15 16 println pm.getname()

Example Groovy console Assessment test When you prepare the P_HYCD_60 exam to become a SAP Certiied Development Professional - SAP Hybris Commerce 6.0 Developer you have a lot of questions like : How do I know I m ready for the exam? How hard are the questions? How do I know what chapter I need to focus on? This chapter, the assessment test or pretest is designed as a mental dipstick to know how likely you would be to successfully pass P_HYCD_60 if you were trying today. So let s get started, try to answer all the questions in real conditions. Questions Pretest - Question 1 When you initialize SAP Hybris from ant, what actions are executed? 1. Aborts all running cronjobs

2. Delete and recreate the database 3. Delete all known tables 4. Import all project data Solution Pretest - Question 2 Changing SAP Hybris coniguration from the project.properties ile of your platform project is considered bad because? 1. This doesn t follow SAP Hybris licence 2. It makes future updates harder 3. The ile is already too big 4. This ile is ignored after you create a new conig folder from it Solution Pretest - Question 3 Is this a valid Flexible Search Query? 1 SELECT {p.pk} FROM {Principal} AS p WHERE {p.uid} = 'admin' 1. No, Principal is an abstract type 2. No, SQL aliases deinition needs to be inside the brackets 3. NO, for another reason 4. Yes, this is a valid Flexible Search Query. Solution Pretest - Question 4 According to the following extensioninfo.xml what statements are true? 1 <?xml version="1.0" encoding="utf-8" standalone="no"?> 2 <extensioninfo xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" 3 xsi:nonamespaceschemalocation="extensioninfo.xsd"> 4 5 <extension abstractclassprefix="generated" classprefix=" HybhubStorefront"

6 name="hybhubstorefront"> 7 8 <requires-extension name="assistedservicestorefront"/> 9 <requires-extension name="smarteditaddon"/> 10 <requires-extension name="captchaaddon"/> 11 <requires-extension name="acceleratorstorefrontcommons"/> 12 <requires-extension name="hybhubfacades"/> 13 14 <webmodule jspcompile="false" webroot="/hybhubstorefront"/> 15 16 <meta key="extgen-template-extension" value="true"/> 17 18 </extension> 19 20 </extensioninfo> 1. This extension could deine new item types from its hybhubstorefront-items.xml like all other extensions 2. This extension can used as a template to create a new extension 3. This extension can deine HMC coniguration and localization 4. This extension requires a web directory Solution Pretest - Question 5 Which of the following Interfaces are valid SAP Hybris interceptors? 1. de.hybris.platform.servicelayer.interceptor.validateinterceptor 2. de.hybris.platform.servicelayer.interceptor.prepareinterceptor 3. de.hybris.platform.servicelayer.interceptor.checkinterceptor 4. de.hybris.platform.servicelayer.interceptor.initallinterceptor 5. de.hybris.platform.servicelayer.interceptor.removeinterceptor 6. de.hybris.platform.servicelayer.interceptor.deleteinterceptor Solution Pretest - Question 6 What is the recommended way to create a new extension within SAP Hybris V6? 1. Use the installer script with the extgen recipe