SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

RFC: Enhance the Handler Class With Filtering

Add filtering by three values - product ID, supplier name, or category

Overview

You will learn

  • How to filter by product id, supplier name, or product category
Julie Plummer J Julie Plummer August 21, 2026
Created on March 9, 2023
Contributors

More from Julie Plummer

See all 51 tutorials by Julie Plummer →

Prerequisites

Prerequisites

Steps

Step 1 Duplicate your class

  1. Select the class from the previous tutorial, Get Data from a Remote System Using a Custom Entity, and choose Duplicate… from the context menu.

  2. Enter a name for your duplicate class, ZCL_PRODUCT_W_FILTER_000, and choose Finish.

The duplicate class appears in a new editor.

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
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 11
1. Duplicate your class 2. Define variables 3. Define filter variable 4. Create a table for the selected columns 5. Specify which columns are to be retrieved 6. Pass the user's filter values for `productid` to the ranges table 7. Repeat for Supplier Name or Category 8. Add the parameters to the BAPI call 9. Specify this new class in your custom entity 10. Save, activate, and test your class 11. Test yourself
Next