We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 64
Table of Contents
SAP Build Apps – Part 2 .......................................................................................... 1
Business Scenario ........................................................................................................1 Reference Material .......................................................................................................2 Enable Data Entity for Orders,OrderItems and Products .................................................2 Create Data Variable for holding the retrieved the data from CAP Service ......................5 Updating the product properties for Shopping Cart ........................................................8 Map the backend data to the UI Components............................................................... 10 Add the logic for Cart Total .......................................................................................... 16
Set up new menu item for “Cart” page ................................................................. 18
Preview Cart Page ....................................................................................................... 21 Cart Page for Order Items ............................................................................................ 22
Create the Cart for adding items .......................................................................... 23
Add flow functions to the page focued event ................................................................ 25 Utility -IF Condition for retrieving or creating a cart ...................................................... 26 Use Get Record Collection to retrieve the orders ......................................................... 30 Use Alert flow functions for error handling ................................................................... 35 Use Create Record for creating new cart ...................................................................... 38 Set App variable flow function to retrieve the order ...................................................... 40 Add Items to Cart ........................................................................................................ 43 Delete Record Logic .................................................................................................... 52 Preview for shopping Cart ........................................................................................... 62
Final Output for adding items into Cart ................................................................. 63
SAP Build Apps – Part 2
Business Scenario Creating product list shopping cart based on CAP Service. Reference Material https://developers.sap.com/tutorials/codejam-01-homepage.html#ce3297eb-4d28- 4a96-ac79-bce33150a799
Enable Data Entity for Orders,OrderItems and Products
Create Data Variable for holding the retrieved the data from CAP Service Updating the product properties for Shopping Cart Map the backend data to the UI Components Add the logic for Cart Total Set up new menu item for “Cart” page Preview Cart Page Cart Page for Order Items Create the Cart for adding items Add flow functions to the page focued event Utility -IF Condition for retrieving or creating a cart Use Get Record Collection to retrieve the orders Use Alert flow functions for error handling Use Create Record for creating new cart Set App variable flow function to retrieve the order Add Items to Cart Delete Record Logic Preview for shopping Cart Final Output for adding items into Cart