Enhance the Handler Class With Filtering
Requires Customer/Partner License
November 26, 2020
Advanced
30 min.
Add filtering by three values - product ID, supplier name, or category
You will learn
- How to filter by product
id
, supplier name, or product category
Prerequisites
- IMPORTANT: This tutorial cannot be completed on a trial account
- IMPORTANT: This tutorial is part of the mission Connect Your On-Premise System with SAP Cloud Platform, ABAP Environment. Please work through the previous tutorials in the mission first; otherwise this tutorial may not work.
Step 1: Duplicate your class
Step 2: Define variables
Step 3: Define filter variable
Step 4: Create a table for the selected columns
Step 5: Specify which columns are to be retrieved
Step 6: Pass the user's filter values for `productid` to the ranges table
Step 7: Repeat for Supplier Name or Category
Step 8: Add the parameters to the BAPI call
Step 9: Specify this new class in your custom entity
Step 10: Save, activate, and test your class
Step 11: Test yourself
Navigate tutorial steps
-
Step 1: Duplicate your class
-
Step 2: Define variables
-
Step 3: Define filter variable
-
Step 4: Create a table for the selected columns
-
Step 5: Specify which columns are to be retrieved
-
Step 6: Pass the user's filter values for `productid` to the ranges table
-
Step 7: Repeat for Supplier Name or Category
-
Step 8: Add the parameters to the BAPI call
-
Step 9: Specify this new class in your custom entity
-
Step 10: Save, activate, and test your class
-
Step 11: Test yourself
- Back to Top