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.
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.
- 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
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).
- ABAP Development Tools (ADT) in Eclipse
- SAP BTP ABAP Environment Access (This project use the Trial version)
- abapGit in Eclipse
- Pull the repository to your new created package via abapGit:
https://github.com/rafinika/abap-project-simple-groceries.git
-
Activate the Behavior Definition and the ABAP Class first, then activate all other imported file in the packege.
-
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
-
Open the application in your browser.
-
Use the interface to add, update, delete, and view grocery items.
-
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.
You can directly interact with the app using the following Fiori app link:
-
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.
-
-
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.
-
-
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.
-
-
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.
-
-
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.
-
src/: Contains the source code for the application.
Contributions are welcome! Please fork the repository and create a pull request with your changes.
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!