Skip to content

rafinika/abap-project-simple-groceries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Grocery App using ABAP RAP

ABAP Project by Yoga Rafinika

This project is a simple grocery application developed using ABAP RESTful Application Programming Model (RAP). The application allows users to manage and track grocery items.

Introduction

The Simple Grocery App is designed to help users manage their grocery items efficiently. It is built using ABAP RAP, providing a modern and scalable approach to application development in SAP.

Features

  • Add new grocery items
  • Update existing grocery items
  • Delete grocery items
  • View all or filter a list of grocery items
  • Check expiration dates of grocery items

Architecture

The application follows the ABAP RESTful Application Programming Model (RAP), which includes the following components:

  • Business Object (BO): Defines the data model and business logic.
  • Service Definition: Exposes the BO as a service.
  • Service Binding: Binds the service to a specific protocol (e.g., OData).

Getting Started

Prerequisites

- ABAP Development Tools (ADT) in Eclipse
- SAP BTP ABAP Environment Access (This project use the Trial version)
- abapGit in Eclipse

Installation

  1. Pull the repository to your new created package via abapGit:

https://github.com/rafinika/abap-project-simple-groceries.git

  1. Activate the Behavior Definition and the ABAP Class first, then activate all other imported file in the packege.

  2. Publish the Service Binding and preview the Fiori App.

    You can follow detailed instruction to import content from github into the BTP ABAP Environtment from this tutorial: Import Content from abapGit Repository into the BTP ABAP Environment

Usage

  1. Open the application in your browser.

  2. Use the interface to add, update, delete, and view grocery items.

  3. To check the expiration date of a grocery item, select the item from the list and view its details. The expiration date will be displayed if available.

Fiori App

You can directly interact with the app using the following Fiori app link:

Fiori App Link

Screenshot from the Fiori App Screenshot Grocery App

Test Cases

  1. Test Case: Add New Grocery Item

    • Test ID: TC001

    • Description: Verify that a new grocery item can be added successfully.

    • Preconditions: None

    • Steps:

      a. Open the application.

      b. Navigate to the "Create" button.

      c. Enter the item details (name, quantity, expiration date, etc).

      d. Click on the "Create" button.

    • Expected Result: The new item should be added to the list of grocery items.

  2. Test Case: Update Existing Grocery Item

    • Test ID: TC002

    • Description: Verify that an existing grocery item can be updated successfully.

    • Preconditions: A grocery item exists in the list.

    • Steps:

      a. Open the application.

      b. Select an item from the list.

      c. Click on the "Edit" button.

      d. Modify the item details (name, quantity, expiration date, etc).

      e. Click on the "Save" button.

    • Expected Result: The item details should be updated in the list.

  3. Test Case: Delete Grocery Item

    • Test ID: TC003

    • Description: Verify that a grocery item can be deleted successfully.

    • Preconditions: A grocery item exists in the list.

    • Steps:

      a. Open the application.

      b. Select an item from the list.

      c. Click on the "Delete" button.

      d. Confirm the deletion.

    • Expected Result: The item should be removed from the list.

  4. Test Case: View All Grocery Items

    • Test ID: TC004

    • Description: Verify that all grocery items can be viewed successfully.

    • Preconditions: None

    • Steps:

      a. Open the application.

      b. Navigate to the "Adapt Filters" section to filter the list.

      c. Click on the "Go" button

    • Expected Result: A list of all grocery items should be displayed.

  5. Test Case: Check Expiration Date

    • Test ID: TC005

    • Description: Verify that the expiration date of a grocery item can be checked.

    • Preconditions: A grocery item with an expiration date exists in the list.

    • Steps:

      a. Open the application.

      b. Select an item from the list.

      c. Click on the "Check for Expiration" button

    • Expected Result: The expiration date of the item should be updated.

Project Structure

src/: Contains the source code for the application.

Contributing

Contributions are welcome! Please fork the repository and create a pull request with your changes.

Contact

If you have any questions, feel free to reach out to rafinika.

Feel free to let me know if you need any additional changes or information!