SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

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

🎓 intermediate 30 min. ABAP DevelopmentIntermediateSAP BTP ABAP EnvironmentSAP Business Technology Platform

You will learn

  • โœ”How to filter by product id, supplier name, or product category
Julie Plummer J Julie Plummer January 18, 2024
Created by March 9, 2023
Contributors

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

Learn more →